repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ImagingServicesFeeEvent.php | lib/Models/Finances/ImagingServicesFeeEvent.php | <?php
/**
* ImagingServicesFeeEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ImagingServicesFeeEvent Class Doc Comment.
*
* @description A fee event related to Amazon Imaging services.
*
* @author Stefan Neuhaus / ClouSale
*/
class ImagingServicesFeeEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ImagingServicesFeeEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'imaging_request_billing_item_id' => 'string',
'asin' => 'string',
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'fee_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'imaging_request_billing_item_id' => null,
'asin' => null,
'posted_date' => null,
'fee_list' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'imaging_request_billing_item_id' => 'ImagingRequestBillingItemID',
'asin' => 'ASIN',
'posted_date' => 'PostedDate',
'fee_list' => 'FeeList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'imaging_request_billing_item_id' => 'setImagingRequestBillingItemId',
'asin' => 'setAsin',
'posted_date' => 'setPostedDate',
'fee_list' => 'setFeeList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'imaging_request_billing_item_id' => 'getImagingRequestBillingItemId',
'asin' => 'getAsin',
'posted_date' => 'getPostedDate',
'fee_list' => 'getFeeList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['imaging_request_billing_item_id'] = isset($data['imaging_request_billing_item_id']) ? $data['imaging_request_billing_item_id'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['fee_list'] = isset($data['fee_list']) ? $data['fee_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets imaging_request_billing_item_id.
*
* @return string
*/
public function getImagingRequestBillingItemId()
{
return $this->container['imaging_request_billing_item_id'];
}
/**
* Sets imaging_request_billing_item_id.
*
* @param string $imaging_request_billing_item_id the identifier for the imaging services request
*
* @return $this
*/
public function setImagingRequestBillingItemId($imaging_request_billing_item_id)
{
$this->container['imaging_request_billing_item_id'] = $imaging_request_billing_item_id;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item for which the imaging service was requested
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets fee_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList
*/
public function getFeeList()
{
return $this->container['fee_list'];
}
/**
* Sets fee_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $fee_list fee_list
*
* @return $this
*/
public function setFeeList($fee_list)
{
$this->container['fee_list'] = $fee_list;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/AffordabilityExpenseEventList.php | lib/Models/Finances/AffordabilityExpenseEventList.php | <?php
/**
* AffordabilityExpenseEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AffordabilityExpenseEventList Class Doc Comment.
*
* @description A list of expense information related to an affordability promotion.
*
* @author Stefan Neuhaus / ClouSale
*/
class AffordabilityExpenseEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AffordabilityExpenseEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return AffordabilityExpenseEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SolutionProviderCreditEventList.php | lib/Models/Finances/SolutionProviderCreditEventList.php | <?php
/**
* SolutionProviderCreditEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SolutionProviderCreditEventList Class Doc Comment.
*
* @description A list of information about solution provider credits.
*
* @author Stefan Neuhaus / ClouSale
*/
class SolutionProviderCreditEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SolutionProviderCreditEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return SolutionProviderCreditEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/BigDecimal.php | lib/Models/Finances/BigDecimal.php | <?php
/**
* BigDecimal.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* BigDecimal Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class BigDecimal implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'BigDecimal';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SellerDealPaymentEventList.php | lib/Models/Finances/SellerDealPaymentEventList.php | <?php
/**
* SellerDealPaymentEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerDealPaymentEventList Class Doc Comment.
*
* @description A list of payment events for deal-related fees.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerDealPaymentEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerDealPaymentEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return SellerDealPaymentEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/PayWithAmazonEventList.php | lib/Models/Finances/PayWithAmazonEventList.php | <?php
/**
* PayWithAmazonEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PayWithAmazonEventList Class Doc Comment.
*
* @description A list of events related to the seller's Pay with Amazon account.
*
* @author Stefan Neuhaus / ClouSale
*/
class PayWithAmazonEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PayWithAmazonEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return PayWithAmazonEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/Currency.php | lib/Models/Finances/Currency.php | <?php
/**
* Currency.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Currency Class Doc Comment.
*
* @description A currency type and amount.
*
* @author Stefan Neuhaus / ClouSale
*/
class Currency implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Currency';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'currency_code' => 'string',
'currency_amount' => 'float', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'currency_code' => null,
'currency_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'currency_code' => 'CurrencyCode',
'currency_amount' => 'CurrencyAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'currency_code' => 'setCurrencyCode',
'currency_amount' => 'setCurrencyAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'currency_code' => 'getCurrencyCode',
'currency_amount' => 'getCurrencyAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['currency_code'] = isset($data['currency_code']) ? $data['currency_code'] : null;
$this->container['currency_amount'] = isset($data['currency_amount']) ? $data['currency_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets currency_code.
*
* @return string
*/
public function getCurrencyCode()
{
return $this->container['currency_code'];
}
/**
* Sets currency_code.
*
* @param string $currency_code the three-digit currency code in ISO 4217 format
*
* @return $this
*/
public function setCurrencyCode($currency_code)
{
$this->container['currency_code'] = $currency_code;
return $this;
}
/**
* Gets currency_amount.
*
* @return float
*/
public function getCurrencyAmount()
{
return $this->container['currency_amount'];
}
/**
* Sets currency_amount.
*
* @param float $currency_amount currency_amount
*
* @return $this
*/
public function setCurrencyAmount($currency_amount)
{
$this->container['currency_amount'] = $currency_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ChargeInstrument.php | lib/Models/Finances/ChargeInstrument.php | <?php
/**
* ChargeInstrument.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ChargeInstrument Class Doc Comment.
*
* @description A payment instrument.
*
* @author Stefan Neuhaus / ClouSale
*/
class ChargeInstrument implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ChargeInstrument';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'description' => 'string',
'tail' => 'string',
'amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'description' => null,
'tail' => null,
'amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'description' => 'Description',
'tail' => 'Tail',
'amount' => 'Amount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'description' => 'setDescription',
'tail' => 'setTail',
'amount' => 'setAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'description' => 'getDescription',
'tail' => 'getTail',
'amount' => 'getAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['description'] = isset($data['description']) ? $data['description'] : null;
$this->container['tail'] = isset($data['tail']) ? $data['tail'] : null;
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets description.
*
* @return string
*/
public function getDescription()
{
return $this->container['description'];
}
/**
* Sets description.
*
* @param string $description a short description of the charge instrument
*
* @return $this
*/
public function setDescription($description)
{
$this->container['description'] = $description;
return $this;
}
/**
* Gets tail.
*
* @return string
*/
public function getTail()
{
return $this->container['tail'];
}
/**
* Sets tail.
*
* @param string $tail the account tail (trailing digits) of the charge instrument
*
* @return $this
*/
public function setTail($tail)
{
$this->container['tail'] = $tail;
return $this;
}
/**
* Gets amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getAmount()
{
return $this->container['amount'];
}
/**
* Sets amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $amount amount
*
* @return $this
*/
public function setAmount($amount)
{
$this->container['amount'] = $amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SAFETReimbursementItemList.php | lib/Models/Finances/SAFETReimbursementItemList.php | <?php
/**
* SAFETReimbursementItemList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SAFETReimbursementItemList Class Doc Comment.
*
* @description A list of SAFETReimbursementItems.
*
* @author Stefan Neuhaus / ClouSale
*/
class SAFETReimbursementItemList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SAFETReimbursementItemList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return SAFETReimbursementItem::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/NetworkComminglingTransactionEvent.php | lib/Models/Finances/NetworkComminglingTransactionEvent.php | <?php
/**
* NetworkComminglingTransactionEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NetworkComminglingTransactionEvent Class Doc Comment.
*
* @description A network commingling transaction event.
*
* @author Stefan Neuhaus / ClouSale
*/
class NetworkComminglingTransactionEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NetworkComminglingTransactionEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'transaction_type' => 'string',
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'net_co_transaction_id' => 'string',
'swap_reason' => 'string',
'asin' => 'string',
'marketplace_id' => 'string',
'tax_exclusive_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'tax_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'transaction_type' => null,
'posted_date' => null,
'net_co_transaction_id' => null,
'swap_reason' => null,
'asin' => null,
'marketplace_id' => null,
'tax_exclusive_amount' => null,
'tax_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'transaction_type' => 'TransactionType',
'posted_date' => 'PostedDate',
'net_co_transaction_id' => 'NetCoTransactionID',
'swap_reason' => 'SwapReason',
'asin' => 'ASIN',
'marketplace_id' => 'MarketplaceId',
'tax_exclusive_amount' => 'TaxExclusiveAmount',
'tax_amount' => 'TaxAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'transaction_type' => 'setTransactionType',
'posted_date' => 'setPostedDate',
'net_co_transaction_id' => 'setNetCoTransactionId',
'swap_reason' => 'setSwapReason',
'asin' => 'setAsin',
'marketplace_id' => 'setMarketplaceId',
'tax_exclusive_amount' => 'setTaxExclusiveAmount',
'tax_amount' => 'setTaxAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'transaction_type' => 'getTransactionType',
'posted_date' => 'getPostedDate',
'net_co_transaction_id' => 'getNetCoTransactionId',
'swap_reason' => 'getSwapReason',
'asin' => 'getAsin',
'marketplace_id' => 'getMarketplaceId',
'tax_exclusive_amount' => 'getTaxExclusiveAmount',
'tax_amount' => 'getTaxAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['transaction_type'] = isset($data['transaction_type']) ? $data['transaction_type'] : null;
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['net_co_transaction_id'] = isset($data['net_co_transaction_id']) ? $data['net_co_transaction_id'] : null;
$this->container['swap_reason'] = isset($data['swap_reason']) ? $data['swap_reason'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['tax_exclusive_amount'] = isset($data['tax_exclusive_amount']) ? $data['tax_exclusive_amount'] : null;
$this->container['tax_amount'] = isset($data['tax_amount']) ? $data['tax_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets transaction_type.
*
* @return string
*/
public function getTransactionType()
{
return $this->container['transaction_type'];
}
/**
* Sets transaction_type.
*
* @param string $transaction_type The type of network item swap. Possible values: * NetCo - A Fulfillment by Amazon inventory pooling transaction. Available only in the India marketplace. * ComminglingVAT - A commingling VAT transaction. Available only in the UK, Spain, France, Germany, and Italy marketplaces.
*
* @return $this
*/
public function setTransactionType($transaction_type)
{
$this->container['transaction_type'] = $transaction_type;
return $this;
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets net_co_transaction_id.
*
* @return string
*/
public function getNetCoTransactionId()
{
return $this->container['net_co_transaction_id'];
}
/**
* Sets net_co_transaction_id.
*
* @param string $net_co_transaction_id the identifier for the network item swap
*
* @return $this
*/
public function setNetCoTransactionId($net_co_transaction_id)
{
$this->container['net_co_transaction_id'] = $net_co_transaction_id;
return $this;
}
/**
* Gets swap_reason.
*
* @return string
*/
public function getSwapReason()
{
return $this->container['swap_reason'];
}
/**
* Sets swap_reason.
*
* @param string $swap_reason the reason for the network item swap
*
* @return $this
*/
public function setSwapReason($swap_reason)
{
$this->container['swap_reason'] = $swap_reason;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the swapped item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id the marketplace in which the event took place
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets tax_exclusive_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTaxExclusiveAmount()
{
return $this->container['tax_exclusive_amount'];
}
/**
* Sets tax_exclusive_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_exclusive_amount tax_exclusive_amount
*
* @return $this
*/
public function setTaxExclusiveAmount($tax_exclusive_amount)
{
$this->container['tax_exclusive_amount'] = $tax_exclusive_amount;
return $this;
}
/**
* Gets tax_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTaxAmount()
{
return $this->container['tax_amount'];
}
/**
* Sets tax_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_amount tax_amount
*
* @return $this
*/
public function setTaxAmount($tax_amount)
{
$this->container['tax_amount'] = $tax_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SAFETReimbursementEvent.php | lib/Models/Finances/SAFETReimbursementEvent.php | <?php
/**
* SAFETReimbursementEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SAFETReimbursementEvent Class Doc Comment.
*
* @description A SAFE-T claim reimbursement on the seller's account.
*
* @author Stefan Neuhaus / ClouSale
*/
class SAFETReimbursementEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SAFETReimbursementEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'safet_claim_id' => 'string',
'reimbursed_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'reason_code' => 'string',
'safet_reimbursement_item_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\SAFETReimbursementItemList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'posted_date' => null,
'safet_claim_id' => null,
'reimbursed_amount' => null,
'reason_code' => null,
'safet_reimbursement_item_list' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'posted_date' => 'PostedDate',
'safet_claim_id' => 'SAFETClaimId',
'reimbursed_amount' => 'ReimbursedAmount',
'reason_code' => 'ReasonCode',
'safet_reimbursement_item_list' => 'SAFETReimbursementItemList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'posted_date' => 'setPostedDate',
'safet_claim_id' => 'setSafetClaimId',
'reimbursed_amount' => 'setReimbursedAmount',
'reason_code' => 'setReasonCode',
'safet_reimbursement_item_list' => 'setSafetReimbursementItemList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'posted_date' => 'getPostedDate',
'safet_claim_id' => 'getSafetClaimId',
'reimbursed_amount' => 'getReimbursedAmount',
'reason_code' => 'getReasonCode',
'safet_reimbursement_item_list' => 'getSafetReimbursementItemList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['safet_claim_id'] = isset($data['safet_claim_id']) ? $data['safet_claim_id'] : null;
$this->container['reimbursed_amount'] = isset($data['reimbursed_amount']) ? $data['reimbursed_amount'] : null;
$this->container['reason_code'] = isset($data['reason_code']) ? $data['reason_code'] : null;
$this->container['safet_reimbursement_item_list'] = isset($data['safet_reimbursement_item_list']) ? $data['safet_reimbursement_item_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets safet_claim_id.
*
* @return string
*/
public function getSafetClaimId()
{
return $this->container['safet_claim_id'];
}
/**
* Sets safet_claim_id.
*
* @param string $safet_claim_id a SAFE-T claim identifier
*
* @return $this
*/
public function setSafetClaimId($safet_claim_id)
{
$this->container['safet_claim_id'] = $safet_claim_id;
return $this;
}
/**
* Gets reimbursed_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getReimbursedAmount()
{
return $this->container['reimbursed_amount'];
}
/**
* Sets reimbursed_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $reimbursed_amount reimbursed_amount
*
* @return $this
*/
public function setReimbursedAmount($reimbursed_amount)
{
$this->container['reimbursed_amount'] = $reimbursed_amount;
return $this;
}
/**
* Gets reason_code.
*
* @return string
*/
public function getReasonCode()
{
return $this->container['reason_code'];
}
/**
* Sets reason_code.
*
* @param string $reason_code indicates why the seller was reimbursed
*
* @return $this
*/
public function setReasonCode($reason_code)
{
$this->container['reason_code'] = $reason_code;
return $this;
}
/**
* Gets safet_reimbursement_item_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SAFETReimbursementItemList
*/
public function getSafetReimbursementItemList()
{
return $this->container['safet_reimbursement_item_list'];
}
/**
* Sets safet_reimbursement_item_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SAFETReimbursementItemList $safet_reimbursement_item_list safet_reimbursement_item_list
*
* @return $this
*/
public function setSafetReimbursementItemList($safet_reimbursement_item_list)
{
$this->container['safet_reimbursement_item_list'] = $safet_reimbursement_item_list;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ProductAdsPaymentEventList.php | lib/Models/Finances/ProductAdsPaymentEventList.php | <?php
/**
* ProductAdsPaymentEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ProductAdsPaymentEventList Class Doc Comment.
*
* @description A list of sponsored products payment events.
*
* @author Stefan Neuhaus / ClouSale
*/
class ProductAdsPaymentEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ProductAdsPaymentEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return ProductAdsPaymentEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/RemovalShipmentItem.php | lib/Models/Finances/RemovalShipmentItem.php | <?php
/**
* RemovalShipmentItem.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RemovalShipmentItem Class Doc Comment.
*
* @description Item-level information for a removal shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class RemovalShipmentItem implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RemovalShipmentItem';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'removal_shipment_item_id' => 'string',
'tax_collection_model' => 'string',
'fulfillment_network_sku' => 'string',
'quantity' => 'int',
'revenue' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'fee_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'tax_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'tax_withheld' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'removal_shipment_item_id' => null,
'tax_collection_model' => null,
'fulfillment_network_sku' => null,
'quantity' => 'int32',
'revenue' => null,
'fee_amount' => null,
'tax_amount' => null,
'tax_withheld' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'removal_shipment_item_id' => 'RemovalShipmentItemId',
'tax_collection_model' => 'TaxCollectionModel',
'fulfillment_network_sku' => 'FulfillmentNetworkSKU',
'quantity' => 'Quantity',
'revenue' => 'Revenue',
'fee_amount' => 'FeeAmount',
'tax_amount' => 'TaxAmount',
'tax_withheld' => 'TaxWithheld', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'removal_shipment_item_id' => 'setRemovalShipmentItemId',
'tax_collection_model' => 'setTaxCollectionModel',
'fulfillment_network_sku' => 'setFulfillmentNetworkSku',
'quantity' => 'setQuantity',
'revenue' => 'setRevenue',
'fee_amount' => 'setFeeAmount',
'tax_amount' => 'setTaxAmount',
'tax_withheld' => 'setTaxWithheld', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'removal_shipment_item_id' => 'getRemovalShipmentItemId',
'tax_collection_model' => 'getTaxCollectionModel',
'fulfillment_network_sku' => 'getFulfillmentNetworkSku',
'quantity' => 'getQuantity',
'revenue' => 'getRevenue',
'fee_amount' => 'getFeeAmount',
'tax_amount' => 'getTaxAmount',
'tax_withheld' => 'getTaxWithheld', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['removal_shipment_item_id'] = isset($data['removal_shipment_item_id']) ? $data['removal_shipment_item_id'] : null;
$this->container['tax_collection_model'] = isset($data['tax_collection_model']) ? $data['tax_collection_model'] : null;
$this->container['fulfillment_network_sku'] = isset($data['fulfillment_network_sku']) ? $data['fulfillment_network_sku'] : null;
$this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
$this->container['revenue'] = isset($data['revenue']) ? $data['revenue'] : null;
$this->container['fee_amount'] = isset($data['fee_amount']) ? $data['fee_amount'] : null;
$this->container['tax_amount'] = isset($data['tax_amount']) ? $data['tax_amount'] : null;
$this->container['tax_withheld'] = isset($data['tax_withheld']) ? $data['tax_withheld'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets removal_shipment_item_id.
*
* @return string
*/
public function getRemovalShipmentItemId()
{
return $this->container['removal_shipment_item_id'];
}
/**
* Sets removal_shipment_item_id.
*
* @param string $removal_shipment_item_id an identifier for an item in a removal shipment
*
* @return $this
*/
public function setRemovalShipmentItemId($removal_shipment_item_id)
{
$this->container['removal_shipment_item_id'] = $removal_shipment_item_id;
return $this;
}
/**
* Gets tax_collection_model.
*
* @return string
*/
public function getTaxCollectionModel()
{
return $this->container['tax_collection_model'];
}
/**
* Sets tax_collection_model.
*
* @param string $tax_collection_model The tax collection model applied to the item. Possible values: * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon.
*
* @return $this
*/
public function setTaxCollectionModel($tax_collection_model)
{
$this->container['tax_collection_model'] = $tax_collection_model;
return $this;
}
/**
* Gets fulfillment_network_sku.
*
* @return string
*/
public function getFulfillmentNetworkSku()
{
return $this->container['fulfillment_network_sku'];
}
/**
* Sets fulfillment_network_sku.
*
* @param string $fulfillment_network_sku the Amazon fulfillment network SKU for the item
*
* @return $this
*/
public function setFulfillmentNetworkSku($fulfillment_network_sku)
{
$this->container['fulfillment_network_sku'] = $fulfillment_network_sku;
return $this;
}
/**
* Gets quantity.
*
* @return int
*/
public function getQuantity()
{
return $this->container['quantity'];
}
/**
* Sets quantity.
*
* @param int $quantity the quantity of the item
*
* @return $this
*/
public function setQuantity($quantity)
{
$this->container['quantity'] = $quantity;
return $this;
}
/**
* Gets revenue.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getRevenue()
{
return $this->container['revenue'];
}
/**
* Sets revenue.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $revenue revenue
*
* @return $this
*/
public function setRevenue($revenue)
{
$this->container['revenue'] = $revenue;
return $this;
}
/**
* Gets fee_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getFeeAmount()
{
return $this->container['fee_amount'];
}
/**
* Sets fee_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $fee_amount fee_amount
*
* @return $this
*/
public function setFeeAmount($fee_amount)
{
$this->container['fee_amount'] = $fee_amount;
return $this;
}
/**
* Gets tax_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTaxAmount()
{
return $this->container['tax_amount'];
}
/**
* Sets tax_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_amount tax_amount
*
* @return $this
*/
public function setTaxAmount($tax_amount)
{
$this->container['tax_amount'] = $tax_amount;
return $this;
}
/**
* Gets tax_withheld.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTaxWithheld()
{
return $this->container['tax_withheld'];
}
/**
* Sets tax_withheld.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_withheld tax_withheld
*
* @return $this
*/
public function setTaxWithheld($tax_withheld)
{
$this->container['tax_withheld'] = $tax_withheld;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ListFinancialEventGroupsResponse.php | lib/Models/Finances/ListFinancialEventGroupsResponse.php | <?php
/**
* ListFinancialEventGroupsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ListFinancialEventGroupsResponse Class Doc Comment.
*
* @description The response schema for the listFinancialEventGroups operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class ListFinancialEventGroupsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ListFinancialEventGroupsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ListFinancialEventGroupsPayload',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ListFinancialEventGroupsPayload
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ListFinancialEventGroupsPayload $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/RemovalShipmentItemList.php | lib/Models/Finances/RemovalShipmentItemList.php | <?php
/**
* RemovalShipmentItemList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RemovalShipmentItemList Class Doc Comment.
*
* @description A list of information about removal shipment items.
*
* @author Stefan Neuhaus / ClouSale
*/
class RemovalShipmentItemList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RemovalShipmentItemList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return RemovalShipmentItem::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SellerReviewEnrollmentPaymentEvent.php | lib/Models/Finances/SellerReviewEnrollmentPaymentEvent.php | <?php
/**
* SellerReviewEnrollmentPaymentEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerReviewEnrollmentPaymentEvent Class Doc Comment.
*
* @description A fee payment event for the Early Reviewer Program.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerReviewEnrollmentPaymentEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerReviewEnrollmentPaymentEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'enrollment_id' => 'string',
'parent_asin' => 'string',
'fee_component' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponent',
'charge_component' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent',
'total_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'posted_date' => null,
'enrollment_id' => null,
'parent_asin' => null,
'fee_component' => null,
'charge_component' => null,
'total_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'posted_date' => 'PostedDate',
'enrollment_id' => 'EnrollmentId',
'parent_asin' => 'ParentASIN',
'fee_component' => 'FeeComponent',
'charge_component' => 'ChargeComponent',
'total_amount' => 'TotalAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'posted_date' => 'setPostedDate',
'enrollment_id' => 'setEnrollmentId',
'parent_asin' => 'setParentAsin',
'fee_component' => 'setFeeComponent',
'charge_component' => 'setChargeComponent',
'total_amount' => 'setTotalAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'posted_date' => 'getPostedDate',
'enrollment_id' => 'getEnrollmentId',
'parent_asin' => 'getParentAsin',
'fee_component' => 'getFeeComponent',
'charge_component' => 'getChargeComponent',
'total_amount' => 'getTotalAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['enrollment_id'] = isset($data['enrollment_id']) ? $data['enrollment_id'] : null;
$this->container['parent_asin'] = isset($data['parent_asin']) ? $data['parent_asin'] : null;
$this->container['fee_component'] = isset($data['fee_component']) ? $data['fee_component'] : null;
$this->container['charge_component'] = isset($data['charge_component']) ? $data['charge_component'] : null;
$this->container['total_amount'] = isset($data['total_amount']) ? $data['total_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets enrollment_id.
*
* @return string
*/
public function getEnrollmentId()
{
return $this->container['enrollment_id'];
}
/**
* Sets enrollment_id.
*
* @param string $enrollment_id an enrollment identifier
*
* @return $this
*/
public function setEnrollmentId($enrollment_id)
{
$this->container['enrollment_id'] = $enrollment_id;
return $this;
}
/**
* Gets parent_asin.
*
* @return string
*/
public function getParentAsin()
{
return $this->container['parent_asin'];
}
/**
* Sets parent_asin.
*
* @param string $parent_asin the Amazon Standard Identification Number (ASIN) of the item that was enrolled in the Early Reviewer Program
*
* @return $this
*/
public function setParentAsin($parent_asin)
{
$this->container['parent_asin'] = $parent_asin;
return $this;
}
/**
* Gets fee_component.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponent
*/
public function getFeeComponent()
{
return $this->container['fee_component'];
}
/**
* Sets fee_component.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponent $fee_component fee_component
*
* @return $this
*/
public function setFeeComponent($fee_component)
{
$this->container['fee_component'] = $fee_component;
return $this;
}
/**
* Gets charge_component.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent
*/
public function getChargeComponent()
{
return $this->container['charge_component'];
}
/**
* Sets charge_component.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent $charge_component charge_component
*
* @return $this
*/
public function setChargeComponent($charge_component)
{
$this->container['charge_component'] = $charge_component;
return $this;
}
/**
* Gets total_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTotalAmount()
{
return $this->container['total_amount'];
}
/**
* Sets total_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $total_amount total_amount
*
* @return $this
*/
public function setTotalAmount($total_amount)
{
$this->container['total_amount'] = $total_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/RemovalShipmentEvent.php | lib/Models/Finances/RemovalShipmentEvent.php | <?php
/**
* RemovalShipmentEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RemovalShipmentEvent Class Doc Comment.
*
* @description A removal shipment event for a removal order.
*
* @author Stefan Neuhaus / ClouSale
*/
class RemovalShipmentEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RemovalShipmentEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'order_id' => 'string',
'transaction_type' => 'string',
'removal_shipment_item_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\RemovalShipmentItemList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'posted_date' => null,
'order_id' => null,
'transaction_type' => null,
'removal_shipment_item_list' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'posted_date' => 'PostedDate',
'order_id' => 'OrderId',
'transaction_type' => 'TransactionType',
'removal_shipment_item_list' => 'RemovalShipmentItemList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'posted_date' => 'setPostedDate',
'order_id' => 'setOrderId',
'transaction_type' => 'setTransactionType',
'removal_shipment_item_list' => 'setRemovalShipmentItemList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'posted_date' => 'getPostedDate',
'order_id' => 'getOrderId',
'transaction_type' => 'getTransactionType',
'removal_shipment_item_list' => 'getRemovalShipmentItemList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null;
$this->container['transaction_type'] = isset($data['transaction_type']) ? $data['transaction_type'] : null;
$this->container['removal_shipment_item_list'] = isset($data['removal_shipment_item_list']) ? $data['removal_shipment_item_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets order_id.
*
* @return string
*/
public function getOrderId()
{
return $this->container['order_id'];
}
/**
* Sets order_id.
*
* @param string $order_id the identifier for the removal shipment order
*
* @return $this
*/
public function setOrderId($order_id)
{
$this->container['order_id'] = $order_id;
return $this;
}
/**
* Gets transaction_type.
*
* @return string
*/
public function getTransactionType()
{
return $this->container['transaction_type'];
}
/**
* Sets transaction_type.
*
* @param string $transaction_type The type of removal order. Possible values: * WHOLESALE_LIQUIDATION
*
* @return $this
*/
public function setTransactionType($transaction_type)
{
$this->container['transaction_type'] = $transaction_type;
return $this;
}
/**
* Gets removal_shipment_item_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\RemovalShipmentItemList
*/
public function getRemovalShipmentItemList()
{
return $this->container['removal_shipment_item_list'];
}
/**
* Sets removal_shipment_item_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\RemovalShipmentItemList $removal_shipment_item_list removal_shipment_item_list
*
* @return $this
*/
public function setRemovalShipmentItemList($removal_shipment_item_list)
{
$this->container['removal_shipment_item_list'] = $removal_shipment_item_list;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/Promotion.php | lib/Models/Finances/Promotion.php | <?php
/**
* Promotion.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Promotion Class Doc Comment.
*
* @description A promotion applied to an item.
*
* @author Stefan Neuhaus / ClouSale
*/
class Promotion implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Promotion';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'promotion_type' => 'string',
'promotion_id' => 'string',
'promotion_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'promotion_type' => null,
'promotion_id' => null,
'promotion_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'promotion_type' => 'PromotionType',
'promotion_id' => 'PromotionId',
'promotion_amount' => 'PromotionAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'promotion_type' => 'setPromotionType',
'promotion_id' => 'setPromotionId',
'promotion_amount' => 'setPromotionAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'promotion_type' => 'getPromotionType',
'promotion_id' => 'getPromotionId',
'promotion_amount' => 'getPromotionAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['promotion_type'] = isset($data['promotion_type']) ? $data['promotion_type'] : null;
$this->container['promotion_id'] = isset($data['promotion_id']) ? $data['promotion_id'] : null;
$this->container['promotion_amount'] = isset($data['promotion_amount']) ? $data['promotion_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets promotion_type.
*
* @return string
*/
public function getPromotionType()
{
return $this->container['promotion_type'];
}
/**
* Sets promotion_type.
*
* @param string $promotion_type the type of promotion
*
* @return $this
*/
public function setPromotionType($promotion_type)
{
$this->container['promotion_type'] = $promotion_type;
return $this;
}
/**
* Gets promotion_id.
*
* @return string
*/
public function getPromotionId()
{
return $this->container['promotion_id'];
}
/**
* Sets promotion_id.
*
* @param string $promotion_id the seller-specified identifier for the promotion
*
* @return $this
*/
public function setPromotionId($promotion_id)
{
$this->container['promotion_id'] = $promotion_id;
return $this;
}
/**
* Gets promotion_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getPromotionAmount()
{
return $this->container['promotion_amount'];
}
/**
* Sets promotion_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $promotion_amount promotion_amount
*
* @return $this
*/
public function setPromotionAmount($promotion_amount)
{
$this->container['promotion_amount'] = $promotion_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/TDSReimbursementEvent.php | lib/Models/Finances/TDSReimbursementEvent.php | <?php
/**
* TDSReimbursementEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TDSReimbursementEvent Class Doc Comment.
*
* @description A tax deduction at source (TDS) claim reimbursement event on the seller's account.
*
* @author Stefan Neuhaus / ClouSale
*/
class TDSReimbursementEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TDSReimbursementEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'tds_order_id' => 'string',
'reimbursed_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'posted_date' => null,
'tds_order_id' => null,
'reimbursed_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'posted_date' => 'PostedDate',
'tds_order_id' => 'TdsOrderId',
'reimbursed_amount' => 'ReimbursedAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'posted_date' => 'setPostedDate',
'tds_order_id' => 'setTdsOrderId',
'reimbursed_amount' => 'setReimbursedAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'posted_date' => 'getPostedDate',
'tds_order_id' => 'getTdsOrderId',
'reimbursed_amount' => 'getReimbursedAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['tds_order_id'] = isset($data['tds_order_id']) ? $data['tds_order_id'] : null;
$this->container['reimbursed_amount'] = isset($data['reimbursed_amount']) ? $data['reimbursed_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets tds_order_id.
*
* @return string
*/
public function getTdsOrderId()
{
return $this->container['tds_order_id'];
}
/**
* Sets tds_order_id.
*
* @param string $tds_order_id a tax deduction at source (TDS) claim identifier
*
* @return $this
*/
public function setTdsOrderId($tds_order_id)
{
$this->container['tds_order_id'] = $tds_order_id;
return $this;
}
/**
* Gets reimbursed_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getReimbursedAmount()
{
return $this->container['reimbursed_amount'];
}
/**
* Sets reimbursed_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $reimbursed_amount reimbursed_amount
*
* @return $this
*/
public function setReimbursedAmount($reimbursed_amount)
{
$this->container['reimbursed_amount'] = $reimbursed_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/RemovalShipmentEventList.php | lib/Models/Finances/RemovalShipmentEventList.php | <?php
/**
* RemovalShipmentEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RemovalShipmentEventList Class Doc Comment.
*
* @description A list of removal shipment event information.
*
* @author Stefan Neuhaus / ClouSale
*/
class RemovalShipmentEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RemovalShipmentEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return RemovalShipmentEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/AffordabilityExpenseEvent.php | lib/Models/Finances/AffordabilityExpenseEvent.php | <?php
/**
* AffordabilityExpenseEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AffordabilityExpenseEvent Class Doc Comment.
*
* @description An expense related to an affordability promotion.
*
* @author Stefan Neuhaus / ClouSale
*/
class AffordabilityExpenseEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AffordabilityExpenseEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'amazon_order_id' => 'string',
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'marketplace_id' => 'string',
'transaction_type' => 'string',
'base_expense' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'tax_type_cgst' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'tax_type_sgst' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'tax_type_igst' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'total_expense' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'amazon_order_id' => null,
'posted_date' => null,
'marketplace_id' => null,
'transaction_type' => null,
'base_expense' => null,
'tax_type_cgst' => null,
'tax_type_sgst' => null,
'tax_type_igst' => null,
'total_expense' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'amazon_order_id' => 'AmazonOrderId',
'posted_date' => 'PostedDate',
'marketplace_id' => 'MarketplaceId',
'transaction_type' => 'TransactionType',
'base_expense' => 'BaseExpense',
'tax_type_cgst' => 'TaxTypeCGST',
'tax_type_sgst' => 'TaxTypeSGST',
'tax_type_igst' => 'TaxTypeIGST',
'total_expense' => 'TotalExpense', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'amazon_order_id' => 'setAmazonOrderId',
'posted_date' => 'setPostedDate',
'marketplace_id' => 'setMarketplaceId',
'transaction_type' => 'setTransactionType',
'base_expense' => 'setBaseExpense',
'tax_type_cgst' => 'setTaxTypeCgst',
'tax_type_sgst' => 'setTaxTypeSgst',
'tax_type_igst' => 'setTaxTypeIgst',
'total_expense' => 'setTotalExpense', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'amazon_order_id' => 'getAmazonOrderId',
'posted_date' => 'getPostedDate',
'marketplace_id' => 'getMarketplaceId',
'transaction_type' => 'getTransactionType',
'base_expense' => 'getBaseExpense',
'tax_type_cgst' => 'getTaxTypeCgst',
'tax_type_sgst' => 'getTaxTypeSgst',
'tax_type_igst' => 'getTaxTypeIgst',
'total_expense' => 'getTotalExpense', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null;
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['transaction_type'] = isset($data['transaction_type']) ? $data['transaction_type'] : null;
$this->container['base_expense'] = isset($data['base_expense']) ? $data['base_expense'] : null;
$this->container['tax_type_cgst'] = isset($data['tax_type_cgst']) ? $data['tax_type_cgst'] : null;
$this->container['tax_type_sgst'] = isset($data['tax_type_sgst']) ? $data['tax_type_sgst'] : null;
$this->container['tax_type_igst'] = isset($data['tax_type_igst']) ? $data['tax_type_igst'] : null;
$this->container['total_expense'] = isset($data['total_expense']) ? $data['total_expense'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['tax_type_cgst']) {
$invalidProperties[] = "'tax_type_cgst' can't be null";
}
if (null === $this->container['tax_type_sgst']) {
$invalidProperties[] = "'tax_type_sgst' can't be null";
}
if (null === $this->container['tax_type_igst']) {
$invalidProperties[] = "'tax_type_igst' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets amazon_order_id.
*
* @return string
*/
public function getAmazonOrderId()
{
return $this->container['amazon_order_id'];
}
/**
* Sets amazon_order_id.
*
* @param string $amazon_order_id an Amazon-defined identifier for an order
*
* @return $this
*/
public function setAmazonOrderId($amazon_order_id)
{
$this->container['amazon_order_id'] = $amazon_order_id;
return $this;
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id an encrypted, Amazon-defined marketplace identifier
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets transaction_type.
*
* @return string
*/
public function getTransactionType()
{
return $this->container['transaction_type'];
}
/**
* Sets transaction_type.
*
* @param string $transaction_type Indicates the type of transaction. Possible values: * Charge - For an affordability promotion expense. * Refund - For an affordability promotion expense reversal.
*
* @return $this
*/
public function setTransactionType($transaction_type)
{
$this->container['transaction_type'] = $transaction_type;
return $this;
}
/**
* Gets base_expense.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getBaseExpense()
{
return $this->container['base_expense'];
}
/**
* Sets base_expense.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $base_expense base_expense
*
* @return $this
*/
public function setBaseExpense($base_expense)
{
$this->container['base_expense'] = $base_expense;
return $this;
}
/**
* Gets tax_type_cgst.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTaxTypeCgst()
{
return $this->container['tax_type_cgst'];
}
/**
* Sets tax_type_cgst.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_type_cgst tax_type_cgst
*
* @return $this
*/
public function setTaxTypeCgst($tax_type_cgst)
{
$this->container['tax_type_cgst'] = $tax_type_cgst;
return $this;
}
/**
* Gets tax_type_sgst.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTaxTypeSgst()
{
return $this->container['tax_type_sgst'];
}
/**
* Sets tax_type_sgst.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_type_sgst tax_type_sgst
*
* @return $this
*/
public function setTaxTypeSgst($tax_type_sgst)
{
$this->container['tax_type_sgst'] = $tax_type_sgst;
return $this;
}
/**
* Gets tax_type_igst.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTaxTypeIgst()
{
return $this->container['tax_type_igst'];
}
/**
* Sets tax_type_igst.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_type_igst tax_type_igst
*
* @return $this
*/
public function setTaxTypeIgst($tax_type_igst)
{
$this->container['tax_type_igst'] = $tax_type_igst;
return $this;
}
/**
* Gets total_expense.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTotalExpense()
{
return $this->container['total_expense'];
}
/**
* Sets total_expense.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $total_expense total_expense
*
* @return $this
*/
public function setTotalExpense($total_expense)
{
$this->container['total_expense'] = $total_expense;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ProductAdsPaymentEvent.php | lib/Models/Finances/ProductAdsPaymentEvent.php | <?php
/**
* ProductAdsPaymentEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ProductAdsPaymentEvent Class Doc Comment.
*
* @description A Sponsored Products payment event.
*
* @author Stefan Neuhaus / ClouSale
*/
class ProductAdsPaymentEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ProductAdsPaymentEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'transaction_type' => 'string',
'invoice_id' => 'string',
'base_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'tax_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'transaction_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'posted_date' => null,
'transaction_type' => null,
'invoice_id' => null,
'base_value' => null,
'tax_value' => null,
'transaction_value' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'posted_date' => 'postedDate',
'transaction_type' => 'transactionType',
'invoice_id' => 'invoiceId',
'base_value' => 'baseValue',
'tax_value' => 'taxValue',
'transaction_value' => 'transactionValue', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'posted_date' => 'setPostedDate',
'transaction_type' => 'setTransactionType',
'invoice_id' => 'setInvoiceId',
'base_value' => 'setBaseValue',
'tax_value' => 'setTaxValue',
'transaction_value' => 'setTransactionValue', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'posted_date' => 'getPostedDate',
'transaction_type' => 'getTransactionType',
'invoice_id' => 'getInvoiceId',
'base_value' => 'getBaseValue',
'tax_value' => 'getTaxValue',
'transaction_value' => 'getTransactionValue', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['transaction_type'] = isset($data['transaction_type']) ? $data['transaction_type'] : null;
$this->container['invoice_id'] = isset($data['invoice_id']) ? $data['invoice_id'] : null;
$this->container['base_value'] = isset($data['base_value']) ? $data['base_value'] : null;
$this->container['tax_value'] = isset($data['tax_value']) ? $data['tax_value'] : null;
$this->container['transaction_value'] = isset($data['transaction_value']) ? $data['transaction_value'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets transaction_type.
*
* @return string
*/
public function getTransactionType()
{
return $this->container['transaction_type'];
}
/**
* Sets transaction_type.
*
* @param string $transaction_type Indicates if the transaction is for a charge or a refund. Possible values: * charge - Charge * refund - Refund
*
* @return $this
*/
public function setTransactionType($transaction_type)
{
$this->container['transaction_type'] = $transaction_type;
return $this;
}
/**
* Gets invoice_id.
*
* @return string
*/
public function getInvoiceId()
{
return $this->container['invoice_id'];
}
/**
* Sets invoice_id.
*
* @param string $invoice_id identifier for the invoice that the transaction appears in
*
* @return $this
*/
public function setInvoiceId($invoice_id)
{
$this->container['invoice_id'] = $invoice_id;
return $this;
}
/**
* Gets base_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getBaseValue()
{
return $this->container['base_value'];
}
/**
* Sets base_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $base_value base_value
*
* @return $this
*/
public function setBaseValue($base_value)
{
$this->container['base_value'] = $base_value;
return $this;
}
/**
* Gets tax_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTaxValue()
{
return $this->container['tax_value'];
}
/**
* Sets tax_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_value tax_value
*
* @return $this
*/
public function setTaxValue($tax_value)
{
$this->container['tax_value'] = $tax_value;
return $this;
}
/**
* Gets transaction_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTransactionValue()
{
return $this->container['transaction_value'];
}
/**
* Sets transaction_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $transaction_value transaction_value
*
* @return $this
*/
public function setTransactionValue($transaction_value)
{
$this->container['transaction_value'] = $transaction_value;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/LoanServicingEvent.php | lib/Models/Finances/LoanServicingEvent.php | <?php
/**
* LoanServicingEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LoanServicingEvent Class Doc Comment.
*
* @description A loan advance, loan payment, or loan refund.
*
* @author Stefan Neuhaus / ClouSale
*/
class LoanServicingEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LoanServicingEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'loan_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'source_business_event_type' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'loan_amount' => null,
'source_business_event_type' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'loan_amount' => 'LoanAmount',
'source_business_event_type' => 'SourceBusinessEventType', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'loan_amount' => 'setLoanAmount',
'source_business_event_type' => 'setSourceBusinessEventType', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'loan_amount' => 'getLoanAmount',
'source_business_event_type' => 'getSourceBusinessEventType', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['loan_amount'] = isset($data['loan_amount']) ? $data['loan_amount'] : null;
$this->container['source_business_event_type'] = isset($data['source_business_event_type']) ? $data['source_business_event_type'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets loan_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getLoanAmount()
{
return $this->container['loan_amount'];
}
/**
* Sets loan_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $loan_amount loan_amount
*
* @return $this
*/
public function setLoanAmount($loan_amount)
{
$this->container['loan_amount'] = $loan_amount;
return $this;
}
/**
* Gets source_business_event_type.
*
* @return string
*/
public function getSourceBusinessEventType()
{
return $this->container['source_business_event_type'];
}
/**
* Sets source_business_event_type.
*
* @param string $source_business_event_type The type of event. Possible values: * LoanAdvance * LoanPayment * LoanRefund
*
* @return $this
*/
public function setSourceBusinessEventType($source_business_event_type)
{
$this->container['source_business_event_type'] = $source_business_event_type;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/Error.php | lib/Models/Finances/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Error Class Doc Comment.
*
* @description Error response returned when the request is unsuccessful.
*
* @author Stefan Neuhaus / ClouSale
*/
class Error implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Error';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'details' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'details' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'details' => 'details', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'details' => 'setDetails', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'details' => 'getDetails', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['code']) {
$invalidProperties[] = "'code' can't be null";
}
if (null === $this->container['message']) {
$invalidProperties[] = "'message' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets code.
*
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code.
*
* @param string $code an error code that identifies the type of error that occurred
*
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message.
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message.
*
* @param string $message a message that describes the error condition in a human-readable form
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets details.
*
* @return string
*/
public function getDetails()
{
return $this->container['details'];
}
/**
* Sets details.
*
* @param string $details additional details that can help the caller understand or fix the issue
*
* @return $this
*/
public function setDetails($details)
{
$this->container['details'] = $details;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/FBALiquidationEvent.php | lib/Models/Finances/FBALiquidationEvent.php | <?php
/**
* FBALiquidationEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FBALiquidationEvent Class Doc Comment.
*
* @description A payment event for Fulfillment by Amazon (FBA) inventory liquidation. This event is used only in the US marketplace.
*
* @author Stefan Neuhaus / ClouSale
*/
class FBALiquidationEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FBALiquidationEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'original_removal_order_id' => 'string',
'liquidation_proceeds_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'liquidation_fee_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'posted_date' => null,
'original_removal_order_id' => null,
'liquidation_proceeds_amount' => null,
'liquidation_fee_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'posted_date' => 'PostedDate',
'original_removal_order_id' => 'OriginalRemovalOrderId',
'liquidation_proceeds_amount' => 'LiquidationProceedsAmount',
'liquidation_fee_amount' => 'LiquidationFeeAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'posted_date' => 'setPostedDate',
'original_removal_order_id' => 'setOriginalRemovalOrderId',
'liquidation_proceeds_amount' => 'setLiquidationProceedsAmount',
'liquidation_fee_amount' => 'setLiquidationFeeAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'posted_date' => 'getPostedDate',
'original_removal_order_id' => 'getOriginalRemovalOrderId',
'liquidation_proceeds_amount' => 'getLiquidationProceedsAmount',
'liquidation_fee_amount' => 'getLiquidationFeeAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['original_removal_order_id'] = isset($data['original_removal_order_id']) ? $data['original_removal_order_id'] : null;
$this->container['liquidation_proceeds_amount'] = isset($data['liquidation_proceeds_amount']) ? $data['liquidation_proceeds_amount'] : null;
$this->container['liquidation_fee_amount'] = isset($data['liquidation_fee_amount']) ? $data['liquidation_fee_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets original_removal_order_id.
*
* @return string
*/
public function getOriginalRemovalOrderId()
{
return $this->container['original_removal_order_id'];
}
/**
* Sets original_removal_order_id.
*
* @param string $original_removal_order_id the identifier for the original removal order
*
* @return $this
*/
public function setOriginalRemovalOrderId($original_removal_order_id)
{
$this->container['original_removal_order_id'] = $original_removal_order_id;
return $this;
}
/**
* Gets liquidation_proceeds_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getLiquidationProceedsAmount()
{
return $this->container['liquidation_proceeds_amount'];
}
/**
* Sets liquidation_proceeds_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $liquidation_proceeds_amount liquidation_proceeds_amount
*
* @return $this
*/
public function setLiquidationProceedsAmount($liquidation_proceeds_amount)
{
$this->container['liquidation_proceeds_amount'] = $liquidation_proceeds_amount;
return $this;
}
/**
* Gets liquidation_fee_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getLiquidationFeeAmount()
{
return $this->container['liquidation_fee_amount'];
}
/**
* Sets liquidation_fee_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $liquidation_fee_amount liquidation_fee_amount
*
* @return $this
*/
public function setLiquidationFeeAmount($liquidation_fee_amount)
{
$this->container['liquidation_fee_amount'] = $liquidation_fee_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/DebtRecoveryEventList.php | lib/Models/Finances/DebtRecoveryEventList.php | <?php
/**
* DebtRecoveryEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* DebtRecoveryEventList Class Doc Comment.
*
* @description A list of debt recovery event information.
*
* @author Stefan Neuhaus / ClouSale
*/
class DebtRecoveryEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'DebtRecoveryEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return DebtRecoveryEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ShipmentItemList.php | lib/Models/Finances/ShipmentItemList.php | <?php
/**
* ShipmentItemList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShipmentItemList Class Doc Comment.
*
* @description A list of shipment items.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipmentItemList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShipmentItemList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return ShipmentItem::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ServiceFeeEventList.php | lib/Models/Finances/ServiceFeeEventList.php | <?php
/**
* ServiceFeeEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ServiceFeeEventList Class Doc Comment.
*
* @description A list of information about service fee events.
*
* @author Stefan Neuhaus / ClouSale
*/
class ServiceFeeEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ServiceFeeEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return ServiceFeeEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ShipmentItem.php | lib/Models/Finances/ShipmentItem.php | <?php
/**
* ShipmentItem.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShipmentItem Class Doc Comment.
*
* @description An item of a shipment, refund, guarantee claim, or chargeback.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipmentItem implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShipmentItem';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'seller_sku' => 'string',
'order_item_id' => 'string',
'order_adjustment_item_id' => 'string',
'quantity_shipped' => 'int',
'item_charge_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList',
'item_charge_adjustment_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList',
'item_fee_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList',
'item_fee_adjustment_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList',
'item_tax_withheld_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList',
'promotion_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\PromotionList',
'promotion_adjustment_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\PromotionList',
'cost_of_points_granted' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'cost_of_points_returned' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'seller_sku' => null,
'order_item_id' => null,
'order_adjustment_item_id' => null,
'quantity_shipped' => 'int32',
'item_charge_list' => null,
'item_charge_adjustment_list' => null,
'item_fee_list' => null,
'item_fee_adjustment_list' => null,
'item_tax_withheld_list' => null,
'promotion_list' => null,
'promotion_adjustment_list' => null,
'cost_of_points_granted' => null,
'cost_of_points_returned' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'seller_sku' => 'SellerSKU',
'order_item_id' => 'OrderItemId',
'order_adjustment_item_id' => 'OrderAdjustmentItemId',
'quantity_shipped' => 'QuantityShipped',
'item_charge_list' => 'ItemChargeList',
'item_charge_adjustment_list' => 'ItemChargeAdjustmentList',
'item_fee_list' => 'ItemFeeList',
'item_fee_adjustment_list' => 'ItemFeeAdjustmentList',
'item_tax_withheld_list' => 'ItemTaxWithheldList',
'promotion_list' => 'PromotionList',
'promotion_adjustment_list' => 'PromotionAdjustmentList',
'cost_of_points_granted' => 'CostOfPointsGranted',
'cost_of_points_returned' => 'CostOfPointsReturned', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'seller_sku' => 'setSellerSku',
'order_item_id' => 'setOrderItemId',
'order_adjustment_item_id' => 'setOrderAdjustmentItemId',
'quantity_shipped' => 'setQuantityShipped',
'item_charge_list' => 'setItemChargeList',
'item_charge_adjustment_list' => 'setItemChargeAdjustmentList',
'item_fee_list' => 'setItemFeeList',
'item_fee_adjustment_list' => 'setItemFeeAdjustmentList',
'item_tax_withheld_list' => 'setItemTaxWithheldList',
'promotion_list' => 'setPromotionList',
'promotion_adjustment_list' => 'setPromotionAdjustmentList',
'cost_of_points_granted' => 'setCostOfPointsGranted',
'cost_of_points_returned' => 'setCostOfPointsReturned', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'seller_sku' => 'getSellerSku',
'order_item_id' => 'getOrderItemId',
'order_adjustment_item_id' => 'getOrderAdjustmentItemId',
'quantity_shipped' => 'getQuantityShipped',
'item_charge_list' => 'getItemChargeList',
'item_charge_adjustment_list' => 'getItemChargeAdjustmentList',
'item_fee_list' => 'getItemFeeList',
'item_fee_adjustment_list' => 'getItemFeeAdjustmentList',
'item_tax_withheld_list' => 'getItemTaxWithheldList',
'promotion_list' => 'getPromotionList',
'promotion_adjustment_list' => 'getPromotionAdjustmentList',
'cost_of_points_granted' => 'getCostOfPointsGranted',
'cost_of_points_returned' => 'getCostOfPointsReturned', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['order_item_id'] = isset($data['order_item_id']) ? $data['order_item_id'] : null;
$this->container['order_adjustment_item_id'] = isset($data['order_adjustment_item_id']) ? $data['order_adjustment_item_id'] : null;
$this->container['quantity_shipped'] = isset($data['quantity_shipped']) ? $data['quantity_shipped'] : null;
$this->container['item_charge_list'] = isset($data['item_charge_list']) ? $data['item_charge_list'] : null;
$this->container['item_charge_adjustment_list'] = isset($data['item_charge_adjustment_list']) ? $data['item_charge_adjustment_list'] : null;
$this->container['item_fee_list'] = isset($data['item_fee_list']) ? $data['item_fee_list'] : null;
$this->container['item_fee_adjustment_list'] = isset($data['item_fee_adjustment_list']) ? $data['item_fee_adjustment_list'] : null;
$this->container['item_tax_withheld_list'] = isset($data['item_tax_withheld_list']) ? $data['item_tax_withheld_list'] : null;
$this->container['promotion_list'] = isset($data['promotion_list']) ? $data['promotion_list'] : null;
$this->container['promotion_adjustment_list'] = isset($data['promotion_adjustment_list']) ? $data['promotion_adjustment_list'] : null;
$this->container['cost_of_points_granted'] = isset($data['cost_of_points_granted']) ? $data['cost_of_points_granted'] : null;
$this->container['cost_of_points_returned'] = isset($data['cost_of_points_returned']) ? $data['cost_of_points_returned'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API.
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets order_item_id.
*
* @return string
*/
public function getOrderItemId()
{
return $this->container['order_item_id'];
}
/**
* Sets order_item_id.
*
* @param string $order_item_id an Amazon-defined order item identifier
*
* @return $this
*/
public function setOrderItemId($order_item_id)
{
$this->container['order_item_id'] = $order_item_id;
return $this;
}
/**
* Gets order_adjustment_item_id.
*
* @return string
*/
public function getOrderAdjustmentItemId()
{
return $this->container['order_adjustment_item_id'];
}
/**
* Sets order_adjustment_item_id.
*
* @param string $order_adjustment_item_id an Amazon-defined order adjustment identifier defined for refunds, guarantee claims, and chargeback events
*
* @return $this
*/
public function setOrderAdjustmentItemId($order_adjustment_item_id)
{
$this->container['order_adjustment_item_id'] = $order_adjustment_item_id;
return $this;
}
/**
* Gets quantity_shipped.
*
* @return int
*/
public function getQuantityShipped()
{
return $this->container['quantity_shipped'];
}
/**
* Sets quantity_shipped.
*
* @param int $quantity_shipped the number of items shipped
*
* @return $this
*/
public function setQuantityShipped($quantity_shipped)
{
$this->container['quantity_shipped'] = $quantity_shipped;
return $this;
}
/**
* Gets item_charge_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList
*/
public function getItemChargeList()
{
return $this->container['item_charge_list'];
}
/**
* Sets item_charge_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList $item_charge_list item_charge_list
*
* @return $this
*/
public function setItemChargeList($item_charge_list)
{
$this->container['item_charge_list'] = $item_charge_list;
return $this;
}
/**
* Gets item_charge_adjustment_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList
*/
public function getItemChargeAdjustmentList()
{
return $this->container['item_charge_adjustment_list'];
}
/**
* Sets item_charge_adjustment_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList $item_charge_adjustment_list item_charge_adjustment_list
*
* @return $this
*/
public function setItemChargeAdjustmentList($item_charge_adjustment_list)
{
$this->container['item_charge_adjustment_list'] = $item_charge_adjustment_list;
return $this;
}
/**
* Gets item_fee_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList
*/
public function getItemFeeList()
{
return $this->container['item_fee_list'];
}
/**
* Sets item_fee_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $item_fee_list item_fee_list
*
* @return $this
*/
public function setItemFeeList($item_fee_list)
{
$this->container['item_fee_list'] = $item_fee_list;
return $this;
}
/**
* Gets item_fee_adjustment_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList
*/
public function getItemFeeAdjustmentList()
{
return $this->container['item_fee_adjustment_list'];
}
/**
* Sets item_fee_adjustment_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $item_fee_adjustment_list item_fee_adjustment_list
*
* @return $this
*/
public function setItemFeeAdjustmentList($item_fee_adjustment_list)
{
$this->container['item_fee_adjustment_list'] = $item_fee_adjustment_list;
return $this;
}
/**
* Gets item_tax_withheld_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList
*/
public function getItemTaxWithheldList()
{
return $this->container['item_tax_withheld_list'];
}
/**
* Sets item_tax_withheld_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList $item_tax_withheld_list item_tax_withheld_list
*
* @return $this
*/
public function setItemTaxWithheldList($item_tax_withheld_list)
{
$this->container['item_tax_withheld_list'] = $item_tax_withheld_list;
return $this;
}
/**
* Gets promotion_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\PromotionList
*/
public function getPromotionList()
{
return $this->container['promotion_list'];
}
/**
* Sets promotion_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\PromotionList $promotion_list promotion_list
*
* @return $this
*/
public function setPromotionList($promotion_list)
{
$this->container['promotion_list'] = $promotion_list;
return $this;
}
/**
* Gets promotion_adjustment_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\PromotionList
*/
public function getPromotionAdjustmentList()
{
return $this->container['promotion_adjustment_list'];
}
/**
* Sets promotion_adjustment_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\PromotionList $promotion_adjustment_list promotion_adjustment_list
*
* @return $this
*/
public function setPromotionAdjustmentList($promotion_adjustment_list)
{
$this->container['promotion_adjustment_list'] = $promotion_adjustment_list;
return $this;
}
/**
* Gets cost_of_points_granted.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getCostOfPointsGranted()
{
return $this->container['cost_of_points_granted'];
}
/**
* Sets cost_of_points_granted.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $cost_of_points_granted cost_of_points_granted
*
* @return $this
*/
public function setCostOfPointsGranted($cost_of_points_granted)
{
$this->container['cost_of_points_granted'] = $cost_of_points_granted;
return $this;
}
/**
* Gets cost_of_points_returned.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getCostOfPointsReturned()
{
return $this->container['cost_of_points_returned'];
}
/**
* Sets cost_of_points_returned.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $cost_of_points_returned cost_of_points_returned
*
* @return $this
*/
public function setCostOfPointsReturned($cost_of_points_returned)
{
$this->container['cost_of_points_returned'] = $cost_of_points_returned;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/FinancialEvents.php | lib/Models/Finances/FinancialEvents.php | <?php
/**
* FinancialEvents.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FinancialEvents Class Doc Comment.
*
* @description Contains all information related to a financial event.
*
* @author Stefan Neuhaus / ClouSale
*/
class FinancialEvents implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FinancialEvents';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList',
'refund_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList',
'guarantee_claim_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList',
'chargeback_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList',
'pay_with_amazon_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\PayWithAmazonEventList',
'service_provider_credit_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\SolutionProviderCreditEventList',
'retrocharge_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\RetrochargeEventList',
'rental_transaction_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\RentalTransactionEventList',
'product_ads_payment_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ProductAdsPaymentEventList',
'service_fee_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ServiceFeeEventList',
'seller_deal_payment_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\SellerDealPaymentEventList',
'debt_recovery_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\DebtRecoveryEventList',
'loan_servicing_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\LoanServicingEventList',
'adjustment_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\AdjustmentEventList',
'safet_reimbursement_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\SAFETReimbursementEventList',
'seller_review_enrollment_payment_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\SellerReviewEnrollmentPaymentEventList',
'fba_liquidation_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FBALiquidationEventList',
'coupon_payment_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\CouponPaymentEventList',
'imaging_services_fee_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ImagingServicesFeeEventList',
'network_commingling_transaction_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\NetworkComminglingTransactionEventList',
'affordability_expense_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\AffordabilityExpenseEventList',
'affordability_expense_reversal_event_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\AffordabilityExpenseEventList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_event_list' => null,
'refund_event_list' => null,
'guarantee_claim_event_list' => null,
'chargeback_event_list' => null,
'pay_with_amazon_event_list' => null,
'service_provider_credit_event_list' => null,
'retrocharge_event_list' => null,
'rental_transaction_event_list' => null,
'product_ads_payment_event_list' => null,
'service_fee_event_list' => null,
'seller_deal_payment_event_list' => null,
'debt_recovery_event_list' => null,
'loan_servicing_event_list' => null,
'adjustment_event_list' => null,
'safet_reimbursement_event_list' => null,
'seller_review_enrollment_payment_event_list' => null,
'fba_liquidation_event_list' => null,
'coupon_payment_event_list' => null,
'imaging_services_fee_event_list' => null,
'network_commingling_transaction_event_list' => null,
'affordability_expense_event_list' => null,
'affordability_expense_reversal_event_list' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'shipment_event_list' => 'ShipmentEventList',
'refund_event_list' => 'RefundEventList',
'guarantee_claim_event_list' => 'GuaranteeClaimEventList',
'chargeback_event_list' => 'ChargebackEventList',
'pay_with_amazon_event_list' => 'PayWithAmazonEventList',
'service_provider_credit_event_list' => 'ServiceProviderCreditEventList',
'retrocharge_event_list' => 'RetrochargeEventList',
'rental_transaction_event_list' => 'RentalTransactionEventList',
'product_ads_payment_event_list' => 'ProductAdsPaymentEventList',
'service_fee_event_list' => 'ServiceFeeEventList',
'seller_deal_payment_event_list' => 'SellerDealPaymentEventList',
'debt_recovery_event_list' => 'DebtRecoveryEventList',
'loan_servicing_event_list' => 'LoanServicingEventList',
'adjustment_event_list' => 'AdjustmentEventList',
'safet_reimbursement_event_list' => 'SAFETReimbursementEventList',
'seller_review_enrollment_payment_event_list' => 'SellerReviewEnrollmentPaymentEventList',
'fba_liquidation_event_list' => 'FBALiquidationEventList',
'coupon_payment_event_list' => 'CouponPaymentEventList',
'imaging_services_fee_event_list' => 'ImagingServicesFeeEventList',
'network_commingling_transaction_event_list' => 'NetworkComminglingTransactionEventList',
'affordability_expense_event_list' => 'AffordabilityExpenseEventList',
'affordability_expense_reversal_event_list' => 'AffordabilityExpenseReversalEventList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_event_list' => 'setShipmentEventList',
'refund_event_list' => 'setRefundEventList',
'guarantee_claim_event_list' => 'setGuaranteeClaimEventList',
'chargeback_event_list' => 'setChargebackEventList',
'pay_with_amazon_event_list' => 'setPayWithAmazonEventList',
'service_provider_credit_event_list' => 'setServiceProviderCreditEventList',
'retrocharge_event_list' => 'setRetrochargeEventList',
'rental_transaction_event_list' => 'setRentalTransactionEventList',
'product_ads_payment_event_list' => 'setProductAdsPaymentEventList',
'service_fee_event_list' => 'setServiceFeeEventList',
'seller_deal_payment_event_list' => 'setSellerDealPaymentEventList',
'debt_recovery_event_list' => 'setDebtRecoveryEventList',
'loan_servicing_event_list' => 'setLoanServicingEventList',
'adjustment_event_list' => 'setAdjustmentEventList',
'safet_reimbursement_event_list' => 'setSafetReimbursementEventList',
'seller_review_enrollment_payment_event_list' => 'setSellerReviewEnrollmentPaymentEventList',
'fba_liquidation_event_list' => 'setFbaLiquidationEventList',
'coupon_payment_event_list' => 'setCouponPaymentEventList',
'imaging_services_fee_event_list' => 'setImagingServicesFeeEventList',
'network_commingling_transaction_event_list' => 'setNetworkComminglingTransactionEventList',
'affordability_expense_event_list' => 'setAffordabilityExpenseEventList',
'affordability_expense_reversal_event_list' => 'setAffordabilityExpenseReversalEventList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_event_list' => 'getShipmentEventList',
'refund_event_list' => 'getRefundEventList',
'guarantee_claim_event_list' => 'getGuaranteeClaimEventList',
'chargeback_event_list' => 'getChargebackEventList',
'pay_with_amazon_event_list' => 'getPayWithAmazonEventList',
'service_provider_credit_event_list' => 'getServiceProviderCreditEventList',
'retrocharge_event_list' => 'getRetrochargeEventList',
'rental_transaction_event_list' => 'getRentalTransactionEventList',
'product_ads_payment_event_list' => 'getProductAdsPaymentEventList',
'service_fee_event_list' => 'getServiceFeeEventList',
'seller_deal_payment_event_list' => 'getSellerDealPaymentEventList',
'debt_recovery_event_list' => 'getDebtRecoveryEventList',
'loan_servicing_event_list' => 'getLoanServicingEventList',
'adjustment_event_list' => 'getAdjustmentEventList',
'safet_reimbursement_event_list' => 'getSafetReimbursementEventList',
'seller_review_enrollment_payment_event_list' => 'getSellerReviewEnrollmentPaymentEventList',
'fba_liquidation_event_list' => 'getFbaLiquidationEventList',
'coupon_payment_event_list' => 'getCouponPaymentEventList',
'imaging_services_fee_event_list' => 'getImagingServicesFeeEventList',
'network_commingling_transaction_event_list' => 'getNetworkComminglingTransactionEventList',
'affordability_expense_event_list' => 'getAffordabilityExpenseEventList',
'affordability_expense_reversal_event_list' => 'getAffordabilityExpenseReversalEventList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['shipment_event_list'] = isset($data['shipment_event_list']) ? $data['shipment_event_list'] : null;
$this->container['refund_event_list'] = isset($data['refund_event_list']) ? $data['refund_event_list'] : null;
$this->container['guarantee_claim_event_list'] = isset($data['guarantee_claim_event_list']) ? $data['guarantee_claim_event_list'] : null;
$this->container['chargeback_event_list'] = isset($data['chargeback_event_list']) ? $data['chargeback_event_list'] : null;
$this->container['pay_with_amazon_event_list'] = isset($data['pay_with_amazon_event_list']) ? $data['pay_with_amazon_event_list'] : null;
$this->container['service_provider_credit_event_list'] = isset($data['service_provider_credit_event_list']) ? $data['service_provider_credit_event_list'] : null;
$this->container['retrocharge_event_list'] = isset($data['retrocharge_event_list']) ? $data['retrocharge_event_list'] : null;
$this->container['rental_transaction_event_list'] = isset($data['rental_transaction_event_list']) ? $data['rental_transaction_event_list'] : null;
$this->container['product_ads_payment_event_list'] = isset($data['product_ads_payment_event_list']) ? $data['product_ads_payment_event_list'] : null;
$this->container['service_fee_event_list'] = isset($data['service_fee_event_list']) ? $data['service_fee_event_list'] : null;
$this->container['seller_deal_payment_event_list'] = isset($data['seller_deal_payment_event_list']) ? $data['seller_deal_payment_event_list'] : null;
$this->container['debt_recovery_event_list'] = isset($data['debt_recovery_event_list']) ? $data['debt_recovery_event_list'] : null;
$this->container['loan_servicing_event_list'] = isset($data['loan_servicing_event_list']) ? $data['loan_servicing_event_list'] : null;
$this->container['adjustment_event_list'] = isset($data['adjustment_event_list']) ? $data['adjustment_event_list'] : null;
$this->container['safet_reimbursement_event_list'] = isset($data['safet_reimbursement_event_list']) ? $data['safet_reimbursement_event_list'] : null;
$this->container['seller_review_enrollment_payment_event_list'] = isset($data['seller_review_enrollment_payment_event_list']) ? $data['seller_review_enrollment_payment_event_list'] : null;
$this->container['fba_liquidation_event_list'] = isset($data['fba_liquidation_event_list']) ? $data['fba_liquidation_event_list'] : null;
$this->container['coupon_payment_event_list'] = isset($data['coupon_payment_event_list']) ? $data['coupon_payment_event_list'] : null;
$this->container['imaging_services_fee_event_list'] = isset($data['imaging_services_fee_event_list']) ? $data['imaging_services_fee_event_list'] : null;
$this->container['network_commingling_transaction_event_list'] = isset($data['network_commingling_transaction_event_list']) ? $data['network_commingling_transaction_event_list'] : null;
$this->container['affordability_expense_event_list'] = isset($data['affordability_expense_event_list']) ? $data['affordability_expense_event_list'] : null;
$this->container['affordability_expense_reversal_event_list'] = isset($data['affordability_expense_reversal_event_list']) ? $data['affordability_expense_reversal_event_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets shipment_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList
*/
public function getShipmentEventList()
{
return $this->container['shipment_event_list'];
}
/**
* Sets shipment_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList $shipment_event_list shipment_event_list
*
* @return $this
*/
public function setShipmentEventList($shipment_event_list)
{
$this->container['shipment_event_list'] = $shipment_event_list;
return $this;
}
/**
* Gets refund_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList
*/
public function getRefundEventList()
{
return $this->container['refund_event_list'];
}
/**
* Sets refund_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList $refund_event_list refund_event_list
*
* @return $this
*/
public function setRefundEventList($refund_event_list)
{
$this->container['refund_event_list'] = $refund_event_list;
return $this;
}
/**
* Gets guarantee_claim_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList
*/
public function getGuaranteeClaimEventList()
{
return $this->container['guarantee_claim_event_list'];
}
/**
* Sets guarantee_claim_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList $guarantee_claim_event_list guarantee_claim_event_list
*
* @return $this
*/
public function setGuaranteeClaimEventList($guarantee_claim_event_list)
{
$this->container['guarantee_claim_event_list'] = $guarantee_claim_event_list;
return $this;
}
/**
* Gets chargeback_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList
*/
public function getChargebackEventList()
{
return $this->container['chargeback_event_list'];
}
/**
* Sets chargeback_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentEventList $chargeback_event_list chargeback_event_list
*
* @return $this
*/
public function setChargebackEventList($chargeback_event_list)
{
$this->container['chargeback_event_list'] = $chargeback_event_list;
return $this;
}
/**
* Gets pay_with_amazon_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\PayWithAmazonEventList
*/
public function getPayWithAmazonEventList()
{
return $this->container['pay_with_amazon_event_list'];
}
/**
* Sets pay_with_amazon_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\PayWithAmazonEventList $pay_with_amazon_event_list pay_with_amazon_event_list
*
* @return $this
*/
public function setPayWithAmazonEventList($pay_with_amazon_event_list)
{
$this->container['pay_with_amazon_event_list'] = $pay_with_amazon_event_list;
return $this;
}
/**
* Gets service_provider_credit_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SolutionProviderCreditEventList
*/
public function getServiceProviderCreditEventList()
{
return $this->container['service_provider_credit_event_list'];
}
/**
* Sets service_provider_credit_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SolutionProviderCreditEventList $service_provider_credit_event_list service_provider_credit_event_list
*
* @return $this
*/
public function setServiceProviderCreditEventList($service_provider_credit_event_list)
{
$this->container['service_provider_credit_event_list'] = $service_provider_credit_event_list;
return $this;
}
/**
* Gets retrocharge_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\RetrochargeEventList
*/
public function getRetrochargeEventList()
{
return $this->container['retrocharge_event_list'];
}
/**
* Sets retrocharge_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\RetrochargeEventList $retrocharge_event_list retrocharge_event_list
*
* @return $this
*/
public function setRetrochargeEventList($retrocharge_event_list)
{
$this->container['retrocharge_event_list'] = $retrocharge_event_list;
return $this;
}
/**
* Gets rental_transaction_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\RentalTransactionEventList
*/
public function getRentalTransactionEventList()
{
return $this->container['rental_transaction_event_list'];
}
/**
* Sets rental_transaction_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\RentalTransactionEventList $rental_transaction_event_list rental_transaction_event_list
*
* @return $this
*/
public function setRentalTransactionEventList($rental_transaction_event_list)
{
$this->container['rental_transaction_event_list'] = $rental_transaction_event_list;
return $this;
}
/**
* Gets product_ads_payment_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ProductAdsPaymentEventList
*/
public function getProductAdsPaymentEventList()
{
return $this->container['product_ads_payment_event_list'];
}
/**
* Sets product_ads_payment_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ProductAdsPaymentEventList $product_ads_payment_event_list product_ads_payment_event_list
*
* @return $this
*/
public function setProductAdsPaymentEventList($product_ads_payment_event_list)
{
$this->container['product_ads_payment_event_list'] = $product_ads_payment_event_list;
return $this;
}
/**
* Gets service_fee_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ServiceFeeEventList
*/
public function getServiceFeeEventList()
{
return $this->container['service_fee_event_list'];
}
/**
* Sets service_fee_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ServiceFeeEventList $service_fee_event_list service_fee_event_list
*
* @return $this
*/
public function setServiceFeeEventList($service_fee_event_list)
{
$this->container['service_fee_event_list'] = $service_fee_event_list;
return $this;
}
/**
* Gets seller_deal_payment_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SellerDealPaymentEventList
*/
public function getSellerDealPaymentEventList()
{
return $this->container['seller_deal_payment_event_list'];
}
/**
* Sets seller_deal_payment_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SellerDealPaymentEventList $seller_deal_payment_event_list seller_deal_payment_event_list
*
* @return $this
*/
public function setSellerDealPaymentEventList($seller_deal_payment_event_list)
{
$this->container['seller_deal_payment_event_list'] = $seller_deal_payment_event_list;
return $this;
}
/**
* Gets debt_recovery_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DebtRecoveryEventList
*/
public function getDebtRecoveryEventList()
{
return $this->container['debt_recovery_event_list'];
}
/**
* Sets debt_recovery_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DebtRecoveryEventList $debt_recovery_event_list debt_recovery_event_list
*
* @return $this
*/
public function setDebtRecoveryEventList($debt_recovery_event_list)
{
$this->container['debt_recovery_event_list'] = $debt_recovery_event_list;
return $this;
}
/**
* Gets loan_servicing_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\LoanServicingEventList
*/
public function getLoanServicingEventList()
{
return $this->container['loan_servicing_event_list'];
}
/**
* Sets loan_servicing_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\LoanServicingEventList $loan_servicing_event_list loan_servicing_event_list
*
* @return $this
*/
public function setLoanServicingEventList($loan_servicing_event_list)
{
$this->container['loan_servicing_event_list'] = $loan_servicing_event_list;
return $this;
}
/**
* Gets adjustment_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\AdjustmentEventList
*/
public function getAdjustmentEventList()
{
return $this->container['adjustment_event_list'];
}
/**
* Sets adjustment_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\AdjustmentEventList $adjustment_event_list adjustment_event_list
*
* @return $this
*/
public function setAdjustmentEventList($adjustment_event_list)
{
$this->container['adjustment_event_list'] = $adjustment_event_list;
return $this;
}
/**
* Gets safet_reimbursement_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SAFETReimbursementEventList
*/
public function getSafetReimbursementEventList()
{
return $this->container['safet_reimbursement_event_list'];
}
/**
* Sets safet_reimbursement_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SAFETReimbursementEventList $safet_reimbursement_event_list safet_reimbursement_event_list
*
* @return $this
*/
public function setSafetReimbursementEventList($safet_reimbursement_event_list)
{
$this->container['safet_reimbursement_event_list'] = $safet_reimbursement_event_list;
return $this;
}
/**
* Gets seller_review_enrollment_payment_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SellerReviewEnrollmentPaymentEventList
*/
public function getSellerReviewEnrollmentPaymentEventList()
{
return $this->container['seller_review_enrollment_payment_event_list'];
}
/**
* Sets seller_review_enrollment_payment_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\SellerReviewEnrollmentPaymentEventList $seller_review_enrollment_payment_event_list seller_review_enrollment_payment_event_list
*
* @return $this
*/
public function setSellerReviewEnrollmentPaymentEventList($seller_review_enrollment_payment_event_list)
{
$this->container['seller_review_enrollment_payment_event_list'] = $seller_review_enrollment_payment_event_list;
return $this;
}
/**
* Gets fba_liquidation_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FBALiquidationEventList
*/
public function getFbaLiquidationEventList()
{
return $this->container['fba_liquidation_event_list'];
}
/**
* Sets fba_liquidation_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FBALiquidationEventList $fba_liquidation_event_list fba_liquidation_event_list
*
* @return $this
*/
public function setFbaLiquidationEventList($fba_liquidation_event_list)
{
$this->container['fba_liquidation_event_list'] = $fba_liquidation_event_list;
return $this;
}
/**
* Gets coupon_payment_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\CouponPaymentEventList
*/
public function getCouponPaymentEventList()
{
return $this->container['coupon_payment_event_list'];
}
/**
* Sets coupon_payment_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\CouponPaymentEventList $coupon_payment_event_list coupon_payment_event_list
*
* @return $this
*/
public function setCouponPaymentEventList($coupon_payment_event_list)
{
$this->container['coupon_payment_event_list'] = $coupon_payment_event_list;
return $this;
}
/**
* Gets imaging_services_fee_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ImagingServicesFeeEventList
*/
public function getImagingServicesFeeEventList()
{
return $this->container['imaging_services_fee_event_list'];
}
/**
* Sets imaging_services_fee_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ImagingServicesFeeEventList $imaging_services_fee_event_list imaging_services_fee_event_list
*
* @return $this
*/
public function setImagingServicesFeeEventList($imaging_services_fee_event_list)
{
$this->container['imaging_services_fee_event_list'] = $imaging_services_fee_event_list;
return $this;
}
/**
* Gets network_commingling_transaction_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\NetworkComminglingTransactionEventList
*/
public function getNetworkComminglingTransactionEventList()
{
return $this->container['network_commingling_transaction_event_list'];
}
/**
* Sets network_commingling_transaction_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\NetworkComminglingTransactionEventList $network_commingling_transaction_event_list network_commingling_transaction_event_list
*
* @return $this
*/
public function setNetworkComminglingTransactionEventList($network_commingling_transaction_event_list)
{
$this->container['network_commingling_transaction_event_list'] = $network_commingling_transaction_event_list;
return $this;
}
/**
* Gets affordability_expense_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\AffordabilityExpenseEventList
*/
public function getAffordabilityExpenseEventList()
{
return $this->container['affordability_expense_event_list'];
}
/**
* Sets affordability_expense_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\AffordabilityExpenseEventList $affordability_expense_event_list affordability_expense_event_list
*
* @return $this
*/
public function setAffordabilityExpenseEventList($affordability_expense_event_list)
{
$this->container['affordability_expense_event_list'] = $affordability_expense_event_list;
return $this;
}
/**
* Gets affordability_expense_reversal_event_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\AffordabilityExpenseEventList
*/
public function getAffordabilityExpenseReversalEventList()
{
return $this->container['affordability_expense_reversal_event_list'];
}
/**
* Sets affordability_expense_reversal_event_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\AffordabilityExpenseEventList $affordability_expense_reversal_event_list affordability_expense_reversal_event_list
*
* @return $this
*/
public function setAffordabilityExpenseReversalEventList($affordability_expense_reversal_event_list)
{
$this->container['affordability_expense_reversal_event_list'] = $affordability_expense_reversal_event_list;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/FeeComponentList.php | lib/Models/Finances/FeeComponentList.php | <?php
/**
* FeeComponentList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeeComponentList Class Doc Comment.
*
* @description A list of fee component information.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeeComponentList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeeComponentList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return FeeComponent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ListFinancialEventsPayload.php | lib/Models/Finances/ListFinancialEventsPayload.php | <?php
/**
* ListFinancialEventsPayload.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ListFinancialEventsPayload Class Doc Comment.
*
* @description The payload for the listFinancialEvents operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class ListFinancialEventsPayload implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ListFinancialEventsPayload';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'next_token' => 'string',
'financial_events' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FinancialEvents', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'next_token' => null,
'financial_events' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'next_token' => 'NextToken',
'financial_events' => 'FinancialEvents', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'next_token' => 'setNextToken',
'financial_events' => 'setFinancialEvents', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'next_token' => 'getNextToken',
'financial_events' => 'getFinancialEvents', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null;
$this->container['financial_events'] = isset($data['financial_events']) ? $data['financial_events'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets next_token.
*
* @return string
*/
public function getNextToken()
{
return $this->container['next_token'];
}
/**
* Sets next_token.
*
* @param string $next_token when present and not empty, pass this string token in the next request to return the next response page
*
* @return $this
*/
public function setNextToken($next_token)
{
$this->container['next_token'] = $next_token;
return $this;
}
/**
* Gets financial_events.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FinancialEvents
*/
public function getFinancialEvents()
{
return $this->container['financial_events'];
}
/**
* Sets financial_events.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FinancialEvents $financial_events financial_events
*
* @return $this
*/
public function setFinancialEvents($financial_events)
{
$this->container['financial_events'] = $financial_events;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ImagingServicesFeeEventList.php | lib/Models/Finances/ImagingServicesFeeEventList.php | <?php
/**
* ImagingServicesFeeEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ImagingServicesFeeEventList Class Doc Comment.
*
* @description A list of fee events related to Amazon Imaging services.
*
* @author Stefan Neuhaus / ClouSale
*/
class ImagingServicesFeeEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ImagingServicesFeeEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return ImagingServicesFeeEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/DirectPayment.php | lib/Models/Finances/DirectPayment.php | <?php
/**
* DirectPayment.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* DirectPayment Class Doc Comment.
*
* @description A payment made directly to a seller.
*
* @author Stefan Neuhaus / ClouSale
*/
class DirectPayment implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'DirectPayment';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'direct_payment_type' => 'string',
'direct_payment_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'direct_payment_type' => null,
'direct_payment_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'direct_payment_type' => 'DirectPaymentType',
'direct_payment_amount' => 'DirectPaymentAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'direct_payment_type' => 'setDirectPaymentType',
'direct_payment_amount' => 'setDirectPaymentAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'direct_payment_type' => 'getDirectPaymentType',
'direct_payment_amount' => 'getDirectPaymentAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['direct_payment_type'] = isset($data['direct_payment_type']) ? $data['direct_payment_type'] : null;
$this->container['direct_payment_amount'] = isset($data['direct_payment_amount']) ? $data['direct_payment_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets direct_payment_type.
*
* @return string
*/
public function getDirectPaymentType()
{
return $this->container['direct_payment_type'];
}
/**
* Sets direct_payment_type.
*
* @param string $direct_payment_type The type of payment. Possible values: * StoredValueCardRevenue - The amount that is deducted from the seller's account because the seller received money through a stored value card. * StoredValueCardRefund - The amount that Amazon returns to the seller if the order that is bought using a stored value card is refunded. * PrivateLabelCreditCardRevenue - The amount that is deducted from the seller's account because the seller received money through a private label credit card offered by Amazon. * PrivateLabelCreditCardRefund - The amount that Amazon returns to the seller if the order that is bought using a private label credit card offered by Amazon is refunded. * CollectOnDeliveryRevenue - The COD amount that the seller collected directly from the buyer. * CollectOnDeliveryRefund - The amount that Amazon refunds to the buyer if an order paid for by COD is refunded.
*
* @return $this
*/
public function setDirectPaymentType($direct_payment_type)
{
$this->container['direct_payment_type'] = $direct_payment_type;
return $this;
}
/**
* Gets direct_payment_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getDirectPaymentAmount()
{
return $this->container['direct_payment_amount'];
}
/**
* Sets direct_payment_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $direct_payment_amount direct_payment_amount
*
* @return $this
*/
public function setDirectPaymentAmount($direct_payment_amount)
{
$this->container['direct_payment_amount'] = $direct_payment_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SellerReviewEnrollmentPaymentEventList.php | lib/Models/Finances/SellerReviewEnrollmentPaymentEventList.php | <?php
/**
* SellerReviewEnrollmentPaymentEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerReviewEnrollmentPaymentEventList Class Doc Comment.
*
* @description A list of information about fee events for the Early Reviewer Program.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerReviewEnrollmentPaymentEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerReviewEnrollmentPaymentEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return SellerReviewEnrollmentPaymentEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/DebtRecoveryItem.php | lib/Models/Finances/DebtRecoveryItem.php | <?php
/**
* DebtRecoveryItem.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* DebtRecoveryItem Class Doc Comment.
*
* @description An item of a debt payment or debt adjustment.
*
* @author Stefan Neuhaus / ClouSale
*/
class DebtRecoveryItem implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'DebtRecoveryItem';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'recovery_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'original_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'group_begin_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'group_end_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'recovery_amount' => null,
'original_amount' => null,
'group_begin_date' => null,
'group_end_date' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'recovery_amount' => 'RecoveryAmount',
'original_amount' => 'OriginalAmount',
'group_begin_date' => 'GroupBeginDate',
'group_end_date' => 'GroupEndDate', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'recovery_amount' => 'setRecoveryAmount',
'original_amount' => 'setOriginalAmount',
'group_begin_date' => 'setGroupBeginDate',
'group_end_date' => 'setGroupEndDate', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'recovery_amount' => 'getRecoveryAmount',
'original_amount' => 'getOriginalAmount',
'group_begin_date' => 'getGroupBeginDate',
'group_end_date' => 'getGroupEndDate', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['recovery_amount'] = isset($data['recovery_amount']) ? $data['recovery_amount'] : null;
$this->container['original_amount'] = isset($data['original_amount']) ? $data['original_amount'] : null;
$this->container['group_begin_date'] = isset($data['group_begin_date']) ? $data['group_begin_date'] : null;
$this->container['group_end_date'] = isset($data['group_end_date']) ? $data['group_end_date'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets recovery_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getRecoveryAmount()
{
return $this->container['recovery_amount'];
}
/**
* Sets recovery_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $recovery_amount recovery_amount
*
* @return $this
*/
public function setRecoveryAmount($recovery_amount)
{
$this->container['recovery_amount'] = $recovery_amount;
return $this;
}
/**
* Gets original_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getOriginalAmount()
{
return $this->container['original_amount'];
}
/**
* Sets original_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $original_amount original_amount
*
* @return $this
*/
public function setOriginalAmount($original_amount)
{
$this->container['original_amount'] = $original_amount;
return $this;
}
/**
* Gets group_begin_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getGroupBeginDate()
{
return $this->container['group_begin_date'];
}
/**
* Sets group_begin_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $group_begin_date group_begin_date
*
* @return $this
*/
public function setGroupBeginDate($group_begin_date)
{
$this->container['group_begin_date'] = $group_begin_date;
return $this;
}
/**
* Gets group_end_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getGroupEndDate()
{
return $this->container['group_end_date'];
}
/**
* Sets group_end_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $group_end_date group_end_date
*
* @return $this
*/
public function setGroupEndDate($group_end_date)
{
$this->container['group_end_date'] = $group_end_date;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ChargeComponent.php | lib/Models/Finances/ChargeComponent.php | <?php
/**
* ChargeComponent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ChargeComponent Class Doc Comment.
*
* @description A charge on the seller's account. Possible values: * Principal - The selling price of the order item, equal to the selling price of the item multiplied by the quantity ordered. * Tax - The tax collected by the seller on the Principal. * MarketplaceFacilitatorTax-Principal - The tax withheld on the Principal. * MarketplaceFacilitatorTax-Shipping - The tax withheld on the ShippingCharge. * MarketplaceFacilitatorTax-Giftwrap - The tax withheld on the Giftwrap charge. * MarketplaceFacilitatorTax-Other - The tax withheld on other miscellaneous charges. * Discount - The promotional discount for an order item. * TaxDiscount - The tax amount deducted for promotional rebates. * CODItemCharge - The COD charge for an order item. * CODItemTaxCharge - The tax collected by the seller on a CODItemCharge. * CODOrderCharge - The COD charge for an order. * CODOrderTaxCharge - The tax collected by the seller on a CODOrderCharge. * CODShippingCharge - Shipping charges for a COD order. * CODShippingTaxCharge - The tax collected by the seller on a CODShippingCharge. * ShippingCharge - The shipping charge. * ShippingTax - The tax collected by the seller on a ShippingCharge. * Goodwill - The amount given to a buyer as a gesture of goodwill or to compensate for pain and suffering in the buying experience. * Giftwrap - The gift wrap charge. * GiftwrapTax - The tax collected by the seller on a Giftwrap charge. * RestockingFee - The charge applied to the buyer when returning a product in certain categories. * ReturnShipping - The amount given to the buyer to compensate for shipping the item back in the event we are at fault. * PointsFee - The value of Amazon Points deducted from the refund if the buyer does not have enough Amazon Points to cover the deduction. * GenericDeduction - A generic bad debt deduction. * FreeReplacementReturnShipping - The compensation for return shipping when a buyer receives the wrong item, requests a free replacement, and returns the incorrect item. * PaymentMethodFee - The fee collected for certain payment methods in certain marketplaces. * ExportCharge - The export duty that is charged when an item is shipped to an international destination as part of the Amazon Global program. * SAFE-TReimbursement - The SAFE-T claim amount for the item. * TCS-CGST - Tax Collected at Source (TCS) for Central Goods and Services Tax (CGST). * TCS-SGST - Tax Collected at Source for State Goods and Services Tax (SGST). * TCS-IGST - Tax Collected at Source for Integrated Goods and Services Tax (IGST). * TCS-UTGST - Tax Collected at Source for Union Territories Goods and Services Tax (UTGST).
*
* @author Stefan Neuhaus / ClouSale
*/
class ChargeComponent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ChargeComponent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'charge_type' => 'string',
'charge_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'charge_type' => null,
'charge_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'charge_type' => 'ChargeType',
'charge_amount' => 'ChargeAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'charge_type' => 'setChargeType',
'charge_amount' => 'setChargeAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'charge_type' => 'getChargeType',
'charge_amount' => 'getChargeAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['charge_type'] = isset($data['charge_type']) ? $data['charge_type'] : null;
$this->container['charge_amount'] = isset($data['charge_amount']) ? $data['charge_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets charge_type.
*
* @return string
*/
public function getChargeType()
{
return $this->container['charge_type'];
}
/**
* Sets charge_type.
*
* @param string $charge_type the type of charge
*
* @return $this
*/
public function setChargeType($charge_type)
{
$this->container['charge_type'] = $charge_type;
return $this;
}
/**
* Gets charge_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getChargeAmount()
{
return $this->container['charge_amount'];
}
/**
* Sets charge_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $charge_amount charge_amount
*
* @return $this
*/
public function setChargeAmount($charge_amount)
{
$this->container['charge_amount'] = $charge_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ShipmentEvent.php | lib/Models/Finances/ShipmentEvent.php | <?php
/**
* ShipmentEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShipmentEvent Class Doc Comment.
*
* @description A shipment, refund, guarantee claim, or chargeback.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipmentEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShipmentEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'amazon_order_id' => 'string',
'seller_order_id' => 'string',
'marketplace_name' => 'string',
'order_charge_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList',
'order_charge_adjustment_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList',
'shipment_fee_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList',
'shipment_fee_adjustment_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList',
'order_fee_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList',
'order_fee_adjustment_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList',
'direct_payment_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\DirectPaymentList',
'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime',
'shipment_item_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentItemList',
'shipment_item_adjustment_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentItemList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'amazon_order_id' => null,
'seller_order_id' => null,
'marketplace_name' => null,
'order_charge_list' => null,
'order_charge_adjustment_list' => null,
'shipment_fee_list' => null,
'shipment_fee_adjustment_list' => null,
'order_fee_list' => null,
'order_fee_adjustment_list' => null,
'direct_payment_list' => null,
'posted_date' => null,
'shipment_item_list' => null,
'shipment_item_adjustment_list' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'amazon_order_id' => 'AmazonOrderId',
'seller_order_id' => 'SellerOrderId',
'marketplace_name' => 'MarketplaceName',
'order_charge_list' => 'OrderChargeList',
'order_charge_adjustment_list' => 'OrderChargeAdjustmentList',
'shipment_fee_list' => 'ShipmentFeeList',
'shipment_fee_adjustment_list' => 'ShipmentFeeAdjustmentList',
'order_fee_list' => 'OrderFeeList',
'order_fee_adjustment_list' => 'OrderFeeAdjustmentList',
'direct_payment_list' => 'DirectPaymentList',
'posted_date' => 'PostedDate',
'shipment_item_list' => 'ShipmentItemList',
'shipment_item_adjustment_list' => 'ShipmentItemAdjustmentList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'amazon_order_id' => 'setAmazonOrderId',
'seller_order_id' => 'setSellerOrderId',
'marketplace_name' => 'setMarketplaceName',
'order_charge_list' => 'setOrderChargeList',
'order_charge_adjustment_list' => 'setOrderChargeAdjustmentList',
'shipment_fee_list' => 'setShipmentFeeList',
'shipment_fee_adjustment_list' => 'setShipmentFeeAdjustmentList',
'order_fee_list' => 'setOrderFeeList',
'order_fee_adjustment_list' => 'setOrderFeeAdjustmentList',
'direct_payment_list' => 'setDirectPaymentList',
'posted_date' => 'setPostedDate',
'shipment_item_list' => 'setShipmentItemList',
'shipment_item_adjustment_list' => 'setShipmentItemAdjustmentList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'amazon_order_id' => 'getAmazonOrderId',
'seller_order_id' => 'getSellerOrderId',
'marketplace_name' => 'getMarketplaceName',
'order_charge_list' => 'getOrderChargeList',
'order_charge_adjustment_list' => 'getOrderChargeAdjustmentList',
'shipment_fee_list' => 'getShipmentFeeList',
'shipment_fee_adjustment_list' => 'getShipmentFeeAdjustmentList',
'order_fee_list' => 'getOrderFeeList',
'order_fee_adjustment_list' => 'getOrderFeeAdjustmentList',
'direct_payment_list' => 'getDirectPaymentList',
'posted_date' => 'getPostedDate',
'shipment_item_list' => 'getShipmentItemList',
'shipment_item_adjustment_list' => 'getShipmentItemAdjustmentList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null;
$this->container['seller_order_id'] = isset($data['seller_order_id']) ? $data['seller_order_id'] : null;
$this->container['marketplace_name'] = isset($data['marketplace_name']) ? $data['marketplace_name'] : null;
$this->container['order_charge_list'] = isset($data['order_charge_list']) ? $data['order_charge_list'] : null;
$this->container['order_charge_adjustment_list'] = isset($data['order_charge_adjustment_list']) ? $data['order_charge_adjustment_list'] : null;
$this->container['shipment_fee_list'] = isset($data['shipment_fee_list']) ? $data['shipment_fee_list'] : null;
$this->container['shipment_fee_adjustment_list'] = isset($data['shipment_fee_adjustment_list']) ? $data['shipment_fee_adjustment_list'] : null;
$this->container['order_fee_list'] = isset($data['order_fee_list']) ? $data['order_fee_list'] : null;
$this->container['order_fee_adjustment_list'] = isset($data['order_fee_adjustment_list']) ? $data['order_fee_adjustment_list'] : null;
$this->container['direct_payment_list'] = isset($data['direct_payment_list']) ? $data['direct_payment_list'] : null;
$this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null;
$this->container['shipment_item_list'] = isset($data['shipment_item_list']) ? $data['shipment_item_list'] : null;
$this->container['shipment_item_adjustment_list'] = isset($data['shipment_item_adjustment_list']) ? $data['shipment_item_adjustment_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets amazon_order_id.
*
* @return string
*/
public function getAmazonOrderId()
{
return $this->container['amazon_order_id'];
}
/**
* Sets amazon_order_id.
*
* @param string $amazon_order_id an Amazon-defined identifier for an order
*
* @return $this
*/
public function setAmazonOrderId($amazon_order_id)
{
$this->container['amazon_order_id'] = $amazon_order_id;
return $this;
}
/**
* Gets seller_order_id.
*
* @return string
*/
public function getSellerOrderId()
{
return $this->container['seller_order_id'];
}
/**
* Sets seller_order_id.
*
* @param string $seller_order_id a seller-defined identifier for an order
*
* @return $this
*/
public function setSellerOrderId($seller_order_id)
{
$this->container['seller_order_id'] = $seller_order_id;
return $this;
}
/**
* Gets marketplace_name.
*
* @return string
*/
public function getMarketplaceName()
{
return $this->container['marketplace_name'];
}
/**
* Sets marketplace_name.
*
* @param string $marketplace_name the name of the marketplace where the event occurred
*
* @return $this
*/
public function setMarketplaceName($marketplace_name)
{
$this->container['marketplace_name'] = $marketplace_name;
return $this;
}
/**
* Gets order_charge_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList
*/
public function getOrderChargeList()
{
return $this->container['order_charge_list'];
}
/**
* Sets order_charge_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList $order_charge_list order_charge_list
*
* @return $this
*/
public function setOrderChargeList($order_charge_list)
{
$this->container['order_charge_list'] = $order_charge_list;
return $this;
}
/**
* Gets order_charge_adjustment_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList
*/
public function getOrderChargeAdjustmentList()
{
return $this->container['order_charge_adjustment_list'];
}
/**
* Sets order_charge_adjustment_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList $order_charge_adjustment_list order_charge_adjustment_list
*
* @return $this
*/
public function setOrderChargeAdjustmentList($order_charge_adjustment_list)
{
$this->container['order_charge_adjustment_list'] = $order_charge_adjustment_list;
return $this;
}
/**
* Gets shipment_fee_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList
*/
public function getShipmentFeeList()
{
return $this->container['shipment_fee_list'];
}
/**
* Sets shipment_fee_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $shipment_fee_list shipment_fee_list
*
* @return $this
*/
public function setShipmentFeeList($shipment_fee_list)
{
$this->container['shipment_fee_list'] = $shipment_fee_list;
return $this;
}
/**
* Gets shipment_fee_adjustment_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList
*/
public function getShipmentFeeAdjustmentList()
{
return $this->container['shipment_fee_adjustment_list'];
}
/**
* Sets shipment_fee_adjustment_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $shipment_fee_adjustment_list shipment_fee_adjustment_list
*
* @return $this
*/
public function setShipmentFeeAdjustmentList($shipment_fee_adjustment_list)
{
$this->container['shipment_fee_adjustment_list'] = $shipment_fee_adjustment_list;
return $this;
}
/**
* Gets order_fee_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList
*/
public function getOrderFeeList()
{
return $this->container['order_fee_list'];
}
/**
* Sets order_fee_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $order_fee_list order_fee_list
*
* @return $this
*/
public function setOrderFeeList($order_fee_list)
{
$this->container['order_fee_list'] = $order_fee_list;
return $this;
}
/**
* Gets order_fee_adjustment_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList
*/
public function getOrderFeeAdjustmentList()
{
return $this->container['order_fee_adjustment_list'];
}
/**
* Sets order_fee_adjustment_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $order_fee_adjustment_list order_fee_adjustment_list
*
* @return $this
*/
public function setOrderFeeAdjustmentList($order_fee_adjustment_list)
{
$this->container['order_fee_adjustment_list'] = $order_fee_adjustment_list;
return $this;
}
/**
* Gets direct_payment_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DirectPaymentList
*/
public function getDirectPaymentList()
{
return $this->container['direct_payment_list'];
}
/**
* Sets direct_payment_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DirectPaymentList $direct_payment_list direct_payment_list
*
* @return $this
*/
public function setDirectPaymentList($direct_payment_list)
{
$this->container['direct_payment_list'] = $direct_payment_list;
return $this;
}
/**
* Gets posted_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getPostedDate()
{
return $this->container['posted_date'];
}
/**
* Sets posted_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date
*
* @return $this
*/
public function setPostedDate($posted_date)
{
$this->container['posted_date'] = $posted_date;
return $this;
}
/**
* Gets shipment_item_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentItemList
*/
public function getShipmentItemList()
{
return $this->container['shipment_item_list'];
}
/**
* Sets shipment_item_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentItemList $shipment_item_list shipment_item_list
*
* @return $this
*/
public function setShipmentItemList($shipment_item_list)
{
$this->container['shipment_item_list'] = $shipment_item_list;
return $this;
}
/**
* Gets shipment_item_adjustment_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentItemList
*/
public function getShipmentItemAdjustmentList()
{
return $this->container['shipment_item_adjustment_list'];
}
/**
* Sets shipment_item_adjustment_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ShipmentItemList $shipment_item_adjustment_list shipment_item_adjustment_list
*
* @return $this
*/
public function setShipmentItemAdjustmentList($shipment_item_adjustment_list)
{
$this->container['shipment_item_adjustment_list'] = $shipment_item_adjustment_list;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ServiceFeeEvent.php | lib/Models/Finances/ServiceFeeEvent.php | <?php
/**
* ServiceFeeEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ServiceFeeEvent Class Doc Comment.
*
* @description A service fee on the seller's account.
*
* @author Stefan Neuhaus / ClouSale
*/
class ServiceFeeEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ServiceFeeEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'amazon_order_id' => 'string',
'fee_reason' => 'string',
'fee_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList',
'seller_sku' => 'string',
'fn_sku' => 'string',
'fee_description' => 'string',
'asin' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'amazon_order_id' => null,
'fee_reason' => null,
'fee_list' => null,
'seller_sku' => null,
'fn_sku' => null,
'fee_description' => null,
'asin' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'amazon_order_id' => 'AmazonOrderId',
'fee_reason' => 'FeeReason',
'fee_list' => 'FeeList',
'seller_sku' => 'SellerSKU',
'fn_sku' => 'FnSKU',
'fee_description' => 'FeeDescription',
'asin' => 'ASIN', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'amazon_order_id' => 'setAmazonOrderId',
'fee_reason' => 'setFeeReason',
'fee_list' => 'setFeeList',
'seller_sku' => 'setSellerSku',
'fn_sku' => 'setFnSku',
'fee_description' => 'setFeeDescription',
'asin' => 'setAsin', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'amazon_order_id' => 'getAmazonOrderId',
'fee_reason' => 'getFeeReason',
'fee_list' => 'getFeeList',
'seller_sku' => 'getSellerSku',
'fn_sku' => 'getFnSku',
'fee_description' => 'getFeeDescription',
'asin' => 'getAsin', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null;
$this->container['fee_reason'] = isset($data['fee_reason']) ? $data['fee_reason'] : null;
$this->container['fee_list'] = isset($data['fee_list']) ? $data['fee_list'] : null;
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['fn_sku'] = isset($data['fn_sku']) ? $data['fn_sku'] : null;
$this->container['fee_description'] = isset($data['fee_description']) ? $data['fee_description'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets amazon_order_id.
*
* @return string
*/
public function getAmazonOrderId()
{
return $this->container['amazon_order_id'];
}
/**
* Sets amazon_order_id.
*
* @param string $amazon_order_id an Amazon-defined identifier for an order
*
* @return $this
*/
public function setAmazonOrderId($amazon_order_id)
{
$this->container['amazon_order_id'] = $amazon_order_id;
return $this;
}
/**
* Gets fee_reason.
*
* @return string
*/
public function getFeeReason()
{
return $this->container['fee_reason'];
}
/**
* Sets fee_reason.
*
* @param string $fee_reason a short description of the service fee reason
*
* @return $this
*/
public function setFeeReason($fee_reason)
{
$this->container['fee_reason'] = $fee_reason;
return $this;
}
/**
* Gets fee_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList
*/
public function getFeeList()
{
return $this->container['fee_list'];
}
/**
* Sets fee_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $fee_list fee_list
*
* @return $this
*/
public function setFeeList($fee_list)
{
$this->container['fee_list'] = $fee_list;
return $this;
}
/**
* Gets seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API.
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets fn_sku.
*
* @return string
*/
public function getFnSku()
{
return $this->container['fn_sku'];
}
/**
* Sets fn_sku.
*
* @param string $fn_sku a unique identifier assigned by Amazon to products stored in and fulfilled from an Amazon fulfillment center
*
* @return $this
*/
public function setFnSku($fn_sku)
{
$this->container['fn_sku'] = $fn_sku;
return $this;
}
/**
* Gets fee_description.
*
* @return string
*/
public function getFeeDescription()
{
return $this->container['fee_description'];
}
/**
* Sets fee_description.
*
* @param string $fee_description a short description of the service fee event
*
* @return $this
*/
public function setFeeDescription($fee_description)
{
$this->container['fee_description'] = $fee_description;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/AdjustmentItem.php | lib/Models/Finances/AdjustmentItem.php | <?php
/**
* AdjustmentItem.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AdjustmentItem Class Doc Comment.
*
* @description An item in an adjustment to the seller's account.
*
* @author Stefan Neuhaus / ClouSale
*/
class AdjustmentItem implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AdjustmentItem';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'quantity' => 'string',
'per_unit_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'total_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'seller_sku' => 'string',
'fn_sku' => 'string',
'product_description' => 'string',
'asin' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'quantity' => null,
'per_unit_amount' => null,
'total_amount' => null,
'seller_sku' => null,
'fn_sku' => null,
'product_description' => null,
'asin' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'quantity' => 'Quantity',
'per_unit_amount' => 'PerUnitAmount',
'total_amount' => 'TotalAmount',
'seller_sku' => 'SellerSKU',
'fn_sku' => 'FnSKU',
'product_description' => 'ProductDescription',
'asin' => 'ASIN', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'quantity' => 'setQuantity',
'per_unit_amount' => 'setPerUnitAmount',
'total_amount' => 'setTotalAmount',
'seller_sku' => 'setSellerSku',
'fn_sku' => 'setFnSku',
'product_description' => 'setProductDescription',
'asin' => 'setAsin', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'quantity' => 'getQuantity',
'per_unit_amount' => 'getPerUnitAmount',
'total_amount' => 'getTotalAmount',
'seller_sku' => 'getSellerSku',
'fn_sku' => 'getFnSku',
'product_description' => 'getProductDescription',
'asin' => 'getAsin', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
$this->container['per_unit_amount'] = isset($data['per_unit_amount']) ? $data['per_unit_amount'] : null;
$this->container['total_amount'] = isset($data['total_amount']) ? $data['total_amount'] : null;
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['fn_sku'] = isset($data['fn_sku']) ? $data['fn_sku'] : null;
$this->container['product_description'] = isset($data['product_description']) ? $data['product_description'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets quantity.
*
* @return string
*/
public function getQuantity()
{
return $this->container['quantity'];
}
/**
* Sets quantity.
*
* @param string $quantity represents the number of units in the seller's inventory when the AdustmentType is FBAInventoryReimbursement
*
* @return $this
*/
public function setQuantity($quantity)
{
$this->container['quantity'] = $quantity;
return $this;
}
/**
* Gets per_unit_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getPerUnitAmount()
{
return $this->container['per_unit_amount'];
}
/**
* Sets per_unit_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $per_unit_amount per_unit_amount
*
* @return $this
*/
public function setPerUnitAmount($per_unit_amount)
{
$this->container['per_unit_amount'] = $per_unit_amount;
return $this;
}
/**
* Gets total_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTotalAmount()
{
return $this->container['total_amount'];
}
/**
* Sets total_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $total_amount total_amount
*
* @return $this
*/
public function setTotalAmount($total_amount)
{
$this->container['total_amount'] = $total_amount;
return $this;
}
/**
* Gets seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API.
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets fn_sku.
*
* @return string
*/
public function getFnSku()
{
return $this->container['fn_sku'];
}
/**
* Sets fn_sku.
*
* @param string $fn_sku a unique identifier assigned to products stored in and fulfilled from a fulfillment center
*
* @return $this
*/
public function setFnSku($fn_sku)
{
$this->container['fn_sku'] = $fn_sku;
return $this;
}
/**
* Gets product_description.
*
* @return string
*/
public function getProductDescription()
{
return $this->container['product_description'];
}
/**
* Sets product_description.
*
* @param string $product_description a short description of the item
*
* @return $this
*/
public function setProductDescription($product_description)
{
$this->container['product_description'] = $product_description;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/TDSReimbursementEventList.php | lib/Models/Finances/TDSReimbursementEventList.php | <?php
/**
* TDSReimbursementEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TDSReimbursementEventList Class Doc Comment.
*
* @description A list of information about tax deduction at source (TDS) claim reimbursement events.
*
* @author Stefan Neuhaus / ClouSale
*/
class TDSReimbursementEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TDSReimbursementEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return TDSReimbursementEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SolutionProviderCreditEvent.php | lib/Models/Finances/SolutionProviderCreditEvent.php | <?php
/**
* SolutionProviderCreditEvent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SolutionProviderCreditEvent Class Doc Comment.
*
* @description A credit given to a solution provider.
*
* @author Stefan Neuhaus / ClouSale
*/
class SolutionProviderCreditEvent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SolutionProviderCreditEvent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'provider_transaction_type' => 'string',
'seller_order_id' => 'string',
'marketplace_id' => 'string',
'marketplace_country_code' => 'string',
'seller_id' => 'string',
'seller_store_name' => 'string',
'provider_id' => 'string',
'provider_store_name' => 'string',
'transaction_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency',
'transaction_creation_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'provider_transaction_type' => null,
'seller_order_id' => null,
'marketplace_id' => null,
'marketplace_country_code' => null,
'seller_id' => null,
'seller_store_name' => null,
'provider_id' => null,
'provider_store_name' => null,
'transaction_amount' => null,
'transaction_creation_date' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'provider_transaction_type' => 'ProviderTransactionType',
'seller_order_id' => 'SellerOrderId',
'marketplace_id' => 'MarketplaceId',
'marketplace_country_code' => 'MarketplaceCountryCode',
'seller_id' => 'SellerId',
'seller_store_name' => 'SellerStoreName',
'provider_id' => 'ProviderId',
'provider_store_name' => 'ProviderStoreName',
'transaction_amount' => 'TransactionAmount',
'transaction_creation_date' => 'TransactionCreationDate', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'provider_transaction_type' => 'setProviderTransactionType',
'seller_order_id' => 'setSellerOrderId',
'marketplace_id' => 'setMarketplaceId',
'marketplace_country_code' => 'setMarketplaceCountryCode',
'seller_id' => 'setSellerId',
'seller_store_name' => 'setSellerStoreName',
'provider_id' => 'setProviderId',
'provider_store_name' => 'setProviderStoreName',
'transaction_amount' => 'setTransactionAmount',
'transaction_creation_date' => 'setTransactionCreationDate', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'provider_transaction_type' => 'getProviderTransactionType',
'seller_order_id' => 'getSellerOrderId',
'marketplace_id' => 'getMarketplaceId',
'marketplace_country_code' => 'getMarketplaceCountryCode',
'seller_id' => 'getSellerId',
'seller_store_name' => 'getSellerStoreName',
'provider_id' => 'getProviderId',
'provider_store_name' => 'getProviderStoreName',
'transaction_amount' => 'getTransactionAmount',
'transaction_creation_date' => 'getTransactionCreationDate', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['provider_transaction_type'] = isset($data['provider_transaction_type']) ? $data['provider_transaction_type'] : null;
$this->container['seller_order_id'] = isset($data['seller_order_id']) ? $data['seller_order_id'] : null;
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['marketplace_country_code'] = isset($data['marketplace_country_code']) ? $data['marketplace_country_code'] : null;
$this->container['seller_id'] = isset($data['seller_id']) ? $data['seller_id'] : null;
$this->container['seller_store_name'] = isset($data['seller_store_name']) ? $data['seller_store_name'] : null;
$this->container['provider_id'] = isset($data['provider_id']) ? $data['provider_id'] : null;
$this->container['provider_store_name'] = isset($data['provider_store_name']) ? $data['provider_store_name'] : null;
$this->container['transaction_amount'] = isset($data['transaction_amount']) ? $data['transaction_amount'] : null;
$this->container['transaction_creation_date'] = isset($data['transaction_creation_date']) ? $data['transaction_creation_date'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets provider_transaction_type.
*
* @return string
*/
public function getProviderTransactionType()
{
return $this->container['provider_transaction_type'];
}
/**
* Sets provider_transaction_type.
*
* @param string $provider_transaction_type the transaction type
*
* @return $this
*/
public function setProviderTransactionType($provider_transaction_type)
{
$this->container['provider_transaction_type'] = $provider_transaction_type;
return $this;
}
/**
* Gets seller_order_id.
*
* @return string
*/
public function getSellerOrderId()
{
return $this->container['seller_order_id'];
}
/**
* Sets seller_order_id.
*
* @param string $seller_order_id a seller-defined identifier for an order
*
* @return $this
*/
public function setSellerOrderId($seller_order_id)
{
$this->container['seller_order_id'] = $seller_order_id;
return $this;
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id the identifier of the marketplace where the order was placed
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets marketplace_country_code.
*
* @return string
*/
public function getMarketplaceCountryCode()
{
return $this->container['marketplace_country_code'];
}
/**
* Sets marketplace_country_code.
*
* @param string $marketplace_country_code the two-letter country code of the country associated with the marketplace where the order was placed
*
* @return $this
*/
public function setMarketplaceCountryCode($marketplace_country_code)
{
$this->container['marketplace_country_code'] = $marketplace_country_code;
return $this;
}
/**
* Gets seller_id.
*
* @return string
*/
public function getSellerId()
{
return $this->container['seller_id'];
}
/**
* Sets seller_id.
*
* @param string $seller_id the Amazon-defined identifier of the seller
*
* @return $this
*/
public function setSellerId($seller_id)
{
$this->container['seller_id'] = $seller_id;
return $this;
}
/**
* Gets seller_store_name.
*
* @return string
*/
public function getSellerStoreName()
{
return $this->container['seller_store_name'];
}
/**
* Sets seller_store_name.
*
* @param string $seller_store_name the store name where the payment event occurred
*
* @return $this
*/
public function setSellerStoreName($seller_store_name)
{
$this->container['seller_store_name'] = $seller_store_name;
return $this;
}
/**
* Gets provider_id.
*
* @return string
*/
public function getProviderId()
{
return $this->container['provider_id'];
}
/**
* Sets provider_id.
*
* @param string $provider_id the Amazon-defined identifier of the solution provider
*
* @return $this
*/
public function setProviderId($provider_id)
{
$this->container['provider_id'] = $provider_id;
return $this;
}
/**
* Gets provider_store_name.
*
* @return string
*/
public function getProviderStoreName()
{
return $this->container['provider_store_name'];
}
/**
* Sets provider_store_name.
*
* @param string $provider_store_name the store name where the payment event occurred
*
* @return $this
*/
public function setProviderStoreName($provider_store_name)
{
$this->container['provider_store_name'] = $provider_store_name;
return $this;
}
/**
* Gets transaction_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getTransactionAmount()
{
return $this->container['transaction_amount'];
}
/**
* Sets transaction_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $transaction_amount transaction_amount
*
* @return $this
*/
public function setTransactionAmount($transaction_amount)
{
$this->container['transaction_amount'] = $transaction_amount;
return $this;
}
/**
* Gets transaction_creation_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime
*/
public function getTransactionCreationDate()
{
return $this->container['transaction_creation_date'];
}
/**
* Sets transaction_creation_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $transaction_creation_date transaction_creation_date
*
* @return $this
*/
public function setTransactionCreationDate($transaction_creation_date)
{
$this->container['transaction_creation_date'] = $transaction_creation_date;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ShipmentEventList.php | lib/Models/Finances/ShipmentEventList.php | <?php
/**
* ShipmentEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShipmentEventList Class Doc Comment.
*
* @description A list of shipment event information.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipmentEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShipmentEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return ShipmentEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/AdjustmentEventList.php | lib/Models/Finances/AdjustmentEventList.php | <?php
/**
* AdjustmentEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AdjustmentEventList Class Doc Comment.
*
* @description A list of adjustment event information for the seller's account.
*
* @author Stefan Neuhaus / ClouSale
*/
class AdjustmentEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AdjustmentEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return AdjustmentEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/RetrochargeEventList.php | lib/Models/Finances/RetrochargeEventList.php | <?php
/**
* RetrochargeEventList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RetrochargeEventList Class Doc Comment.
*
* @description A list of information about Retrocharge or RetrochargeReversal events.
*
* @author Stefan Neuhaus / ClouSale
*/
class RetrochargeEventList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RetrochargeEventList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return RetrochargeEvent::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/FeeComponent.php | lib/Models/Finances/FeeComponent.php | <?php
/**
* FeeComponent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeeComponent Class Doc Comment.
*
* @description A fee associated with the event.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeeComponent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeeComponent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'fee_type' => 'string',
'fee_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'fee_type' => null,
'fee_amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'fee_type' => 'FeeType',
'fee_amount' => 'FeeAmount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'fee_type' => 'setFeeType',
'fee_amount' => 'setFeeAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'fee_type' => 'getFeeType',
'fee_amount' => 'getFeeAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['fee_type'] = isset($data['fee_type']) ? $data['fee_type'] : null;
$this->container['fee_amount'] = isset($data['fee_amount']) ? $data['fee_amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets fee_type.
*
* @return string
*/
public function getFeeType()
{
return $this->container['fee_type'];
}
/**
* Sets fee_type.
*
* @param string $fee_type The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https://sellercentral.amazon.com/gp/help/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https://sellercentral.amazon.com/gp/help/201074400) on Seller Central.
*
* @return $this
*/
public function setFeeType($fee_type)
{
$this->container['fee_type'] = $fee_type;
return $this;
}
/**
* Gets fee_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency
*/
public function getFeeAmount()
{
return $this->container['fee_amount'];
}
/**
* Sets fee_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $fee_amount fee_amount
*
* @return $this
*/
public function setFeeAmount($fee_amount)
{
$this->container['fee_amount'] = $fee_amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SAFETReimbursementItem.php | lib/Models/Finances/SAFETReimbursementItem.php | <?php
/**
* SAFETReimbursementItem.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Finances.
*
* The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SAFETReimbursementItem Class Doc Comment.
*
* @description An item from a SAFE-T claim reimbursement.
*
* @author Stefan Neuhaus / ClouSale
*/
class SAFETReimbursementItem implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SAFETReimbursementItem';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'item_charge_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList',
'product_description' => 'string',
'quantity' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'item_charge_list' => null,
'product_description' => null,
'quantity' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'item_charge_list' => 'itemChargeList',
'product_description' => 'productDescription',
'quantity' => 'quantity', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'item_charge_list' => 'setItemChargeList',
'product_description' => 'setProductDescription',
'quantity' => 'setQuantity', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'item_charge_list' => 'getItemChargeList',
'product_description' => 'getProductDescription',
'quantity' => 'getQuantity', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['item_charge_list'] = isset($data['item_charge_list']) ? $data['item_charge_list'] : null;
$this->container['product_description'] = isset($data['product_description']) ? $data['product_description'] : null;
$this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets item_charge_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList
*/
public function getItemChargeList()
{
return $this->container['item_charge_list'];
}
/**
* Sets item_charge_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList $item_charge_list item_charge_list
*
* @return $this
*/
public function setItemChargeList($item_charge_list)
{
$this->container['item_charge_list'] = $item_charge_list;
return $this;
}
/**
* Gets product_description.
*
* @return string
*/
public function getProductDescription()
{
return $this->container['product_description'];
}
/**
* Sets product_description.
*
* @param string $product_description the description of the item as shown on the product detail page on the retail website
*
* @return $this
*/
public function setProductDescription($product_description)
{
$this->container['product_description'] = $product_description;
return $this;
}
/**
* Gets quantity.
*
* @return string
*/
public function getQuantity()
{
return $this->container['quantity'];
}
/**
* Sets quantity.
*
* @param string $quantity the number of units of the item being reimbursed
*
* @return $this
*/
public function setQuantity($quantity)
{
$this->container['quantity'] = $quantity;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/ReportOptions.php | lib/Models/Reports/ReportOptions.php | <?php
/**
* ReportOptions.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ReportOptions Class Doc Comment.
*
* @description Additional information passed to reports. This varies by report type.
*
* @author Stefan Neuhaus / ClouSale
*/
class ReportOptions implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ReportOptions';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/GetReportSchedulesResponse.php | lib/Models/Reports/GetReportSchedulesResponse.php | <?php
/**
* GetReportSchedulesResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetReportSchedulesResponse Class Doc Comment.
*
* @description The response for the getReportSchedules operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetReportSchedulesResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetReportSchedulesResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportScheduleList',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportScheduleList
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportScheduleList $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/CancelReportScheduleResponse.php | lib/Models/Reports/CancelReportScheduleResponse.php | <?php
/**
* CancelReportScheduleResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CancelReportScheduleResponse Class Doc Comment.
*
* @description The response for the cancelReportSchedule operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class CancelReportScheduleResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CancelReportScheduleResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/ErrorList.php | lib/Models/Reports/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ErrorList Class Doc Comment.
*
* @description A list of error responses returned when a request is unsuccessful.
*
* @author Stefan Neuhaus / ClouSale
*/
class ErrorList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ErrorList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return Error::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/CancelReportResponse.php | lib/Models/Reports/CancelReportResponse.php | <?php
/**
* CancelReportResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CancelReportResponse Class Doc Comment.
*
* @description The response for the cancelReport operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class CancelReportResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CancelReportResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/ReportScheduleList.php | lib/Models/Reports/ReportScheduleList.php | <?php
/**
* ReportScheduleList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ReportScheduleList Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ReportScheduleList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ReportScheduleList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return ReportSchedule::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/CreateReportScheduleSpecification.php | lib/Models/Reports/CreateReportScheduleSpecification.php | <?php
/**
* CreateReportScheduleSpecification.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateReportScheduleSpecification Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateReportScheduleSpecification implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateReportScheduleSpecification';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'report_type' => 'string',
'marketplace_ids' => 'string[]',
'report_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions',
'period' => 'string',
'next_report_creation_time' => '\DateTime', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'report_type' => null,
'marketplace_ids' => null,
'report_options' => null,
'period' => null,
'next_report_creation_time' => 'date-time', ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'report_type' => 'reportType',
'marketplace_ids' => 'marketplaceIds',
'report_options' => 'reportOptions',
'period' => 'period',
'next_report_creation_time' => 'nextReportCreationTime', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'report_type' => 'setReportType',
'marketplace_ids' => 'setMarketplaceIds',
'report_options' => 'setReportOptions',
'period' => 'setPeriod',
'next_report_creation_time' => 'setNextReportCreationTime', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'report_type' => 'getReportType',
'marketplace_ids' => 'getMarketplaceIds',
'report_options' => 'getReportOptions',
'period' => 'getPeriod',
'next_report_creation_time' => 'getNextReportCreationTime', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
const PERIOD_PT5_M = 'PT5M';
const PERIOD_PT15_M = 'PT15M';
const PERIOD_PT30_M = 'PT30M';
const PERIOD_PT1_H = 'PT1H';
const PERIOD_PT2_H = 'PT2H';
const PERIOD_PT4_H = 'PT4H';
const PERIOD_PT8_H = 'PT8H';
const PERIOD_PT12_H = 'PT12H';
const PERIOD_P1_D = 'P1D';
const PERIOD_P2_D = 'P2D';
const PERIOD_P3_D = 'P3D';
const PERIOD_PT84_H = 'PT84H';
const PERIOD_P7_D = 'P7D';
const PERIOD_P14_D = 'P14D';
const PERIOD_P15_D = 'P15D';
const PERIOD_P18_D = 'P18D';
const PERIOD_P30_D = 'P30D';
const PERIOD_P1_M = 'P1M';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getPeriodAllowableValues()
{
return [
self::PERIOD_PT5_M,
self::PERIOD_PT15_M,
self::PERIOD_PT30_M,
self::PERIOD_PT1_H,
self::PERIOD_PT2_H,
self::PERIOD_PT4_H,
self::PERIOD_PT8_H,
self::PERIOD_PT12_H,
self::PERIOD_P1_D,
self::PERIOD_P2_D,
self::PERIOD_P3_D,
self::PERIOD_PT84_H,
self::PERIOD_P7_D,
self::PERIOD_P14_D,
self::PERIOD_P15_D,
self::PERIOD_P18_D,
self::PERIOD_P30_D,
self::PERIOD_P1_M, ];
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['report_type'] = isset($data['report_type']) ? $data['report_type'] : null;
$this->container['marketplace_ids'] = isset($data['marketplace_ids']) ? $data['marketplace_ids'] : null;
$this->container['report_options'] = isset($data['report_options']) ? $data['report_options'] : null;
$this->container['period'] = isset($data['period']) ? $data['period'] : null;
$this->container['next_report_creation_time'] = isset($data['next_report_creation_time']) ? $data['next_report_creation_time'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['report_type']) {
$invalidProperties[] = "'report_type' can't be null";
}
if (null === $this->container['marketplace_ids']) {
$invalidProperties[] = "'marketplace_ids' can't be null";
}
if (null === $this->container['period']) {
$invalidProperties[] = "'period' can't be null";
}
$allowedValues = $this->getPeriodAllowableValues();
if (!is_null($this->container['period']) && !in_array($this->container['period'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'period', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets report_type.
*
* @return string
*/
public function getReportType()
{
return $this->container['report_type'];
}
/**
* Sets report_type.
*
* @param string $report_type the report type
*
* @return $this
*/
public function setReportType($report_type)
{
$this->container['report_type'] = $report_type;
return $this;
}
/**
* Gets marketplace_ids.
*
* @return string[]
*/
public function getMarketplaceIds()
{
return $this->container['marketplace_ids'];
}
/**
* Sets marketplace_ids.
*
* @param string[] $marketplace_ids a list of marketplace identifiers for the report schedule
*
* @return $this
*/
public function setMarketplaceIds($marketplace_ids)
{
$this->container['marketplace_ids'] = $marketplace_ids;
return $this;
}
/**
* Gets report_options.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions
*/
public function getReportOptions()
{
return $this->container['report_options'];
}
/**
* Sets report_options.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions $report_options report_options
*
* @return $this
*/
public function setReportOptions($report_options)
{
$this->container['report_options'] = $report_options;
return $this;
}
/**
* Gets period.
*
* @return string
*/
public function getPeriod()
{
return $this->container['period'];
}
/**
* Sets period.
*
* @param string $period one of a set of predefined ISO 8601 periods that specifies how often a report should be created
*
* @return $this
*/
public function setPeriod($period)
{
$allowedValues = $this->getPeriodAllowableValues();
if (!in_array($period, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'period', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['period'] = $period;
return $this;
}
/**
* Gets next_report_creation_time.
*
* @return \DateTime
*/
public function getNextReportCreationTime()
{
return $this->container['next_report_creation_time'];
}
/**
* Sets next_report_creation_time.
*
* @param \DateTime $next_report_creation_time the date and time when the schedule will create its next report, in ISO 8601 date time format
*
* @return $this
*/
public function setNextReportCreationTime($next_report_creation_time)
{
$this->container['next_report_creation_time'] = $next_report_creation_time;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/CreateReportSpecification.php | lib/Models/Reports/CreateReportSpecification.php | <?php
/**
* CreateReportSpecification.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateReportSpecification Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateReportSpecification implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateReportSpecification';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'report_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions',
'report_type' => 'string',
'data_start_time' => '\DateTime',
'data_end_time' => '\DateTime',
'marketplace_ids' => 'string[]', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'report_options' => null,
'report_type' => null,
'data_start_time' => 'date-time',
'data_end_time' => 'date-time',
'marketplace_ids' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'report_options' => 'reportOptions',
'report_type' => 'reportType',
'data_start_time' => 'dataStartTime',
'data_end_time' => 'dataEndTime',
'marketplace_ids' => 'marketplaceIds', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'report_options' => 'setReportOptions',
'report_type' => 'setReportType',
'data_start_time' => 'setDataStartTime',
'data_end_time' => 'setDataEndTime',
'marketplace_ids' => 'setMarketplaceIds', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'report_options' => 'getReportOptions',
'report_type' => 'getReportType',
'data_start_time' => 'getDataStartTime',
'data_end_time' => 'getDataEndTime',
'marketplace_ids' => 'getMarketplaceIds', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['report_options'] = isset($data['report_options']) ? $data['report_options'] : null;
$this->container['report_type'] = isset($data['report_type']) ? $data['report_type'] : null;
$this->container['data_start_time'] = isset($data['data_start_time']) ? $data['data_start_time'] : null;
$this->container['data_end_time'] = isset($data['data_end_time']) ? $data['data_end_time'] : null;
$this->container['marketplace_ids'] = isset($data['marketplace_ids']) ? $data['marketplace_ids'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['report_type']) {
$invalidProperties[] = "'report_type' can't be null";
}
if (null === $this->container['marketplace_ids']) {
$invalidProperties[] = "'marketplace_ids' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets report_options.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions
*/
public function getReportOptions()
{
return $this->container['report_options'];
}
/**
* Sets report_options.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions $report_options report_options
*
* @return $this
*/
public function setReportOptions($report_options)
{
$this->container['report_options'] = $report_options;
return $this;
}
/**
* Gets report_type.
*
* @return string
*/
public function getReportType()
{
return $this->container['report_type'];
}
/**
* Sets report_type.
*
* @param string $report_type the report type
*
* @return $this
*/
public function setReportType($report_type)
{
$this->container['report_type'] = $report_type;
return $this;
}
/**
* Gets data_start_time.
*
* @return \DateTime
*/
public function getDataStartTime()
{
return $this->container['data_start_time'];
}
/**
* Sets data_start_time.
*
* @param \DateTime $data_start_time The start of a date and time range, in ISO 8601 date time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this.
*
* @return $this
*/
public function setDataStartTime($data_start_time)
{
$this->container['data_start_time'] = $data_start_time;
return $this;
}
/**
* Gets data_end_time.
*
* @return \DateTime
*/
public function getDataEndTime()
{
return $this->container['data_end_time'];
}
/**
* Sets data_end_time.
*
* @param \DateTime $data_end_time The end of a date and time range, in ISO 8601 date time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this.
*
* @return $this
*/
public function setDataEndTime($data_end_time)
{
$this->container['data_end_time'] = $data_end_time;
return $this;
}
/**
* Gets marketplace_ids.
*
* @return string[]
*/
public function getMarketplaceIds()
{
return $this->container['marketplace_ids'];
}
/**
* Sets marketplace_ids.
*
* @param string[] $marketplace_ids A list of marketplace identifiers. The report document's contents will contain data for all of the specified marketplaces, unless the report type indicates otherwise.
*
* @return $this
*/
public function setMarketplaceIds($marketplace_ids)
{
$this->container['marketplace_ids'] = $marketplace_ids;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/ReportList.php | lib/Models/Reports/ReportList.php | <?php
/**
* ReportList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ReportList Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ReportList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ReportList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return Report::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/GetReportScheduleResponse.php | lib/Models/Reports/GetReportScheduleResponse.php | <?php
/**
* GetReportScheduleResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetReportScheduleResponse Class Doc Comment.
*
* @description The response for the getReportSchedule operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetReportScheduleResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetReportScheduleResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportSchedule',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportSchedule
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportSchedule $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/GetReportResponse.php | lib/Models/Reports/GetReportResponse.php | <?php
/**
* GetReportResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetReportResponse Class Doc Comment.
*
* @description The response for the getReport operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetReportResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetReportResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\Report',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\Report
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\Report $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/ReportDocument.php | lib/Models/Reports/ReportDocument.php | <?php
/**
* ReportDocument.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ReportDocument Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ReportDocument implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ReportDocument';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'report_document_id' => 'string',
'url' => 'string',
'encryption_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocumentEncryptionDetails',
'compression_algorithm' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'report_document_id' => null,
'url' => null,
'encryption_details' => null,
'compression_algorithm' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'report_document_id' => 'reportDocumentId',
'url' => 'url',
'encryption_details' => 'encryptionDetails',
'compression_algorithm' => 'compressionAlgorithm', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'report_document_id' => 'setReportDocumentId',
'url' => 'setUrl',
'encryption_details' => 'setEncryptionDetails',
'compression_algorithm' => 'setCompressionAlgorithm', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'report_document_id' => 'getReportDocumentId',
'url' => 'getUrl',
'encryption_details' => 'getEncryptionDetails',
'compression_algorithm' => 'getCompressionAlgorithm', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
const COMPRESSION_ALGORITHM_GZIP = 'GZIP';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getCompressionAlgorithmAllowableValues()
{
return [
self::COMPRESSION_ALGORITHM_GZIP, ];
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['report_document_id'] = isset($data['report_document_id']) ? $data['report_document_id'] : null;
$this->container['url'] = isset($data['url']) ? $data['url'] : null;
$this->container['encryption_details'] = isset($data['encryption_details']) ? $data['encryption_details'] : null;
$this->container['compression_algorithm'] = isset($data['compression_algorithm']) ? $data['compression_algorithm'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['report_document_id']) {
$invalidProperties[] = "'report_document_id' can't be null";
}
if (null === $this->container['url']) {
$invalidProperties[] = "'url' can't be null";
}
if (null === $this->container['encryption_details']) {
$invalidProperties[] = "'encryption_details' can't be null";
}
$allowedValues = $this->getCompressionAlgorithmAllowableValues();
if (!is_null($this->container['compression_algorithm']) && !in_array($this->container['compression_algorithm'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'compression_algorithm', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets report_document_id.
*
* @return string
*/
public function getReportDocumentId()
{
return $this->container['report_document_id'];
}
/**
* Sets report_document_id.
*
* @param string $report_document_id The identifier for the report document. This identifier is unique only in combination with a seller ID.
*
* @return $this
*/
public function setReportDocumentId($report_document_id)
{
$this->container['report_document_id'] = $report_document_id;
return $this;
}
/**
* Gets url.
*
* @return string
*/
public function getUrl()
{
return $this->container['url'];
}
/**
* Sets url.
*
* @param string $url A presigned URL for the report document. This URL expires after 5 minutes.
*
* @return $this
*/
public function setUrl($url)
{
$this->container['url'] = $url;
return $this;
}
/**
* Gets encryption_details.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocumentEncryptionDetails
*/
public function getEncryptionDetails()
{
return $this->container['encryption_details'];
}
/**
* Sets encryption_details.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocumentEncryptionDetails $encryption_details encryption_details
*
* @return $this
*/
public function setEncryptionDetails($encryption_details)
{
$this->container['encryption_details'] = $encryption_details;
return $this;
}
/**
* Gets compression_algorithm.
*
* @return string
*/
public function getCompressionAlgorithm()
{
return $this->container['compression_algorithm'];
}
/**
* Sets compression_algorithm.
*
* @param string $compression_algorithm if present, the report document contents have been compressed with the provided algorithm
*
* @return $this
*/
public function setCompressionAlgorithm($compression_algorithm)
{
$allowedValues = $this->getCompressionAlgorithmAllowableValues();
if (!is_null($compression_algorithm) && !in_array($compression_algorithm, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'compression_algorithm', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['compression_algorithm'] = $compression_algorithm;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/Error.php | lib/Models/Reports/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Error Class Doc Comment.
*
* @description Error response returned when the request is unsuccessful.
*
* @author Stefan Neuhaus / ClouSale
*/
class Error implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Error';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'details' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'details' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'details' => 'details', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'details' => 'setDetails', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'details' => 'getDetails', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['code']) {
$invalidProperties[] = "'code' can't be null";
}
if (null === $this->container['message']) {
$invalidProperties[] = "'message' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets code.
*
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code.
*
* @param string $code an error code that identifies the type of error that occurred
*
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message.
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message.
*
* @param string $message a message that describes the error condition in a human-readable form
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets details.
*
* @return string
*/
public function getDetails()
{
return $this->container['details'];
}
/**
* Sets details.
*
* @param string $details additional details that can help the caller understand or fix the issue
*
* @return $this
*/
public function setDetails($details)
{
$this->container['details'] = $details;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/ReportSchedule.php | lib/Models/Reports/ReportSchedule.php | <?php
/**
* ReportSchedule.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ReportSchedule Class Doc Comment.
*
* @description Detailed information about a report schedule.
*
* @author Stefan Neuhaus / ClouSale
*/
class ReportSchedule implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ReportSchedule';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'report_schedule_id' => 'string',
'report_type' => 'string',
'marketplace_ids' => 'string[]',
'report_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions',
'period' => 'string',
'next_report_creation_time' => '\DateTime', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'report_schedule_id' => null,
'report_type' => null,
'marketplace_ids' => null,
'report_options' => null,
'period' => null,
'next_report_creation_time' => 'date-time', ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'report_schedule_id' => 'reportScheduleId',
'report_type' => 'reportType',
'marketplace_ids' => 'marketplaceIds',
'report_options' => 'reportOptions',
'period' => 'period',
'next_report_creation_time' => 'nextReportCreationTime', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'report_schedule_id' => 'setReportScheduleId',
'report_type' => 'setReportType',
'marketplace_ids' => 'setMarketplaceIds',
'report_options' => 'setReportOptions',
'period' => 'setPeriod',
'next_report_creation_time' => 'setNextReportCreationTime', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'report_schedule_id' => 'getReportScheduleId',
'report_type' => 'getReportType',
'marketplace_ids' => 'getMarketplaceIds',
'report_options' => 'getReportOptions',
'period' => 'getPeriod',
'next_report_creation_time' => 'getNextReportCreationTime', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['report_schedule_id'] = isset($data['report_schedule_id']) ? $data['report_schedule_id'] : null;
$this->container['report_type'] = isset($data['report_type']) ? $data['report_type'] : null;
$this->container['marketplace_ids'] = isset($data['marketplace_ids']) ? $data['marketplace_ids'] : null;
$this->container['report_options'] = isset($data['report_options']) ? $data['report_options'] : null;
$this->container['period'] = isset($data['period']) ? $data['period'] : null;
$this->container['next_report_creation_time'] = isset($data['next_report_creation_time']) ? $data['next_report_creation_time'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['report_schedule_id']) {
$invalidProperties[] = "'report_schedule_id' can't be null";
}
if (null === $this->container['report_type']) {
$invalidProperties[] = "'report_type' can't be null";
}
if (null === $this->container['period']) {
$invalidProperties[] = "'period' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets report_schedule_id.
*
* @return string
*/
public function getReportScheduleId()
{
return $this->container['report_schedule_id'];
}
/**
* Sets report_schedule_id.
*
* @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID.
*
* @return $this
*/
public function setReportScheduleId($report_schedule_id)
{
$this->container['report_schedule_id'] = $report_schedule_id;
return $this;
}
/**
* Gets report_type.
*
* @return string
*/
public function getReportType()
{
return $this->container['report_type'];
}
/**
* Sets report_type.
*
* @param string $report_type the report type
*
* @return $this
*/
public function setReportType($report_type)
{
$this->container['report_type'] = $report_type;
return $this;
}
/**
* Gets marketplace_ids.
*
* @return string[]
*/
public function getMarketplaceIds()
{
return $this->container['marketplace_ids'];
}
/**
* Sets marketplace_ids.
*
* @param string[] $marketplace_ids A list of marketplace identifiers. The report document's contents will contain data for all of the specified marketplaces, unless the report type indicates otherwise.
*
* @return $this
*/
public function setMarketplaceIds($marketplace_ids)
{
$this->container['marketplace_ids'] = $marketplace_ids;
return $this;
}
/**
* Gets report_options.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions
*/
public function getReportOptions()
{
return $this->container['report_options'];
}
/**
* Sets report_options.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions $report_options report_options
*
* @return $this
*/
public function setReportOptions($report_options)
{
$this->container['report_options'] = $report_options;
return $this;
}
/**
* Gets period.
*
* @return string
*/
public function getPeriod()
{
return $this->container['period'];
}
/**
* Sets period.
*
* @param string $period an ISO 8601 period value that indicates how often a report should be created
*
* @return $this
*/
public function setPeriod($period)
{
$this->container['period'] = $period;
return $this;
}
/**
* Gets next_report_creation_time.
*
* @return \DateTime
*/
public function getNextReportCreationTime()
{
return $this->container['next_report_creation_time'];
}
/**
* Sets next_report_creation_time.
*
* @param \DateTime $next_report_creation_time the date and time when the schedule will create its next report, in ISO 8601 date time format
*
* @return $this
*/
public function setNextReportCreationTime($next_report_creation_time)
{
$this->container['next_report_creation_time'] = $next_report_creation_time;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/CreateReportResult.php | lib/Models/Reports/CreateReportResult.php | <?php
/**
* CreateReportResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateReportResult Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateReportResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateReportResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'report_id' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'report_id' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'report_id' => 'reportId', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'report_id' => 'setReportId', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'report_id' => 'getReportId', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['report_id'] = isset($data['report_id']) ? $data['report_id'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['report_id']) {
$invalidProperties[] = "'report_id' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets report_id.
*
* @return string
*/
public function getReportId()
{
return $this->container['report_id'];
}
/**
* Sets report_id.
*
* @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID.
*
* @return $this
*/
public function setReportId($report_id)
{
$this->container['report_id'] = $report_id;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/GetReportDocumentResponse.php | lib/Models/Reports/GetReportDocumentResponse.php | <?php
/**
* GetReportDocumentResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetReportDocumentResponse Class Doc Comment.
*
* @description Response schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetReportDocumentResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetReportDocumentResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocument',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocument
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocument $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/CreateReportResponse.php | lib/Models/Reports/CreateReportResponse.php | <?php
/**
* CreateReportResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateReportResponse Class Doc Comment.
*
* @description The response for the createReport operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateReportResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateReportResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/CreateReportScheduleResponse.php | lib/Models/Reports/CreateReportScheduleResponse.php | <?php
/**
* CreateReportScheduleResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateReportScheduleResponse Class Doc Comment.
*
* @description The response for the createReportSchedule operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateReportScheduleResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateReportScheduleResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/ReportDocumentEncryptionDetails.php | lib/Models/Reports/ReportDocumentEncryptionDetails.php | <?php
/**
* ReportDocumentEncryptionDetails.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ReportDocumentEncryptionDetails Class Doc Comment.
*
* @description Encryption details required for decryption of a report document's contents.
*
* @author Stefan Neuhaus / ClouSale
*/
class ReportDocumentEncryptionDetails implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ReportDocumentEncryptionDetails';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'standard' => 'string',
'initialization_vector' => 'string',
'key' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'standard' => null,
'initialization_vector' => null,
'key' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'standard' => 'standard',
'initialization_vector' => 'initializationVector',
'key' => 'key', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'standard' => 'setStandard',
'initialization_vector' => 'setInitializationVector',
'key' => 'setKey', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'standard' => 'getStandard',
'initialization_vector' => 'getInitializationVector',
'key' => 'getKey', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
const STANDARD_AES = 'AES';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getStandardAllowableValues()
{
return [
self::STANDARD_AES, ];
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['standard'] = isset($data['standard']) ? $data['standard'] : null;
$this->container['initialization_vector'] = isset($data['initialization_vector']) ? $data['initialization_vector'] : null;
$this->container['key'] = isset($data['key']) ? $data['key'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['standard']) {
$invalidProperties[] = "'standard' can't be null";
}
$allowedValues = $this->getStandardAllowableValues();
if (!is_null($this->container['standard']) && !in_array($this->container['standard'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'standard', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if (null === $this->container['initialization_vector']) {
$invalidProperties[] = "'initialization_vector' can't be null";
}
if (null === $this->container['key']) {
$invalidProperties[] = "'key' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets standard.
*
* @return string
*/
public function getStandard()
{
return $this->container['standard'];
}
/**
* Sets standard.
*
* @param string $standard the encryption standard required to decrypt the document contents
*
* @return $this
*/
public function setStandard($standard)
{
$allowedValues = $this->getStandardAllowableValues();
if (!in_array($standard, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'standard', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['standard'] = $standard;
return $this;
}
/**
* Gets initialization_vector.
*
* @return string
*/
public function getInitializationVector()
{
return $this->container['initialization_vector'];
}
/**
* Sets initialization_vector.
*
* @param string $initialization_vector the vector to decrypt the document contents using Cipher Block Chaining (CBC)
*
* @return $this
*/
public function setInitializationVector($initialization_vector)
{
$this->container['initialization_vector'] = $initialization_vector;
return $this;
}
/**
* Gets key.
*
* @return string
*/
public function getKey()
{
return $this->container['key'];
}
/**
* Sets key.
*
* @param string $key the encryption key used to decrypt the document contents
*
* @return $this
*/
public function setKey($key)
{
$this->container['key'] = $key;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/Report.php | lib/Models/Reports/Report.php | <?php
/**
* Report.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Report Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class Report implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Report';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_ids' => 'string[]',
'report_id' => 'string',
'report_type' => 'string',
'data_start_time' => '\DateTime',
'data_end_time' => '\DateTime',
'report_schedule_id' => 'string',
'created_time' => '\DateTime',
'processing_status' => 'string',
'processing_start_time' => '\DateTime',
'processing_end_time' => '\DateTime',
'report_document_id' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_ids' => null,
'report_id' => null,
'report_type' => null,
'data_start_time' => 'date-time',
'data_end_time' => 'date-time',
'report_schedule_id' => null,
'created_time' => 'date-time',
'processing_status' => null,
'processing_start_time' => 'date-time',
'processing_end_time' => 'date-time',
'report_document_id' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_ids' => 'marketplaceIds',
'report_id' => 'reportId',
'report_type' => 'reportType',
'data_start_time' => 'dataStartTime',
'data_end_time' => 'dataEndTime',
'report_schedule_id' => 'reportScheduleId',
'created_time' => 'createdTime',
'processing_status' => 'processingStatus',
'processing_start_time' => 'processingStartTime',
'processing_end_time' => 'processingEndTime',
'report_document_id' => 'reportDocumentId', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_ids' => 'setMarketplaceIds',
'report_id' => 'setReportId',
'report_type' => 'setReportType',
'data_start_time' => 'setDataStartTime',
'data_end_time' => 'setDataEndTime',
'report_schedule_id' => 'setReportScheduleId',
'created_time' => 'setCreatedTime',
'processing_status' => 'setProcessingStatus',
'processing_start_time' => 'setProcessingStartTime',
'processing_end_time' => 'setProcessingEndTime',
'report_document_id' => 'setReportDocumentId', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_ids' => 'getMarketplaceIds',
'report_id' => 'getReportId',
'report_type' => 'getReportType',
'data_start_time' => 'getDataStartTime',
'data_end_time' => 'getDataEndTime',
'report_schedule_id' => 'getReportScheduleId',
'created_time' => 'getCreatedTime',
'processing_status' => 'getProcessingStatus',
'processing_start_time' => 'getProcessingStartTime',
'processing_end_time' => 'getProcessingEndTime',
'report_document_id' => 'getReportDocumentId', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
const PROCESSING_STATUS_CANCELLED = 'CANCELLED';
const PROCESSING_STATUS_DONE = 'DONE';
const PROCESSING_STATUS_FATAL = 'FATAL';
const PROCESSING_STATUS_IN_PROGRESS = 'IN_PROGRESS';
const PROCESSING_STATUS_IN_QUEUE = 'IN_QUEUE';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getProcessingStatusAllowableValues()
{
return [
self::PROCESSING_STATUS_CANCELLED,
self::PROCESSING_STATUS_DONE,
self::PROCESSING_STATUS_FATAL,
self::PROCESSING_STATUS_IN_PROGRESS,
self::PROCESSING_STATUS_IN_QUEUE, ];
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_ids'] = isset($data['marketplace_ids']) ? $data['marketplace_ids'] : null;
$this->container['report_id'] = isset($data['report_id']) ? $data['report_id'] : null;
$this->container['report_type'] = isset($data['report_type']) ? $data['report_type'] : null;
$this->container['data_start_time'] = isset($data['data_start_time']) ? $data['data_start_time'] : null;
$this->container['data_end_time'] = isset($data['data_end_time']) ? $data['data_end_time'] : null;
$this->container['report_schedule_id'] = isset($data['report_schedule_id']) ? $data['report_schedule_id'] : null;
$this->container['created_time'] = isset($data['created_time']) ? $data['created_time'] : null;
$this->container['processing_status'] = isset($data['processing_status']) ? $data['processing_status'] : null;
$this->container['processing_start_time'] = isset($data['processing_start_time']) ? $data['processing_start_time'] : null;
$this->container['processing_end_time'] = isset($data['processing_end_time']) ? $data['processing_end_time'] : null;
$this->container['report_document_id'] = isset($data['report_document_id']) ? $data['report_document_id'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['report_id']) {
$invalidProperties[] = "'report_id' can't be null";
}
if (null === $this->container['report_type']) {
$invalidProperties[] = "'report_type' can't be null";
}
if (null === $this->container['created_time']) {
$invalidProperties[] = "'created_time' can't be null";
}
if (null === $this->container['processing_status']) {
$invalidProperties[] = "'processing_status' can't be null";
}
$allowedValues = $this->getProcessingStatusAllowableValues();
if (!is_null($this->container['processing_status']) && !in_array($this->container['processing_status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'processing_status', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_ids.
*
* @return string[]
*/
public function getMarketplaceIds()
{
return $this->container['marketplace_ids'];
}
/**
* Sets marketplace_ids.
*
* @param string[] $marketplace_ids a list of marketplace identifiers for the report
*
* @return $this
*/
public function setMarketplaceIds($marketplace_ids)
{
$this->container['marketplace_ids'] = $marketplace_ids;
return $this;
}
/**
* Gets report_id.
*
* @return string
*/
public function getReportId()
{
return $this->container['report_id'];
}
/**
* Sets report_id.
*
* @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID.
*
* @return $this
*/
public function setReportId($report_id)
{
$this->container['report_id'] = $report_id;
return $this;
}
/**
* Gets report_type.
*
* @return string
*/
public function getReportType()
{
return $this->container['report_type'];
}
/**
* Sets report_type.
*
* @param string $report_type the report type
*
* @return $this
*/
public function setReportType($report_type)
{
$this->container['report_type'] = $report_type;
return $this;
}
/**
* Gets data_start_time.
*
* @return \DateTime
*/
public function getDataStartTime()
{
return $this->container['data_start_time'];
}
/**
* Sets data_start_time.
*
* @param \DateTime $data_start_time the start of a date and time range used for selecting the data to report
*
* @return $this
*/
public function setDataStartTime($data_start_time)
{
$this->container['data_start_time'] = $data_start_time;
return $this;
}
/**
* Gets data_end_time.
*
* @return \DateTime
*/
public function getDataEndTime()
{
return $this->container['data_end_time'];
}
/**
* Sets data_end_time.
*
* @param \DateTime $data_end_time the end of a date and time range used for selecting the data to report
*
* @return $this
*/
public function setDataEndTime($data_end_time)
{
$this->container['data_end_time'] = $data_end_time;
return $this;
}
/**
* Gets report_schedule_id.
*
* @return string
*/
public function getReportScheduleId()
{
return $this->container['report_schedule_id'];
}
/**
* Sets report_schedule_id.
*
* @param string $report_schedule_id The identifier of the report schedule that created this report (if any). This identifier is unique only in combination with a seller ID.
*
* @return $this
*/
public function setReportScheduleId($report_schedule_id)
{
$this->container['report_schedule_id'] = $report_schedule_id;
return $this;
}
/**
* Gets created_time.
*
* @return \DateTime
*/
public function getCreatedTime()
{
return $this->container['created_time'];
}
/**
* Sets created_time.
*
* @param \DateTime $created_time the date and time when the report was created
*
* @return $this
*/
public function setCreatedTime($created_time)
{
$this->container['created_time'] = $created_time;
return $this;
}
/**
* Gets processing_status.
*
* @return string
*/
public function getProcessingStatus()
{
return $this->container['processing_status'];
}
/**
* Sets processing_status.
*
* @param string $processing_status the processing status of the report
*
* @return $this
*/
public function setProcessingStatus($processing_status)
{
$allowedValues = $this->getProcessingStatusAllowableValues();
if (!in_array($processing_status, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'processing_status', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['processing_status'] = $processing_status;
return $this;
}
/**
* Gets processing_start_time.
*
* @return \DateTime
*/
public function getProcessingStartTime()
{
return $this->container['processing_start_time'];
}
/**
* Sets processing_start_time.
*
* @param \DateTime $processing_start_time the date and time when the report processing started, in ISO 8601 date time format
*
* @return $this
*/
public function setProcessingStartTime($processing_start_time)
{
$this->container['processing_start_time'] = $processing_start_time;
return $this;
}
/**
* Gets processing_end_time.
*
* @return \DateTime
*/
public function getProcessingEndTime()
{
return $this->container['processing_end_time'];
}
/**
* Sets processing_end_time.
*
* @param \DateTime $processing_end_time the date and time when the report processing completed, in ISO 8601 date time format
*
* @return $this
*/
public function setProcessingEndTime($processing_end_time)
{
$this->container['processing_end_time'] = $processing_end_time;
return $this;
}
/**
* Gets report_document_id.
*
* @return string
*/
public function getReportDocumentId()
{
return $this->container['report_document_id'];
}
/**
* Sets report_document_id.
*
* @param string $report_document_id The identifier for the report document. Pass this into the getReportDocument operation to get the information you will need to retrieve and decrypt the report document's contents.
*
* @return $this
*/
public function setReportDocumentId($report_document_id)
{
$this->container['report_document_id'] = $report_document_id;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/CreateReportScheduleResult.php | lib/Models/Reports/CreateReportScheduleResult.php | <?php
/**
* CreateReportScheduleResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateReportScheduleResult Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateReportScheduleResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateReportScheduleResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'report_schedule_id' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'report_schedule_id' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'report_schedule_id' => 'reportScheduleId', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'report_schedule_id' => 'setReportScheduleId', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'report_schedule_id' => 'getReportScheduleId', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['report_schedule_id'] = isset($data['report_schedule_id']) ? $data['report_schedule_id'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['report_schedule_id']) {
$invalidProperties[] = "'report_schedule_id' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets report_schedule_id.
*
* @return string
*/
public function getReportScheduleId()
{
return $this->container['report_schedule_id'];
}
/**
* Sets report_schedule_id.
*
* @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID.
*
* @return $this
*/
public function setReportScheduleId($report_schedule_id)
{
$this->container['report_schedule_id'] = $report_schedule_id;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Reports/GetReportsResponse.php | lib/Models/Reports/GetReportsResponse.php | <?php
/**
* GetReportsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Reports.
*
* The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.
*
* OpenAPI spec version: 2020-09-04
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Reports;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetReportsResponse Class Doc Comment.
*
* @description The response for the getReports operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetReportsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetReportsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportList',
'next_token' => 'string',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'next_token' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'next_token' => 'nextToken',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'next_token' => 'setNextToken',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'next_token' => 'getNextToken',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportList
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportList $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets next_token.
*
* @return string
*/
public function getNextToken()
{
return $this->container['next_token'];
}
/**
* Sets next_token.
*
* @param string $next_token Returned when the number of results exceeds pageSize. To get the next page of results, call getReports with this token as the only parameter.
*
* @return $this
*/
public function setNextToken($next_token)
{
$this->container['next_token'] = $next_token;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/FeesEstimateIdentifier.php | lib/Models/ProductFees/FeesEstimateIdentifier.php | <?php
/**
* FeesEstimateIdentifier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeesEstimateIdentifier Class Doc Comment.
*
* @description An item identifier, marketplace, time of request, and other details that identify an estimate.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeesEstimateIdentifier implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeesEstimateIdentifier';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => 'string',
'seller_id' => 'string',
'id_type' => 'string',
'id_value' => 'string',
'is_amazon_fulfilled' => 'bool',
'price_to_estimate_fees' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\PriceToEstimateFees',
'seller_input_identifier' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'seller_id' => null,
'id_type' => null,
'id_value' => null,
'is_amazon_fulfilled' => null,
'price_to_estimate_fees' => null,
'seller_input_identifier' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_id' => 'MarketplaceId',
'seller_id' => 'SellerId',
'id_type' => 'IdType',
'id_value' => 'IdValue',
'is_amazon_fulfilled' => 'IsAmazonFulfilled',
'price_to_estimate_fees' => 'PriceToEstimateFees',
'seller_input_identifier' => 'SellerInputIdentifier', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'seller_id' => 'setSellerId',
'id_type' => 'setIdType',
'id_value' => 'setIdValue',
'is_amazon_fulfilled' => 'setIsAmazonFulfilled',
'price_to_estimate_fees' => 'setPriceToEstimateFees',
'seller_input_identifier' => 'setSellerInputIdentifier', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'seller_id' => 'getSellerId',
'id_type' => 'getIdType',
'id_value' => 'getIdValue',
'is_amazon_fulfilled' => 'getIsAmazonFulfilled',
'price_to_estimate_fees' => 'getPriceToEstimateFees',
'seller_input_identifier' => 'getSellerInputIdentifier', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['seller_id'] = isset($data['seller_id']) ? $data['seller_id'] : null;
$this->container['id_type'] = isset($data['id_type']) ? $data['id_type'] : null;
$this->container['id_value'] = isset($data['id_value']) ? $data['id_value'] : null;
$this->container['is_amazon_fulfilled'] = isset($data['is_amazon_fulfilled']) ? $data['is_amazon_fulfilled'] : null;
$this->container['price_to_estimate_fees'] = isset($data['price_to_estimate_fees']) ? $data['price_to_estimate_fees'] : null;
$this->container['seller_input_identifier'] = isset($data['seller_input_identifier']) ? $data['seller_input_identifier'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id a marketplace identifier
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets seller_id.
*
* @return string
*/
public function getSellerId()
{
return $this->container['seller_id'];
}
/**
* Sets seller_id.
*
* @param string $seller_id the seller identifier
*
* @return $this
*/
public function setSellerId($seller_id)
{
$this->container['seller_id'] = $seller_id;
return $this;
}
/**
* Gets id_type.
*
* @return string
*/
public function getIdType()
{
return $this->container['id_type'];
}
/**
* Sets id_type.
*
* @param string $id_type the type of item identifier specified
*
* @return $this
*/
public function setIdType($id_type)
{
$this->container['id_type'] = $id_type;
return $this;
}
/**
* Gets id_value.
*
* @return string
*/
public function getIdValue()
{
return $this->container['id_value'];
}
/**
* Sets id_value.
*
* @param string $id_value the item identifier
*
* @return $this
*/
public function setIdValue($id_value)
{
$this->container['id_value'] = $id_value;
return $this;
}
/**
* Gets is_amazon_fulfilled.
*
* @return bool
*/
public function getIsAmazonFulfilled()
{
return $this->container['is_amazon_fulfilled'];
}
/**
* Sets is_amazon_fulfilled.
*
* @param bool $is_amazon_fulfilled when true, the offer is fulfilled by Amazon
*
* @return $this
*/
public function setIsAmazonFulfilled($is_amazon_fulfilled)
{
$this->container['is_amazon_fulfilled'] = $is_amazon_fulfilled;
return $this;
}
/**
* Gets price_to_estimate_fees.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\PriceToEstimateFees
*/
public function getPriceToEstimateFees()
{
return $this->container['price_to_estimate_fees'];
}
/**
* Sets price_to_estimate_fees.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\PriceToEstimateFees $price_to_estimate_fees price_to_estimate_fees
*
* @return $this
*/
public function setPriceToEstimateFees($price_to_estimate_fees)
{
$this->container['price_to_estimate_fees'] = $price_to_estimate_fees;
return $this;
}
/**
* Gets seller_input_identifier.
*
* @return string
*/
public function getSellerInputIdentifier()
{
return $this->container['seller_input_identifier'];
}
/**
* Sets seller_input_identifier.
*
* @param string $seller_input_identifier a unique identifier provided by the caller to track this request
*
* @return $this
*/
public function setSellerInputIdentifier($seller_input_identifier)
{
$this->container['seller_input_identifier'] = $seller_input_identifier;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/FeeDetail.php | lib/Models/ProductFees/FeeDetail.php | <?php
/**
* FeeDetail.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeeDetail Class Doc Comment.
*
* @description The type of fee, fee amount, and other details.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeeDetail implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeeDetail';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'fee_type' => 'string',
'fee_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'fee_promotion' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'tax_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'final_fee' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'included_fee_detail_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\IncludedFeeDetailList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'fee_type' => null,
'fee_amount' => null,
'fee_promotion' => null,
'tax_amount' => null,
'final_fee' => null,
'included_fee_detail_list' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'fee_type' => 'FeeType',
'fee_amount' => 'FeeAmount',
'fee_promotion' => 'FeePromotion',
'tax_amount' => 'TaxAmount',
'final_fee' => 'FinalFee',
'included_fee_detail_list' => 'IncludedFeeDetailList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'fee_type' => 'setFeeType',
'fee_amount' => 'setFeeAmount',
'fee_promotion' => 'setFeePromotion',
'tax_amount' => 'setTaxAmount',
'final_fee' => 'setFinalFee',
'included_fee_detail_list' => 'setIncludedFeeDetailList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'fee_type' => 'getFeeType',
'fee_amount' => 'getFeeAmount',
'fee_promotion' => 'getFeePromotion',
'tax_amount' => 'getTaxAmount',
'final_fee' => 'getFinalFee',
'included_fee_detail_list' => 'getIncludedFeeDetailList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['fee_type'] = isset($data['fee_type']) ? $data['fee_type'] : null;
$this->container['fee_amount'] = isset($data['fee_amount']) ? $data['fee_amount'] : null;
$this->container['fee_promotion'] = isset($data['fee_promotion']) ? $data['fee_promotion'] : null;
$this->container['tax_amount'] = isset($data['tax_amount']) ? $data['tax_amount'] : null;
$this->container['final_fee'] = isset($data['final_fee']) ? $data['final_fee'] : null;
$this->container['included_fee_detail_list'] = isset($data['included_fee_detail_list']) ? $data['included_fee_detail_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['fee_type']) {
$invalidProperties[] = "'fee_type' can't be null";
}
if (null === $this->container['fee_amount']) {
$invalidProperties[] = "'fee_amount' can't be null";
}
if (null === $this->container['final_fee']) {
$invalidProperties[] = "'final_fee' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets fee_type.
*
* @return string
*/
public function getFeeType()
{
return $this->container['fee_type'];
}
/**
* Sets fee_type.
*
* @param string $fee_type the type of fee charged to a seller
*
* @return $this
*/
public function setFeeType($fee_type)
{
$this->container['fee_type'] = $fee_type;
return $this;
}
/**
* Gets fee_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getFeeAmount()
{
return $this->container['fee_amount'];
}
/**
* Sets fee_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $fee_amount fee_amount
*
* @return $this
*/
public function setFeeAmount($fee_amount)
{
$this->container['fee_amount'] = $fee_amount;
return $this;
}
/**
* Gets fee_promotion.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getFeePromotion()
{
return $this->container['fee_promotion'];
}
/**
* Sets fee_promotion.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $fee_promotion fee_promotion
*
* @return $this
*/
public function setFeePromotion($fee_promotion)
{
$this->container['fee_promotion'] = $fee_promotion;
return $this;
}
/**
* Gets tax_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getTaxAmount()
{
return $this->container['tax_amount'];
}
/**
* Sets tax_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $tax_amount tax_amount
*
* @return $this
*/
public function setTaxAmount($tax_amount)
{
$this->container['tax_amount'] = $tax_amount;
return $this;
}
/**
* Gets final_fee.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getFinalFee()
{
return $this->container['final_fee'];
}
/**
* Sets final_fee.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $final_fee final_fee
*
* @return $this
*/
public function setFinalFee($final_fee)
{
$this->container['final_fee'] = $final_fee;
return $this;
}
/**
* Gets included_fee_detail_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\IncludedFeeDetailList
*/
public function getIncludedFeeDetailList()
{
return $this->container['included_fee_detail_list'];
}
/**
* Sets included_fee_detail_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\IncludedFeeDetailList $included_fee_detail_list included_fee_detail_list
*
* @return $this
*/
public function setIncludedFeeDetailList($included_fee_detail_list)
{
$this->container['included_fee_detail_list'] = $included_fee_detail_list;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/GetMyFeesEstimateResult.php | lib/Models/ProductFees/GetMyFeesEstimateResult.php | <?php
/**
* GetMyFeesEstimateResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetMyFeesEstimateResult Class Doc Comment.
*
* @description Response schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetMyFeesEstimateResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetMyFeesEstimateResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'fees_estimate_result' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateResult', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'fees_estimate_result' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'fees_estimate_result' => 'FeesEstimateResult', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'fees_estimate_result' => 'setFeesEstimateResult', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'fees_estimate_result' => 'getFeesEstimateResult', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['fees_estimate_result'] = isset($data['fees_estimate_result']) ? $data['fees_estimate_result'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets fees_estimate_result.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateResult
*/
public function getFeesEstimateResult()
{
return $this->container['fees_estimate_result'];
}
/**
* Sets fees_estimate_result.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateResult $fees_estimate_result fees_estimate_result
*
* @return $this
*/
public function setFeesEstimateResult($fees_estimate_result)
{
$this->container['fees_estimate_result'] = $fees_estimate_result;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/ErrorList.php | lib/Models/ProductFees/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ErrorList Class Doc Comment.
*
* @description A list of error responses returned when a request is unsuccessful.
*
* @author Stefan Neuhaus / ClouSale
*/
class ErrorList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ErrorList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return Error::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/MoneyType.php | lib/Models/ProductFees/MoneyType.php | <?php
/**
* MoneyType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* MoneyType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class MoneyType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'MoneyType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'currency_code' => 'string',
'amount' => 'float', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'currency_code' => null,
'amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'currency_code' => 'CurrencyCode',
'amount' => 'Amount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'currency_code' => 'setCurrencyCode',
'amount' => 'setAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'currency_code' => 'getCurrencyCode',
'amount' => 'getAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['currency_code'] = isset($data['currency_code']) ? $data['currency_code'] : null;
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets currency_code.
*
* @return string
*/
public function getCurrencyCode()
{
return $this->container['currency_code'];
}
/**
* Sets currency_code.
*
* @param string $currency_code the currency code in ISO 4217 format
*
* @return $this
*/
public function setCurrencyCode($currency_code)
{
$this->container['currency_code'] = $currency_code;
return $this;
}
/**
* Gets amount.
*
* @return float
*/
public function getAmount()
{
return $this->container['amount'];
}
/**
* Sets amount.
*
* @param float $amount the monetary value
*
* @return $this
*/
public function setAmount($amount)
{
$this->container['amount'] = $amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/FeesEstimate.php | lib/Models/ProductFees/FeesEstimate.php | <?php
/**
* FeesEstimate.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeesEstimate Class Doc Comment.
*
* @description The total estimated fees for an item and a list of details.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeesEstimate implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeesEstimate';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'time_of_fees_estimation' => '\DateTime',
'total_fees_estimate' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'fee_detail_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeeDetailList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'time_of_fees_estimation' => 'date-time',
'total_fees_estimate' => null,
'fee_detail_list' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'time_of_fees_estimation' => 'TimeOfFeesEstimation',
'total_fees_estimate' => 'TotalFeesEstimate',
'fee_detail_list' => 'FeeDetailList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'time_of_fees_estimation' => 'setTimeOfFeesEstimation',
'total_fees_estimate' => 'setTotalFeesEstimate',
'fee_detail_list' => 'setFeeDetailList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'time_of_fees_estimation' => 'getTimeOfFeesEstimation',
'total_fees_estimate' => 'getTotalFeesEstimate',
'fee_detail_list' => 'getFeeDetailList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['time_of_fees_estimation'] = isset($data['time_of_fees_estimation']) ? $data['time_of_fees_estimation'] : null;
$this->container['total_fees_estimate'] = isset($data['total_fees_estimate']) ? $data['total_fees_estimate'] : null;
$this->container['fee_detail_list'] = isset($data['fee_detail_list']) ? $data['fee_detail_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['time_of_fees_estimation']) {
$invalidProperties[] = "'time_of_fees_estimation' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets time_of_fees_estimation.
*
* @return \DateTime
*/
public function getTimeOfFeesEstimation()
{
return $this->container['time_of_fees_estimation'];
}
/**
* Sets time_of_fees_estimation.
*
* @param \DateTime $time_of_fees_estimation The time for which the fees were estimated. This defaults to the time the request is made.
*
* @return $this
*/
public function setTimeOfFeesEstimation($time_of_fees_estimation)
{
$this->container['time_of_fees_estimation'] = $time_of_fees_estimation;
return $this;
}
/**
* Gets total_fees_estimate.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getTotalFeesEstimate()
{
return $this->container['total_fees_estimate'];
}
/**
* Sets total_fees_estimate.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $total_fees_estimate total_fees_estimate
*
* @return $this
*/
public function setTotalFeesEstimate($total_fees_estimate)
{
$this->container['total_fees_estimate'] = $total_fees_estimate;
return $this;
}
/**
* Gets fee_detail_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeeDetailList
*/
public function getFeeDetailList()
{
return $this->container['fee_detail_list'];
}
/**
* Sets fee_detail_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeeDetailList $fee_detail_list fee_detail_list
*
* @return $this
*/
public function setFeeDetailList($fee_detail_list)
{
$this->container['fee_detail_list'] = $fee_detail_list;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/Points.php | lib/Models/ProductFees/Points.php | <?php
/**
* Points.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Points Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class Points implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Points';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'points_number' => 'int',
'points_monetary_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'points_number' => 'int32',
'points_monetary_value' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'points_number' => 'PointsNumber',
'points_monetary_value' => 'PointsMonetaryValue', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'points_number' => 'setPointsNumber',
'points_monetary_value' => 'setPointsMonetaryValue', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'points_number' => 'getPointsNumber',
'points_monetary_value' => 'getPointsMonetaryValue', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['points_number'] = isset($data['points_number']) ? $data['points_number'] : null;
$this->container['points_monetary_value'] = isset($data['points_monetary_value']) ? $data['points_monetary_value'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets points_number.
*
* @return int
*/
public function getPointsNumber()
{
return $this->container['points_number'];
}
/**
* Sets points_number.
*
* @param int $points_number points_number
*
* @return $this
*/
public function setPointsNumber($points_number)
{
$this->container['points_number'] = $points_number;
return $this;
}
/**
* Gets points_monetary_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getPointsMonetaryValue()
{
return $this->container['points_monetary_value'];
}
/**
* Sets points_monetary_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $points_monetary_value points_monetary_value
*
* @return $this
*/
public function setPointsMonetaryValue($points_monetary_value)
{
$this->container['points_monetary_value'] = $points_monetary_value;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/PriceToEstimateFees.php | lib/Models/ProductFees/PriceToEstimateFees.php | <?php
/**
* PriceToEstimateFees.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PriceToEstimateFees Class Doc Comment.
*
* @description Price information for an item, used to estimate fees.
*
* @author Stefan Neuhaus / ClouSale
*/
class PriceToEstimateFees implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PriceToEstimateFees';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'listing_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'shipping' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'points' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\Points', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'listing_price' => null,
'shipping' => null,
'points' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'listing_price' => 'ListingPrice',
'shipping' => 'Shipping',
'points' => 'Points', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'listing_price' => 'setListingPrice',
'shipping' => 'setShipping',
'points' => 'setPoints', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'listing_price' => 'getListingPrice',
'shipping' => 'getShipping',
'points' => 'getPoints', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['listing_price'] = isset($data['listing_price']) ? $data['listing_price'] : null;
$this->container['shipping'] = isset($data['shipping']) ? $data['shipping'] : null;
$this->container['points'] = isset($data['points']) ? $data['points'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['listing_price']) {
$invalidProperties[] = "'listing_price' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets listing_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getListingPrice()
{
return $this->container['listing_price'];
}
/**
* Sets listing_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $listing_price listing_price
*
* @return $this
*/
public function setListingPrice($listing_price)
{
$this->container['listing_price'] = $listing_price;
return $this;
}
/**
* Gets shipping.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getShipping()
{
return $this->container['shipping'];
}
/**
* Sets shipping.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $shipping shipping
*
* @return $this
*/
public function setShipping($shipping)
{
$this->container['shipping'] = $shipping;
return $this;
}
/**
* Gets points.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\Points
*/
public function getPoints()
{
return $this->container['points'];
}
/**
* Sets points.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\Points $points points
*
* @return $this
*/
public function setPoints($points)
{
$this->container['points'] = $points;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/FeesEstimateRequest.php | lib/Models/ProductFees/FeesEstimateRequest.php | <?php
/**
* FeesEstimateRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeesEstimateRequest Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeesEstimateRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeesEstimateRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => 'string',
'is_amazon_fulfilled' => 'bool',
'price_to_estimate_fees' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\PriceToEstimateFees',
'identifier' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'is_amazon_fulfilled' => null,
'price_to_estimate_fees' => null,
'identifier' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_id' => 'MarketplaceId',
'is_amazon_fulfilled' => 'IsAmazonFulfilled',
'price_to_estimate_fees' => 'PriceToEstimateFees',
'identifier' => 'Identifier', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'is_amazon_fulfilled' => 'setIsAmazonFulfilled',
'price_to_estimate_fees' => 'setPriceToEstimateFees',
'identifier' => 'setIdentifier', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'is_amazon_fulfilled' => 'getIsAmazonFulfilled',
'price_to_estimate_fees' => 'getPriceToEstimateFees',
'identifier' => 'getIdentifier', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['is_amazon_fulfilled'] = isset($data['is_amazon_fulfilled']) ? $data['is_amazon_fulfilled'] : null;
$this->container['price_to_estimate_fees'] = isset($data['price_to_estimate_fees']) ? $data['price_to_estimate_fees'] : null;
$this->container['identifier'] = isset($data['identifier']) ? $data['identifier'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['marketplace_id']) {
$invalidProperties[] = "'marketplace_id' can't be null";
}
if (null === $this->container['price_to_estimate_fees']) {
$invalidProperties[] = "'price_to_estimate_fees' can't be null";
}
if (null === $this->container['identifier']) {
$invalidProperties[] = "'identifier' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id a marketplace identifier
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets is_amazon_fulfilled.
*
* @return bool
*/
public function getIsAmazonFulfilled()
{
return $this->container['is_amazon_fulfilled'];
}
/**
* Sets is_amazon_fulfilled.
*
* @param bool $is_amazon_fulfilled when true, the offer is fulfilled by Amazon
*
* @return $this
*/
public function setIsAmazonFulfilled($is_amazon_fulfilled)
{
$this->container['is_amazon_fulfilled'] = $is_amazon_fulfilled;
return $this;
}
/**
* Gets price_to_estimate_fees.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\PriceToEstimateFees
*/
public function getPriceToEstimateFees()
{
return $this->container['price_to_estimate_fees'];
}
/**
* Sets price_to_estimate_fees.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\PriceToEstimateFees $price_to_estimate_fees price_to_estimate_fees
*
* @return $this
*/
public function setPriceToEstimateFees($price_to_estimate_fees)
{
$this->container['price_to_estimate_fees'] = $price_to_estimate_fees;
return $this;
}
/**
* Gets identifier.
*
* @return string
*/
public function getIdentifier()
{
return $this->container['identifier'];
}
/**
* Sets identifier.
*
* @param string $identifier the product price on which the fee estimate is based
*
* @return $this
*/
public function setIdentifier($identifier)
{
$this->container['identifier'] = $identifier;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/FeesEstimateResult.php | lib/Models/ProductFees/FeesEstimateResult.php | <?php
/**
* FeesEstimateResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeesEstimateResult Class Doc Comment.
*
* @description An item identifier and the estimated fees for the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeesEstimateResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeesEstimateResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'fees_estimate_identifier' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateIdentifier',
'fees_estimate' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimate',
'error' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateError', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'fees_estimate_identifier' => null,
'fees_estimate' => null,
'error' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'Status',
'fees_estimate_identifier' => 'FeesEstimateIdentifier',
'fees_estimate' => 'FeesEstimate',
'error' => 'Error', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'fees_estimate_identifier' => 'setFeesEstimateIdentifier',
'fees_estimate' => 'setFeesEstimate',
'error' => 'setError', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'fees_estimate_identifier' => 'getFeesEstimateIdentifier',
'fees_estimate' => 'getFeesEstimate',
'error' => 'getError', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['fees_estimate_identifier'] = isset($data['fees_estimate_identifier']) ? $data['fees_estimate_identifier'] : null;
$this->container['fees_estimate'] = isset($data['fees_estimate']) ? $data['fees_estimate'] : null;
$this->container['error'] = isset($data['error']) ? $data['error'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets status.
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status.
*
* @param string $status The status of the fee request. Possible values: Success, ClientError, ServiceError.
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets fees_estimate_identifier.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateIdentifier
*/
public function getFeesEstimateIdentifier()
{
return $this->container['fees_estimate_identifier'];
}
/**
* Sets fees_estimate_identifier.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateIdentifier $fees_estimate_identifier fees_estimate_identifier
*
* @return $this
*/
public function setFeesEstimateIdentifier($fees_estimate_identifier)
{
$this->container['fees_estimate_identifier'] = $fees_estimate_identifier;
return $this;
}
/**
* Gets fees_estimate.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimate
*/
public function getFeesEstimate()
{
return $this->container['fees_estimate'];
}
/**
* Sets fees_estimate.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimate $fees_estimate fees_estimate
*
* @return $this
*/
public function setFeesEstimate($fees_estimate)
{
$this->container['fees_estimate'] = $fees_estimate;
return $this;
}
/**
* Gets error.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateError
*/
public function getError()
{
return $this->container['error'];
}
/**
* Sets error.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateError $error error
*
* @return $this
*/
public function setError($error)
{
$this->container['error'] = $error;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/FeesEstimateError.php | lib/Models/ProductFees/FeesEstimateError.php | <?php
/**
* FeesEstimateError.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeesEstimateError Class Doc Comment.
*
* @description An unexpected error occurred during this operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeesEstimateError implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeesEstimateError';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'type' => 'string',
'code' => 'string',
'message' => 'string',
'detail' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateErrorDetail', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'type' => null,
'code' => null,
'message' => null,
'detail' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'type' => 'Type',
'code' => 'Code',
'message' => 'Message',
'detail' => 'Detail', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'type' => 'setType',
'code' => 'setCode',
'message' => 'setMessage',
'detail' => 'setDetail', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'type' => 'getType',
'code' => 'getCode',
'message' => 'getMessage',
'detail' => 'getDetail', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['detail'] = isset($data['detail']) ? $data['detail'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['type']) {
$invalidProperties[] = "'type' can't be null";
}
if (null === $this->container['code']) {
$invalidProperties[] = "'code' can't be null";
}
if (null === $this->container['message']) {
$invalidProperties[] = "'message' can't be null";
}
if (null === $this->container['detail']) {
$invalidProperties[] = "'detail' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets type.
*
* @return string
*/
public function getType()
{
return $this->container['type'];
}
/**
* Sets type.
*
* @param string $type an error type, identifying either the receiver or the sender as the originator of the error
*
* @return $this
*/
public function setType($type)
{
$this->container['type'] = $type;
return $this;
}
/**
* Gets code.
*
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code.
*
* @param string $code an error code that identifies the type of error that occurred
*
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message.
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message.
*
* @param string $message a message that describes the error condition in a human-readable form
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets detail.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateErrorDetail
*/
public function getDetail()
{
return $this->container['detail'];
}
/**
* Sets detail.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateErrorDetail $detail detail
*
* @return $this
*/
public function setDetail($detail)
{
$this->container['detail'] = $detail;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/Error.php | lib/Models/ProductFees/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Error Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class Error implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Error';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'details' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'details' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'details' => 'details', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'details' => 'setDetails', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'details' => 'getDetails', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['code']) {
$invalidProperties[] = "'code' can't be null";
}
if (null === $this->container['message']) {
$invalidProperties[] = "'message' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets code.
*
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code.
*
* @param string $code an error code that identifies the type of error that occurred
*
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message.
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message.
*
* @param string $message a message that describes the error condition
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets details.
*
* @return string
*/
public function getDetails()
{
return $this->container['details'];
}
/**
* Sets details.
*
* @param string $details additional information that can help the caller understand or fix the issue
*
* @return $this
*/
public function setDetails($details)
{
$this->container['details'] = $details;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/IncludedFeeDetailList.php | lib/Models/ProductFees/IncludedFeeDetailList.php | <?php
/**
* IncludedFeeDetailList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* IncludedFeeDetailList Class Doc Comment.
*
* @description A list of other fees that contribute to a given fee.
*
* @author Stefan Neuhaus / ClouSale
*/
class IncludedFeeDetailList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'IncludedFeeDetailList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return IncludedFeeDetail::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/GetMyFeesEstimateRequest.php | lib/Models/ProductFees/GetMyFeesEstimateRequest.php | <?php
/**
* GetMyFeesEstimateRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetMyFeesEstimateRequest Class Doc Comment.
*
* @description Request schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetMyFeesEstimateRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetMyFeesEstimateRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'fees_estimate_request' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateRequest', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'fees_estimate_request' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'fees_estimate_request' => 'FeesEstimateRequest', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'fees_estimate_request' => 'setFeesEstimateRequest', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'fees_estimate_request' => 'getFeesEstimateRequest', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['fees_estimate_request'] = isset($data['fees_estimate_request']) ? $data['fees_estimate_request'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets fees_estimate_request.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateRequest
*/
public function getFeesEstimateRequest()
{
return $this->container['fees_estimate_request'];
}
/**
* Sets fees_estimate_request.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\FeesEstimateRequest $fees_estimate_request fees_estimate_request
*
* @return $this
*/
public function setFeesEstimateRequest($fees_estimate_request)
{
$this->container['fees_estimate_request'] = $fees_estimate_request;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/FeesEstimateErrorDetail.php | lib/Models/ProductFees/FeesEstimateErrorDetail.php | <?php
/**
* FeesEstimateErrorDetail.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeesEstimateErrorDetail Class Doc Comment.
*
* @description Additional information that can help the caller understand or fix the issue.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeesEstimateErrorDetail implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeesEstimateErrorDetail';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/GetMyFeesEstimateResponse.php | lib/Models/ProductFees/GetMyFeesEstimateResponse.php | <?php
/**
* GetMyFeesEstimateResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetMyFeesEstimateResponse Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetMyFeesEstimateResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetMyFeesEstimateResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/FeeDetailList.php | lib/Models/ProductFees/FeeDetailList.php | <?php
/**
* FeeDetailList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeeDetailList Class Doc Comment.
*
* @description A list of other fees that contribute to a given fee.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeeDetailList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeeDetailList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return FeeDetail::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductFees/IncludedFeeDetail.php | lib/Models/ProductFees/IncludedFeeDetail.php | <?php
/**
* IncludedFeeDetail.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Product Fees.
*
* The Selling Partner API for Product Fees lets you programmatically retrieve estimated fees for a product. You can then account for those fees in your pricing.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductFees;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* IncludedFeeDetail Class Doc Comment.
*
* @description The type of fee, fee amount, and other details.
*
* @author Stefan Neuhaus / ClouSale
*/
class IncludedFeeDetail implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'IncludedFeeDetail';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'fee_type' => 'string',
'fee_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'fee_promotion' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'tax_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType',
'final_fee' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'fee_type' => null,
'fee_amount' => null,
'fee_promotion' => null,
'tax_amount' => null,
'final_fee' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'fee_type' => 'FeeType',
'fee_amount' => 'FeeAmount',
'fee_promotion' => 'FeePromotion',
'tax_amount' => 'TaxAmount',
'final_fee' => 'FinalFee', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'fee_type' => 'setFeeType',
'fee_amount' => 'setFeeAmount',
'fee_promotion' => 'setFeePromotion',
'tax_amount' => 'setTaxAmount',
'final_fee' => 'setFinalFee', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'fee_type' => 'getFeeType',
'fee_amount' => 'getFeeAmount',
'fee_promotion' => 'getFeePromotion',
'tax_amount' => 'getTaxAmount',
'final_fee' => 'getFinalFee', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['fee_type'] = isset($data['fee_type']) ? $data['fee_type'] : null;
$this->container['fee_amount'] = isset($data['fee_amount']) ? $data['fee_amount'] : null;
$this->container['fee_promotion'] = isset($data['fee_promotion']) ? $data['fee_promotion'] : null;
$this->container['tax_amount'] = isset($data['tax_amount']) ? $data['tax_amount'] : null;
$this->container['final_fee'] = isset($data['final_fee']) ? $data['final_fee'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['fee_type']) {
$invalidProperties[] = "'fee_type' can't be null";
}
if (null === $this->container['fee_amount']) {
$invalidProperties[] = "'fee_amount' can't be null";
}
if (null === $this->container['final_fee']) {
$invalidProperties[] = "'final_fee' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets fee_type.
*
* @return string
*/
public function getFeeType()
{
return $this->container['fee_type'];
}
/**
* Sets fee_type.
*
* @param string $fee_type the type of fee charged to a seller
*
* @return $this
*/
public function setFeeType($fee_type)
{
$this->container['fee_type'] = $fee_type;
return $this;
}
/**
* Gets fee_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getFeeAmount()
{
return $this->container['fee_amount'];
}
/**
* Sets fee_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $fee_amount fee_amount
*
* @return $this
*/
public function setFeeAmount($fee_amount)
{
$this->container['fee_amount'] = $fee_amount;
return $this;
}
/**
* Gets fee_promotion.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getFeePromotion()
{
return $this->container['fee_promotion'];
}
/**
* Sets fee_promotion.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $fee_promotion fee_promotion
*
* @return $this
*/
public function setFeePromotion($fee_promotion)
{
$this->container['fee_promotion'] = $fee_promotion;
return $this;
}
/**
* Gets tax_amount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getTaxAmount()
{
return $this->container['tax_amount'];
}
/**
* Sets tax_amount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $tax_amount tax_amount
*
* @return $this
*/
public function setTaxAmount($tax_amount)
{
$this->container['tax_amount'] = $tax_amount;
return $this;
}
/**
* Gets final_fee.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType
*/
public function getFinalFee()
{
return $this->container['final_fee'];
}
/**
* Sets final_fee.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\MoneyType $final_fee final_fee
*
* @return $this
*/
public function setFinalFee($final_fee)
{
$this->container['final_fee'] = $final_fee;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/Order.php | lib/Models/Orders/Order.php | <?php
/**
* Order.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Order Class Doc Comment.
*
* @description Order information.
*
* @author Stefan Neuhaus / ClouSale
*/
class Order implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Order';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'amazon_order_id' => 'string',
'seller_order_id' => 'string',
'purchase_date' => 'string',
'last_update_date' => 'string',
'order_status' => 'string',
'fulfillment_channel' => 'string',
'sales_channel' => 'string',
'order_channel' => 'string',
'ship_service_level' => 'string',
'order_total' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'number_of_items_shipped' => 'int',
'number_of_items_unshipped' => 'int',
'payment_execution_detail' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\PaymentExecutionDetailItemList',
'payment_method' => 'string',
'payment_method_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\PaymentMethodDetailItemList',
'marketplace_id' => 'string',
'shipment_service_level_category' => 'string',
'easy_ship_shipment_status' => 'string',
'cba_displayable_shipping_label' => 'string',
'order_type' => 'string',
'earliest_ship_date' => 'string',
'latest_ship_date' => 'string',
'earliest_delivery_date' => 'string',
'latest_delivery_date' => 'string',
'is_business_order' => 'bool',
'is_prime' => 'bool',
'is_premium_order' => 'bool',
'is_global_express_enabled' => 'bool',
'replaced_order_id' => 'string',
'is_replacement_order' => 'bool',
'promise_response_due_date' => 'string',
'is_estimated_ship_date_set' => 'bool',
'is_sold_by_ab' => 'bool',
'assigned_ship_from_location_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Address',
'fulfillment_instruction' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\FulfillmentInstruction', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'amazon_order_id' => null,
'seller_order_id' => null,
'purchase_date' => null,
'last_update_date' => null,
'order_status' => null,
'fulfillment_channel' => null,
'sales_channel' => null,
'order_channel' => null,
'ship_service_level' => null,
'order_total' => null,
'number_of_items_shipped' => null,
'number_of_items_unshipped' => null,
'payment_execution_detail' => null,
'payment_method' => null,
'payment_method_details' => null,
'marketplace_id' => null,
'shipment_service_level_category' => null,
'easy_ship_shipment_status' => null,
'cba_displayable_shipping_label' => null,
'order_type' => null,
'earliest_ship_date' => null,
'latest_ship_date' => null,
'earliest_delivery_date' => null,
'latest_delivery_date' => null,
'is_business_order' => null,
'is_prime' => null,
'is_premium_order' => null,
'is_global_express_enabled' => null,
'replaced_order_id' => null,
'is_replacement_order' => null,
'promise_response_due_date' => null,
'is_estimated_ship_date_set' => null,
'is_sold_by_ab' => null,
'assigned_ship_from_location_address' => null,
'fulfillment_instruction' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'amazon_order_id' => 'AmazonOrderId',
'seller_order_id' => 'SellerOrderId',
'purchase_date' => 'PurchaseDate',
'last_update_date' => 'LastUpdateDate',
'order_status' => 'OrderStatus',
'fulfillment_channel' => 'FulfillmentChannel',
'sales_channel' => 'SalesChannel',
'order_channel' => 'OrderChannel',
'ship_service_level' => 'ShipServiceLevel',
'order_total' => 'OrderTotal',
'number_of_items_shipped' => 'NumberOfItemsShipped',
'number_of_items_unshipped' => 'NumberOfItemsUnshipped',
'payment_execution_detail' => 'PaymentExecutionDetail',
'payment_method' => 'PaymentMethod',
'payment_method_details' => 'PaymentMethodDetails',
'marketplace_id' => 'MarketplaceId',
'shipment_service_level_category' => 'ShipmentServiceLevelCategory',
'easy_ship_shipment_status' => 'EasyShipShipmentStatus',
'cba_displayable_shipping_label' => 'CbaDisplayableShippingLabel',
'order_type' => 'OrderType',
'earliest_ship_date' => 'EarliestShipDate',
'latest_ship_date' => 'LatestShipDate',
'earliest_delivery_date' => 'EarliestDeliveryDate',
'latest_delivery_date' => 'LatestDeliveryDate',
'is_business_order' => 'IsBusinessOrder',
'is_prime' => 'IsPrime',
'is_premium_order' => 'IsPremiumOrder',
'is_global_express_enabled' => 'IsGlobalExpressEnabled',
'replaced_order_id' => 'ReplacedOrderId',
'is_replacement_order' => 'IsReplacementOrder',
'promise_response_due_date' => 'PromiseResponseDueDate',
'is_estimated_ship_date_set' => 'IsEstimatedShipDateSet',
'is_sold_by_ab' => 'IsSoldByAB',
'assigned_ship_from_location_address' => 'AssignedShipFromLocationAddress',
'fulfillment_instruction' => 'FulfillmentInstruction', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'amazon_order_id' => 'setAmazonOrderId',
'seller_order_id' => 'setSellerOrderId',
'purchase_date' => 'setPurchaseDate',
'last_update_date' => 'setLastUpdateDate',
'order_status' => 'setOrderStatus',
'fulfillment_channel' => 'setFulfillmentChannel',
'sales_channel' => 'setSalesChannel',
'order_channel' => 'setOrderChannel',
'ship_service_level' => 'setShipServiceLevel',
'order_total' => 'setOrderTotal',
'number_of_items_shipped' => 'setNumberOfItemsShipped',
'number_of_items_unshipped' => 'setNumberOfItemsUnshipped',
'payment_execution_detail' => 'setPaymentExecutionDetail',
'payment_method' => 'setPaymentMethod',
'payment_method_details' => 'setPaymentMethodDetails',
'marketplace_id' => 'setMarketplaceId',
'shipment_service_level_category' => 'setShipmentServiceLevelCategory',
'easy_ship_shipment_status' => 'setEasyShipShipmentStatus',
'cba_displayable_shipping_label' => 'setCbaDisplayableShippingLabel',
'order_type' => 'setOrderType',
'earliest_ship_date' => 'setEarliestShipDate',
'latest_ship_date' => 'setLatestShipDate',
'earliest_delivery_date' => 'setEarliestDeliveryDate',
'latest_delivery_date' => 'setLatestDeliveryDate',
'is_business_order' => 'setIsBusinessOrder',
'is_prime' => 'setIsPrime',
'is_premium_order' => 'setIsPremiumOrder',
'is_global_express_enabled' => 'setIsGlobalExpressEnabled',
'replaced_order_id' => 'setReplacedOrderId',
'is_replacement_order' => 'setIsReplacementOrder',
'promise_response_due_date' => 'setPromiseResponseDueDate',
'is_estimated_ship_date_set' => 'setIsEstimatedShipDateSet',
'is_sold_by_ab' => 'setIsSoldByAb',
'assigned_ship_from_location_address' => 'setAssignedShipFromLocationAddress',
'fulfillment_instruction' => 'setFulfillmentInstruction', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'amazon_order_id' => 'getAmazonOrderId',
'seller_order_id' => 'getSellerOrderId',
'purchase_date' => 'getPurchaseDate',
'last_update_date' => 'getLastUpdateDate',
'order_status' => 'getOrderStatus',
'fulfillment_channel' => 'getFulfillmentChannel',
'sales_channel' => 'getSalesChannel',
'order_channel' => 'getOrderChannel',
'ship_service_level' => 'getShipServiceLevel',
'order_total' => 'getOrderTotal',
'number_of_items_shipped' => 'getNumberOfItemsShipped',
'number_of_items_unshipped' => 'getNumberOfItemsUnshipped',
'payment_execution_detail' => 'getPaymentExecutionDetail',
'payment_method' => 'getPaymentMethod',
'payment_method_details' => 'getPaymentMethodDetails',
'marketplace_id' => 'getMarketplaceId',
'shipment_service_level_category' => 'getShipmentServiceLevelCategory',
'easy_ship_shipment_status' => 'getEasyShipShipmentStatus',
'cba_displayable_shipping_label' => 'getCbaDisplayableShippingLabel',
'order_type' => 'getOrderType',
'earliest_ship_date' => 'getEarliestShipDate',
'latest_ship_date' => 'getLatestShipDate',
'earliest_delivery_date' => 'getEarliestDeliveryDate',
'latest_delivery_date' => 'getLatestDeliveryDate',
'is_business_order' => 'getIsBusinessOrder',
'is_prime' => 'getIsPrime',
'is_premium_order' => 'getIsPremiumOrder',
'is_global_express_enabled' => 'getIsGlobalExpressEnabled',
'replaced_order_id' => 'getReplacedOrderId',
'is_replacement_order' => 'getIsReplacementOrder',
'promise_response_due_date' => 'getPromiseResponseDueDate',
'is_estimated_ship_date_set' => 'getIsEstimatedShipDateSet',
'is_sold_by_ab' => 'getIsSoldByAb',
'assigned_ship_from_location_address' => 'getAssignedShipFromLocationAddress',
'fulfillment_instruction' => 'getFulfillmentInstruction', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
const ORDER_STATUS_PENDING = 'Pending';
const ORDER_STATUS_UNSHIPPED = 'Unshipped';
const ORDER_STATUS_PARTIALLY_SHIPPED = 'PartiallyShipped';
const ORDER_STATUS_SHIPPED = 'Shipped';
const ORDER_STATUS_CANCELED = 'Canceled';
const ORDER_STATUS_UNFULFILLABLE = 'Unfulfillable';
const ORDER_STATUS_INVOICE_UNCONFIRMED = 'InvoiceUnconfirmed';
const ORDER_STATUS_PENDING_AVAILABILITY = 'PendingAvailability';
const FULFILLMENT_CHANNEL_MFN = 'MFN';
const FULFILLMENT_CHANNEL_AFN = 'AFN';
const PAYMENT_METHOD_COD = 'COD';
const PAYMENT_METHOD_CVS = 'CVS';
const PAYMENT_METHOD_OTHER = 'Other';
const ORDER_TYPE_STANDARD_ORDER = 'StandardOrder';
const ORDER_TYPE_LONG_LEAD_TIME_ORDER = 'LongLeadTimeOrder';
const ORDER_TYPE_PREORDER = 'Preorder';
const ORDER_TYPE_BACK_ORDER = 'BackOrder';
const ORDER_TYPE_SOURCING_ON_DEMAND_ORDER = 'SourcingOnDemandOrder';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getOrderStatusAllowableValues()
{
return [
self::ORDER_STATUS_PENDING,
self::ORDER_STATUS_UNSHIPPED,
self::ORDER_STATUS_PARTIALLY_SHIPPED,
self::ORDER_STATUS_SHIPPED,
self::ORDER_STATUS_CANCELED,
self::ORDER_STATUS_UNFULFILLABLE,
self::ORDER_STATUS_INVOICE_UNCONFIRMED,
self::ORDER_STATUS_PENDING_AVAILABILITY, ];
}
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getFulfillmentChannelAllowableValues()
{
return [
self::FULFILLMENT_CHANNEL_MFN,
self::FULFILLMENT_CHANNEL_AFN, ];
}
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getPaymentMethodAllowableValues()
{
return [
self::PAYMENT_METHOD_COD,
self::PAYMENT_METHOD_CVS,
self::PAYMENT_METHOD_OTHER, ];
}
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getOrderTypeAllowableValues()
{
return [
self::ORDER_TYPE_STANDARD_ORDER,
self::ORDER_TYPE_LONG_LEAD_TIME_ORDER,
self::ORDER_TYPE_PREORDER,
self::ORDER_TYPE_BACK_ORDER,
self::ORDER_TYPE_SOURCING_ON_DEMAND_ORDER, ];
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null;
$this->container['seller_order_id'] = isset($data['seller_order_id']) ? $data['seller_order_id'] : null;
$this->container['purchase_date'] = isset($data['purchase_date']) ? $data['purchase_date'] : null;
$this->container['last_update_date'] = isset($data['last_update_date']) ? $data['last_update_date'] : null;
$this->container['order_status'] = isset($data['order_status']) ? $data['order_status'] : null;
$this->container['fulfillment_channel'] = isset($data['fulfillment_channel']) ? $data['fulfillment_channel'] : null;
$this->container['sales_channel'] = isset($data['sales_channel']) ? $data['sales_channel'] : null;
$this->container['order_channel'] = isset($data['order_channel']) ? $data['order_channel'] : null;
$this->container['ship_service_level'] = isset($data['ship_service_level']) ? $data['ship_service_level'] : null;
$this->container['order_total'] = isset($data['order_total']) ? $data['order_total'] : null;
$this->container['number_of_items_shipped'] = isset($data['number_of_items_shipped']) ? $data['number_of_items_shipped'] : null;
$this->container['number_of_items_unshipped'] = isset($data['number_of_items_unshipped']) ? $data['number_of_items_unshipped'] : null;
$this->container['payment_execution_detail'] = isset($data['payment_execution_detail']) ? $data['payment_execution_detail'] : null;
$this->container['payment_method'] = isset($data['payment_method']) ? $data['payment_method'] : null;
$this->container['payment_method_details'] = isset($data['payment_method_details']) ? $data['payment_method_details'] : null;
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['shipment_service_level_category'] = isset($data['shipment_service_level_category']) ? $data['shipment_service_level_category'] : null;
$this->container['easy_ship_shipment_status'] = isset($data['easy_ship_shipment_status']) ? $data['easy_ship_shipment_status'] : null;
$this->container['cba_displayable_shipping_label'] = isset($data['cba_displayable_shipping_label']) ? $data['cba_displayable_shipping_label'] : null;
$this->container['order_type'] = isset($data['order_type']) ? $data['order_type'] : null;
$this->container['earliest_ship_date'] = isset($data['earliest_ship_date']) ? $data['earliest_ship_date'] : null;
$this->container['latest_ship_date'] = isset($data['latest_ship_date']) ? $data['latest_ship_date'] : null;
$this->container['earliest_delivery_date'] = isset($data['earliest_delivery_date']) ? $data['earliest_delivery_date'] : null;
$this->container['latest_delivery_date'] = isset($data['latest_delivery_date']) ? $data['latest_delivery_date'] : null;
$this->container['is_business_order'] = isset($data['is_business_order']) ? $data['is_business_order'] : null;
$this->container['is_prime'] = isset($data['is_prime']) ? $data['is_prime'] : null;
$this->container['is_premium_order'] = isset($data['is_premium_order']) ? $data['is_premium_order'] : null;
$this->container['is_global_express_enabled'] = isset($data['is_global_express_enabled']) ? $data['is_global_express_enabled'] : null;
$this->container['replaced_order_id'] = isset($data['replaced_order_id']) ? $data['replaced_order_id'] : null;
$this->container['is_replacement_order'] = isset($data['is_replacement_order']) ? $data['is_replacement_order'] : null;
$this->container['promise_response_due_date'] = isset($data['promise_response_due_date']) ? $data['promise_response_due_date'] : null;
$this->container['is_estimated_ship_date_set'] = isset($data['is_estimated_ship_date_set']) ? $data['is_estimated_ship_date_set'] : null;
$this->container['is_sold_by_ab'] = isset($data['is_sold_by_ab']) ? $data['is_sold_by_ab'] : null;
$this->container['assigned_ship_from_location_address'] = isset($data['assigned_ship_from_location_address']) ? $data['assigned_ship_from_location_address'] : null;
$this->container['fulfillment_instruction'] = isset($data['fulfillment_instruction']) ? $data['fulfillment_instruction'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['amazon_order_id']) {
$invalidProperties[] = "'amazon_order_id' can't be null";
}
if (null === $this->container['purchase_date']) {
$invalidProperties[] = "'purchase_date' can't be null";
}
if (null === $this->container['last_update_date']) {
$invalidProperties[] = "'last_update_date' can't be null";
}
if (null === $this->container['order_status']) {
$invalidProperties[] = "'order_status' can't be null";
}
$allowedValues = $this->getOrderStatusAllowableValues();
if (!is_null($this->container['order_status']) && !in_array($this->container['order_status'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'order_status', must be one of '%s'",
implode("', '", $allowedValues)
);
}
$allowedValues = $this->getFulfillmentChannelAllowableValues();
if (!is_null($this->container['fulfillment_channel']) && !in_array($this->container['fulfillment_channel'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'fulfillment_channel', must be one of '%s'",
implode("', '", $allowedValues)
);
}
$allowedValues = $this->getPaymentMethodAllowableValues();
if (!is_null($this->container['payment_method']) && !in_array($this->container['payment_method'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'payment_method', must be one of '%s'",
implode("', '", $allowedValues)
);
}
$allowedValues = $this->getOrderTypeAllowableValues();
if (!is_null($this->container['order_type']) && !in_array($this->container['order_type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'order_type', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets amazon_order_id.
*
* @return string
*/
public function getAmazonOrderId()
{
return $this->container['amazon_order_id'];
}
/**
* Sets amazon_order_id.
*
* @param string $amazon_order_id an Amazon-defined order identifier, in 3-7-7 format
*
* @return $this
*/
public function setAmazonOrderId($amazon_order_id)
{
$this->container['amazon_order_id'] = $amazon_order_id;
return $this;
}
/**
* Gets seller_order_id.
*
* @return string
*/
public function getSellerOrderId()
{
return $this->container['seller_order_id'];
}
/**
* Sets seller_order_id.
*
* @param string $seller_order_id a seller-defined order identifier
*
* @return $this
*/
public function setSellerOrderId($seller_order_id)
{
$this->container['seller_order_id'] = $seller_order_id;
return $this;
}
/**
* Gets purchase_date.
*
* @return string
*/
public function getPurchaseDate()
{
return $this->container['purchase_date'];
}
/**
* Sets purchase_date.
*
* @param string $purchase_date the date when the order was created
*
* @return $this
*/
public function setPurchaseDate($purchase_date)
{
$this->container['purchase_date'] = $purchase_date;
return $this;
}
/**
* Gets last_update_date.
*
* @return string
*/
public function getLastUpdateDate()
{
return $this->container['last_update_date'];
}
/**
* Sets last_update_date.
*
* @param string $last_update_date The date when the order was last updated. Note: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01.
*
* @return $this
*/
public function setLastUpdateDate($last_update_date)
{
$this->container['last_update_date'] = $last_update_date;
return $this;
}
/**
* Gets order_status.
*
* @return string
*/
public function getOrderStatus()
{
return $this->container['order_status'];
}
/**
* Sets order_status.
*
* @param string $order_status the current order status
*
* @return $this
*/
public function setOrderStatus($order_status)
{
$allowedValues = $this->getOrderStatusAllowableValues();
if (!in_array($order_status, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'order_status', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['order_status'] = $order_status;
return $this;
}
/**
* Gets fulfillment_channel.
*
* @return string
*/
public function getFulfillmentChannel()
{
return $this->container['fulfillment_channel'];
}
/**
* Sets fulfillment_channel.
*
* @param string $fulfillment_channel whether the order was fulfilled by Amazon (AFN) or by the seller (MFN)
*
* @return $this
*/
public function setFulfillmentChannel($fulfillment_channel)
{
$allowedValues = $this->getFulfillmentChannelAllowableValues();
if (!is_null($fulfillment_channel) && !in_array($fulfillment_channel, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'fulfillment_channel', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['fulfillment_channel'] = $fulfillment_channel;
return $this;
}
/**
* Gets sales_channel.
*
* @return string
*/
public function getSalesChannel()
{
return $this->container['sales_channel'];
}
/**
* Sets sales_channel.
*
* @param string $sales_channel the sales channel of the first item in the order
*
* @return $this
*/
public function setSalesChannel($sales_channel)
{
$this->container['sales_channel'] = $sales_channel;
return $this;
}
/**
* Gets order_channel.
*
* @return string
*/
public function getOrderChannel()
{
return $this->container['order_channel'];
}
/**
* Sets order_channel.
*
* @param string $order_channel the order channel of the first item in the order
*
* @return $this
*/
public function setOrderChannel($order_channel)
{
$this->container['order_channel'] = $order_channel;
return $this;
}
/**
* Gets ship_service_level.
*
* @return string
*/
public function getShipServiceLevel()
{
return $this->container['ship_service_level'];
}
/**
* Sets ship_service_level.
*
* @param string $ship_service_level the shipment service level of the order
*
* @return $this
*/
public function setShipServiceLevel($ship_service_level)
{
$this->container['ship_service_level'] = $ship_service_level;
return $this;
}
/**
* Gets order_total.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getOrderTotal()
{
return $this->container['order_total'];
}
/**
* Sets order_total.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $order_total order_total
*
* @return $this
*/
public function setOrderTotal($order_total)
{
$this->container['order_total'] = $order_total;
return $this;
}
/**
* Gets number_of_items_shipped.
*
* @return int
*/
public function getNumberOfItemsShipped()
{
return $this->container['number_of_items_shipped'];
}
/**
* Sets number_of_items_shipped.
*
* @param int $number_of_items_shipped the number of items shipped
*
* @return $this
*/
public function setNumberOfItemsShipped($number_of_items_shipped)
{
$this->container['number_of_items_shipped'] = $number_of_items_shipped;
return $this;
}
/**
* Gets number_of_items_unshipped.
*
* @return int
*/
public function getNumberOfItemsUnshipped()
{
return $this->container['number_of_items_unshipped'];
}
/**
* Sets number_of_items_unshipped.
*
* @param int $number_of_items_unshipped the number of items unshipped
*
* @return $this
*/
public function setNumberOfItemsUnshipped($number_of_items_unshipped)
{
$this->container['number_of_items_unshipped'] = $number_of_items_unshipped;
return $this;
}
/**
* Gets payment_execution_detail.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\PaymentExecutionDetailItemList
*/
public function getPaymentExecutionDetail()
{
return $this->container['payment_execution_detail'];
}
/**
* Sets payment_execution_detail.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\PaymentExecutionDetailItemList $payment_execution_detail payment_execution_detail
*
* @return $this
*/
public function setPaymentExecutionDetail($payment_execution_detail)
{
$this->container['payment_execution_detail'] = $payment_execution_detail;
return $this;
}
/**
* Gets payment_method.
*
* @return string
*/
public function getPaymentMethod()
{
return $this->container['payment_method'];
}
/**
* Sets payment_method.
*
* @param string $payment_method The payment method for the order. This property is limited to Cash On Delivery (COD) and Convenience Store (CVS) payment methods. Unless you need the specific COD payment information provided by the PaymentExecutionDetailItem object, we recommend using the PaymentMethodDetails property to get payment method information.
*
* @return $this
*/
public function setPaymentMethod($payment_method)
{
$allowedValues = $this->getPaymentMethodAllowableValues();
if (!is_null($payment_method) && !in_array($payment_method, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'payment_method', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['payment_method'] = $payment_method;
return $this;
}
/**
* Gets payment_method_details.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\PaymentMethodDetailItemList
*/
public function getPaymentMethodDetails()
{
return $this->container['payment_method_details'];
}
/**
* Sets payment_method_details.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\PaymentMethodDetailItemList $payment_method_details payment_method_details
*
* @return $this
*/
public function setPaymentMethodDetails($payment_method_details)
{
$this->container['payment_method_details'] = $payment_method_details;
return $this;
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id the identifier for the marketplace where the order was placed
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets shipment_service_level_category.
*
* @return string
*/
public function getShipmentServiceLevelCategory()
{
return $this->container['shipment_service_level_category'];
}
/**
* Sets shipment_service_level_category.
*
* @param string $shipment_service_level_category The shipment service level category of the order. Possible values: Expedited, FreeEconomy, NextDay, SameDay, SecondDay, Scheduled, Standard.
*
* @return $this
*/
public function setShipmentServiceLevelCategory($shipment_service_level_category)
{
$this->container['shipment_service_level_category'] = $shipment_service_level_category;
return $this;
}
/**
* Gets easy_ship_shipment_status.
*
* @return string
*/
public function getEasyShipShipmentStatus()
{
return $this->container['easy_ship_shipment_status'];
}
/**
* Sets easy_ship_shipment_status.
*
* @param string $easy_ship_shipment_status The status of the Amazon Easy Ship order. This property is included only for Amazon Easy Ship orders. Possible values: PendingPickUp, LabelCanceled, PickedUp, OutForDelivery, Damaged, Delivered, RejectedByBuyer, Undeliverable, ReturnedToSeller, ReturningToSeller.
*
* @return $this
*/
public function setEasyShipShipmentStatus($easy_ship_shipment_status)
{
$this->container['easy_ship_shipment_status'] = $easy_ship_shipment_status;
return $this;
}
/**
* Gets cba_displayable_shipping_label.
*
* @return string
*/
public function getCbaDisplayableShippingLabel()
{
return $this->container['cba_displayable_shipping_label'];
}
/**
* Sets cba_displayable_shipping_label.
*
* @param string $cba_displayable_shipping_label custom ship label for Checkout by Amazon (CBA)
*
* @return $this
*/
public function setCbaDisplayableShippingLabel($cba_displayable_shipping_label)
{
$this->container['cba_displayable_shipping_label'] = $cba_displayable_shipping_label;
return $this;
}
/**
* Gets order_type.
*
* @return string
*/
public function getOrderType()
{
return $this->container['order_type'];
}
/**
* Sets order_type.
*
* @param string $order_type the type of the order
*
* @return $this
*/
public function setOrderType($order_type)
{
$allowedValues = $this->getOrderTypeAllowableValues();
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | true |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/ProductInfoDetail.php | lib/Models/Orders/ProductInfoDetail.php | <?php
/**
* ProductInfoDetail.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ProductInfoDetail Class Doc Comment.
*
* @description Product information on the number of items.
*
* @author Stefan Neuhaus / ClouSale
*/
class ProductInfoDetail implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ProductInfoDetail';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'number_of_items' => 'int', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'number_of_items' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'number_of_items' => 'NumberOfItems', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'number_of_items' => 'setNumberOfItems', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'number_of_items' => 'getNumberOfItems', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['number_of_items'] = isset($data['number_of_items']) ? $data['number_of_items'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets number_of_items.
*
* @return int
*/
public function getNumberOfItems()
{
return $this->container['number_of_items'];
}
/**
* Sets number_of_items.
*
* @param int $number_of_items the total number of items that are included in the ASIN
*
* @return $this
*/
public function setNumberOfItems($number_of_items)
{
$this->container['number_of_items'] = $number_of_items;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/OrderItem.php | lib/Models/Orders/OrderItem.php | <?php
/**
* OrderItem.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OrderItem Class Doc Comment.
*
* @description A single order item.
*
* @author Stefan Neuhaus / ClouSale
*/
class OrderItem implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OrderItem';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'asin' => 'string',
'seller_sku' => 'string',
'order_item_id' => 'string',
'title' => 'string',
'quantity_ordered' => 'int',
'quantity_shipped' => 'int',
'product_info' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\ProductInfoDetail',
'points_granted' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\PointsGrantedDetail',
'item_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'shipping_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'item_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'shipping_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'shipping_discount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'shipping_discount_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'promotion_discount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'promotion_discount_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'promotion_ids' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\PromotionIdList',
'cod_fee' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'cod_fee_discount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'is_gift' => 'bool',
'condition_note' => 'string',
'condition_id' => 'string',
'condition_subtype_id' => 'string',
'scheduled_delivery_start_date' => 'string',
'scheduled_delivery_end_date' => 'string',
'price_designation' => 'string',
'tax_collection' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\TaxCollection',
'serial_number_required' => 'bool',
'is_transparency' => 'bool',
'ioss_number' => 'string',
'deemed_reseller_category' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'asin' => null,
'seller_sku' => null,
'order_item_id' => null,
'title' => null,
'quantity_ordered' => null,
'quantity_shipped' => null,
'product_info' => null,
'points_granted' => null,
'item_price' => null,
'shipping_price' => null,
'item_tax' => null,
'shipping_tax' => null,
'shipping_discount' => null,
'shipping_discount_tax' => null,
'promotion_discount' => null,
'promotion_discount_tax' => null,
'promotion_ids' => null,
'cod_fee' => null,
'cod_fee_discount' => null,
'is_gift' => null,
'condition_note' => null,
'condition_id' => null,
'condition_subtype_id' => null,
'scheduled_delivery_start_date' => null,
'scheduled_delivery_end_date' => null,
'price_designation' => null,
'tax_collection' => null,
'serial_number_required' => null,
'is_transparency' => null,
'ioss_number' => null,
'deemed_reseller_category' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'asin' => 'ASIN',
'seller_sku' => 'SellerSKU',
'order_item_id' => 'OrderItemId',
'title' => 'Title',
'quantity_ordered' => 'QuantityOrdered',
'quantity_shipped' => 'QuantityShipped',
'product_info' => 'ProductInfo',
'points_granted' => 'PointsGranted',
'item_price' => 'ItemPrice',
'shipping_price' => 'ShippingPrice',
'item_tax' => 'ItemTax',
'shipping_tax' => 'ShippingTax',
'shipping_discount' => 'ShippingDiscount',
'shipping_discount_tax' => 'ShippingDiscountTax',
'promotion_discount' => 'PromotionDiscount',
'promotion_discount_tax' => 'PromotionDiscountTax',
'promotion_ids' => 'PromotionIds',
'cod_fee' => 'CODFee',
'cod_fee_discount' => 'CODFeeDiscount',
'is_gift' => 'IsGift',
'condition_note' => 'ConditionNote',
'condition_id' => 'ConditionId',
'condition_subtype_id' => 'ConditionSubtypeId',
'scheduled_delivery_start_date' => 'ScheduledDeliveryStartDate',
'scheduled_delivery_end_date' => 'ScheduledDeliveryEndDate',
'price_designation' => 'PriceDesignation',
'tax_collection' => 'TaxCollection',
'serial_number_required' => 'SerialNumberRequired',
'is_transparency' => 'IsTransparency',
'ioss_number' => 'IossNumber',
'deemed_reseller_category' => 'DeemedResellerCategory', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'asin' => 'setAsin',
'seller_sku' => 'setSellerSku',
'order_item_id' => 'setOrderItemId',
'title' => 'setTitle',
'quantity_ordered' => 'setQuantityOrdered',
'quantity_shipped' => 'setQuantityShipped',
'product_info' => 'setProductInfo',
'points_granted' => 'setPointsGranted',
'item_price' => 'setItemPrice',
'shipping_price' => 'setShippingPrice',
'item_tax' => 'setItemTax',
'shipping_tax' => 'setShippingTax',
'shipping_discount' => 'setShippingDiscount',
'shipping_discount_tax' => 'setShippingDiscountTax',
'promotion_discount' => 'setPromotionDiscount',
'promotion_discount_tax' => 'setPromotionDiscountTax',
'promotion_ids' => 'setPromotionIds',
'cod_fee' => 'setCodFee',
'cod_fee_discount' => 'setCodFeeDiscount',
'is_gift' => 'setIsGift',
'condition_note' => 'setConditionNote',
'condition_id' => 'setConditionId',
'condition_subtype_id' => 'setConditionSubtypeId',
'scheduled_delivery_start_date' => 'setScheduledDeliveryStartDate',
'scheduled_delivery_end_date' => 'setScheduledDeliveryEndDate',
'price_designation' => 'setPriceDesignation',
'tax_collection' => 'setTaxCollection',
'serial_number_required' => 'setSerialNumberRequired',
'is_transparency' => 'setIsTransparency',
'ioss_number' => 'setIossNumber',
'deemed_reseller_category' => 'setDeemedResellerCategory', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'asin' => 'getAsin',
'seller_sku' => 'getSellerSku',
'order_item_id' => 'getOrderItemId',
'title' => 'getTitle',
'quantity_ordered' => 'getQuantityOrdered',
'quantity_shipped' => 'getQuantityShipped',
'product_info' => 'getProductInfo',
'points_granted' => 'getPointsGranted',
'item_price' => 'getItemPrice',
'shipping_price' => 'getShippingPrice',
'item_tax' => 'getItemTax',
'shipping_tax' => 'getShippingTax',
'shipping_discount' => 'getShippingDiscount',
'shipping_discount_tax' => 'getShippingDiscountTax',
'promotion_discount' => 'getPromotionDiscount',
'promotion_discount_tax' => 'getPromotionDiscountTax',
'promotion_ids' => 'getPromotionIds',
'cod_fee' => 'getCodFee',
'cod_fee_discount' => 'getCodFeeDiscount',
'is_gift' => 'getIsGift',
'condition_note' => 'getConditionNote',
'condition_id' => 'getConditionId',
'condition_subtype_id' => 'getConditionSubtypeId',
'scheduled_delivery_start_date' => 'getScheduledDeliveryStartDate',
'scheduled_delivery_end_date' => 'getScheduledDeliveryEndDate',
'price_designation' => 'getPriceDesignation',
'tax_collection' => 'getTaxCollection',
'serial_number_required' => 'getSerialNumberRequired',
'is_transparency' => 'getIsTransparency',
'ioss_number' => 'getIossNumber',
'deemed_reseller_category' => 'getDeemedResellerCategory', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
const DEEMED_RESELLER_CATEGORY_IOSS = 'IOSS';
const DEEMED_RESELLER_CATEGORY_UOSS = 'UOSS';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getDeemedResellerCategoryAllowableValues()
{
return [
self::DEEMED_RESELLER_CATEGORY_IOSS,
self::DEEMED_RESELLER_CATEGORY_UOSS, ];
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['order_item_id'] = isset($data['order_item_id']) ? $data['order_item_id'] : null;
$this->container['title'] = isset($data['title']) ? $data['title'] : null;
$this->container['quantity_ordered'] = isset($data['quantity_ordered']) ? $data['quantity_ordered'] : null;
$this->container['quantity_shipped'] = isset($data['quantity_shipped']) ? $data['quantity_shipped'] : null;
$this->container['product_info'] = isset($data['product_info']) ? $data['product_info'] : null;
$this->container['points_granted'] = isset($data['points_granted']) ? $data['points_granted'] : null;
$this->container['item_price'] = isset($data['item_price']) ? $data['item_price'] : null;
$this->container['shipping_price'] = isset($data['shipping_price']) ? $data['shipping_price'] : null;
$this->container['item_tax'] = isset($data['item_tax']) ? $data['item_tax'] : null;
$this->container['shipping_tax'] = isset($data['shipping_tax']) ? $data['shipping_tax'] : null;
$this->container['shipping_discount'] = isset($data['shipping_discount']) ? $data['shipping_discount'] : null;
$this->container['shipping_discount_tax'] = isset($data['shipping_discount_tax']) ? $data['shipping_discount_tax'] : null;
$this->container['promotion_discount'] = isset($data['promotion_discount']) ? $data['promotion_discount'] : null;
$this->container['promotion_discount_tax'] = isset($data['promotion_discount_tax']) ? $data['promotion_discount_tax'] : null;
$this->container['promotion_ids'] = isset($data['promotion_ids']) ? $data['promotion_ids'] : null;
$this->container['cod_fee'] = isset($data['cod_fee']) ? $data['cod_fee'] : null;
$this->container['cod_fee_discount'] = isset($data['cod_fee_discount']) ? $data['cod_fee_discount'] : null;
$this->container['is_gift'] = isset($data['is_gift']) ? $data['is_gift'] : null;
$this->container['condition_note'] = isset($data['condition_note']) ? $data['condition_note'] : null;
$this->container['condition_id'] = isset($data['condition_id']) ? $data['condition_id'] : null;
$this->container['condition_subtype_id'] = isset($data['condition_subtype_id']) ? $data['condition_subtype_id'] : null;
$this->container['scheduled_delivery_start_date'] = isset($data['scheduled_delivery_start_date']) ? $data['scheduled_delivery_start_date'] : null;
$this->container['scheduled_delivery_end_date'] = isset($data['scheduled_delivery_end_date']) ? $data['scheduled_delivery_end_date'] : null;
$this->container['price_designation'] = isset($data['price_designation']) ? $data['price_designation'] : null;
$this->container['tax_collection'] = isset($data['tax_collection']) ? $data['tax_collection'] : null;
$this->container['serial_number_required'] = isset($data['serial_number_required']) ? $data['serial_number_required'] : null;
$this->container['is_transparency'] = isset($data['is_transparency']) ? $data['is_transparency'] : null;
$this->container['ioss_number'] = isset($data['ioss_number']) ? $data['ioss_number'] : null;
$this->container['deemed_reseller_category'] = isset($data['deemed_reseller_category']) ? $data['deemed_reseller_category'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['asin']) {
$invalidProperties[] = "'asin' can't be null";
}
if (null === $this->container['order_item_id']) {
$invalidProperties[] = "'order_item_id' can't be null";
}
if (null === $this->container['quantity_ordered']) {
$invalidProperties[] = "'quantity_ordered' can't be null";
}
$allowedValues = $this->getDeemedResellerCategoryAllowableValues();
if (!is_null($this->container['deemed_reseller_category']) && !in_array($this->container['deemed_reseller_category'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'deemed_reseller_category', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku the seller stock keeping unit (SKU) of the item
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets order_item_id.
*
* @return string
*/
public function getOrderItemId()
{
return $this->container['order_item_id'];
}
/**
* Sets order_item_id.
*
* @param string $order_item_id an Amazon-defined order item identifier
*
* @return $this
*/
public function setOrderItemId($order_item_id)
{
$this->container['order_item_id'] = $order_item_id;
return $this;
}
/**
* Gets title.
*
* @return string
*/
public function getTitle()
{
return $this->container['title'];
}
/**
* Sets title.
*
* @param string $title the name of the item
*
* @return $this
*/
public function setTitle($title)
{
$this->container['title'] = $title;
return $this;
}
/**
* Gets quantity_ordered.
*
* @return int
*/
public function getQuantityOrdered()
{
return $this->container['quantity_ordered'];
}
/**
* Sets quantity_ordered.
*
* @param int $quantity_ordered the number of items in the order
*
* @return $this
*/
public function setQuantityOrdered($quantity_ordered)
{
$this->container['quantity_ordered'] = $quantity_ordered;
return $this;
}
/**
* Gets quantity_shipped.
*
* @return int
*/
public function getQuantityShipped()
{
return $this->container['quantity_shipped'];
}
/**
* Sets quantity_shipped.
*
* @param int $quantity_shipped the number of items shipped
*
* @return $this
*/
public function setQuantityShipped($quantity_shipped)
{
$this->container['quantity_shipped'] = $quantity_shipped;
return $this;
}
/**
* Gets product_info.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ProductInfoDetail
*/
public function getProductInfo()
{
return $this->container['product_info'];
}
/**
* Sets product_info.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ProductInfoDetail $product_info product_info
*
* @return $this
*/
public function setProductInfo($product_info)
{
$this->container['product_info'] = $product_info;
return $this;
}
/**
* Gets points_granted.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\PointsGrantedDetail
*/
public function getPointsGranted()
{
return $this->container['points_granted'];
}
/**
* Sets points_granted.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\PointsGrantedDetail $points_granted points_granted
*
* @return $this
*/
public function setPointsGranted($points_granted)
{
$this->container['points_granted'] = $points_granted;
return $this;
}
/**
* Gets item_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getItemPrice()
{
return $this->container['item_price'];
}
/**
* Sets item_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $item_price item_price
*
* @return $this
*/
public function setItemPrice($item_price)
{
$this->container['item_price'] = $item_price;
return $this;
}
/**
* Gets shipping_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getShippingPrice()
{
return $this->container['shipping_price'];
}
/**
* Sets shipping_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $shipping_price shipping_price
*
* @return $this
*/
public function setShippingPrice($shipping_price)
{
$this->container['shipping_price'] = $shipping_price;
return $this;
}
/**
* Gets item_tax.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getItemTax()
{
return $this->container['item_tax'];
}
/**
* Sets item_tax.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $item_tax item_tax
*
* @return $this
*/
public function setItemTax($item_tax)
{
$this->container['item_tax'] = $item_tax;
return $this;
}
/**
* Gets shipping_tax.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getShippingTax()
{
return $this->container['shipping_tax'];
}
/**
* Sets shipping_tax.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $shipping_tax shipping_tax
*
* @return $this
*/
public function setShippingTax($shipping_tax)
{
$this->container['shipping_tax'] = $shipping_tax;
return $this;
}
/**
* Gets shipping_discount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getShippingDiscount()
{
return $this->container['shipping_discount'];
}
/**
* Sets shipping_discount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $shipping_discount shipping_discount
*
* @return $this
*/
public function setShippingDiscount($shipping_discount)
{
$this->container['shipping_discount'] = $shipping_discount;
return $this;
}
/**
* Gets shipping_discount_tax.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getShippingDiscountTax()
{
return $this->container['shipping_discount_tax'];
}
/**
* Sets shipping_discount_tax.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $shipping_discount_tax shipping_discount_tax
*
* @return $this
*/
public function setShippingDiscountTax($shipping_discount_tax)
{
$this->container['shipping_discount_tax'] = $shipping_discount_tax;
return $this;
}
/**
* Gets promotion_discount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getPromotionDiscount()
{
return $this->container['promotion_discount'];
}
/**
* Sets promotion_discount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $promotion_discount promotion_discount
*
* @return $this
*/
public function setPromotionDiscount($promotion_discount)
{
$this->container['promotion_discount'] = $promotion_discount;
return $this;
}
/**
* Gets promotion_discount_tax.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getPromotionDiscountTax()
{
return $this->container['promotion_discount_tax'];
}
/**
* Sets promotion_discount_tax.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $promotion_discount_tax promotion_discount_tax
*
* @return $this
*/
public function setPromotionDiscountTax($promotion_discount_tax)
{
$this->container['promotion_discount_tax'] = $promotion_discount_tax;
return $this;
}
/**
* Gets promotion_ids.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\PromotionIdList
*/
public function getPromotionIds()
{
return $this->container['promotion_ids'];
}
/**
* Sets promotion_ids.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\PromotionIdList $promotion_ids promotion_ids
*
* @return $this
*/
public function setPromotionIds($promotion_ids)
{
$this->container['promotion_ids'] = $promotion_ids;
return $this;
}
/**
* Gets cod_fee.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getCodFee()
{
return $this->container['cod_fee'];
}
/**
* Sets cod_fee.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $cod_fee cod_fee
*
* @return $this
*/
public function setCodFee($cod_fee)
{
$this->container['cod_fee'] = $cod_fee;
return $this;
}
/**
* Gets cod_fee_discount.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getCodFeeDiscount()
{
return $this->container['cod_fee_discount'];
}
/**
* Sets cod_fee_discount.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $cod_fee_discount cod_fee_discount
*
* @return $this
*/
public function setCodFeeDiscount($cod_fee_discount)
{
$this->container['cod_fee_discount'] = $cod_fee_discount;
return $this;
}
/**
* Gets is_gift.
*
* @return bool
*/
public function getIsGift()
{
return $this->container['is_gift'];
}
/**
* Sets is_gift.
*
* @param bool $is_gift when true, the item is a gift
*
* @return $this
*/
public function setIsGift($is_gift)
{
$this->container['is_gift'] = $is_gift;
return $this;
}
/**
* Gets condition_note.
*
* @return string
*/
public function getConditionNote()
{
return $this->container['condition_note'];
}
/**
* Sets condition_note.
*
* @param string $condition_note the condition of the item as described by the seller
*
* @return $this
*/
public function setConditionNote($condition_note)
{
$this->container['condition_note'] = $condition_note;
return $this;
}
/**
* Gets condition_id.
*
* @return string
*/
public function getConditionId()
{
return $this->container['condition_id'];
}
/**
* Sets condition_id.
*
* @param string $condition_id The condition of the item. Possible values: New, Used, Collectible, Refurbished, Preorder, Club.
*
* @return $this
*/
public function setConditionId($condition_id)
{
$this->container['condition_id'] = $condition_id;
return $this;
}
/**
* Gets condition_subtype_id.
*
* @return string
*/
public function getConditionSubtypeId()
{
return $this->container['condition_subtype_id'];
}
/**
* Sets condition_subtype_id.
*
* @param string $condition_subtype_id The subcondition of the item. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, Any, Other.
*
* @return $this
*/
public function setConditionSubtypeId($condition_subtype_id)
{
$this->container['condition_subtype_id'] = $condition_subtype_id;
return $this;
}
/**
* Gets scheduled_delivery_start_date.
*
* @return string
*/
public function getScheduledDeliveryStartDate()
{
return $this->container['scheduled_delivery_start_date'];
}
/**
* Sets scheduled_delivery_start_date.
*
* @param string $scheduled_delivery_start_date The start date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format.
*
* @return $this
*/
public function setScheduledDeliveryStartDate($scheduled_delivery_start_date)
{
$this->container['scheduled_delivery_start_date'] = $scheduled_delivery_start_date;
return $this;
}
/**
* Gets scheduled_delivery_end_date.
*
* @return string
*/
public function getScheduledDeliveryEndDate()
{
return $this->container['scheduled_delivery_end_date'];
}
/**
* Sets scheduled_delivery_end_date.
*
* @param string $scheduled_delivery_end_date The end date of the scheduled delivery window in the time zone of the order destination. In ISO 8601 date time format.
*
* @return $this
*/
public function setScheduledDeliveryEndDate($scheduled_delivery_end_date)
{
$this->container['scheduled_delivery_end_date'] = $scheduled_delivery_end_date;
return $this;
}
/**
* Gets price_designation.
*
* @return string
*/
public function getPriceDesignation()
{
return $this->container['price_designation'];
}
/**
* Sets price_designation.
*
* @param string $price_designation Indicates that the selling price is a special price that is available only for Amazon Business orders. For more information about the Amazon Business Seller Program, see the [Amazon Business website](https://www.amazon.com/b2b/info/amazon-business). Possible values: BusinessPrice - A special price that is available only for Amazon Business orders.
*
* @return $this
*/
public function setPriceDesignation($price_designation)
{
$this->container['price_designation'] = $price_designation;
return $this;
}
/**
* Gets tax_collection.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\TaxCollection
*/
public function getTaxCollection()
{
return $this->container['tax_collection'];
}
/**
* Sets tax_collection.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\TaxCollection $tax_collection tax_collection
*
* @return $this
*/
public function setTaxCollection($tax_collection)
{
$this->container['tax_collection'] = $tax_collection;
return $this;
}
/**
* Gets serial_number_required.
*
* @return bool
*/
public function getSerialNumberRequired()
{
return $this->container['serial_number_required'];
}
/**
* Sets serial_number_required.
*
* @param bool $serial_number_required When true, the product type for this item has a serial number. Returned only for Amazon Easy Ship orders.
*
* @return $this
*/
public function setSerialNumberRequired($serial_number_required)
{
$this->container['serial_number_required'] = $serial_number_required;
return $this;
}
/**
* Gets is_transparency.
*
* @return bool
*/
public function getIsTransparency()
{
return $this->container['is_transparency'];
}
/**
* Sets is_transparency.
*
* @param bool $is_transparency when true, transparency codes are required
*
* @return $this
*/
public function setIsTransparency($is_transparency)
{
$this->container['is_transparency'] = $is_transparency;
return $this;
}
/**
* Gets ioss_number.
*
* @return string
*/
public function getIossNumber()
{
return $this->container['ioss_number'];
}
/**
* Sets ioss_number.
*
* @param string $ioss_number The IOSS number of the seller. Sellers selling in the EU will be assigned a unique IOSS number that must be listed on all packages sent to the EU.
*
* @return $this
*/
public function setIossNumber($ioss_number)
{
$this->container['ioss_number'] = $ioss_number;
return $this;
}
/**
* Gets deemed_reseller_category.
*
* @return string
*/
public function getDeemedResellerCategory()
{
return $this->container['deemed_reseller_category'];
}
/**
* Sets deemed_reseller_category.
*
* @param string $deemed_reseller_category The category of deemed reseller. This applies to selling partners that are not based in the EU and is used to help them meet the VAT Deemed Reseller tax laws in the EU and UK.
*
* @return $this
*/
public function setDeemedResellerCategory($deemed_reseller_category)
{
$allowedValues = $this->getDeemedResellerCategoryAllowableValues();
if (!is_null($deemed_reseller_category) && !in_array($deemed_reseller_category, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'deemed_reseller_category', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['deemed_reseller_category'] = $deemed_reseller_category;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | true |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/Money.php | lib/Models/Orders/Money.php | <?php
/**
* Money.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Money Class Doc Comment.
*
* @description The monetary value of the order.
*
* @author Stefan Neuhaus / ClouSale
*/
class Money implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Money';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'currency_code' => 'string',
'amount' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'currency_code' => null,
'amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'currency_code' => 'CurrencyCode',
'amount' => 'Amount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'currency_code' => 'setCurrencyCode',
'amount' => 'setAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'currency_code' => 'getCurrencyCode',
'amount' => 'getAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['currency_code'] = isset($data['currency_code']) ? $data['currency_code'] : null;
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets currency_code.
*
* @return string
*/
public function getCurrencyCode()
{
return $this->container['currency_code'];
}
/**
* Sets currency_code.
*
* @param string $currency_code The three-digit currency code. In ISO 4217 format.
*
* @return $this
*/
public function setCurrencyCode($currency_code)
{
$this->container['currency_code'] = $currency_code;
return $this;
}
/**
* Gets amount.
*
* @return string
*/
public function getAmount()
{
return $this->container['amount'];
}
/**
* Sets amount.
*
* @param string $amount the currency amount
*
* @return $this
*/
public function setAmount($amount)
{
$this->container['amount'] = $amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/OrderItemsBuyerInfoList.php | lib/Models/Orders/OrderItemsBuyerInfoList.php | <?php
/**
* OrderItemsBuyerInfoList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OrderItemsBuyerInfoList Class Doc Comment.
*
* @description A single order item's buyer information list with the order ID.
*
* @author Stefan Neuhaus / ClouSale
*/
class OrderItemsBuyerInfoList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OrderItemsBuyerInfoList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'order_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemBuyerInfoList',
'next_token' => 'string',
'amazon_order_id' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'order_items' => null,
'next_token' => null,
'amazon_order_id' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'order_items' => 'OrderItems',
'next_token' => 'NextToken',
'amazon_order_id' => 'AmazonOrderId', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'order_items' => 'setOrderItems',
'next_token' => 'setNextToken',
'amazon_order_id' => 'setAmazonOrderId', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'order_items' => 'getOrderItems',
'next_token' => 'getNextToken',
'amazon_order_id' => 'getAmazonOrderId', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['order_items'] = isset($data['order_items']) ? $data['order_items'] : null;
$this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null;
$this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['order_items']) {
$invalidProperties[] = "'order_items' can't be null";
}
if (null === $this->container['amazon_order_id']) {
$invalidProperties[] = "'amazon_order_id' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets order_items.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemBuyerInfoList
*/
public function getOrderItems()
{
return $this->container['order_items'];
}
/**
* Sets order_items.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemBuyerInfoList $order_items order_items
*
* @return $this
*/
public function setOrderItems($order_items)
{
$this->container['order_items'] = $order_items;
return $this;
}
/**
* Gets next_token.
*
* @return string
*/
public function getNextToken()
{
return $this->container['next_token'];
}
/**
* Sets next_token.
*
* @param string $next_token when present and not empty, pass this string token in the next request to return the next response page
*
* @return $this
*/
public function setNextToken($next_token)
{
$this->container['next_token'] = $next_token;
return $this;
}
/**
* Gets amazon_order_id.
*
* @return string
*/
public function getAmazonOrderId()
{
return $this->container['amazon_order_id'];
}
/**
* Sets amazon_order_id.
*
* @param string $amazon_order_id an Amazon-defined order identifier, in 3-7-7 format
*
* @return $this
*/
public function setAmazonOrderId($amazon_order_id)
{
$this->container['amazon_order_id'] = $amazon_order_id;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return OrderItemBuyerInfo::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/Address.php | lib/Models/Orders/Address.php | <?php
/**
* Address.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Address Class Doc Comment.
*
* @description The shipping address for the order.
*
* @author Stefan Neuhaus / ClouSale
*/
class Address implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Address';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'name' => 'string',
'address_line1' => 'string',
'address_line2' => 'string',
'address_line3' => 'string',
'city' => 'string',
'county' => 'string',
'district' => 'string',
'state_or_region' => 'string',
'municipality' => 'string',
'postal_code' => 'string',
'country_code' => 'string',
'phone' => 'string',
'address_type' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'name' => null,
'address_line1' => null,
'address_line2' => null,
'address_line3' => null,
'city' => null,
'county' => null,
'district' => null,
'state_or_region' => null,
'municipality' => null,
'postal_code' => null,
'country_code' => null,
'phone' => null,
'address_type' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'name' => 'Name',
'address_line1' => 'AddressLine1',
'address_line2' => 'AddressLine2',
'address_line3' => 'AddressLine3',
'city' => 'City',
'county' => 'County',
'district' => 'District',
'state_or_region' => 'StateOrRegion',
'municipality' => 'Municipality',
'postal_code' => 'PostalCode',
'country_code' => 'CountryCode',
'phone' => 'Phone',
'address_type' => 'AddressType', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'name' => 'setName',
'address_line1' => 'setAddressLine1',
'address_line2' => 'setAddressLine2',
'address_line3' => 'setAddressLine3',
'city' => 'setCity',
'county' => 'setCounty',
'district' => 'setDistrict',
'state_or_region' => 'setStateOrRegion',
'municipality' => 'setMunicipality',
'postal_code' => 'setPostalCode',
'country_code' => 'setCountryCode',
'phone' => 'setPhone',
'address_type' => 'setAddressType', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'name' => 'getName',
'address_line1' => 'getAddressLine1',
'address_line2' => 'getAddressLine2',
'address_line3' => 'getAddressLine3',
'city' => 'getCity',
'county' => 'getCounty',
'district' => 'getDistrict',
'state_or_region' => 'getStateOrRegion',
'municipality' => 'getMunicipality',
'postal_code' => 'getPostalCode',
'country_code' => 'getCountryCode',
'phone' => 'getPhone',
'address_type' => 'getAddressType', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
const ADDRESS_TYPE_RESIDENTIAL = 'Residential';
const ADDRESS_TYPE_COMMERCIAL = 'Commercial';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getAddressTypeAllowableValues()
{
return [
self::ADDRESS_TYPE_RESIDENTIAL,
self::ADDRESS_TYPE_COMMERCIAL, ];
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['address_line1'] = isset($data['address_line1']) ? $data['address_line1'] : null;
$this->container['address_line2'] = isset($data['address_line2']) ? $data['address_line2'] : null;
$this->container['address_line3'] = isset($data['address_line3']) ? $data['address_line3'] : null;
$this->container['city'] = isset($data['city']) ? $data['city'] : null;
$this->container['county'] = isset($data['county']) ? $data['county'] : null;
$this->container['district'] = isset($data['district']) ? $data['district'] : null;
$this->container['state_or_region'] = isset($data['state_or_region']) ? $data['state_or_region'] : null;
$this->container['municipality'] = isset($data['municipality']) ? $data['municipality'] : null;
$this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null;
$this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null;
$this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
$this->container['address_type'] = isset($data['address_type']) ? $data['address_type'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['name']) {
$invalidProperties[] = "'name' can't be null";
}
$allowedValues = $this->getAddressTypeAllowableValues();
if (!is_null($this->container['address_type']) && !in_array($this->container['address_type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'address_type', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets name.
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name.
*
* @param string $name the name
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets address_line1.
*
* @return string
*/
public function getAddressLine1()
{
return $this->container['address_line1'];
}
/**
* Sets address_line1.
*
* @param string $address_line1 the street address
*
* @return $this
*/
public function setAddressLine1($address_line1)
{
$this->container['address_line1'] = $address_line1;
return $this;
}
/**
* Gets address_line2.
*
* @return string
*/
public function getAddressLine2()
{
return $this->container['address_line2'];
}
/**
* Sets address_line2.
*
* @param string $address_line2 additional street address information, if required
*
* @return $this
*/
public function setAddressLine2($address_line2)
{
$this->container['address_line2'] = $address_line2;
return $this;
}
/**
* Gets address_line3.
*
* @return string
*/
public function getAddressLine3()
{
return $this->container['address_line3'];
}
/**
* Sets address_line3.
*
* @param string $address_line3 additional street address information, if required
*
* @return $this
*/
public function setAddressLine3($address_line3)
{
$this->container['address_line3'] = $address_line3;
return $this;
}
/**
* Gets city.
*
* @return string
*/
public function getCity()
{
return $this->container['city'];
}
/**
* Sets city.
*
* @param string $city The city
*
* @return $this
*/
public function setCity($city)
{
$this->container['city'] = $city;
return $this;
}
/**
* Gets county.
*
* @return string
*/
public function getCounty()
{
return $this->container['county'];
}
/**
* Sets county.
*
* @param string $county the county
*
* @return $this
*/
public function setCounty($county)
{
$this->container['county'] = $county;
return $this;
}
/**
* Gets district.
*
* @return string
*/
public function getDistrict()
{
return $this->container['district'];
}
/**
* Sets district.
*
* @param string $district the district
*
* @return $this
*/
public function setDistrict($district)
{
$this->container['district'] = $district;
return $this;
}
/**
* Gets state_or_region.
*
* @return string
*/
public function getStateOrRegion()
{
return $this->container['state_or_region'];
}
/**
* Sets state_or_region.
*
* @param string $state_or_region the state or region
*
* @return $this
*/
public function setStateOrRegion($state_or_region)
{
$this->container['state_or_region'] = $state_or_region;
return $this;
}
/**
* Gets municipality.
*
* @return string
*/
public function getMunicipality()
{
return $this->container['municipality'];
}
/**
* Sets municipality.
*
* @param string $municipality the municipality
*
* @return $this
*/
public function setMunicipality($municipality)
{
$this->container['municipality'] = $municipality;
return $this;
}
/**
* Gets postal_code.
*
* @return string
*/
public function getPostalCode()
{
return $this->container['postal_code'];
}
/**
* Sets postal_code.
*
* @param string $postal_code the postal code
*
* @return $this
*/
public function setPostalCode($postal_code)
{
$this->container['postal_code'] = $postal_code;
return $this;
}
/**
* Gets country_code.
*
* @return string
*/
public function getCountryCode()
{
return $this->container['country_code'];
}
/**
* Sets country_code.
*
* @param string $country_code The country code. A two-character country code, in ISO 3166-1 alpha-2 format.
*
* @return $this
*/
public function setCountryCode($country_code)
{
$this->container['country_code'] = $country_code;
return $this;
}
/**
* Gets phone.
*
* @return string
*/
public function getPhone()
{
return $this->container['phone'];
}
/**
* Sets phone.
*
* @param string $phone The phone number. Not returned for Fulfillment by Amazon (FBA) orders.
*
* @return $this
*/
public function setPhone($phone)
{
$this->container['phone'] = $phone;
return $this;
}
/**
* Gets address_type.
*
* @return string
*/
public function getAddressType()
{
return $this->container['address_type'];
}
/**
* Sets address_type.
*
* @param string $address_type the address type of the shipping address
*
* @return $this
*/
public function setAddressType($address_type)
{
$allowedValues = $this->getAddressTypeAllowableValues();
if (!is_null($address_type) && !in_array($address_type, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'address_type', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['address_type'] = $address_type;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/TaxClassification.php | lib/Models/Orders/TaxClassification.php | <?php
/**
* TaxClassification.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TaxClassification Class Doc Comment.
*
* @description The tax classification for the order.
*
* @author Stefan Neuhaus / ClouSale
*/
class TaxClassification implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TaxClassification';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'name' => 'string',
'value' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'name' => null,
'value' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'name' => 'Name',
'value' => 'Value', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'name' => 'setName',
'value' => 'setValue', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'name' => 'getName',
'value' => 'getValue', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['value'] = isset($data['value']) ? $data['value'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets name.
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name.
*
* @param string $name the type of tax
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets value.
*
* @return string
*/
public function getValue()
{
return $this->container['value'];
}
/**
* Sets value.
*
* @param string $value the buyer's tax identifier
*
* @return $this
*/
public function setValue($value)
{
$this->container['value'] = $value;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/GetOrderBuyerInfoResponse.php | lib/Models/Orders/GetOrderBuyerInfoResponse.php | <?php
/**
* GetOrderBuyerInfoResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetOrderBuyerInfoResponse Class Doc Comment.
*
* @description The response schema for the getOrderBuyerInfo operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetOrderBuyerInfoResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetOrderBuyerInfoResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderBuyerInfo',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'payload' => null,
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'payload' => 'getPayload',
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['payload'] = isset($data['payload']) ? $data['payload'] : null;
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderBuyerInfo
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderBuyerInfo $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList $errors errors
*
* @return $this
*/
public function setErrors($errors)
{
$this->container['errors'] = $errors;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/ErrorList.php | lib/Models/Orders/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ErrorList Class Doc Comment.
*
* @description A list of error responses returned when a request is unsuccessful.
*
* @author Stefan Neuhaus / ClouSale
*/
class ErrorList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ErrorList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return Error::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/OrderItemsList.php | lib/Models/Orders/OrderItemsList.php | <?php
/**
* OrderItemsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OrderItemsList Class Doc Comment.
*
* @description The order items list along with the order ID.
*
* @author Stefan Neuhaus / ClouSale
*/
class OrderItemsList implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OrderItemsList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'order_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemList',
'next_token' => 'string',
'amazon_order_id' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'order_items' => null,
'next_token' => null,
'amazon_order_id' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'order_items' => 'OrderItems',
'next_token' => 'NextToken',
'amazon_order_id' => 'AmazonOrderId', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'order_items' => 'setOrderItems',
'next_token' => 'setNextToken',
'amazon_order_id' => 'setAmazonOrderId', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'order_items' => 'getOrderItems',
'next_token' => 'getNextToken',
'amazon_order_id' => 'getAmazonOrderId', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['order_items'] = isset($data['order_items']) ? $data['order_items'] : null;
$this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null;
$this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['order_items']) {
$invalidProperties[] = "'order_items' can't be null";
}
if (null === $this->container['amazon_order_id']) {
$invalidProperties[] = "'amazon_order_id' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets order_items.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemList
*/
public function getOrderItems()
{
return $this->container['order_items'];
}
/**
* Sets order_items.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemList $order_items order_items
*
* @return $this
*/
public function setOrderItems($order_items)
{
$this->container['order_items'] = $order_items;
return $this;
}
/**
* Gets next_token.
*
* @return string
*/
public function getNextToken()
{
return $this->container['next_token'];
}
/**
* Sets next_token.
*
* @param string $next_token when present and not empty, pass this string token in the next request to return the next response page
*
* @return $this
*/
public function setNextToken($next_token)
{
$this->container['next_token'] = $next_token;
return $this;
}
/**
* Gets amazon_order_id.
*
* @return string
*/
public function getAmazonOrderId()
{
return $this->container['amazon_order_id'];
}
/**
* Sets amazon_order_id.
*
* @param string $amazon_order_id an Amazon-defined order identifier, in 3-7-7 format
*
* @return $this
*/
public function setAmazonOrderId($amazon_order_id)
{
$this->container['amazon_order_id'] = $amazon_order_id;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/PaymentExecutionDetailItemList.php | lib/Models/Orders/PaymentExecutionDetailItemList.php | <?php
/**
* PaymentExecutionDetailItemList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PaymentExecutionDetailItemList Class Doc Comment.
*
* @description A list of payment execution detail items.
*
* @author Stefan Neuhaus / ClouSale
*/
class PaymentExecutionDetailItemList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PaymentExecutionDetailItemList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return PaymentExecutionDetailItem::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/OrderList.php | lib/Models/Orders/OrderList.php | <?php
/**
* OrderList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OrderList Class Doc Comment.
*
* @description A list of orders.
*
* @author Stefan Neuhaus / ClouSale
*/
class OrderList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OrderList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
public function getSubClass()
{
return Order::class;
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/OrderItemBuyerInfo.php | lib/Models/Orders/OrderItemBuyerInfo.php | <?php
/**
* OrderItemBuyerInfo.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Orders.
*
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OrderItemBuyerInfo Class Doc Comment.
*
* @description A single order item's buyer information.
*
* @author Stefan Neuhaus / ClouSale
*/
class OrderItemBuyerInfo implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OrderItemBuyerInfo';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'order_item_id' => 'string',
'buyer_customized_info' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\BuyerCustomizedInfoDetail',
'gift_wrap_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'gift_wrap_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money',
'gift_message_text' => 'string',
'gift_wrap_level' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'order_item_id' => null,
'buyer_customized_info' => null,
'gift_wrap_price' => null,
'gift_wrap_tax' => null,
'gift_message_text' => null,
'gift_wrap_level' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'order_item_id' => 'OrderItemId',
'buyer_customized_info' => 'BuyerCustomizedInfo',
'gift_wrap_price' => 'GiftWrapPrice',
'gift_wrap_tax' => 'GiftWrapTax',
'gift_message_text' => 'GiftMessageText',
'gift_wrap_level' => 'GiftWrapLevel', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'order_item_id' => 'setOrderItemId',
'buyer_customized_info' => 'setBuyerCustomizedInfo',
'gift_wrap_price' => 'setGiftWrapPrice',
'gift_wrap_tax' => 'setGiftWrapTax',
'gift_message_text' => 'setGiftMessageText',
'gift_wrap_level' => 'setGiftWrapLevel', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'order_item_id' => 'getOrderItemId',
'buyer_customized_info' => 'getBuyerCustomizedInfo',
'gift_wrap_price' => 'getGiftWrapPrice',
'gift_wrap_tax' => 'getGiftWrapTax',
'gift_message_text' => 'getGiftMessageText',
'gift_wrap_level' => 'getGiftWrapLevel', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['order_item_id'] = isset($data['order_item_id']) ? $data['order_item_id'] : null;
$this->container['buyer_customized_info'] = isset($data['buyer_customized_info']) ? $data['buyer_customized_info'] : null;
$this->container['gift_wrap_price'] = isset($data['gift_wrap_price']) ? $data['gift_wrap_price'] : null;
$this->container['gift_wrap_tax'] = isset($data['gift_wrap_tax']) ? $data['gift_wrap_tax'] : null;
$this->container['gift_message_text'] = isset($data['gift_message_text']) ? $data['gift_message_text'] : null;
$this->container['gift_wrap_level'] = isset($data['gift_wrap_level']) ? $data['gift_wrap_level'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['order_item_id']) {
$invalidProperties[] = "'order_item_id' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets order_item_id.
*
* @return string
*/
public function getOrderItemId()
{
return $this->container['order_item_id'];
}
/**
* Sets order_item_id.
*
* @param string $order_item_id an Amazon-defined order item identifier
*
* @return $this
*/
public function setOrderItemId($order_item_id)
{
$this->container['order_item_id'] = $order_item_id;
return $this;
}
/**
* Gets buyer_customized_info.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\BuyerCustomizedInfoDetail
*/
public function getBuyerCustomizedInfo()
{
return $this->container['buyer_customized_info'];
}
/**
* Sets buyer_customized_info.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\BuyerCustomizedInfoDetail $buyer_customized_info buyer_customized_info
*
* @return $this
*/
public function setBuyerCustomizedInfo($buyer_customized_info)
{
$this->container['buyer_customized_info'] = $buyer_customized_info;
return $this;
}
/**
* Gets gift_wrap_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getGiftWrapPrice()
{
return $this->container['gift_wrap_price'];
}
/**
* Sets gift_wrap_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $gift_wrap_price gift_wrap_price
*
* @return $this
*/
public function setGiftWrapPrice($gift_wrap_price)
{
$this->container['gift_wrap_price'] = $gift_wrap_price;
return $this;
}
/**
* Gets gift_wrap_tax.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money
*/
public function getGiftWrapTax()
{
return $this->container['gift_wrap_tax'];
}
/**
* Sets gift_wrap_tax.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $gift_wrap_tax gift_wrap_tax
*
* @return $this
*/
public function setGiftWrapTax($gift_wrap_tax)
{
$this->container['gift_wrap_tax'] = $gift_wrap_tax;
return $this;
}
/**
* Gets gift_message_text.
*
* @return string
*/
public function getGiftMessageText()
{
return $this->container['gift_message_text'];
}
/**
* Sets gift_message_text.
*
* @param string $gift_message_text a gift message provided by the buyer
*
* @return $this
*/
public function setGiftMessageText($gift_message_text)
{
$this->container['gift_message_text'] = $gift_message_text;
return $this;
}
/**
* Gets gift_wrap_level.
*
* @return string
*/
public function getGiftWrapLevel()
{
return $this->container['gift_wrap_level'];
}
/**
* Sets gift_wrap_level.
*
* @param string $gift_wrap_level the gift wrap level specified by the buyer
*
* @return $this
*/
public function setGiftWrapLevel($gift_wrap_level)
{
$this->container['gift_wrap_level'] = $gift_wrap_level;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.