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/MerchantFulfillment/AddressName.php | lib/Models/MerchantFulfillment/AddressName.php | <?php
/**
* AddressName.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AddressName Class Doc Comment.
*
* @description The name of the addressee, or business name.
*
* @author Stefan Neuhaus / ClouSale
*/
class AddressName implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AddressName';
/**
* 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/MerchantFulfillment/LabelFormatOption.php | lib/Models/MerchantFulfillment/LabelFormatOption.php | <?php
/**
* LabelFormatOption.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LabelFormatOption Class Doc Comment.
*
* @description The label format details and whether to include a packing slip.
*
* @author Stefan Neuhaus / ClouSale
*/
class LabelFormatOption implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LabelFormatOption';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'include_packing_slip_with_label' => 'bool',
'label_format' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'include_packing_slip_with_label' => null,
'label_format' => 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 = [
'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel',
'label_format' => 'LabelFormat', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel',
'label_format' => 'setLabelFormat', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel',
'label_format' => 'getLabelFormat', ];
/**
* 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['include_packing_slip_with_label'] = isset($data['include_packing_slip_with_label']) ? $data['include_packing_slip_with_label'] : null;
$this->container['label_format'] = isset($data['label_format']) ? $data['label_format'] : 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 include_packing_slip_with_label.
*
* @return bool
*/
public function getIncludePackingSlipWithLabel()
{
return $this->container['include_packing_slip_with_label'];
}
/**
* Sets include_packing_slip_with_label.
*
* @param bool $include_packing_slip_with_label when true, include a packing slip with the label
*
* @return $this
*/
public function setIncludePackingSlipWithLabel($include_packing_slip_with_label)
{
$this->container['include_packing_slip_with_label'] = $include_packing_slip_with_label;
return $this;
}
/**
* Gets label_format.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat
*/
public function getLabelFormat()
{
return $this->container['label_format'];
}
/**
* Sets label_format.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat $label_format label_format
*
* @return $this
*/
public function setLabelFormat($label_format)
{
$this->container['label_format'] = $label_format;
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/MerchantFulfillment/ItemLevelFieldsList.php | lib/Models/MerchantFulfillment/ItemLevelFieldsList.php | <?php
/**
* ItemLevelFieldsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ItemLevelFieldsList Class Doc Comment.
*
* @description A list of item level fields.
*
* @author Stefan Neuhaus / ClouSale
*/
class ItemLevelFieldsList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ItemLevelFieldsList';
/**
* 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 ItemLevelFields::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/MerchantFulfillment/ItemList.php | lib/Models/MerchantFulfillment/ItemList.php | <?php
/**
* ItemList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ItemList Class Doc Comment.
*
* @description The list of items to be included in a shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ItemList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ItemList';
/**
* 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 Item::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/MerchantFulfillment/ShipmentId.php | lib/Models/MerchantFulfillment/ShipmentId.php | <?php
/**
* ShipmentId.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShipmentId Class Doc Comment.
*
* @description An Amazon-defined shipment identifier.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipmentId implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShipmentId';
/**
* 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/MerchantFulfillment/LabelFormat.php | lib/Models/MerchantFulfillment/LabelFormat.php | <?php
/**
* LabelFormat.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* LabelFormat Class Doc Comment.
*
* @description The label format.
*
* @author Stefan Neuhaus / ClouSale
*/
class LabelFormat
{
/**
* Possible values of this enum.
*/
const PDF = 'PDF';
const PNG = 'PNG';
const ZPL203 = 'ZPL203';
const ZPL300 = 'ZPL300';
const SHIPPING_SERVICE_DEFAULT = 'ShippingServiceDefault';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::PDF,
self::PNG,
self::ZPL203,
self::ZPL300,
self::SHIPPING_SERVICE_DEFAULT, ];
}
}
| 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/MerchantFulfillment/ItemDescription.php | lib/Models/MerchantFulfillment/ItemDescription.php | <?php
/**
* ItemDescription.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ItemDescription Class Doc Comment.
*
* @description The description of the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class ItemDescription implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ItemDescription';
/**
* 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/MerchantFulfillment/Weight.php | lib/Models/MerchantFulfillment/Weight.php | <?php
/**
* Weight.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Weight Class Doc Comment.
*
* @description The weight.
*
* @author Stefan Neuhaus / ClouSale
*/
class Weight implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Weight';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'value' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\WeightValue',
'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfWeight', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'value' => null,
'unit' => 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 = [
'value' => 'Value',
'unit' => 'Unit', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'value' => 'setValue',
'unit' => 'setUnit', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'value' => 'getValue',
'unit' => 'getUnit', ];
/**
* 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['value'] = isset($data['value']) ? $data['value'] : null;
$this->container['unit'] = isset($data['unit']) ? $data['unit'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['value']) {
$invalidProperties[] = "'value' can't be null";
}
if (null === $this->container['unit']) {
$invalidProperties[] = "'unit' 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 value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\WeightValue
*/
public function getValue()
{
return $this->container['value'];
}
/**
* Sets value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\WeightValue $value value
*
* @return $this
*/
public function setValue($value)
{
$this->container['value'] = $value;
return $this;
}
/**
* Gets unit.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfWeight
*/
public function getUnit()
{
return $this->container['unit'];
}
/**
* Sets unit.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfWeight $unit unit
*
* @return $this
*/
public function setUnit($unit)
{
$this->container['unit'] = $unit;
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/MerchantFulfillment/EmailAddress.php | lib/Models/MerchantFulfillment/EmailAddress.php | <?php
/**
* EmailAddress.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* EmailAddress Class Doc Comment.
*
* @description The email address.
*
* @author Stefan Neuhaus / ClouSale
*/
class EmailAddress implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'EmailAddress';
/**
* 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/MerchantFulfillment/AdditionalInputs.php | lib/Models/MerchantFulfillment/AdditionalInputs.php | <?php
/**
* AdditionalInputs.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AdditionalInputs Class Doc Comment.
*
* @description Maps the additional seller input to the definition. The key to the map is the field name.
*
* @author Stefan Neuhaus / ClouSale
*/
class AdditionalInputs implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AdditionalInputs';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'additional_input_field_name' => 'string',
'seller_input_definition' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerInputDefinition', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'additional_input_field_name' => null,
'seller_input_definition' => 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 = [
'additional_input_field_name' => 'AdditionalInputFieldName',
'seller_input_definition' => 'SellerInputDefinition', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'additional_input_field_name' => 'setAdditionalInputFieldName',
'seller_input_definition' => 'setSellerInputDefinition', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'additional_input_field_name' => 'getAdditionalInputFieldName',
'seller_input_definition' => 'getSellerInputDefinition', ];
/**
* 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['additional_input_field_name'] = isset($data['additional_input_field_name']) ? $data['additional_input_field_name'] : null;
$this->container['seller_input_definition'] = isset($data['seller_input_definition']) ? $data['seller_input_definition'] : 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 additional_input_field_name.
*
* @return string
*/
public function getAdditionalInputFieldName()
{
return $this->container['additional_input_field_name'];
}
/**
* Sets additional_input_field_name.
*
* @param string $additional_input_field_name the field name
*
* @return $this
*/
public function setAdditionalInputFieldName($additional_input_field_name)
{
$this->container['additional_input_field_name'] = $additional_input_field_name;
return $this;
}
/**
* Gets seller_input_definition.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerInputDefinition
*/
public function getSellerInputDefinition()
{
return $this->container['seller_input_definition'];
}
/**
* Sets seller_input_definition.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerInputDefinition $seller_input_definition seller_input_definition
*
* @return $this
*/
public function setSellerInputDefinition($seller_input_definition)
{
$this->container['seller_input_definition'] = $seller_input_definition;
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/MerchantFulfillment/TemporarilyUnavailableCarrier.php | lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrier.php | <?php
/**
* TemporarilyUnavailableCarrier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TemporarilyUnavailableCarrier Class Doc Comment.
*
* @description A carrier who is temporarily unavailable, most likely due to a service outage experienced by the carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class TemporarilyUnavailableCarrier implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TemporarilyUnavailableCarrier';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'carrier_name' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'carrier_name' => 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 = [
'carrier_name' => 'CarrierName', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'carrier_name' => 'setCarrierName', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'carrier_name' => 'getCarrierName', ];
/**
* 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['carrier_name'] = isset($data['carrier_name']) ? $data['carrier_name'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['carrier_name']) {
$invalidProperties[] = "'carrier_name' 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 carrier_name.
*
* @return string
*/
public function getCarrierName()
{
return $this->container['carrier_name'];
}
/**
* Sets carrier_name.
*
* @param string $carrier_name the name of the carrier
*
* @return $this
*/
public function setCarrierName($carrier_name)
{
$this->container['carrier_name'] = $carrier_name;
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/MerchantFulfillment/LabelDimension.php | lib/Models/MerchantFulfillment/LabelDimension.php | <?php
/**
* LabelDimension.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LabelDimension Class Doc Comment.
*
* @description A label dimension.
*
* @author Stefan Neuhaus / ClouSale
*/
class LabelDimension implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LabelDimension';
/**
* 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/MerchantFulfillment/ShippingServiceList.php | lib/Models/MerchantFulfillment/ShippingServiceList.php | <?php
/**
* ShippingServiceList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShippingServiceList Class Doc Comment.
*
* @description A list of shipping services offers.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShippingServiceList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShippingServiceList';
/**
* 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 ShippingService::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/MerchantFulfillment/PostalCode.php | lib/Models/MerchantFulfillment/PostalCode.php | <?php
/**
* PostalCode.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PostalCode Class Doc Comment.
*
* @description The zip code or postal code.
*
* @author Stefan Neuhaus / ClouSale
*/
class PostalCode implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PostalCode';
/**
* 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/MerchantFulfillment/CreateShipmentResponse.php | lib/Models/MerchantFulfillment/CreateShipmentResponse.php | <?php
/**
* CreateShipmentResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateShipmentResponse Class Doc Comment.
*
* @description Response schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateShipmentResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateShipmentResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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\MerchantFulfillment\Shipment
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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/MerchantFulfillment/PredefinedPackageDimensions.php | lib/Models/MerchantFulfillment/PredefinedPackageDimensions.php | <?php
/**
* PredefinedPackageDimensions.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* PredefinedPackageDimensions Class Doc Comment.
*
* @description An enumeration of predefined parcel tokens. If you specify a PredefinedPackageDimensions token, you are not obligated to use a branded package from a carrier. For example, if you specify the FedEx_Box_10kg token, you do not have to use that particular package from FedEx. You are only obligated to use a box that matches the dimensions specified by the token. Note: Please note that carriers can have restrictions on the type of package allowed for certain ship methods. Check the carrier website for all details. Example: Flat rate pricing is available when materials are sent by USPS in a USPS-produced Flat Rate Envelope or Box.
*
* @author Stefan Neuhaus / ClouSale
*/
class PredefinedPackageDimensions
{
/**
* Possible values of this enum.
*/
const FED_EX_BOX_10KG = 'FedEx_Box_10kg';
const FED_EX_BOX_25KG = 'FedEx_Box_25kg';
const FED_EX_BOX_EXTRA_LARGE_1 = 'FedEx_Box_Extra_Large_1';
const FED_EX_BOX_EXTRA_LARGE_2 = 'FedEx_Box_Extra_Large_2';
const FED_EX_BOX_LARGE_1 = 'FedEx_Box_Large_1';
const FED_EX_BOX_LARGE_2 = 'FedEx_Box_Large_2';
const FED_EX_BOX_MEDIUM_1 = 'FedEx_Box_Medium_1';
const FED_EX_BOX_MEDIUM_2 = 'FedEx_Box_Medium_2';
const FED_EX_BOX_SMALL_1 = 'FedEx_Box_Small_1';
const FED_EX_BOX_SMALL_2 = 'FedEx_Box_Small_2';
const FED_EX_ENVELOPE = 'FedEx_Envelope';
const FED_EX_PADDED_PAK = 'FedEx_Padded_Pak';
const FED_EX_PAK_1 = 'FedEx_Pak_1';
const FED_EX_PAK_2 = 'FedEx_Pak_2';
const FED_EX_TUBE = 'FedEx_Tube';
const FED_EX_XL_PAK = 'FedEx_XL_Pak';
const UPS_BOX_10KG = 'UPS_Box_10kg';
const UPS_BOX_25KG = 'UPS_Box_25kg';
const UPS_EXPRESS_BOX = 'UPS_Express_Box';
const UPS_EXPRESS_BOX_LARGE = 'UPS_Express_Box_Large';
const UPS_EXPRESS_BOX_MEDIUM = 'UPS_Express_Box_Medium';
const UPS_EXPRESS_BOX_SMALL = 'UPS_Express_Box_Small';
const UPS_EXPRESS_ENVELOPE = 'UPS_Express_Envelope';
const UPS_EXPRESS_HARD_PAK = 'UPS_Express_Hard_Pak';
const UPS_EXPRESS_LEGAL_ENVELOPE = 'UPS_Express_Legal_Envelope';
const UPS_EXPRESS_PAK = 'UPS_Express_Pak';
const UPS_EXPRESS_TUBE = 'UPS_Express_Tube';
const UPS_LABORATORY_PAK = 'UPS_Laboratory_Pak';
const UPS_PAD_PAK = 'UPS_Pad_Pak';
const UPS_PALLET = 'UPS_Pallet';
const USPS_CARD = 'USPS_Card';
const USPS_FLAT = 'USPS_Flat';
const USPS_FLAT_RATE_CARDBOARD_ENVELOPE = 'USPS_FlatRateCardboardEnvelope';
const USPS_FLAT_RATE_ENVELOPE = 'USPS_FlatRateEnvelope';
const USPS_FLAT_RATE_GIFT_CARD_ENVELOPE = 'USPS_FlatRateGiftCardEnvelope';
const USPS_FLAT_RATE_LEGAL_ENVELOPE = 'USPS_FlatRateLegalEnvelope';
const USPS_FLAT_RATE_PADDED_ENVELOPE = 'USPS_FlatRatePaddedEnvelope';
const USPS_FLAT_RATE_WINDOW_ENVELOPE = 'USPS_FlatRateWindowEnvelope';
const USPS_LARGE_FLAT_RATE_BOARD_GAME_BOX = 'USPS_LargeFlatRateBoardGameBox';
const USPS_LARGE_FLAT_RATE_BOX = 'USPS_LargeFlatRateBox';
const USPS_LETTER = 'USPS_Letter';
const USPS_MEDIUM_FLAT_RATE_BOX1 = 'USPS_MediumFlatRateBox1';
const USPS_MEDIUM_FLAT_RATE_BOX2 = 'USPS_MediumFlatRateBox2';
const USPS_REGIONAL_RATE_BOX_A1 = 'USPS_RegionalRateBoxA1';
const USPS_REGIONAL_RATE_BOX_A2 = 'USPS_RegionalRateBoxA2';
const USPS_REGIONAL_RATE_BOX_B1 = 'USPS_RegionalRateBoxB1';
const USPS_REGIONAL_RATE_BOX_B2 = 'USPS_RegionalRateBoxB2';
const USPS_REGIONAL_RATE_BOX_C = 'USPS_RegionalRateBoxC';
const USPS_SMALL_FLAT_RATE_BOX = 'USPS_SmallFlatRateBox';
const USPS_SMALL_FLAT_RATE_ENVELOPE = 'USPS_SmallFlatRateEnvelope';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::FED_EX_BOX_10KG,
self::FED_EX_BOX_25KG,
self::FED_EX_BOX_EXTRA_LARGE_1,
self::FED_EX_BOX_EXTRA_LARGE_2,
self::FED_EX_BOX_LARGE_1,
self::FED_EX_BOX_LARGE_2,
self::FED_EX_BOX_MEDIUM_1,
self::FED_EX_BOX_MEDIUM_2,
self::FED_EX_BOX_SMALL_1,
self::FED_EX_BOX_SMALL_2,
self::FED_EX_ENVELOPE,
self::FED_EX_PADDED_PAK,
self::FED_EX_PAK_1,
self::FED_EX_PAK_2,
self::FED_EX_TUBE,
self::FED_EX_XL_PAK,
self::UPS_BOX_10KG,
self::UPS_BOX_25KG,
self::UPS_EXPRESS_BOX,
self::UPS_EXPRESS_BOX_LARGE,
self::UPS_EXPRESS_BOX_MEDIUM,
self::UPS_EXPRESS_BOX_SMALL,
self::UPS_EXPRESS_ENVELOPE,
self::UPS_EXPRESS_HARD_PAK,
self::UPS_EXPRESS_LEGAL_ENVELOPE,
self::UPS_EXPRESS_PAK,
self::UPS_EXPRESS_TUBE,
self::UPS_LABORATORY_PAK,
self::UPS_PAD_PAK,
self::UPS_PALLET,
self::USPS_CARD,
self::USPS_FLAT,
self::USPS_FLAT_RATE_CARDBOARD_ENVELOPE,
self::USPS_FLAT_RATE_ENVELOPE,
self::USPS_FLAT_RATE_GIFT_CARD_ENVELOPE,
self::USPS_FLAT_RATE_LEGAL_ENVELOPE,
self::USPS_FLAT_RATE_PADDED_ENVELOPE,
self::USPS_FLAT_RATE_WINDOW_ENVELOPE,
self::USPS_LARGE_FLAT_RATE_BOARD_GAME_BOX,
self::USPS_LARGE_FLAT_RATE_BOX,
self::USPS_LETTER,
self::USPS_MEDIUM_FLAT_RATE_BOX1,
self::USPS_MEDIUM_FLAT_RATE_BOX2,
self::USPS_REGIONAL_RATE_BOX_A1,
self::USPS_REGIONAL_RATE_BOX_A2,
self::USPS_REGIONAL_RATE_BOX_B1,
self::USPS_REGIONAL_RATE_BOX_B2,
self::USPS_REGIONAL_RATE_BOX_C,
self::USPS_SMALL_FLAT_RATE_BOX,
self::USPS_SMALL_FLAT_RATE_ENVELOPE, ];
}
}
| 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/MerchantFulfillment/PhoneNumber.php | lib/Models/MerchantFulfillment/PhoneNumber.php | <?php
/**
* PhoneNumber.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PhoneNumber Class Doc Comment.
*
* @description The phone number.
*
* @author Stefan Neuhaus / ClouSale
*/
class PhoneNumber implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PhoneNumber';
/**
* 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/MerchantFulfillment/CarrierWillPickUpOption.php | lib/Models/MerchantFulfillment/CarrierWillPickUpOption.php | <?php
/**
* CarrierWillPickUpOption.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* CarrierWillPickUpOption Class Doc Comment.
*
* @description Carrier will pick up option.
*
* @author Stefan Neuhaus / ClouSale
*/
class CarrierWillPickUpOption
{
/**
* Possible values of this enum.
*/
const CARRIER_WILL_PICK_UP = 'CarrierWillPickUp';
const SHIPPER_WILL_DROP_OFF = 'ShipperWillDropOff';
const NO_PREFERENCE = 'NoPreference';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::CARRIER_WILL_PICK_UP,
self::SHIPPER_WILL_DROP_OFF,
self::NO_PREFERENCE, ];
}
}
| 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/MerchantFulfillment/SellerOrderId.php | lib/Models/MerchantFulfillment/SellerOrderId.php | <?php
/**
* SellerOrderId.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerOrderId Class Doc Comment.
*
* @description A seller-defined order identifier.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerOrderId implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerOrderId';
/**
* 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/MerchantFulfillment/ShippingOfferingFilter.php | lib/Models/MerchantFulfillment/ShippingOfferingFilter.php | <?php
/**
* ShippingOfferingFilter.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShippingOfferingFilter Class Doc Comment.
*
* @description Filter for use when requesting eligible shipping services.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShippingOfferingFilter implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShippingOfferingFilter';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'include_packing_slip_with_label' => 'bool',
'include_complex_shipping_options' => 'bool',
'carrier_will_pick_up' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption',
'delivery_experience' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'include_packing_slip_with_label' => null,
'include_complex_shipping_options' => null,
'carrier_will_pick_up' => null,
'delivery_experience' => 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 = [
'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel',
'include_complex_shipping_options' => 'IncludeComplexShippingOptions',
'carrier_will_pick_up' => 'CarrierWillPickUp',
'delivery_experience' => 'DeliveryExperience', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel',
'include_complex_shipping_options' => 'setIncludeComplexShippingOptions',
'carrier_will_pick_up' => 'setCarrierWillPickUp',
'delivery_experience' => 'setDeliveryExperience', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel',
'include_complex_shipping_options' => 'getIncludeComplexShippingOptions',
'carrier_will_pick_up' => 'getCarrierWillPickUp',
'delivery_experience' => 'getDeliveryExperience', ];
/**
* 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['include_packing_slip_with_label'] = isset($data['include_packing_slip_with_label']) ? $data['include_packing_slip_with_label'] : null;
$this->container['include_complex_shipping_options'] = isset($data['include_complex_shipping_options']) ? $data['include_complex_shipping_options'] : null;
$this->container['carrier_will_pick_up'] = isset($data['carrier_will_pick_up']) ? $data['carrier_will_pick_up'] : null;
$this->container['delivery_experience'] = isset($data['delivery_experience']) ? $data['delivery_experience'] : 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 include_packing_slip_with_label.
*
* @return bool
*/
public function getIncludePackingSlipWithLabel()
{
return $this->container['include_packing_slip_with_label'];
}
/**
* Sets include_packing_slip_with_label.
*
* @param bool $include_packing_slip_with_label when true, include a packing slip with the label
*
* @return $this
*/
public function setIncludePackingSlipWithLabel($include_packing_slip_with_label)
{
$this->container['include_packing_slip_with_label'] = $include_packing_slip_with_label;
return $this;
}
/**
* Gets include_complex_shipping_options.
*
* @return bool
*/
public function getIncludeComplexShippingOptions()
{
return $this->container['include_complex_shipping_options'];
}
/**
* Sets include_complex_shipping_options.
*
* @param bool $include_complex_shipping_options when true, include complex shipping options
*
* @return $this
*/
public function setIncludeComplexShippingOptions($include_complex_shipping_options)
{
$this->container['include_complex_shipping_options'] = $include_complex_shipping_options;
return $this;
}
/**
* Gets carrier_will_pick_up.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption
*/
public function getCarrierWillPickUp()
{
return $this->container['carrier_will_pick_up'];
}
/**
* Sets carrier_will_pick_up.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption $carrier_will_pick_up carrier_will_pick_up
*
* @return $this
*/
public function setCarrierWillPickUp($carrier_will_pick_up)
{
$this->container['carrier_will_pick_up'] = $carrier_will_pick_up;
return $this;
}
/**
* Gets delivery_experience.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption
*/
public function getDeliveryExperience()
{
return $this->container['delivery_experience'];
}
/**
* Sets delivery_experience.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption $delivery_experience delivery_experience
*
* @return $this
*/
public function setDeliveryExperience($delivery_experience)
{
$this->container['delivery_experience'] = $delivery_experience;
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/MerchantFulfillment/TransparencyCode.php | lib/Models/MerchantFulfillment/TransparencyCode.php | <?php
/**
* TransparencyCode.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TransparencyCode Class Doc Comment.
*
* @description The Transparency code associated with the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class TransparencyCode implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TransparencyCode';
/**
* 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/MerchantFulfillment/GetAdditionalSellerInputsResult.php | lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResult.php | <?php
/**
* GetAdditionalSellerInputsResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetAdditionalSellerInputsResult Class Doc Comment.
*
* @description The payload for the getAdditionalSellerInputs operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetAdditionalSellerInputsResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetAdditionalSellerInputsResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_level_fields' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList',
'item_level_fields_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemLevelFieldsList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_level_fields' => null,
'item_level_fields_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_level_fields' => 'ShipmentLevelFields',
'item_level_fields_list' => 'ItemLevelFieldsList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_level_fields' => 'setShipmentLevelFields',
'item_level_fields_list' => 'setItemLevelFieldsList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_level_fields' => 'getShipmentLevelFields',
'item_level_fields_list' => 'getItemLevelFieldsList', ];
/**
* 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_level_fields'] = isset($data['shipment_level_fields']) ? $data['shipment_level_fields'] : null;
$this->container['item_level_fields_list'] = isset($data['item_level_fields_list']) ? $data['item_level_fields_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_level_fields.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList
*/
public function getShipmentLevelFields()
{
return $this->container['shipment_level_fields'];
}
/**
* Sets shipment_level_fields.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList $shipment_level_fields shipment_level_fields
*
* @return $this
*/
public function setShipmentLevelFields($shipment_level_fields)
{
$this->container['shipment_level_fields'] = $shipment_level_fields;
return $this;
}
/**
* Gets item_level_fields_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemLevelFieldsList
*/
public function getItemLevelFieldsList()
{
return $this->container['item_level_fields_list'];
}
/**
* Sets item_level_fields_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemLevelFieldsList $item_level_fields_list item_level_fields_list
*
* @return $this
*/
public function setItemLevelFieldsList($item_level_fields_list)
{
$this->container['item_level_fields_list'] = $item_level_fields_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/MerchantFulfillment/Constraint.php | lib/Models/MerchantFulfillment/Constraint.php | <?php
/**
* Constraint.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Constraint Class Doc Comment.
*
* @description A validation constraint.
*
* @author Stefan Neuhaus / ClouSale
*/
class Constraint implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Constraint';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'validation_reg_ex' => 'string',
'validation_string' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'validation_reg_ex' => null,
'validation_string' => 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 = [
'validation_reg_ex' => 'ValidationRegEx',
'validation_string' => 'ValidationString', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'validation_reg_ex' => 'setValidationRegEx',
'validation_string' => 'setValidationString', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'validation_reg_ex' => 'getValidationRegEx',
'validation_string' => 'getValidationString', ];
/**
* 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['validation_reg_ex'] = isset($data['validation_reg_ex']) ? $data['validation_reg_ex'] : null;
$this->container['validation_string'] = isset($data['validation_string']) ? $data['validation_string'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['validation_string']) {
$invalidProperties[] = "'validation_string' 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 validation_reg_ex.
*
* @return string
*/
public function getValidationRegEx()
{
return $this->container['validation_reg_ex'];
}
/**
* Sets validation_reg_ex.
*
* @param string $validation_reg_ex a regular expression
*
* @return $this
*/
public function setValidationRegEx($validation_reg_ex)
{
$this->container['validation_reg_ex'] = $validation_reg_ex;
return $this;
}
/**
* Gets validation_string.
*
* @return string
*/
public function getValidationString()
{
return $this->container['validation_string'];
}
/**
* Sets validation_string.
*
* @param string $validation_string a validation string
*
* @return $this
*/
public function setValidationString($validation_string)
{
$this->container['validation_string'] = $validation_string;
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/MerchantFulfillment/Label.php | lib/Models/MerchantFulfillment/Label.php | <?php
/**
* Label.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Label Class Doc Comment.
*
* @description Data for creating a shipping label and dimensions for printing the label.
*
* @author Stefan Neuhaus / ClouSale
*/
class Label implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Label';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'custom_text_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel',
'dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimensions',
'file_contents' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileContents',
'label_format' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat',
'standard_id_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'custom_text_for_label' => null,
'dimensions' => null,
'file_contents' => null,
'label_format' => null,
'standard_id_for_label' => 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 = [
'custom_text_for_label' => 'CustomTextForLabel',
'dimensions' => 'Dimensions',
'file_contents' => 'FileContents',
'label_format' => 'LabelFormat',
'standard_id_for_label' => 'StandardIdForLabel', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'custom_text_for_label' => 'setCustomTextForLabel',
'dimensions' => 'setDimensions',
'file_contents' => 'setFileContents',
'label_format' => 'setLabelFormat',
'standard_id_for_label' => 'setStandardIdForLabel', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'custom_text_for_label' => 'getCustomTextForLabel',
'dimensions' => 'getDimensions',
'file_contents' => 'getFileContents',
'label_format' => 'getLabelFormat',
'standard_id_for_label' => 'getStandardIdForLabel', ];
/**
* 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['custom_text_for_label'] = isset($data['custom_text_for_label']) ? $data['custom_text_for_label'] : null;
$this->container['dimensions'] = isset($data['dimensions']) ? $data['dimensions'] : null;
$this->container['file_contents'] = isset($data['file_contents']) ? $data['file_contents'] : null;
$this->container['label_format'] = isset($data['label_format']) ? $data['label_format'] : null;
$this->container['standard_id_for_label'] = isset($data['standard_id_for_label']) ? $data['standard_id_for_label'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['dimensions']) {
$invalidProperties[] = "'dimensions' can't be null";
}
if (null === $this->container['file_contents']) {
$invalidProperties[] = "'file_contents' 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 custom_text_for_label.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel
*/
public function getCustomTextForLabel()
{
return $this->container['custom_text_for_label'];
}
/**
* Sets custom_text_for_label.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel $custom_text_for_label custom_text_for_label
*
* @return $this
*/
public function setCustomTextForLabel($custom_text_for_label)
{
$this->container['custom_text_for_label'] = $custom_text_for_label;
return $this;
}
/**
* Gets dimensions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimensions
*/
public function getDimensions()
{
return $this->container['dimensions'];
}
/**
* Sets dimensions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimensions $dimensions dimensions
*
* @return $this
*/
public function setDimensions($dimensions)
{
$this->container['dimensions'] = $dimensions;
return $this;
}
/**
* Gets file_contents.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileContents
*/
public function getFileContents()
{
return $this->container['file_contents'];
}
/**
* Sets file_contents.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileContents $file_contents file_contents
*
* @return $this
*/
public function setFileContents($file_contents)
{
$this->container['file_contents'] = $file_contents;
return $this;
}
/**
* Gets label_format.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat
*/
public function getLabelFormat()
{
return $this->container['label_format'];
}
/**
* Sets label_format.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat $label_format label_format
*
* @return $this
*/
public function setLabelFormat($label_format)
{
$this->container['label_format'] = $label_format;
return $this;
}
/**
* Gets standard_id_for_label.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel
*/
public function getStandardIdForLabel()
{
return $this->container['standard_id_for_label'];
}
/**
* Sets standard_id_for_label.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel $standard_id_for_label standard_id_for_label
*
* @return $this
*/
public function setStandardIdForLabel($standard_id_for_label)
{
$this->container['standard_id_for_label'] = $standard_id_for_label;
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/MerchantFulfillment/AdditionalSellerInputsList.php | lib/Models/MerchantFulfillment/AdditionalSellerInputsList.php | <?php
/**
* AdditionalSellerInputsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AdditionalSellerInputsList Class Doc Comment.
*
* @description A list of additional seller input pairs required to purchase shipping.
*
* @author Stefan Neuhaus / ClouSale
*/
class AdditionalSellerInputsList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AdditionalSellerInputsList';
/**
* 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 AdditionalSellerInputs::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/MerchantFulfillment/RejectedShippingService.php | lib/Models/MerchantFulfillment/RejectedShippingService.php | <?php
/**
* RejectedShippingService.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RejectedShippingService Class Doc Comment.
*
* @description Information about a rejected shipping service
*
* @author Stefan Neuhaus / ClouSale
*/
class RejectedShippingService implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RejectedShippingService';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'carrier_name' => 'string',
'shipping_service_name' => 'string',
'shipping_service_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier',
'rejection_reason_code' => 'string',
'rejection_reason_message' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'carrier_name' => null,
'shipping_service_name' => null,
'shipping_service_id' => null,
'rejection_reason_code' => null,
'rejection_reason_message' => 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 = [
'carrier_name' => 'CarrierName',
'shipping_service_name' => 'ShippingServiceName',
'shipping_service_id' => 'ShippingServiceId',
'rejection_reason_code' => 'RejectionReasonCode',
'rejection_reason_message' => 'RejectionReasonMessage', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'carrier_name' => 'setCarrierName',
'shipping_service_name' => 'setShippingServiceName',
'shipping_service_id' => 'setShippingServiceId',
'rejection_reason_code' => 'setRejectionReasonCode',
'rejection_reason_message' => 'setRejectionReasonMessage', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'carrier_name' => 'getCarrierName',
'shipping_service_name' => 'getShippingServiceName',
'shipping_service_id' => 'getShippingServiceId',
'rejection_reason_code' => 'getRejectionReasonCode',
'rejection_reason_message' => 'getRejectionReasonMessage', ];
/**
* 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['carrier_name'] = isset($data['carrier_name']) ? $data['carrier_name'] : null;
$this->container['shipping_service_name'] = isset($data['shipping_service_name']) ? $data['shipping_service_name'] : null;
$this->container['shipping_service_id'] = isset($data['shipping_service_id']) ? $data['shipping_service_id'] : null;
$this->container['rejection_reason_code'] = isset($data['rejection_reason_code']) ? $data['rejection_reason_code'] : null;
$this->container['rejection_reason_message'] = isset($data['rejection_reason_message']) ? $data['rejection_reason_message'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['carrier_name']) {
$invalidProperties[] = "'carrier_name' can't be null";
}
if (null === $this->container['shipping_service_name']) {
$invalidProperties[] = "'shipping_service_name' can't be null";
}
if (null === $this->container['shipping_service_id']) {
$invalidProperties[] = "'shipping_service_id' can't be null";
}
if (null === $this->container['rejection_reason_code']) {
$invalidProperties[] = "'rejection_reason_code' 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 carrier_name.
*
* @return string
*/
public function getCarrierName()
{
return $this->container['carrier_name'];
}
/**
* Sets carrier_name.
*
* @param string $carrier_name The rejected shipping carrier name. e.g. USPS
*
* @return $this
*/
public function setCarrierName($carrier_name)
{
$this->container['carrier_name'] = $carrier_name;
return $this;
}
/**
* Gets shipping_service_name.
*
* @return string
*/
public function getShippingServiceName()
{
return $this->container['shipping_service_name'];
}
/**
* Sets shipping_service_name.
*
* @param string $shipping_service_name The rejected shipping service localized name. e.g. FedEx Standard Overnight
*
* @return $this
*/
public function setShippingServiceName($shipping_service_name)
{
$this->container['shipping_service_name'] = $shipping_service_name;
return $this;
}
/**
* Gets shipping_service_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier
*/
public function getShippingServiceId()
{
return $this->container['shipping_service_id'];
}
/**
* Sets shipping_service_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier $shipping_service_id shipping_service_id
*
* @return $this
*/
public function setShippingServiceId($shipping_service_id)
{
$this->container['shipping_service_id'] = $shipping_service_id;
return $this;
}
/**
* Gets rejection_reason_code.
*
* @return string
*/
public function getRejectionReasonCode()
{
return $this->container['rejection_reason_code'];
}
/**
* Sets rejection_reason_code.
*
* @param string $rejection_reason_code A reason code meant to be consumed programatically. e.g. CARRIER_CANNOT_SHIP_TO_POBOX
*
* @return $this
*/
public function setRejectionReasonCode($rejection_reason_code)
{
$this->container['rejection_reason_code'] = $rejection_reason_code;
return $this;
}
/**
* Gets rejection_reason_message.
*
* @return string
*/
public function getRejectionReasonMessage()
{
return $this->container['rejection_reason_message'];
}
/**
* Sets rejection_reason_message.
*
* @param string $rejection_reason_message a localized human readable description of the rejected reason
*
* @return $this
*/
public function setRejectionReasonMessage($rejection_reason_message)
{
$this->container['rejection_reason_message'] = $rejection_reason_message;
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/MerchantFulfillment/FileType.php | lib/Models/MerchantFulfillment/FileType.php | <?php
/**
* FileType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* FileType Class Doc Comment.
*
* @description The file type for a label.
*
* @author Stefan Neuhaus / ClouSale
*/
class FileType
{
/**
* Possible values of this enum.
*/
const APPLICATIONPDF = 'application/pdf';
const APPLICATIONZPL = 'application/zpl';
const IMAGEPNG = 'image/png';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::APPLICATIONPDF,
self::APPLICATIONZPL,
self::IMAGEPNG, ];
}
}
| 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/MerchantFulfillment/PackageDimension.php | lib/Models/MerchantFulfillment/PackageDimension.php | <?php
/**
* PackageDimension.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PackageDimension Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class PackageDimension implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PackageDimension';
/**
* 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/MerchantFulfillment/ShipmentRequestDetails.php | lib/Models/MerchantFulfillment/ShipmentRequestDetails.php | <?php
/**
* ShipmentRequestDetails.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShipmentRequestDetails Class Doc Comment.
*
* @description Shipment information required for requesting shipping service offers or for creating a shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipmentRequestDetails implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShipmentRequestDetails';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'amazon_order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId',
'seller_order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId',
'item_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList',
'ship_from_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address',
'package_dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions',
'weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight',
'must_arrive_by_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp',
'ship_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp',
'shipping_service_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions',
'label_customization' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelCustomization', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'amazon_order_id' => null,
'seller_order_id' => null,
'item_list' => null,
'ship_from_address' => null,
'package_dimensions' => null,
'weight' => null,
'must_arrive_by_date' => null,
'ship_date' => null,
'shipping_service_options' => null,
'label_customization' => 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',
'item_list' => 'ItemList',
'ship_from_address' => 'ShipFromAddress',
'package_dimensions' => 'PackageDimensions',
'weight' => 'Weight',
'must_arrive_by_date' => 'MustArriveByDate',
'ship_date' => 'ShipDate',
'shipping_service_options' => 'ShippingServiceOptions',
'label_customization' => 'LabelCustomization', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'amazon_order_id' => 'setAmazonOrderId',
'seller_order_id' => 'setSellerOrderId',
'item_list' => 'setItemList',
'ship_from_address' => 'setShipFromAddress',
'package_dimensions' => 'setPackageDimensions',
'weight' => 'setWeight',
'must_arrive_by_date' => 'setMustArriveByDate',
'ship_date' => 'setShipDate',
'shipping_service_options' => 'setShippingServiceOptions',
'label_customization' => 'setLabelCustomization', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'amazon_order_id' => 'getAmazonOrderId',
'seller_order_id' => 'getSellerOrderId',
'item_list' => 'getItemList',
'ship_from_address' => 'getShipFromAddress',
'package_dimensions' => 'getPackageDimensions',
'weight' => 'getWeight',
'must_arrive_by_date' => 'getMustArriveByDate',
'ship_date' => 'getShipDate',
'shipping_service_options' => 'getShippingServiceOptions',
'label_customization' => 'getLabelCustomization', ];
/**
* 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['item_list'] = isset($data['item_list']) ? $data['item_list'] : null;
$this->container['ship_from_address'] = isset($data['ship_from_address']) ? $data['ship_from_address'] : null;
$this->container['package_dimensions'] = isset($data['package_dimensions']) ? $data['package_dimensions'] : null;
$this->container['weight'] = isset($data['weight']) ? $data['weight'] : null;
$this->container['must_arrive_by_date'] = isset($data['must_arrive_by_date']) ? $data['must_arrive_by_date'] : null;
$this->container['ship_date'] = isset($data['ship_date']) ? $data['ship_date'] : null;
$this->container['shipping_service_options'] = isset($data['shipping_service_options']) ? $data['shipping_service_options'] : null;
$this->container['label_customization'] = isset($data['label_customization']) ? $data['label_customization'] : 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['item_list']) {
$invalidProperties[] = "'item_list' can't be null";
}
if (null === $this->container['ship_from_address']) {
$invalidProperties[] = "'ship_from_address' can't be null";
}
if (null === $this->container['package_dimensions']) {
$invalidProperties[] = "'package_dimensions' can't be null";
}
if (null === $this->container['weight']) {
$invalidProperties[] = "'weight' can't be null";
}
if (null === $this->container['shipping_service_options']) {
$invalidProperties[] = "'shipping_service_options' 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 \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId
*/
public function getAmazonOrderId()
{
return $this->container['amazon_order_id'];
}
/**
* Sets amazon_order_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId $amazon_order_id amazon_order_id
*
* @return $this
*/
public function setAmazonOrderId($amazon_order_id)
{
$this->container['amazon_order_id'] = $amazon_order_id;
return $this;
}
/**
* Gets seller_order_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId
*/
public function getSellerOrderId()
{
return $this->container['seller_order_id'];
}
/**
* Sets seller_order_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId $seller_order_id seller_order_id
*
* @return $this
*/
public function setSellerOrderId($seller_order_id)
{
$this->container['seller_order_id'] = $seller_order_id;
return $this;
}
/**
* Gets item_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList
*/
public function getItemList()
{
return $this->container['item_list'];
}
/**
* Sets item_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList $item_list item_list
*
* @return $this
*/
public function setItemList($item_list)
{
$this->container['item_list'] = $item_list;
return $this;
}
/**
* Gets ship_from_address.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address
*/
public function getShipFromAddress()
{
return $this->container['ship_from_address'];
}
/**
* Sets ship_from_address.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $ship_from_address ship_from_address
*
* @return $this
*/
public function setShipFromAddress($ship_from_address)
{
$this->container['ship_from_address'] = $ship_from_address;
return $this;
}
/**
* Gets package_dimensions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions
*/
public function getPackageDimensions()
{
return $this->container['package_dimensions'];
}
/**
* Sets package_dimensions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions $package_dimensions package_dimensions
*
* @return $this
*/
public function setPackageDimensions($package_dimensions)
{
$this->container['package_dimensions'] = $package_dimensions;
return $this;
}
/**
* Gets weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight
*/
public function getWeight()
{
return $this->container['weight'];
}
/**
* Sets weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight $weight weight
*
* @return $this
*/
public function setWeight($weight)
{
$this->container['weight'] = $weight;
return $this;
}
/**
* Gets must_arrive_by_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp
*/
public function getMustArriveByDate()
{
return $this->container['must_arrive_by_date'];
}
/**
* Sets must_arrive_by_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $must_arrive_by_date must_arrive_by_date
*
* @return $this
*/
public function setMustArriveByDate($must_arrive_by_date)
{
$this->container['must_arrive_by_date'] = $must_arrive_by_date;
return $this;
}
/**
* Gets ship_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp
*/
public function getShipDate()
{
return $this->container['ship_date'];
}
/**
* Sets ship_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $ship_date ship_date
*
* @return $this
*/
public function setShipDate($ship_date)
{
$this->container['ship_date'] = $ship_date;
return $this;
}
/**
* Gets shipping_service_options.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions
*/
public function getShippingServiceOptions()
{
return $this->container['shipping_service_options'];
}
/**
* Sets shipping_service_options.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions $shipping_service_options shipping_service_options
*
* @return $this
*/
public function setShippingServiceOptions($shipping_service_options)
{
$this->container['shipping_service_options'] = $shipping_service_options;
return $this;
}
/**
* Gets label_customization.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelCustomization
*/
public function getLabelCustomization()
{
return $this->container['label_customization'];
}
/**
* Sets label_customization.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelCustomization $label_customization label_customization
*
* @return $this
*/
public function setLabelCustomization($label_customization)
{
$this->container['label_customization'] = $label_customization;
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/MerchantFulfillment/DistrictOrCounty.php | lib/Models/MerchantFulfillment/DistrictOrCounty.php | <?php
/**
* DistrictOrCounty.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* DistrictOrCounty Class Doc Comment.
*
* @description The district or county.
*
* @author Stefan Neuhaus / ClouSale
*/
class DistrictOrCounty implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'DistrictOrCounty';
/**
* 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/MerchantFulfillment/AvailableCarrierWillPickUpOption.php | lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOption.php | <?php
/**
* AvailableCarrierWillPickUpOption.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AvailableCarrierWillPickUpOption Class Doc Comment.
*
* @description Indicates whether the carrier will pick up the package, and what fee is charged, if any.
*
* @author Stefan Neuhaus / ClouSale
*/
class AvailableCarrierWillPickUpOption implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AvailableCarrierWillPickUpOption';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'carrier_will_pick_up_option' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption',
'charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'carrier_will_pick_up_option' => null,
'charge' => 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 = [
'carrier_will_pick_up_option' => 'CarrierWillPickUpOption',
'charge' => 'Charge', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'carrier_will_pick_up_option' => 'setCarrierWillPickUpOption',
'charge' => 'setCharge', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'carrier_will_pick_up_option' => 'getCarrierWillPickUpOption',
'charge' => 'getCharge', ];
/**
* 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['carrier_will_pick_up_option'] = isset($data['carrier_will_pick_up_option']) ? $data['carrier_will_pick_up_option'] : null;
$this->container['charge'] = isset($data['charge']) ? $data['charge'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['carrier_will_pick_up_option']) {
$invalidProperties[] = "'carrier_will_pick_up_option' can't be null";
}
if (null === $this->container['charge']) {
$invalidProperties[] = "'charge' 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 carrier_will_pick_up_option.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption
*/
public function getCarrierWillPickUpOption()
{
return $this->container['carrier_will_pick_up_option'];
}
/**
* Sets carrier_will_pick_up_option.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption $carrier_will_pick_up_option carrier_will_pick_up_option
*
* @return $this
*/
public function setCarrierWillPickUpOption($carrier_will_pick_up_option)
{
$this->container['carrier_will_pick_up_option'] = $carrier_will_pick_up_option;
return $this;
}
/**
* Gets charge.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount
*/
public function getCharge()
{
return $this->container['charge'];
}
/**
* Sets charge.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $charge charge
*
* @return $this
*/
public function setCharge($charge)
{
$this->container['charge'] = $charge;
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/MerchantFulfillment/StandardIdForLabel.php | lib/Models/MerchantFulfillment/StandardIdForLabel.php | <?php
/**
* StandardIdForLabel.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* StandardIdForLabel Class Doc Comment.
*
* @description The type of standard identifier to print on the label.
*
* @author Stefan Neuhaus / ClouSale
*/
class StandardIdForLabel
{
/**
* Possible values of this enum.
*/
const AMAZON_ORDER_ID = 'AmazonOrderId';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::AMAZON_ORDER_ID, ];
}
}
| 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/MerchantFulfillment/Length.php | lib/Models/MerchantFulfillment/Length.php | <?php
/**
* Length.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Length Class Doc Comment.
*
* @description The length.
*
* @author Stefan Neuhaus / ClouSale
*/
class Length implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Length';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'value' => 'float',
'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'value' => null,
'unit' => 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 = [
'value' => 'value',
'unit' => 'unit', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'value' => 'setValue',
'unit' => 'setUnit', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'value' => 'getValue',
'unit' => 'getUnit', ];
/**
* 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['value'] = isset($data['value']) ? $data['value'] : null;
$this->container['unit'] = isset($data['unit']) ? $data['unit'] : 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 value.
*
* @return float
*/
public function getValue()
{
return $this->container['value'];
}
/**
* Sets value.
*
* @param float $value the value in units
*
* @return $this
*/
public function setValue($value)
{
$this->container['value'] = $value;
return $this;
}
/**
* Gets unit.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength
*/
public function getUnit()
{
return $this->container['unit'];
}
/**
* Sets unit.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength $unit unit
*
* @return $this
*/
public function setUnit($unit)
{
$this->container['unit'] = $unit;
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/MerchantFulfillment/SellerInputDefinition.php | lib/Models/MerchantFulfillment/SellerInputDefinition.php | <?php
/**
* SellerInputDefinition.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerInputDefinition Class Doc Comment.
*
* @description Specifies characteristics that apply to a seller input.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerInputDefinition implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerInputDefinition';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'is_required' => 'bool',
'data_type' => 'string',
'constraints' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Constraints',
'input_display_text' => 'string',
'input_target' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\InputTargetType',
'stored_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput',
'restricted_set_values' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RestrictedSetValues', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'is_required' => null,
'data_type' => null,
'constraints' => null,
'input_display_text' => null,
'input_target' => null,
'stored_value' => null,
'restricted_set_values' => 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 = [
'is_required' => 'IsRequired',
'data_type' => 'DataType',
'constraints' => 'Constraints',
'input_display_text' => 'InputDisplayText',
'input_target' => 'InputTarget',
'stored_value' => 'StoredValue',
'restricted_set_values' => 'RestrictedSetValues', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'is_required' => 'setIsRequired',
'data_type' => 'setDataType',
'constraints' => 'setConstraints',
'input_display_text' => 'setInputDisplayText',
'input_target' => 'setInputTarget',
'stored_value' => 'setStoredValue',
'restricted_set_values' => 'setRestrictedSetValues', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'is_required' => 'getIsRequired',
'data_type' => 'getDataType',
'constraints' => 'getConstraints',
'input_display_text' => 'getInputDisplayText',
'input_target' => 'getInputTarget',
'stored_value' => 'getStoredValue',
'restricted_set_values' => 'getRestrictedSetValues', ];
/**
* 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['is_required'] = isset($data['is_required']) ? $data['is_required'] : null;
$this->container['data_type'] = isset($data['data_type']) ? $data['data_type'] : null;
$this->container['constraints'] = isset($data['constraints']) ? $data['constraints'] : null;
$this->container['input_display_text'] = isset($data['input_display_text']) ? $data['input_display_text'] : null;
$this->container['input_target'] = isset($data['input_target']) ? $data['input_target'] : null;
$this->container['stored_value'] = isset($data['stored_value']) ? $data['stored_value'] : null;
$this->container['restricted_set_values'] = isset($data['restricted_set_values']) ? $data['restricted_set_values'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['is_required']) {
$invalidProperties[] = "'is_required' can't be null";
}
if (null === $this->container['data_type']) {
$invalidProperties[] = "'data_type' can't be null";
}
if (null === $this->container['constraints']) {
$invalidProperties[] = "'constraints' can't be null";
}
if (null === $this->container['input_display_text']) {
$invalidProperties[] = "'input_display_text' can't be null";
}
if (null === $this->container['stored_value']) {
$invalidProperties[] = "'stored_value' 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 is_required.
*
* @return bool
*/
public function getIsRequired()
{
return $this->container['is_required'];
}
/**
* Sets is_required.
*
* @param bool $is_required when true, the additional input field is required
*
* @return $this
*/
public function setIsRequired($is_required)
{
$this->container['is_required'] = $is_required;
return $this;
}
/**
* Gets data_type.
*
* @return string
*/
public function getDataType()
{
return $this->container['data_type'];
}
/**
* Sets data_type.
*
* @param string $data_type the data type of the additional input field
*
* @return $this
*/
public function setDataType($data_type)
{
$this->container['data_type'] = $data_type;
return $this;
}
/**
* Gets constraints.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Constraints
*/
public function getConstraints()
{
return $this->container['constraints'];
}
/**
* Sets constraints.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Constraints $constraints constraints
*
* @return $this
*/
public function setConstraints($constraints)
{
$this->container['constraints'] = $constraints;
return $this;
}
/**
* Gets input_display_text.
*
* @return string
*/
public function getInputDisplayText()
{
return $this->container['input_display_text'];
}
/**
* Sets input_display_text.
*
* @param string $input_display_text the display text for the additional input field
*
* @return $this
*/
public function setInputDisplayText($input_display_text)
{
$this->container['input_display_text'] = $input_display_text;
return $this;
}
/**
* Gets input_target.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\InputTargetType
*/
public function getInputTarget()
{
return $this->container['input_target'];
}
/**
* Sets input_target.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\InputTargetType $input_target input_target
*
* @return $this
*/
public function setInputTarget($input_target)
{
$this->container['input_target'] = $input_target;
return $this;
}
/**
* Gets stored_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput
*/
public function getStoredValue()
{
return $this->container['stored_value'];
}
/**
* Sets stored_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput $stored_value stored_value
*
* @return $this
*/
public function setStoredValue($stored_value)
{
$this->container['stored_value'] = $stored_value;
return $this;
}
/**
* Gets restricted_set_values.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RestrictedSetValues
*/
public function getRestrictedSetValues()
{
return $this->container['restricted_set_values'];
}
/**
* Sets restricted_set_values.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RestrictedSetValues $restricted_set_values restricted_set_values
*
* @return $this
*/
public function setRestrictedSetValues($restricted_set_values)
{
$this->container['restricted_set_values'] = $restricted_set_values;
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/MerchantFulfillment/UnitOfWeight.php | lib/Models/MerchantFulfillment/UnitOfWeight.php | <?php
/**
* UnitOfWeight.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* UnitOfWeight Class Doc Comment.
*
* @description The unit of weight.
*
* @author Stefan Neuhaus / ClouSale
*/
class UnitOfWeight
{
/**
* Possible values of this enum.
*/
const OZ = 'oz';
const G = 'g';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::OZ,
self::G, ];
}
}
| 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/MerchantFulfillment/ShippingServiceIdentifier.php | lib/Models/MerchantFulfillment/ShippingServiceIdentifier.php | <?php
/**
* ShippingServiceIdentifier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShippingServiceIdentifier Class Doc Comment.
*
* @description An Amazon-defined shipping service identifier.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShippingServiceIdentifier implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShippingServiceIdentifier';
/**
* 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/MerchantFulfillment/ShippingServiceOptions.php | lib/Models/MerchantFulfillment/ShippingServiceOptions.php | <?php
/**
* ShippingServiceOptions.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShippingServiceOptions Class Doc Comment.
*
* @description Extra services provided by a carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShippingServiceOptions implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShippingServiceOptions';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'delivery_experience' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceType',
'declared_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount',
'carrier_will_pick_up' => 'bool',
'carrier_will_pick_up_option' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption',
'label_format' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'delivery_experience' => null,
'declared_value' => null,
'carrier_will_pick_up' => null,
'carrier_will_pick_up_option' => null,
'label_format' => 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 = [
'delivery_experience' => 'DeliveryExperience',
'declared_value' => 'DeclaredValue',
'carrier_will_pick_up' => 'CarrierWillPickUp',
'carrier_will_pick_up_option' => 'CarrierWillPickUpOption',
'label_format' => 'LabelFormat', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'delivery_experience' => 'setDeliveryExperience',
'declared_value' => 'setDeclaredValue',
'carrier_will_pick_up' => 'setCarrierWillPickUp',
'carrier_will_pick_up_option' => 'setCarrierWillPickUpOption',
'label_format' => 'setLabelFormat', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'delivery_experience' => 'getDeliveryExperience',
'declared_value' => 'getDeclaredValue',
'carrier_will_pick_up' => 'getCarrierWillPickUp',
'carrier_will_pick_up_option' => 'getCarrierWillPickUpOption',
'label_format' => 'getLabelFormat', ];
/**
* 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['delivery_experience'] = isset($data['delivery_experience']) ? $data['delivery_experience'] : null;
$this->container['declared_value'] = isset($data['declared_value']) ? $data['declared_value'] : null;
$this->container['carrier_will_pick_up'] = isset($data['carrier_will_pick_up']) ? $data['carrier_will_pick_up'] : null;
$this->container['carrier_will_pick_up_option'] = isset($data['carrier_will_pick_up_option']) ? $data['carrier_will_pick_up_option'] : null;
$this->container['label_format'] = isset($data['label_format']) ? $data['label_format'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['delivery_experience']) {
$invalidProperties[] = "'delivery_experience' can't be null";
}
if (null === $this->container['carrier_will_pick_up']) {
$invalidProperties[] = "'carrier_will_pick_up' 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 delivery_experience.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceType
*/
public function getDeliveryExperience()
{
return $this->container['delivery_experience'];
}
/**
* Sets delivery_experience.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceType $delivery_experience delivery_experience
*
* @return $this
*/
public function setDeliveryExperience($delivery_experience)
{
$this->container['delivery_experience'] = $delivery_experience;
return $this;
}
/**
* Gets declared_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount
*/
public function getDeclaredValue()
{
return $this->container['declared_value'];
}
/**
* Sets declared_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $declared_value declared_value
*
* @return $this
*/
public function setDeclaredValue($declared_value)
{
$this->container['declared_value'] = $declared_value;
return $this;
}
/**
* Gets carrier_will_pick_up.
*
* @return bool
*/
public function getCarrierWillPickUp()
{
return $this->container['carrier_will_pick_up'];
}
/**
* Sets carrier_will_pick_up.
*
* @param bool $carrier_will_pick_up When true, the carrier will pick up the package. Note: Scheduled carrier pickup is available only using Dynamex (US), DPD (UK), and Royal Mail (UK).
*
* @return $this
*/
public function setCarrierWillPickUp($carrier_will_pick_up)
{
$this->container['carrier_will_pick_up'] = $carrier_will_pick_up;
return $this;
}
/**
* Gets carrier_will_pick_up_option.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption
*/
public function getCarrierWillPickUpOption()
{
return $this->container['carrier_will_pick_up_option'];
}
/**
* Sets carrier_will_pick_up_option.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption $carrier_will_pick_up_option carrier_will_pick_up_option
*
* @return $this
*/
public function setCarrierWillPickUpOption($carrier_will_pick_up_option)
{
$this->container['carrier_will_pick_up_option'] = $carrier_will_pick_up_option;
return $this;
}
/**
* Gets label_format.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat
*/
public function getLabelFormat()
{
return $this->container['label_format'];
}
/**
* Sets label_format.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat $label_format label_format
*
* @return $this
*/
public function setLabelFormat($label_format)
{
$this->container['label_format'] = $label_format;
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/MerchantFulfillment/AddressLine2.php | lib/Models/MerchantFulfillment/AddressLine2.php | <?php
/**
* AddressLine2.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AddressLine2 Class Doc Comment.
*
* @description Additional street address information.
*
* @author Stefan Neuhaus / ClouSale
*/
class AddressLine2 implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AddressLine2';
/**
* 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/MerchantFulfillment/City.php | lib/Models/MerchantFulfillment/City.php | <?php
/**
* City.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* City Class Doc Comment.
*
* @description The city.
*
* @author Stefan Neuhaus / ClouSale
*/
class City implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'City';
/**
* 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/MerchantFulfillment/CountryCode.php | lib/Models/MerchantFulfillment/CountryCode.php | <?php
/**
* CountryCode.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CountryCode Class Doc Comment.
*
* @description The country code. A two-character country code, in ISO 3166-1 alpha-2 format.
*
* @author Stefan Neuhaus / ClouSale
*/
class CountryCode implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CountryCode';
/**
* 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/MerchantFulfillment/RejectedShippingServiceList.php | lib/Models/MerchantFulfillment/RejectedShippingServiceList.php | <?php
/**
* RejectedShippingServiceList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RejectedShippingServiceList Class Doc Comment.
*
* @description List of services that were for some reason unavailable for this request
*
* @author Stefan Neuhaus / ClouSale
*/
class RejectedShippingServiceList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RejectedShippingServiceList';
/**
* 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 RejectedShippingService::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/MerchantFulfillment/ShippingService.php | lib/Models/MerchantFulfillment/ShippingService.php | <?php
/**
* ShippingService.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShippingService Class Doc Comment.
*
* @description A shipping service offer made by a carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShippingService implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShippingService';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipping_service_name' => 'string',
'carrier_name' => 'string',
'shipping_service_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier',
'shipping_service_offer_id' => 'string',
'ship_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp',
'earliest_estimated_delivery_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp',
'latest_estimated_delivery_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp',
'rate' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount',
'shipping_service_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions',
'available_shipping_service_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableShippingServiceOptions',
'available_label_formats' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatList',
'available_format_options_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableFormatOptionsForLabelList',
'requires_additional_seller_inputs' => 'bool', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipping_service_name' => null,
'carrier_name' => null,
'shipping_service_id' => null,
'shipping_service_offer_id' => null,
'ship_date' => null,
'earliest_estimated_delivery_date' => null,
'latest_estimated_delivery_date' => null,
'rate' => null,
'shipping_service_options' => null,
'available_shipping_service_options' => null,
'available_label_formats' => null,
'available_format_options_for_label' => null,
'requires_additional_seller_inputs' => 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 = [
'shipping_service_name' => 'ShippingServiceName',
'carrier_name' => 'CarrierName',
'shipping_service_id' => 'ShippingServiceId',
'shipping_service_offer_id' => 'ShippingServiceOfferId',
'ship_date' => 'ShipDate',
'earliest_estimated_delivery_date' => 'EarliestEstimatedDeliveryDate',
'latest_estimated_delivery_date' => 'LatestEstimatedDeliveryDate',
'rate' => 'Rate',
'shipping_service_options' => 'ShippingServiceOptions',
'available_shipping_service_options' => 'AvailableShippingServiceOptions',
'available_label_formats' => 'AvailableLabelFormats',
'available_format_options_for_label' => 'AvailableFormatOptionsForLabel',
'requires_additional_seller_inputs' => 'RequiresAdditionalSellerInputs', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipping_service_name' => 'setShippingServiceName',
'carrier_name' => 'setCarrierName',
'shipping_service_id' => 'setShippingServiceId',
'shipping_service_offer_id' => 'setShippingServiceOfferId',
'ship_date' => 'setShipDate',
'earliest_estimated_delivery_date' => 'setEarliestEstimatedDeliveryDate',
'latest_estimated_delivery_date' => 'setLatestEstimatedDeliveryDate',
'rate' => 'setRate',
'shipping_service_options' => 'setShippingServiceOptions',
'available_shipping_service_options' => 'setAvailableShippingServiceOptions',
'available_label_formats' => 'setAvailableLabelFormats',
'available_format_options_for_label' => 'setAvailableFormatOptionsForLabel',
'requires_additional_seller_inputs' => 'setRequiresAdditionalSellerInputs', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipping_service_name' => 'getShippingServiceName',
'carrier_name' => 'getCarrierName',
'shipping_service_id' => 'getShippingServiceId',
'shipping_service_offer_id' => 'getShippingServiceOfferId',
'ship_date' => 'getShipDate',
'earliest_estimated_delivery_date' => 'getEarliestEstimatedDeliveryDate',
'latest_estimated_delivery_date' => 'getLatestEstimatedDeliveryDate',
'rate' => 'getRate',
'shipping_service_options' => 'getShippingServiceOptions',
'available_shipping_service_options' => 'getAvailableShippingServiceOptions',
'available_label_formats' => 'getAvailableLabelFormats',
'available_format_options_for_label' => 'getAvailableFormatOptionsForLabel',
'requires_additional_seller_inputs' => 'getRequiresAdditionalSellerInputs', ];
/**
* 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['shipping_service_name'] = isset($data['shipping_service_name']) ? $data['shipping_service_name'] : null;
$this->container['carrier_name'] = isset($data['carrier_name']) ? $data['carrier_name'] : null;
$this->container['shipping_service_id'] = isset($data['shipping_service_id']) ? $data['shipping_service_id'] : null;
$this->container['shipping_service_offer_id'] = isset($data['shipping_service_offer_id']) ? $data['shipping_service_offer_id'] : null;
$this->container['ship_date'] = isset($data['ship_date']) ? $data['ship_date'] : null;
$this->container['earliest_estimated_delivery_date'] = isset($data['earliest_estimated_delivery_date']) ? $data['earliest_estimated_delivery_date'] : null;
$this->container['latest_estimated_delivery_date'] = isset($data['latest_estimated_delivery_date']) ? $data['latest_estimated_delivery_date'] : null;
$this->container['rate'] = isset($data['rate']) ? $data['rate'] : null;
$this->container['shipping_service_options'] = isset($data['shipping_service_options']) ? $data['shipping_service_options'] : null;
$this->container['available_shipping_service_options'] = isset($data['available_shipping_service_options']) ? $data['available_shipping_service_options'] : null;
$this->container['available_label_formats'] = isset($data['available_label_formats']) ? $data['available_label_formats'] : null;
$this->container['available_format_options_for_label'] = isset($data['available_format_options_for_label']) ? $data['available_format_options_for_label'] : null;
$this->container['requires_additional_seller_inputs'] = isset($data['requires_additional_seller_inputs']) ? $data['requires_additional_seller_inputs'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['shipping_service_name']) {
$invalidProperties[] = "'shipping_service_name' can't be null";
}
if (null === $this->container['carrier_name']) {
$invalidProperties[] = "'carrier_name' can't be null";
}
if (null === $this->container['shipping_service_id']) {
$invalidProperties[] = "'shipping_service_id' can't be null";
}
if (null === $this->container['shipping_service_offer_id']) {
$invalidProperties[] = "'shipping_service_offer_id' can't be null";
}
if (null === $this->container['ship_date']) {
$invalidProperties[] = "'ship_date' can't be null";
}
if (null === $this->container['rate']) {
$invalidProperties[] = "'rate' can't be null";
}
if (null === $this->container['shipping_service_options']) {
$invalidProperties[] = "'shipping_service_options' can't be null";
}
if (null === $this->container['requires_additional_seller_inputs']) {
$invalidProperties[] = "'requires_additional_seller_inputs' 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 shipping_service_name.
*
* @return string
*/
public function getShippingServiceName()
{
return $this->container['shipping_service_name'];
}
/**
* Sets shipping_service_name.
*
* @param string $shipping_service_name A plain text representation of a carrier's shipping service. For example, \"UPS Ground\" or \"FedEx Standard Overnight\".
*
* @return $this
*/
public function setShippingServiceName($shipping_service_name)
{
$this->container['shipping_service_name'] = $shipping_service_name;
return $this;
}
/**
* Gets carrier_name.
*
* @return string
*/
public function getCarrierName()
{
return $this->container['carrier_name'];
}
/**
* Sets carrier_name.
*
* @param string $carrier_name the name of the carrier
*
* @return $this
*/
public function setCarrierName($carrier_name)
{
$this->container['carrier_name'] = $carrier_name;
return $this;
}
/**
* Gets shipping_service_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier
*/
public function getShippingServiceId()
{
return $this->container['shipping_service_id'];
}
/**
* Sets shipping_service_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier $shipping_service_id shipping_service_id
*
* @return $this
*/
public function setShippingServiceId($shipping_service_id)
{
$this->container['shipping_service_id'] = $shipping_service_id;
return $this;
}
/**
* Gets shipping_service_offer_id.
*
* @return string
*/
public function getShippingServiceOfferId()
{
return $this->container['shipping_service_offer_id'];
}
/**
* Sets shipping_service_offer_id.
*
* @param string $shipping_service_offer_id an Amazon-defined shipping service offer identifier
*
* @return $this
*/
public function setShippingServiceOfferId($shipping_service_offer_id)
{
$this->container['shipping_service_offer_id'] = $shipping_service_offer_id;
return $this;
}
/**
* Gets ship_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp
*/
public function getShipDate()
{
return $this->container['ship_date'];
}
/**
* Sets ship_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $ship_date ship_date
*
* @return $this
*/
public function setShipDate($ship_date)
{
$this->container['ship_date'] = $ship_date;
return $this;
}
/**
* Gets earliest_estimated_delivery_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp
*/
public function getEarliestEstimatedDeliveryDate()
{
return $this->container['earliest_estimated_delivery_date'];
}
/**
* Sets earliest_estimated_delivery_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $earliest_estimated_delivery_date earliest_estimated_delivery_date
*
* @return $this
*/
public function setEarliestEstimatedDeliveryDate($earliest_estimated_delivery_date)
{
$this->container['earliest_estimated_delivery_date'] = $earliest_estimated_delivery_date;
return $this;
}
/**
* Gets latest_estimated_delivery_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp
*/
public function getLatestEstimatedDeliveryDate()
{
return $this->container['latest_estimated_delivery_date'];
}
/**
* Sets latest_estimated_delivery_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $latest_estimated_delivery_date latest_estimated_delivery_date
*
* @return $this
*/
public function setLatestEstimatedDeliveryDate($latest_estimated_delivery_date)
{
$this->container['latest_estimated_delivery_date'] = $latest_estimated_delivery_date;
return $this;
}
/**
* Gets rate.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount
*/
public function getRate()
{
return $this->container['rate'];
}
/**
* Sets rate.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $rate rate
*
* @return $this
*/
public function setRate($rate)
{
$this->container['rate'] = $rate;
return $this;
}
/**
* Gets shipping_service_options.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions
*/
public function getShippingServiceOptions()
{
return $this->container['shipping_service_options'];
}
/**
* Sets shipping_service_options.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions $shipping_service_options shipping_service_options
*
* @return $this
*/
public function setShippingServiceOptions($shipping_service_options)
{
$this->container['shipping_service_options'] = $shipping_service_options;
return $this;
}
/**
* Gets available_shipping_service_options.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableShippingServiceOptions
*/
public function getAvailableShippingServiceOptions()
{
return $this->container['available_shipping_service_options'];
}
/**
* Sets available_shipping_service_options.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableShippingServiceOptions $available_shipping_service_options available_shipping_service_options
*
* @return $this
*/
public function setAvailableShippingServiceOptions($available_shipping_service_options)
{
$this->container['available_shipping_service_options'] = $available_shipping_service_options;
return $this;
}
/**
* Gets available_label_formats.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatList
*/
public function getAvailableLabelFormats()
{
return $this->container['available_label_formats'];
}
/**
* Sets available_label_formats.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatList $available_label_formats available_label_formats
*
* @return $this
*/
public function setAvailableLabelFormats($available_label_formats)
{
$this->container['available_label_formats'] = $available_label_formats;
return $this;
}
/**
* Gets available_format_options_for_label.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableFormatOptionsForLabelList
*/
public function getAvailableFormatOptionsForLabel()
{
return $this->container['available_format_options_for_label'];
}
/**
* Sets available_format_options_for_label.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableFormatOptionsForLabelList $available_format_options_for_label available_format_options_for_label
*
* @return $this
*/
public function setAvailableFormatOptionsForLabel($available_format_options_for_label)
{
$this->container['available_format_options_for_label'] = $available_format_options_for_label;
return $this;
}
/**
* Gets requires_additional_seller_inputs.
*
* @return bool
*/
public function getRequiresAdditionalSellerInputs()
{
return $this->container['requires_additional_seller_inputs'];
}
/**
* Sets requires_additional_seller_inputs.
*
* @param bool $requires_additional_seller_inputs when true, additional seller inputs are required
*
* @return $this
*/
public function setRequiresAdditionalSellerInputs($requires_additional_seller_inputs)
{
$this->container['requires_additional_seller_inputs'] = $requires_additional_seller_inputs;
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/MerchantFulfillment/AdditionalSellerInput.php | lib/Models/MerchantFulfillment/AdditionalSellerInput.php | <?php
/**
* AdditionalSellerInput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AdditionalSellerInput Class Doc Comment.
*
* @description Additional information required to purchase shipping.
*
* @author Stefan Neuhaus / ClouSale
*/
class AdditionalSellerInput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AdditionalSellerInput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'data_type' => 'string',
'value_as_string' => 'string',
'value_as_boolean' => 'bool',
'value_as_integer' => 'int',
'value_as_timestamp' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp',
'value_as_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address',
'value_as_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight',
'value_as_dimension' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Length',
'value_as_currency' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'data_type' => null,
'value_as_string' => null,
'value_as_boolean' => null,
'value_as_integer' => null,
'value_as_timestamp' => null,
'value_as_address' => null,
'value_as_weight' => null,
'value_as_dimension' => null,
'value_as_currency' => 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 = [
'data_type' => 'DataType',
'value_as_string' => 'ValueAsString',
'value_as_boolean' => 'ValueAsBoolean',
'value_as_integer' => 'ValueAsInteger',
'value_as_timestamp' => 'ValueAsTimestamp',
'value_as_address' => 'ValueAsAddress',
'value_as_weight' => 'ValueAsWeight',
'value_as_dimension' => 'ValueAsDimension',
'value_as_currency' => 'ValueAsCurrency', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'data_type' => 'setDataType',
'value_as_string' => 'setValueAsString',
'value_as_boolean' => 'setValueAsBoolean',
'value_as_integer' => 'setValueAsInteger',
'value_as_timestamp' => 'setValueAsTimestamp',
'value_as_address' => 'setValueAsAddress',
'value_as_weight' => 'setValueAsWeight',
'value_as_dimension' => 'setValueAsDimension',
'value_as_currency' => 'setValueAsCurrency', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'data_type' => 'getDataType',
'value_as_string' => 'getValueAsString',
'value_as_boolean' => 'getValueAsBoolean',
'value_as_integer' => 'getValueAsInteger',
'value_as_timestamp' => 'getValueAsTimestamp',
'value_as_address' => 'getValueAsAddress',
'value_as_weight' => 'getValueAsWeight',
'value_as_dimension' => 'getValueAsDimension',
'value_as_currency' => 'getValueAsCurrency', ];
/**
* 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['data_type'] = isset($data['data_type']) ? $data['data_type'] : null;
$this->container['value_as_string'] = isset($data['value_as_string']) ? $data['value_as_string'] : null;
$this->container['value_as_boolean'] = isset($data['value_as_boolean']) ? $data['value_as_boolean'] : null;
$this->container['value_as_integer'] = isset($data['value_as_integer']) ? $data['value_as_integer'] : null;
$this->container['value_as_timestamp'] = isset($data['value_as_timestamp']) ? $data['value_as_timestamp'] : null;
$this->container['value_as_address'] = isset($data['value_as_address']) ? $data['value_as_address'] : null;
$this->container['value_as_weight'] = isset($data['value_as_weight']) ? $data['value_as_weight'] : null;
$this->container['value_as_dimension'] = isset($data['value_as_dimension']) ? $data['value_as_dimension'] : null;
$this->container['value_as_currency'] = isset($data['value_as_currency']) ? $data['value_as_currency'] : 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 data_type.
*
* @return string
*/
public function getDataType()
{
return $this->container['data_type'];
}
/**
* Sets data_type.
*
* @param string $data_type the data type of the additional information
*
* @return $this
*/
public function setDataType($data_type)
{
$this->container['data_type'] = $data_type;
return $this;
}
/**
* Gets value_as_string.
*
* @return string
*/
public function getValueAsString()
{
return $this->container['value_as_string'];
}
/**
* Sets value_as_string.
*
* @param string $value_as_string the value when the data type is string
*
* @return $this
*/
public function setValueAsString($value_as_string)
{
$this->container['value_as_string'] = $value_as_string;
return $this;
}
/**
* Gets value_as_boolean.
*
* @return bool
*/
public function getValueAsBoolean()
{
return $this->container['value_as_boolean'];
}
/**
* Sets value_as_boolean.
*
* @param bool $value_as_boolean the value when the data type is boolean
*
* @return $this
*/
public function setValueAsBoolean($value_as_boolean)
{
$this->container['value_as_boolean'] = $value_as_boolean;
return $this;
}
/**
* Gets value_as_integer.
*
* @return int
*/
public function getValueAsInteger()
{
return $this->container['value_as_integer'];
}
/**
* Sets value_as_integer.
*
* @param int $value_as_integer the value when the data type is integer
*
* @return $this
*/
public function setValueAsInteger($value_as_integer)
{
$this->container['value_as_integer'] = $value_as_integer;
return $this;
}
/**
* Gets value_as_timestamp.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp
*/
public function getValueAsTimestamp()
{
return $this->container['value_as_timestamp'];
}
/**
* Sets value_as_timestamp.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $value_as_timestamp value_as_timestamp
*
* @return $this
*/
public function setValueAsTimestamp($value_as_timestamp)
{
$this->container['value_as_timestamp'] = $value_as_timestamp;
return $this;
}
/**
* Gets value_as_address.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address
*/
public function getValueAsAddress()
{
return $this->container['value_as_address'];
}
/**
* Sets value_as_address.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $value_as_address value_as_address
*
* @return $this
*/
public function setValueAsAddress($value_as_address)
{
$this->container['value_as_address'] = $value_as_address;
return $this;
}
/**
* Gets value_as_weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight
*/
public function getValueAsWeight()
{
return $this->container['value_as_weight'];
}
/**
* Sets value_as_weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight $value_as_weight value_as_weight
*
* @return $this
*/
public function setValueAsWeight($value_as_weight)
{
$this->container['value_as_weight'] = $value_as_weight;
return $this;
}
/**
* Gets value_as_dimension.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Length
*/
public function getValueAsDimension()
{
return $this->container['value_as_dimension'];
}
/**
* Sets value_as_dimension.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Length $value_as_dimension value_as_dimension
*
* @return $this
*/
public function setValueAsDimension($value_as_dimension)
{
$this->container['value_as_dimension'] = $value_as_dimension;
return $this;
}
/**
* Gets value_as_currency.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount
*/
public function getValueAsCurrency()
{
return $this->container['value_as_currency'];
}
/**
* Sets value_as_currency.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $value_as_currency value_as_currency
*
* @return $this
*/
public function setValueAsCurrency($value_as_currency)
{
$this->container['value_as_currency'] = $value_as_currency;
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/MerchantFulfillment/PackageDimensions.php | lib/Models/MerchantFulfillment/PackageDimensions.php | <?php
/**
* PackageDimensions.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PackageDimensions Class Doc Comment.
*
* @description The dimensions of a package contained in a shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class PackageDimensions implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PackageDimensions';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'length' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension',
'width' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension',
'height' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension',
'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength',
'predefined_package_dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PredefinedPackageDimensions', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'length' => null,
'width' => null,
'height' => null,
'unit' => null,
'predefined_package_dimensions' => 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 = [
'length' => 'Length',
'width' => 'Width',
'height' => 'Height',
'unit' => 'Unit',
'predefined_package_dimensions' => 'PredefinedPackageDimensions', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'length' => 'setLength',
'width' => 'setWidth',
'height' => 'setHeight',
'unit' => 'setUnit',
'predefined_package_dimensions' => 'setPredefinedPackageDimensions', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'length' => 'getLength',
'width' => 'getWidth',
'height' => 'getHeight',
'unit' => 'getUnit',
'predefined_package_dimensions' => 'getPredefinedPackageDimensions', ];
/**
* 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['length'] = isset($data['length']) ? $data['length'] : null;
$this->container['width'] = isset($data['width']) ? $data['width'] : null;
$this->container['height'] = isset($data['height']) ? $data['height'] : null;
$this->container['unit'] = isset($data['unit']) ? $data['unit'] : null;
$this->container['predefined_package_dimensions'] = isset($data['predefined_package_dimensions']) ? $data['predefined_package_dimensions'] : 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 length.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension
*/
public function getLength()
{
return $this->container['length'];
}
/**
* Sets length.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension $length length
*
* @return $this
*/
public function setLength($length)
{
$this->container['length'] = $length;
return $this;
}
/**
* Gets width.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension
*/
public function getWidth()
{
return $this->container['width'];
}
/**
* Sets width.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension $width width
*
* @return $this
*/
public function setWidth($width)
{
$this->container['width'] = $width;
return $this;
}
/**
* Gets height.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension
*/
public function getHeight()
{
return $this->container['height'];
}
/**
* Sets height.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension $height height
*
* @return $this
*/
public function setHeight($height)
{
$this->container['height'] = $height;
return $this;
}
/**
* Gets unit.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength
*/
public function getUnit()
{
return $this->container['unit'];
}
/**
* Sets unit.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength $unit unit
*
* @return $this
*/
public function setUnit($unit)
{
$this->container['unit'] = $unit;
return $this;
}
/**
* Gets predefined_package_dimensions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PredefinedPackageDimensions
*/
public function getPredefinedPackageDimensions()
{
return $this->container['predefined_package_dimensions'];
}
/**
* Sets predefined_package_dimensions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PredefinedPackageDimensions $predefined_package_dimensions predefined_package_dimensions
*
* @return $this
*/
public function setPredefinedPackageDimensions($predefined_package_dimensions)
{
$this->container['predefined_package_dimensions'] = $predefined_package_dimensions;
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/MerchantFulfillment/AvailableFormatOptionsForLabelList.php | lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabelList.php | <?php
/**
* AvailableFormatOptionsForLabelList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AvailableFormatOptionsForLabelList Class Doc Comment.
*
* @description The available label formats.
*
* @author Stefan Neuhaus / ClouSale
*/
class AvailableFormatOptionsForLabelList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AvailableFormatOptionsForLabelList';
/**
* 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 AvailableFormatOptionsForLabel::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/MerchantFulfillment/Error.php | lib/Models/MerchantFulfillment/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
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 occured
*
* @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/MerchantFulfillment/Timestamp.php | lib/Models/MerchantFulfillment/Timestamp.php | <?php
/**
* Timestamp.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Timestamp Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class Timestamp implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Timestamp';
/**
* 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/MerchantFulfillment/GetAdditionalSellerInputsRequest.php | lib/Models/MerchantFulfillment/GetAdditionalSellerInputsRequest.php | <?php
/**
* GetAdditionalSellerInputsRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetAdditionalSellerInputsRequest Class Doc Comment.
*
* @description Request schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetAdditionalSellerInputsRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetAdditionalSellerInputsRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipping_service_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier',
'ship_from_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address',
'order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipping_service_id' => null,
'ship_from_address' => null,
'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 = [
'shipping_service_id' => 'ShippingServiceId',
'ship_from_address' => 'ShipFromAddress',
'order_id' => 'OrderId', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipping_service_id' => 'setShippingServiceId',
'ship_from_address' => 'setShipFromAddress',
'order_id' => 'setOrderId', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipping_service_id' => 'getShippingServiceId',
'ship_from_address' => 'getShipFromAddress',
'order_id' => 'getOrderId', ];
/**
* 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['shipping_service_id'] = isset($data['shipping_service_id']) ? $data['shipping_service_id'] : null;
$this->container['ship_from_address'] = isset($data['ship_from_address']) ? $data['ship_from_address'] : null;
$this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['shipping_service_id']) {
$invalidProperties[] = "'shipping_service_id' can't be null";
}
if (null === $this->container['ship_from_address']) {
$invalidProperties[] = "'ship_from_address' can't be null";
}
if (null === $this->container['order_id']) {
$invalidProperties[] = "'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 shipping_service_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier
*/
public function getShippingServiceId()
{
return $this->container['shipping_service_id'];
}
/**
* Sets shipping_service_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier $shipping_service_id shipping_service_id
*
* @return $this
*/
public function setShippingServiceId($shipping_service_id)
{
$this->container['shipping_service_id'] = $shipping_service_id;
return $this;
}
/**
* Gets ship_from_address.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address
*/
public function getShipFromAddress()
{
return $this->container['ship_from_address'];
}
/**
* Sets ship_from_address.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $ship_from_address ship_from_address
*
* @return $this
*/
public function setShipFromAddress($ship_from_address)
{
$this->container['ship_from_address'] = $ship_from_address;
return $this;
}
/**
* Gets order_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId
*/
public function getOrderId()
{
return $this->container['order_id'];
}
/**
* Sets order_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId $order_id order_id
*
* @return $this
*/
public function setOrderId($order_id)
{
$this->container['order_id'] = $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/MerchantFulfillment/GetShipmentResponse.php | lib/Models/MerchantFulfillment/GetShipmentResponse.php | <?php
/**
* GetShipmentResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetShipmentResponse Class Doc Comment.
*
* @description Response schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetShipmentResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetShipmentResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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\MerchantFulfillment\Shipment
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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/MerchantFulfillment/FileContents.php | lib/Models/MerchantFulfillment/FileContents.php | <?php
/**
* FileContents.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FileContents Class Doc Comment.
*
* @description The document data and checksum.
*
* @author Stefan Neuhaus / ClouSale
*/
class FileContents implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FileContents';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'contents' => 'string',
'file_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileType',
'checksum' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'contents' => null,
'file_type' => null,
'checksum' => 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 = [
'contents' => 'Contents',
'file_type' => 'FileType',
'checksum' => 'Checksum', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'contents' => 'setContents',
'file_type' => 'setFileType',
'checksum' => 'setChecksum', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'contents' => 'getContents',
'file_type' => 'getFileType',
'checksum' => 'getChecksum', ];
/**
* 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['contents'] = isset($data['contents']) ? $data['contents'] : null;
$this->container['file_type'] = isset($data['file_type']) ? $data['file_type'] : null;
$this->container['checksum'] = isset($data['checksum']) ? $data['checksum'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['contents']) {
$invalidProperties[] = "'contents' can't be null";
}
if (null === $this->container['file_type']) {
$invalidProperties[] = "'file_type' can't be null";
}
if (null === $this->container['checksum']) {
$invalidProperties[] = "'checksum' 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 contents.
*
* @return string
*/
public function getContents()
{
return $this->container['contents'];
}
/**
* Sets contents.
*
* @param string $contents data for printing labels, in the form of a Base64-encoded, GZip-compressed string
*
* @return $this
*/
public function setContents($contents)
{
$this->container['contents'] = $contents;
return $this;
}
/**
* Gets file_type.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileType
*/
public function getFileType()
{
return $this->container['file_type'];
}
/**
* Sets file_type.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileType $file_type file_type
*
* @return $this
*/
public function setFileType($file_type)
{
$this->container['file_type'] = $file_type;
return $this;
}
/**
* Gets checksum.
*
* @return string
*/
public function getChecksum()
{
return $this->container['checksum'];
}
/**
* Sets checksum.
*
* @param string $checksum an MD5 hash to validate the PDF document data, in the form of a Base64-encoded string
*
* @return $this
*/
public function setChecksum($checksum)
{
$this->container['checksum'] = $checksum;
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/MerchantFulfillment/RestrictedSetValues.php | lib/Models/MerchantFulfillment/RestrictedSetValues.php | <?php
/**
* RestrictedSetValues.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RestrictedSetValues Class Doc Comment.
*
* @description The set of fixed values in an additional seller input.
*
* @author Stefan Neuhaus / ClouSale
*/
class RestrictedSetValues implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RestrictedSetValues';
/**
* 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/MerchantFulfillment/Shipment.php | lib/Models/MerchantFulfillment/Shipment.php | <?php
/**
* Shipment.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Shipment Class Doc Comment.
*
* @description The details of a shipment, including the shipment status.
*
* @author Stefan Neuhaus / ClouSale
*/
class Shipment implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Shipment';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentId',
'amazon_order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId',
'seller_order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId',
'item_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList',
'ship_from_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address',
'ship_to_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address',
'package_dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions',
'weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight',
'insurance' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount',
'shipping_service' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingService',
'label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Label',
'status' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentStatus',
'tracking_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TrackingId',
'created_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp',
'last_updated_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_id' => null,
'amazon_order_id' => null,
'seller_order_id' => null,
'item_list' => null,
'ship_from_address' => null,
'ship_to_address' => null,
'package_dimensions' => null,
'weight' => null,
'insurance' => null,
'shipping_service' => null,
'label' => null,
'status' => null,
'tracking_id' => null,
'created_date' => null,
'last_updated_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 = [
'shipment_id' => 'ShipmentId',
'amazon_order_id' => 'AmazonOrderId',
'seller_order_id' => 'SellerOrderId',
'item_list' => 'ItemList',
'ship_from_address' => 'ShipFromAddress',
'ship_to_address' => 'ShipToAddress',
'package_dimensions' => 'PackageDimensions',
'weight' => 'Weight',
'insurance' => 'Insurance',
'shipping_service' => 'ShippingService',
'label' => 'Label',
'status' => 'Status',
'tracking_id' => 'TrackingId',
'created_date' => 'CreatedDate',
'last_updated_date' => 'LastUpdatedDate', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_id' => 'setShipmentId',
'amazon_order_id' => 'setAmazonOrderId',
'seller_order_id' => 'setSellerOrderId',
'item_list' => 'setItemList',
'ship_from_address' => 'setShipFromAddress',
'ship_to_address' => 'setShipToAddress',
'package_dimensions' => 'setPackageDimensions',
'weight' => 'setWeight',
'insurance' => 'setInsurance',
'shipping_service' => 'setShippingService',
'label' => 'setLabel',
'status' => 'setStatus',
'tracking_id' => 'setTrackingId',
'created_date' => 'setCreatedDate',
'last_updated_date' => 'setLastUpdatedDate', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_id' => 'getShipmentId',
'amazon_order_id' => 'getAmazonOrderId',
'seller_order_id' => 'getSellerOrderId',
'item_list' => 'getItemList',
'ship_from_address' => 'getShipFromAddress',
'ship_to_address' => 'getShipToAddress',
'package_dimensions' => 'getPackageDimensions',
'weight' => 'getWeight',
'insurance' => 'getInsurance',
'shipping_service' => 'getShippingService',
'label' => 'getLabel',
'status' => 'getStatus',
'tracking_id' => 'getTrackingId',
'created_date' => 'getCreatedDate',
'last_updated_date' => 'getLastUpdatedDate', ];
/**
* 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_id'] = isset($data['shipment_id']) ? $data['shipment_id'] : 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['item_list'] = isset($data['item_list']) ? $data['item_list'] : null;
$this->container['ship_from_address'] = isset($data['ship_from_address']) ? $data['ship_from_address'] : null;
$this->container['ship_to_address'] = isset($data['ship_to_address']) ? $data['ship_to_address'] : null;
$this->container['package_dimensions'] = isset($data['package_dimensions']) ? $data['package_dimensions'] : null;
$this->container['weight'] = isset($data['weight']) ? $data['weight'] : null;
$this->container['insurance'] = isset($data['insurance']) ? $data['insurance'] : null;
$this->container['shipping_service'] = isset($data['shipping_service']) ? $data['shipping_service'] : null;
$this->container['label'] = isset($data['label']) ? $data['label'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['tracking_id'] = isset($data['tracking_id']) ? $data['tracking_id'] : null;
$this->container['created_date'] = isset($data['created_date']) ? $data['created_date'] : null;
$this->container['last_updated_date'] = isset($data['last_updated_date']) ? $data['last_updated_date'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['shipment_id']) {
$invalidProperties[] = "'shipment_id' can't be null";
}
if (null === $this->container['amazon_order_id']) {
$invalidProperties[] = "'amazon_order_id' can't be null";
}
if (null === $this->container['item_list']) {
$invalidProperties[] = "'item_list' can't be null";
}
if (null === $this->container['ship_from_address']) {
$invalidProperties[] = "'ship_from_address' can't be null";
}
if (null === $this->container['ship_to_address']) {
$invalidProperties[] = "'ship_to_address' can't be null";
}
if (null === $this->container['package_dimensions']) {
$invalidProperties[] = "'package_dimensions' can't be null";
}
if (null === $this->container['weight']) {
$invalidProperties[] = "'weight' can't be null";
}
if (null === $this->container['insurance']) {
$invalidProperties[] = "'insurance' can't be null";
}
if (null === $this->container['shipping_service']) {
$invalidProperties[] = "'shipping_service' can't be null";
}
if (null === $this->container['label']) {
$invalidProperties[] = "'label' can't be null";
}
if (null === $this->container['status']) {
$invalidProperties[] = "'status' can't be null";
}
if (null === $this->container['created_date']) {
$invalidProperties[] = "'created_date' 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 shipment_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentId
*/
public function getShipmentId()
{
return $this->container['shipment_id'];
}
/**
* Sets shipment_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentId $shipment_id shipment_id
*
* @return $this
*/
public function setShipmentId($shipment_id)
{
$this->container['shipment_id'] = $shipment_id;
return $this;
}
/**
* Gets amazon_order_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId
*/
public function getAmazonOrderId()
{
return $this->container['amazon_order_id'];
}
/**
* Sets amazon_order_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId $amazon_order_id amazon_order_id
*
* @return $this
*/
public function setAmazonOrderId($amazon_order_id)
{
$this->container['amazon_order_id'] = $amazon_order_id;
return $this;
}
/**
* Gets seller_order_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId
*/
public function getSellerOrderId()
{
return $this->container['seller_order_id'];
}
/**
* Sets seller_order_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId $seller_order_id seller_order_id
*
* @return $this
*/
public function setSellerOrderId($seller_order_id)
{
$this->container['seller_order_id'] = $seller_order_id;
return $this;
}
/**
* Gets item_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList
*/
public function getItemList()
{
return $this->container['item_list'];
}
/**
* Sets item_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList $item_list item_list
*
* @return $this
*/
public function setItemList($item_list)
{
$this->container['item_list'] = $item_list;
return $this;
}
/**
* Gets ship_from_address.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address
*/
public function getShipFromAddress()
{
return $this->container['ship_from_address'];
}
/**
* Sets ship_from_address.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $ship_from_address ship_from_address
*
* @return $this
*/
public function setShipFromAddress($ship_from_address)
{
$this->container['ship_from_address'] = $ship_from_address;
return $this;
}
/**
* Gets ship_to_address.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address
*/
public function getShipToAddress()
{
return $this->container['ship_to_address'];
}
/**
* Sets ship_to_address.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $ship_to_address ship_to_address
*
* @return $this
*/
public function setShipToAddress($ship_to_address)
{
$this->container['ship_to_address'] = $ship_to_address;
return $this;
}
/**
* Gets package_dimensions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions
*/
public function getPackageDimensions()
{
return $this->container['package_dimensions'];
}
/**
* Sets package_dimensions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions $package_dimensions package_dimensions
*
* @return $this
*/
public function setPackageDimensions($package_dimensions)
{
$this->container['package_dimensions'] = $package_dimensions;
return $this;
}
/**
* Gets weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight
*/
public function getWeight()
{
return $this->container['weight'];
}
/**
* Sets weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight $weight weight
*
* @return $this
*/
public function setWeight($weight)
{
$this->container['weight'] = $weight;
return $this;
}
/**
* Gets insurance.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount
*/
public function getInsurance()
{
return $this->container['insurance'];
}
/**
* Sets insurance.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $insurance insurance
*
* @return $this
*/
public function setInsurance($insurance)
{
$this->container['insurance'] = $insurance;
return $this;
}
/**
* Gets shipping_service.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingService
*/
public function getShippingService()
{
return $this->container['shipping_service'];
}
/**
* Sets shipping_service.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingService $shipping_service shipping_service
*
* @return $this
*/
public function setShippingService($shipping_service)
{
$this->container['shipping_service'] = $shipping_service;
return $this;
}
/**
* Gets label.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Label
*/
public function getLabel()
{
return $this->container['label'];
}
/**
* Sets label.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Label $label label
*
* @return $this
*/
public function setLabel($label)
{
$this->container['label'] = $label;
return $this;
}
/**
* Gets status.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentStatus
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentStatus $status status
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets tracking_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TrackingId
*/
public function getTrackingId()
{
return $this->container['tracking_id'];
}
/**
* Sets tracking_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TrackingId $tracking_id tracking_id
*
* @return $this
*/
public function setTrackingId($tracking_id)
{
$this->container['tracking_id'] = $tracking_id;
return $this;
}
/**
* Gets created_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp
*/
public function getCreatedDate()
{
return $this->container['created_date'];
}
/**
* Sets created_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $created_date created_date
*
* @return $this
*/
public function setCreatedDate($created_date)
{
$this->container['created_date'] = $created_date;
return $this;
}
/**
* Gets last_updated_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp
*/
public function getLastUpdatedDate()
{
return $this->container['last_updated_date'];
}
/**
* Sets last_updated_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $last_updated_date last_updated_date
*
* @return $this
*/
public function setLastUpdatedDate($last_updated_date)
{
$this->container['last_updated_date'] = $last_updated_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/MerchantFulfillment/AmazonOrderId.php | lib/Models/MerchantFulfillment/AmazonOrderId.php | <?php
/**
* AmazonOrderId.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AmazonOrderId Class Doc Comment.
*
* @description An Amazon-defined order identifier, in 3-7-7 format. <br>**Pattern** : `[0-9A-Z]{3}-[0-9]{7}-[0-9]{7}`.
*
* @author Stefan Neuhaus / ClouSale
*/
class AmazonOrderId implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AmazonOrderId';
/**
* 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/MerchantFulfillment/Item.php | lib/Models/MerchantFulfillment/Item.php | <?php
/**
* Item.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Item Class Doc Comment.
*
* @description An Amazon order item identifier and a quantity.
*
* @author Stefan Neuhaus / ClouSale
*/
class Item implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Item';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'order_item_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\OrderItemId',
'quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemQuantity',
'item_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight',
'item_description' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemDescription',
'transparency_code_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TransparencyCodeList',
'item_level_seller_inputs_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'order_item_id' => null,
'quantity' => null,
'item_weight' => null,
'item_description' => null,
'transparency_code_list' => null,
'item_level_seller_inputs_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 = [
'order_item_id' => 'OrderItemId',
'quantity' => 'Quantity',
'item_weight' => 'ItemWeight',
'item_description' => 'ItemDescription',
'transparency_code_list' => 'TransparencyCodeList',
'item_level_seller_inputs_list' => 'ItemLevelSellerInputsList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'order_item_id' => 'setOrderItemId',
'quantity' => 'setQuantity',
'item_weight' => 'setItemWeight',
'item_description' => 'setItemDescription',
'transparency_code_list' => 'setTransparencyCodeList',
'item_level_seller_inputs_list' => 'setItemLevelSellerInputsList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'order_item_id' => 'getOrderItemId',
'quantity' => 'getQuantity',
'item_weight' => 'getItemWeight',
'item_description' => 'getItemDescription',
'transparency_code_list' => 'getTransparencyCodeList',
'item_level_seller_inputs_list' => 'getItemLevelSellerInputsList', ];
/**
* 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['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
$this->container['item_weight'] = isset($data['item_weight']) ? $data['item_weight'] : null;
$this->container['item_description'] = isset($data['item_description']) ? $data['item_description'] : null;
$this->container['transparency_code_list'] = isset($data['transparency_code_list']) ? $data['transparency_code_list'] : null;
$this->container['item_level_seller_inputs_list'] = isset($data['item_level_seller_inputs_list']) ? $data['item_level_seller_inputs_list'] : 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";
}
if (null === $this->container['quantity']) {
$invalidProperties[] = "'quantity' 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 \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\OrderItemId
*/
public function getOrderItemId()
{
return $this->container['order_item_id'];
}
/**
* Sets order_item_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\OrderItemId $order_item_id order_item_id
*
* @return $this
*/
public function setOrderItemId($order_item_id)
{
$this->container['order_item_id'] = $order_item_id;
return $this;
}
/**
* Gets quantity.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemQuantity
*/
public function getQuantity()
{
return $this->container['quantity'];
}
/**
* Sets quantity.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemQuantity $quantity quantity
*
* @return $this
*/
public function setQuantity($quantity)
{
$this->container['quantity'] = $quantity;
return $this;
}
/**
* Gets item_weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight
*/
public function getItemWeight()
{
return $this->container['item_weight'];
}
/**
* Sets item_weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight $item_weight item_weight
*
* @return $this
*/
public function setItemWeight($item_weight)
{
$this->container['item_weight'] = $item_weight;
return $this;
}
/**
* Gets item_description.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemDescription
*/
public function getItemDescription()
{
return $this->container['item_description'];
}
/**
* Sets item_description.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemDescription $item_description item_description
*
* @return $this
*/
public function setItemDescription($item_description)
{
$this->container['item_description'] = $item_description;
return $this;
}
/**
* Gets transparency_code_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TransparencyCodeList
*/
public function getTransparencyCodeList()
{
return $this->container['transparency_code_list'];
}
/**
* Sets transparency_code_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TransparencyCodeList $transparency_code_list transparency_code_list
*
* @return $this
*/
public function setTransparencyCodeList($transparency_code_list)
{
$this->container['transparency_code_list'] = $transparency_code_list;
return $this;
}
/**
* Gets item_level_seller_inputs_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList
*/
public function getItemLevelSellerInputsList()
{
return $this->container['item_level_seller_inputs_list'];
}
/**
* Sets item_level_seller_inputs_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList $item_level_seller_inputs_list item_level_seller_inputs_list
*
* @return $this
*/
public function setItemLevelSellerInputsList($item_level_seller_inputs_list)
{
$this->container['item_level_seller_inputs_list'] = $item_level_seller_inputs_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/MerchantFulfillment/AdditionalInputsList.php | lib/Models/MerchantFulfillment/AdditionalInputsList.php | <?php
/**
* AdditionalInputsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AdditionalInputsList Class Doc Comment.
*
* @description A list of additional inputs.
*
* @author Stefan Neuhaus / ClouSale
*/
class AdditionalInputsList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AdditionalInputsList';
/**
* 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 AdditionalInputs::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/MerchantFulfillment/UnitOfLength.php | lib/Models/MerchantFulfillment/UnitOfLength.php | <?php
/**
* UnitOfLength.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* UnitOfLength Class Doc Comment.
*
* @description The unit of length.
*
* @author Stefan Neuhaus / ClouSale
*/
class UnitOfLength
{
/**
* Possible values of this enum.
*/
const INCHES = 'inches';
const CENTIMETERS = 'centimeters';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::INCHES,
self::CENTIMETERS, ];
}
}
| 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/MerchantFulfillment/DeliveryExperienceOption.php | lib/Models/MerchantFulfillment/DeliveryExperienceOption.php | <?php
/**
* DeliveryExperienceOption.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* DeliveryExperienceOption Class Doc Comment.
*
* @description The delivery confirmation level.
*
* @author Stefan Neuhaus / ClouSale
*/
class DeliveryExperienceOption
{
/**
* Possible values of this enum.
*/
const DELIVERY_CONFIRMATION_WITH_ADULT_SIGNATURE = 'DeliveryConfirmationWithAdultSignature';
const DELIVERY_CONFIRMATION_WITH_SIGNATURE = 'DeliveryConfirmationWithSignature';
const DELIVERY_CONFIRMATION_WITHOUT_SIGNATURE = 'DeliveryConfirmationWithoutSignature';
const NO_TRACKING = 'NoTracking';
const NO_PREFERENCE = 'NoPreference';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::DELIVERY_CONFIRMATION_WITH_ADULT_SIGNATURE,
self::DELIVERY_CONFIRMATION_WITH_SIGNATURE,
self::DELIVERY_CONFIRMATION_WITHOUT_SIGNATURE,
self::NO_TRACKING,
self::NO_PREFERENCE, ];
}
}
| 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/MerchantFulfillment/CreateShipmentRequest.php | lib/Models/MerchantFulfillment/CreateShipmentRequest.php | <?php
/**
* CreateShipmentRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateShipmentRequest Class Doc Comment.
*
* @description Request schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateShipmentRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateShipmentRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_request_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails',
'shipping_service_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier',
'shipping_service_offer_id' => 'string',
'hazmat_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\HazmatType',
'label_format_option' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatOptionRequest',
'shipment_level_seller_inputs_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_request_details' => null,
'shipping_service_id' => null,
'shipping_service_offer_id' => null,
'hazmat_type' => null,
'label_format_option' => null,
'shipment_level_seller_inputs_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_request_details' => 'ShipmentRequestDetails',
'shipping_service_id' => 'ShippingServiceId',
'shipping_service_offer_id' => 'ShippingServiceOfferId',
'hazmat_type' => 'HazmatType',
'label_format_option' => 'LabelFormatOption',
'shipment_level_seller_inputs_list' => 'ShipmentLevelSellerInputsList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_request_details' => 'setShipmentRequestDetails',
'shipping_service_id' => 'setShippingServiceId',
'shipping_service_offer_id' => 'setShippingServiceOfferId',
'hazmat_type' => 'setHazmatType',
'label_format_option' => 'setLabelFormatOption',
'shipment_level_seller_inputs_list' => 'setShipmentLevelSellerInputsList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_request_details' => 'getShipmentRequestDetails',
'shipping_service_id' => 'getShippingServiceId',
'shipping_service_offer_id' => 'getShippingServiceOfferId',
'hazmat_type' => 'getHazmatType',
'label_format_option' => 'getLabelFormatOption',
'shipment_level_seller_inputs_list' => 'getShipmentLevelSellerInputsList', ];
/**
* 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_request_details'] = isset($data['shipment_request_details']) ? $data['shipment_request_details'] : null;
$this->container['shipping_service_id'] = isset($data['shipping_service_id']) ? $data['shipping_service_id'] : null;
$this->container['shipping_service_offer_id'] = isset($data['shipping_service_offer_id']) ? $data['shipping_service_offer_id'] : null;
$this->container['hazmat_type'] = isset($data['hazmat_type']) ? $data['hazmat_type'] : null;
$this->container['label_format_option'] = isset($data['label_format_option']) ? $data['label_format_option'] : null;
$this->container['shipment_level_seller_inputs_list'] = isset($data['shipment_level_seller_inputs_list']) ? $data['shipment_level_seller_inputs_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['shipment_request_details']) {
$invalidProperties[] = "'shipment_request_details' can't be null";
}
if (null === $this->container['shipping_service_id']) {
$invalidProperties[] = "'shipping_service_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 shipment_request_details.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails
*/
public function getShipmentRequestDetails()
{
return $this->container['shipment_request_details'];
}
/**
* Sets shipment_request_details.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails $shipment_request_details shipment_request_details
*
* @return $this
*/
public function setShipmentRequestDetails($shipment_request_details)
{
$this->container['shipment_request_details'] = $shipment_request_details;
return $this;
}
/**
* Gets shipping_service_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier
*/
public function getShippingServiceId()
{
return $this->container['shipping_service_id'];
}
/**
* Sets shipping_service_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier $shipping_service_id shipping_service_id
*
* @return $this
*/
public function setShippingServiceId($shipping_service_id)
{
$this->container['shipping_service_id'] = $shipping_service_id;
return $this;
}
/**
* Gets shipping_service_offer_id.
*
* @return string
*/
public function getShippingServiceOfferId()
{
return $this->container['shipping_service_offer_id'];
}
/**
* Sets shipping_service_offer_id.
*
* @param string $shipping_service_offer_id identifies a shipping service order made by a carrier
*
* @return $this
*/
public function setShippingServiceOfferId($shipping_service_offer_id)
{
$this->container['shipping_service_offer_id'] = $shipping_service_offer_id;
return $this;
}
/**
* Gets hazmat_type.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\HazmatType
*/
public function getHazmatType()
{
return $this->container['hazmat_type'];
}
/**
* Sets hazmat_type.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\HazmatType $hazmat_type hazmat_type
*
* @return $this
*/
public function setHazmatType($hazmat_type)
{
$this->container['hazmat_type'] = $hazmat_type;
return $this;
}
/**
* Gets label_format_option.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatOptionRequest
*/
public function getLabelFormatOption()
{
return $this->container['label_format_option'];
}
/**
* Sets label_format_option.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatOptionRequest $label_format_option label_format_option
*
* @return $this
*/
public function setLabelFormatOption($label_format_option)
{
$this->container['label_format_option'] = $label_format_option;
return $this;
}
/**
* Gets shipment_level_seller_inputs_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList
*/
public function getShipmentLevelSellerInputsList()
{
return $this->container['shipment_level_seller_inputs_list'];
}
/**
* Sets shipment_level_seller_inputs_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList $shipment_level_seller_inputs_list shipment_level_seller_inputs_list
*
* @return $this
*/
public function setShipmentLevelSellerInputsList($shipment_level_seller_inputs_list)
{
$this->container['shipment_level_seller_inputs_list'] = $shipment_level_seller_inputs_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/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrierList.php | lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrierList.php | <?php
/**
* TermsAndConditionsNotAcceptedCarrierList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TermsAndConditionsNotAcceptedCarrierList Class Doc Comment.
*
* @description List of carriers whose terms and conditions were not accepted by the seller.
*
* @author Stefan Neuhaus / ClouSale
*/
class TermsAndConditionsNotAcceptedCarrierList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TermsAndConditionsNotAcceptedCarrierList';
/**
* 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 TermsAndConditionsNotAcceptedCarrier::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/MerchantFulfillment/Constraints.php | lib/Models/MerchantFulfillment/Constraints.php | <?php
/**
* Constraints.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Constraints Class Doc Comment.
*
* @description List of constraints.
*
* @author Stefan Neuhaus / ClouSale
*/
class Constraints implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Constraints';
/**
* 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/MerchantFulfillment/InputTargetType.php | lib/Models/MerchantFulfillment/InputTargetType.php | <?php
/**
* InputTargetType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* InputTargetType Class Doc Comment.
*
* @description Indicates whether the additional seller input is at the item or shipment level.
*
* @author Stefan Neuhaus / ClouSale
*/
class InputTargetType
{
/**
* Possible values of this enum.
*/
const SHIPMENT_LEVEL = 'SHIPMENT_LEVEL';
const ITEM_LEVEL = 'ITEM_LEVEL';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::SHIPMENT_LEVEL,
self::ITEM_LEVEL, ];
}
}
| 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/MerchantFulfillment/WeightValue.php | lib/Models/MerchantFulfillment/WeightValue.php | <?php
/**
* WeightValue.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* WeightValue Class Doc Comment.
*
* @description The weight value.
*
* @author Stefan Neuhaus / ClouSale
*/
class WeightValue implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'WeightValue';
/**
* 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/MerchantFulfillment/AddressLine1.php | lib/Models/MerchantFulfillment/AddressLine1.php | <?php
/**
* AddressLine1.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AddressLine1 Class Doc Comment.
*
* @description The street address information.
*
* @author Stefan Neuhaus / ClouSale
*/
class AddressLine1 implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AddressLine1';
/**
* 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/MerchantFulfillment/GetAdditionalSellerInputsResponse.php | lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResponse.php | <?php
/**
* GetAdditionalSellerInputsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetAdditionalSellerInputsResponse Class Doc Comment.
*
* @description Response schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetAdditionalSellerInputsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetAdditionalSellerInputsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetAdditionalSellerInputsResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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\MerchantFulfillment\GetAdditionalSellerInputsResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetAdditionalSellerInputsResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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/MerchantFulfillment/CurrencyAmount.php | lib/Models/MerchantFulfillment/CurrencyAmount.php | <?php
/**
* CurrencyAmount.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CurrencyAmount Class Doc Comment.
*
* @description Currency type and amount.
*
* @author Stefan Neuhaus / ClouSale
*/
class CurrencyAmount implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CurrencyAmount';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'currency_code' => 'string',
'amount' => 'double', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'currency_code' => null,
'amount' => 'double', ];
/**
* 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 = [];
if (null === $this->container['currency_code']) {
$invalidProperties[] = "'currency_code' can't be null";
}
if (null === $this->container['amount']) {
$invalidProperties[] = "'amount' 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 currency_code.
*
* @return string
*/
public function getCurrencyCode()
{
return $this->container['currency_code'];
}
/**
* Sets currency_code.
*
* @param string $currency_code 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 float
*/
public function getAmount()
{
return $this->container['amount'];
}
/**
* Sets amount.
*
* @param float $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/MerchantFulfillment/ItemQuantity.php | lib/Models/MerchantFulfillment/ItemQuantity.php | <?php
/**
* ItemQuantity.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ItemQuantity Class Doc Comment.
*
* @description The number of items.
*
* @author Stefan Neuhaus / ClouSale
*/
class ItemQuantity implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ItemQuantity';
/**
* 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/MerchantFulfillment/AvailableShippingServiceOptions.php | lib/Models/MerchantFulfillment/AvailableShippingServiceOptions.php | <?php
/**
* AvailableShippingServiceOptions.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AvailableShippingServiceOptions Class Doc Comment.
*
* @description The available shipping service options.
*
* @author Stefan Neuhaus / ClouSale
*/
class AvailableShippingServiceOptions implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AvailableShippingServiceOptions';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'available_carrier_will_pick_up_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableCarrierWillPickUpOptionsList',
'available_delivery_experience_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableDeliveryExperienceOptionsList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'available_carrier_will_pick_up_options' => null,
'available_delivery_experience_options' => 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 = [
'available_carrier_will_pick_up_options' => 'AvailableCarrierWillPickUpOptions',
'available_delivery_experience_options' => 'AvailableDeliveryExperienceOptions', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'available_carrier_will_pick_up_options' => 'setAvailableCarrierWillPickUpOptions',
'available_delivery_experience_options' => 'setAvailableDeliveryExperienceOptions', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'available_carrier_will_pick_up_options' => 'getAvailableCarrierWillPickUpOptions',
'available_delivery_experience_options' => 'getAvailableDeliveryExperienceOptions', ];
/**
* 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['available_carrier_will_pick_up_options'] = isset($data['available_carrier_will_pick_up_options']) ? $data['available_carrier_will_pick_up_options'] : null;
$this->container['available_delivery_experience_options'] = isset($data['available_delivery_experience_options']) ? $data['available_delivery_experience_options'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['available_carrier_will_pick_up_options']) {
$invalidProperties[] = "'available_carrier_will_pick_up_options' can't be null";
}
if (null === $this->container['available_delivery_experience_options']) {
$invalidProperties[] = "'available_delivery_experience_options' 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 available_carrier_will_pick_up_options.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableCarrierWillPickUpOptionsList
*/
public function getAvailableCarrierWillPickUpOptions()
{
return $this->container['available_carrier_will_pick_up_options'];
}
/**
* Sets available_carrier_will_pick_up_options.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableCarrierWillPickUpOptionsList $available_carrier_will_pick_up_options available_carrier_will_pick_up_options
*
* @return $this
*/
public function setAvailableCarrierWillPickUpOptions($available_carrier_will_pick_up_options)
{
$this->container['available_carrier_will_pick_up_options'] = $available_carrier_will_pick_up_options;
return $this;
}
/**
* Gets available_delivery_experience_options.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableDeliveryExperienceOptionsList
*/
public function getAvailableDeliveryExperienceOptions()
{
return $this->container['available_delivery_experience_options'];
}
/**
* Sets available_delivery_experience_options.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableDeliveryExperienceOptionsList $available_delivery_experience_options available_delivery_experience_options
*
* @return $this
*/
public function setAvailableDeliveryExperienceOptions($available_delivery_experience_options)
{
$this->container['available_delivery_experience_options'] = $available_delivery_experience_options;
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/MerchantFulfillment/GetEligibleShipmentServicesResult.php | lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResult.php | <?php
/**
* GetEligibleShipmentServicesResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetEligibleShipmentServicesResult Class Doc Comment.
*
* @description The payload for the getEligibleShipmentServices operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetEligibleShipmentServicesResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetEligibleShipmentServicesResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipping_service_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceList',
'rejected_shipping_service_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RejectedShippingServiceList',
'temporarily_unavailable_carrier_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TemporarilyUnavailableCarrierList',
'terms_and_conditions_not_accepted_carrier_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TermsAndConditionsNotAcceptedCarrierList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipping_service_list' => null,
'rejected_shipping_service_list' => null,
'temporarily_unavailable_carrier_list' => null,
'terms_and_conditions_not_accepted_carrier_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 = [
'shipping_service_list' => 'ShippingServiceList',
'rejected_shipping_service_list' => 'RejectedShippingServiceList',
'temporarily_unavailable_carrier_list' => 'TemporarilyUnavailableCarrierList',
'terms_and_conditions_not_accepted_carrier_list' => 'TermsAndConditionsNotAcceptedCarrierList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipping_service_list' => 'setShippingServiceList',
'rejected_shipping_service_list' => 'setRejectedShippingServiceList',
'temporarily_unavailable_carrier_list' => 'setTemporarilyUnavailableCarrierList',
'terms_and_conditions_not_accepted_carrier_list' => 'setTermsAndConditionsNotAcceptedCarrierList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipping_service_list' => 'getShippingServiceList',
'rejected_shipping_service_list' => 'getRejectedShippingServiceList',
'temporarily_unavailable_carrier_list' => 'getTemporarilyUnavailableCarrierList',
'terms_and_conditions_not_accepted_carrier_list' => 'getTermsAndConditionsNotAcceptedCarrierList', ];
/**
* 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['shipping_service_list'] = isset($data['shipping_service_list']) ? $data['shipping_service_list'] : null;
$this->container['rejected_shipping_service_list'] = isset($data['rejected_shipping_service_list']) ? $data['rejected_shipping_service_list'] : null;
$this->container['temporarily_unavailable_carrier_list'] = isset($data['temporarily_unavailable_carrier_list']) ? $data['temporarily_unavailable_carrier_list'] : null;
$this->container['terms_and_conditions_not_accepted_carrier_list'] = isset($data['terms_and_conditions_not_accepted_carrier_list']) ? $data['terms_and_conditions_not_accepted_carrier_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['shipping_service_list']) {
$invalidProperties[] = "'shipping_service_list' 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 shipping_service_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceList
*/
public function getShippingServiceList()
{
return $this->container['shipping_service_list'];
}
/**
* Sets shipping_service_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceList $shipping_service_list shipping_service_list
*
* @return $this
*/
public function setShippingServiceList($shipping_service_list)
{
$this->container['shipping_service_list'] = $shipping_service_list;
return $this;
}
/**
* Gets rejected_shipping_service_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RejectedShippingServiceList
*/
public function getRejectedShippingServiceList()
{
return $this->container['rejected_shipping_service_list'];
}
/**
* Sets rejected_shipping_service_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RejectedShippingServiceList $rejected_shipping_service_list rejected_shipping_service_list
*
* @return $this
*/
public function setRejectedShippingServiceList($rejected_shipping_service_list)
{
$this->container['rejected_shipping_service_list'] = $rejected_shipping_service_list;
return $this;
}
/**
* Gets temporarily_unavailable_carrier_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TemporarilyUnavailableCarrierList
*/
public function getTemporarilyUnavailableCarrierList()
{
return $this->container['temporarily_unavailable_carrier_list'];
}
/**
* Sets temporarily_unavailable_carrier_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TemporarilyUnavailableCarrierList $temporarily_unavailable_carrier_list temporarily_unavailable_carrier_list
*
* @return $this
*/
public function setTemporarilyUnavailableCarrierList($temporarily_unavailable_carrier_list)
{
$this->container['temporarily_unavailable_carrier_list'] = $temporarily_unavailable_carrier_list;
return $this;
}
/**
* Gets terms_and_conditions_not_accepted_carrier_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TermsAndConditionsNotAcceptedCarrierList
*/
public function getTermsAndConditionsNotAcceptedCarrierList()
{
return $this->container['terms_and_conditions_not_accepted_carrier_list'];
}
/**
* Sets terms_and_conditions_not_accepted_carrier_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TermsAndConditionsNotAcceptedCarrierList $terms_and_conditions_not_accepted_carrier_list terms_and_conditions_not_accepted_carrier_list
*
* @return $this
*/
public function setTermsAndConditionsNotAcceptedCarrierList($terms_and_conditions_not_accepted_carrier_list)
{
$this->container['terms_and_conditions_not_accepted_carrier_list'] = $terms_and_conditions_not_accepted_carrier_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/MerchantFulfillment/HazmatType.php | lib/Models/MerchantFulfillment/HazmatType.php | <?php
/**
* HazmatType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
/**
* HazmatType Class Doc Comment.
*
* @description Hazardous materials options for a package. Consult the terms and conditions for each carrier for more information on hazardous materials.
*
* @author Stefan Neuhaus / ClouSale
*/
class HazmatType
{
/**
* Possible values of this enum.
*/
const NONE = 'None';
const LQ_HAZMAT = 'LQHazmat';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::NONE,
self::LQ_HAZMAT, ];
}
}
| 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/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php | lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php | <?php
/**
* TermsAndConditionsNotAcceptedCarrier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TermsAndConditionsNotAcceptedCarrier Class Doc Comment.
*
* @description A carrier whose terms and conditions have not been accepted by the seller.
*
* @author Stefan Neuhaus / ClouSale
*/
class TermsAndConditionsNotAcceptedCarrier implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TermsAndConditionsNotAcceptedCarrier';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'carrier_name' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'carrier_name' => 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 = [
'carrier_name' => 'CarrierName', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'carrier_name' => 'setCarrierName', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'carrier_name' => 'getCarrierName', ];
/**
* 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['carrier_name'] = isset($data['carrier_name']) ? $data['carrier_name'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['carrier_name']) {
$invalidProperties[] = "'carrier_name' 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 carrier_name.
*
* @return string
*/
public function getCarrierName()
{
return $this->container['carrier_name'];
}
/**
* Sets carrier_name.
*
* @param string $carrier_name the name of the carrier
*
* @return $this
*/
public function setCarrierName($carrier_name)
{
$this->container['carrier_name'] = $carrier_name;
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/MerchantFulfillment/CancelShipmentResponse.php | lib/Models/MerchantFulfillment/CancelShipmentResponse.php | <?php
/**
* CancelShipmentResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CancelShipmentResponse Class Doc Comment.
*
* @description Response schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class CancelShipmentResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CancelShipmentResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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\MerchantFulfillment\Shipment
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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/MerchantFulfillment/CustomTextForLabel.php | lib/Models/MerchantFulfillment/CustomTextForLabel.php | <?php
/**
* CustomTextForLabel.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CustomTextForLabel Class Doc Comment.
*
* @description Custom text to print on the label. Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel.
*
* @author Stefan Neuhaus / ClouSale
*/
class CustomTextForLabel implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CustomTextForLabel';
/**
* 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/MerchantFulfillment/AvailableFormatOptionsForLabel.php | lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabel.php | <?php
/**
* AvailableFormatOptionsForLabel.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AvailableFormatOptionsForLabel Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class AvailableFormatOptionsForLabel implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AvailableFormatOptionsForLabel';
/**
* 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/MerchantFulfillment/LabelDimensions.php | lib/Models/MerchantFulfillment/LabelDimensions.php | <?php
/**
* LabelDimensions.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LabelDimensions Class Doc Comment.
*
* @description Dimensions for printing a shipping label.
*
* @author Stefan Neuhaus / ClouSale
*/
class LabelDimensions implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LabelDimensions';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'length' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension',
'width' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension',
'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'length' => null,
'width' => null,
'unit' => 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 = [
'length' => 'Length',
'width' => 'Width',
'unit' => 'Unit', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'length' => 'setLength',
'width' => 'setWidth',
'unit' => 'setUnit', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'length' => 'getLength',
'width' => 'getWidth',
'unit' => 'getUnit', ];
/**
* 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['length'] = isset($data['length']) ? $data['length'] : null;
$this->container['width'] = isset($data['width']) ? $data['width'] : null;
$this->container['unit'] = isset($data['unit']) ? $data['unit'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['length']) {
$invalidProperties[] = "'length' can't be null";
}
if (null === $this->container['width']) {
$invalidProperties[] = "'width' can't be null";
}
if (null === $this->container['unit']) {
$invalidProperties[] = "'unit' 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 length.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension
*/
public function getLength()
{
return $this->container['length'];
}
/**
* Sets length.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension $length length
*
* @return $this
*/
public function setLength($length)
{
$this->container['length'] = $length;
return $this;
}
/**
* Gets width.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension
*/
public function getWidth()
{
return $this->container['width'];
}
/**
* Sets width.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension $width width
*
* @return $this
*/
public function setWidth($width)
{
$this->container['width'] = $width;
return $this;
}
/**
* Gets unit.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength
*/
public function getUnit()
{
return $this->container['unit'];
}
/**
* Sets unit.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength $unit unit
*
* @return $this
*/
public function setUnit($unit)
{
$this->container['unit'] = $unit;
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/MerchantFulfillment/GetEligibleShipmentServicesRequest.php | lib/Models/MerchantFulfillment/GetEligibleShipmentServicesRequest.php | <?php
/**
* GetEligibleShipmentServicesRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetEligibleShipmentServicesRequest Class Doc Comment.
*
* @description Request schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetEligibleShipmentServicesRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetEligibleShipmentServicesRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_request_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails',
'shipping_offering_filter' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingOfferingFilter', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_request_details' => null,
'shipping_offering_filter' => 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_request_details' => 'ShipmentRequestDetails',
'shipping_offering_filter' => 'ShippingOfferingFilter', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_request_details' => 'setShipmentRequestDetails',
'shipping_offering_filter' => 'setShippingOfferingFilter', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_request_details' => 'getShipmentRequestDetails',
'shipping_offering_filter' => 'getShippingOfferingFilter', ];
/**
* 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_request_details'] = isset($data['shipment_request_details']) ? $data['shipment_request_details'] : null;
$this->container['shipping_offering_filter'] = isset($data['shipping_offering_filter']) ? $data['shipping_offering_filter'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['shipment_request_details']) {
$invalidProperties[] = "'shipment_request_details' 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 shipment_request_details.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails
*/
public function getShipmentRequestDetails()
{
return $this->container['shipment_request_details'];
}
/**
* Sets shipment_request_details.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails $shipment_request_details shipment_request_details
*
* @return $this
*/
public function setShipmentRequestDetails($shipment_request_details)
{
$this->container['shipment_request_details'] = $shipment_request_details;
return $this;
}
/**
* Gets shipping_offering_filter.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingOfferingFilter
*/
public function getShippingOfferingFilter()
{
return $this->container['shipping_offering_filter'];
}
/**
* Sets shipping_offering_filter.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingOfferingFilter $shipping_offering_filter shipping_offering_filter
*
* @return $this
*/
public function setShippingOfferingFilter($shipping_offering_filter)
{
$this->container['shipping_offering_filter'] = $shipping_offering_filter;
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/MerchantFulfillment/OrderItemId.php | lib/Models/MerchantFulfillment/OrderItemId.php | <?php
/**
* OrderItemId.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OrderItemId Class Doc Comment.
*
* @description An Amazon-defined identifier for an individual item in an order.
*
* @author Stefan Neuhaus / ClouSale
*/
class OrderItemId implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OrderItemId';
/**
* 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/MerchantFulfillment/GetEligibleShipmentServicesResponse.php | lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResponse.php | <?php
/**
* GetEligibleShipmentServicesResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Merchant Fulfillment.
*
* The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetEligibleShipmentServicesResponse Class Doc Comment.
*
* @description Response schema.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetEligibleShipmentServicesResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetEligibleShipmentServicesResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetEligibleShipmentServicesResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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\MerchantFulfillment\GetEligibleShipmentServicesResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetEligibleShipmentServicesResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\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/Sellers/MarketplaceParticipationList.php | lib/Models/Sellers/MarketplaceParticipationList.php | <?php
/**
* MarketplaceParticipationList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Sellers.
*
* The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Sellers;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* MarketplaceParticipationList Class Doc Comment.
*
* @description List of marketplace participations.
*
* @author Stefan Neuhaus / ClouSale
*/
class MarketplaceParticipationList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'MarketplaceParticipationList';
/**
* 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 MarketplaceParticipation::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/Sellers/ErrorList.php | lib/Models/Sellers/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Sellers.
*
* The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Sellers;
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/Sellers/MarketplaceParticipation.php | lib/Models/Sellers/MarketplaceParticipation.php | <?php
/**
* MarketplaceParticipation.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Sellers.
*
* The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Sellers;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* MarketplaceParticipation Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class MarketplaceParticipation implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'MarketplaceParticipation';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace' => '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Marketplace',
'participation' => '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Participation', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace' => null,
'participation' => 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' => 'marketplace',
'participation' => 'participation', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace' => 'setMarketplace',
'participation' => 'setParticipation', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace' => 'getMarketplace',
'participation' => 'getParticipation', ];
/**
* 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'] = isset($data['marketplace']) ? $data['marketplace'] : null;
$this->container['participation'] = isset($data['participation']) ? $data['participation'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['marketplace']) {
$invalidProperties[] = "'marketplace' can't be null";
}
if (null === $this->container['participation']) {
$invalidProperties[] = "'participation' 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.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Marketplace
*/
public function getMarketplace()
{
return $this->container['marketplace'];
}
/**
* Sets marketplace.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Marketplace $marketplace marketplace
*
* @return $this
*/
public function setMarketplace($marketplace)
{
$this->container['marketplace'] = $marketplace;
return $this;
}
/**
* Gets participation.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Participation
*/
public function getParticipation()
{
return $this->container['participation'];
}
/**
* Sets participation.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Participation $participation participation
*
* @return $this
*/
public function setParticipation($participation)
{
$this->container['participation'] = $participation;
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/Sellers/Participation.php | lib/Models/Sellers/Participation.php | <?php
/**
* Participation.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Sellers.
*
* The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Sellers;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Participation Class Doc Comment.
*
* @description Detailed information that is specific to a seller in a Marketplace.
*
* @author Stefan Neuhaus / ClouSale
*/
class Participation implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Participation';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'is_participating' => 'bool',
'has_suspended_listings' => 'bool', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'is_participating' => null,
'has_suspended_listings' => 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 = [
'is_participating' => 'isParticipating',
'has_suspended_listings' => 'hasSuspendedListings', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'is_participating' => 'setIsParticipating',
'has_suspended_listings' => 'setHasSuspendedListings', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'is_participating' => 'getIsParticipating',
'has_suspended_listings' => 'getHasSuspendedListings', ];
/**
* 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['is_participating'] = isset($data['is_participating']) ? $data['is_participating'] : null;
$this->container['has_suspended_listings'] = isset($data['has_suspended_listings']) ? $data['has_suspended_listings'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['is_participating']) {
$invalidProperties[] = "'is_participating' can't be null";
}
if (null === $this->container['has_suspended_listings']) {
$invalidProperties[] = "'has_suspended_listings' 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 is_participating.
*
* @return bool
*/
public function getIsParticipating()
{
return $this->container['is_participating'];
}
/**
* Sets is_participating.
*
* @param bool $is_participating is_participating
*
* @return $this
*/
public function setIsParticipating($is_participating)
{
$this->container['is_participating'] = $is_participating;
return $this;
}
/**
* Gets has_suspended_listings.
*
* @return bool
*/
public function getHasSuspendedListings()
{
return $this->container['has_suspended_listings'];
}
/**
* Sets has_suspended_listings.
*
* @param bool $has_suspended_listings Specifies if the seller has suspended listings. True if the seller Listing Status is set to Inactive, otherwise False.
*
* @return $this
*/
public function setHasSuspendedListings($has_suspended_listings)
{
$this->container['has_suspended_listings'] = $has_suspended_listings;
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/Sellers/Error.php | lib/Models/Sellers/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Sellers.
*
* The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Sellers;
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 occured
*
* @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/Sellers/GetMarketplaceParticipationsResponse.php | lib/Models/Sellers/GetMarketplaceParticipationsResponse.php | <?php
/**
* GetMarketplaceParticipationsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Sellers.
*
* The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Sellers;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetMarketplaceParticipationsResponse Class Doc Comment.
*
* @description The response schema for the getMarketplaceParticipations operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetMarketplaceParticipationsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetMarketplaceParticipationsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\MarketplaceParticipationList',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\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\Sellers\MarketplaceParticipationList
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\MarketplaceParticipationList $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\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/Sellers/Marketplace.php | lib/Models/Sellers/Marketplace.php | <?php
/**
* Marketplace.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Sellers.
*
* The Selling Partner API for Sellers lets you retrieve information on behalf of sellers about their seller account, such as the marketplaces they participate in. Along with listing the marketplaces that a seller can sell in, the API also provides additional information about the marketplace such as the default language and the default currency. The API also provides seller-specific information such as whether the seller has suspended listings in that marketplace.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Sellers;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Marketplace Class Doc Comment.
*
* @description Detailed information about an Amazon market where a seller can list items for sale and customers can view and purchase items.
*
* @author Stefan Neuhaus / ClouSale
*/
class Marketplace implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Marketplace';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'id' => 'string',
'name' => 'string',
'country_code' => 'string',
'default_currency_code' => 'string',
'default_language_code' => 'string',
'domain_name' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'id' => null,
'name' => null,
'country_code' => null,
'default_currency_code' => null,
'default_language_code' => null,
'domain_name' => 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 = [
'id' => 'id',
'name' => 'name',
'country_code' => 'countryCode',
'default_currency_code' => 'defaultCurrencyCode',
'default_language_code' => 'defaultLanguageCode',
'domain_name' => 'domainName', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'id' => 'setId',
'name' => 'setName',
'country_code' => 'setCountryCode',
'default_currency_code' => 'setDefaultCurrencyCode',
'default_language_code' => 'setDefaultLanguageCode',
'domain_name' => 'setDomainName', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'id' => 'getId',
'name' => 'getName',
'country_code' => 'getCountryCode',
'default_currency_code' => 'getDefaultCurrencyCode',
'default_language_code' => 'getDefaultLanguageCode',
'domain_name' => 'getDomainName', ];
/**
* 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['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null;
$this->container['default_currency_code'] = isset($data['default_currency_code']) ? $data['default_currency_code'] : null;
$this->container['default_language_code'] = isset($data['default_language_code']) ? $data['default_language_code'] : null;
$this->container['domain_name'] = isset($data['domain_name']) ? $data['domain_name'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['id']) {
$invalidProperties[] = "'id' can't be null";
}
if (null === $this->container['name']) {
$invalidProperties[] = "'name' can't be null";
}
if (null === $this->container['country_code']) {
$invalidProperties[] = "'country_code' can't be null";
}
if (null === $this->container['default_currency_code']) {
$invalidProperties[] = "'default_currency_code' can't be null";
}
if (null === $this->container['default_language_code']) {
$invalidProperties[] = "'default_language_code' can't be null";
}
if (null === $this->container['domain_name']) {
$invalidProperties[] = "'domain_name' 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 id.
*
* @return string
*/
public function getId()
{
return $this->container['id'];
}
/**
* Sets id.
*
* @param string $id the encrypted marketplace value
*
* @return $this
*/
public function setId($id)
{
$this->container['id'] = $id;
return $this;
}
/**
* Gets name.
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name.
*
* @param string $name marketplace name
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets country_code.
*
* @return string
*/
public function getCountryCode()
{
return $this->container['country_code'];
}
/**
* Sets country_code.
*
* @param string $country_code the ISO 3166-1 alpha-2 format country code of the marketplace
*
* @return $this
*/
public function setCountryCode($country_code)
{
$this->container['country_code'] = $country_code;
return $this;
}
/**
* Gets default_currency_code.
*
* @return string
*/
public function getDefaultCurrencyCode()
{
return $this->container['default_currency_code'];
}
/**
* Sets default_currency_code.
*
* @param string $default_currency_code the ISO 4217 format currency code of the marketplace
*
* @return $this
*/
public function setDefaultCurrencyCode($default_currency_code)
{
$this->container['default_currency_code'] = $default_currency_code;
return $this;
}
/**
* Gets default_language_code.
*
* @return string
*/
public function getDefaultLanguageCode()
{
return $this->container['default_language_code'];
}
/**
* Sets default_language_code.
*
* @param string $default_language_code the ISO 639-1 format language code of the marketplace
*
* @return $this
*/
public function setDefaultLanguageCode($default_language_code)
{
$this->container['default_language_code'] = $default_language_code;
return $this;
}
/**
* Gets domain_name.
*
* @return string
*/
public function getDomainName()
{
return $this->container['domain_name'];
}
/**
* Sets domain_name.
*
* @param string $domain_name the domain name of the marketplace
*
* @return $this
*/
public function setDomainName($domain_name)
{
$this->container['domain_name'] = $domain_name;
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/FbaSmallAndLight/SmallAndLightEligibilityStatus.php | lib/Models/FbaSmallAndLight/SmallAndLightEligibilityStatus.php | <?php
/**
* SmallAndLightEligibilityStatus.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
/**
* SmallAndLightEligibilityStatus Class Doc Comment.
*
* @description The Small and Light eligibility status of the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class SmallAndLightEligibilityStatus
{
/**
* Possible values of this enum.
*/
const ELIGIBLE = 'ELIGIBLE';
const NOT_ELIGIBLE = 'NOT_ELIGIBLE';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::ELIGIBLE,
self::NOT_ELIGIBLE, ];
}
}
| 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/FbaSmallAndLight/ErrorList.php | lib/Models/FbaSmallAndLight/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
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 = [
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\Error[]', ];
/**
* 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\FbaSmallAndLight\Error[]
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\Error[] $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));
}
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/FbaSmallAndLight/SmallAndLightEnrollment.php | lib/Models/FbaSmallAndLight/SmallAndLightEnrollment.php | <?php
/**
* SmallAndLightEnrollment.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SmallAndLightEnrollment Class Doc Comment.
*
* @description The Small and Light enrollment status of the item indicated by the specified seller SKU.
*
* @author Stefan Neuhaus / ClouSale
*/
class SmallAndLightEnrollment implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SmallAndLightEnrollment';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId',
'seller_sku' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SellerSKU',
'status' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollmentStatus', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'seller_sku' => null,
'status' => 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_sku' => 'sellerSKU',
'status' => 'status', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'seller_sku' => 'setSellerSku',
'status' => 'setStatus', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'seller_sku' => 'getSellerSku',
'status' => 'getStatus', ];
/**
* 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_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : 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['seller_sku']) {
$invalidProperties[] = "'seller_sku' can't be null";
}
if (null === $this->container['status']) {
$invalidProperties[] = "'status' 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 \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId $marketplace_id marketplace_id
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets seller_sku.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SellerSKU
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SellerSKU $seller_sku seller_sku
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets status.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollmentStatus
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollmentStatus $status status
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
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/FbaSmallAndLight/MoneyType.php | lib/Models/FbaSmallAndLight/MoneyType.php | <?php
/**
* MoneyType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
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/FbaSmallAndLight/SmallAndLightFeePreviews.php | lib/Models/FbaSmallAndLight/SmallAndLightFeePreviews.php | <?php
/**
* SmallAndLightFeePreviews.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SmallAndLightFeePreviews Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class SmallAndLightFeePreviews implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SmallAndLightFeePreviews';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'data' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\FeePreview[]', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'data' => 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 = [
'data' => 'data', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'data' => 'setData', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'data' => 'getData', ];
/**
* 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['data'] = isset($data['data']) ? $data['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());
}
/**
* Gets data.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\FeePreview[]
*/
public function getData()
{
return $this->container['data'];
}
/**
* Sets data.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\FeePreview[] $data A list of fee estimates for the requested items. The order of the fee estimates will follow the same order as the items in the request, with duplicates removed.
*
* @return $this
*/
public function setData($data)
{
$this->container['data'] = $data;
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/FbaSmallAndLight/SmallAndLightEligibility.php | lib/Models/FbaSmallAndLight/SmallAndLightEligibility.php | <?php
/**
* SmallAndLightEligibility.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SmallAndLightEligibility Class Doc Comment.
*
* @description The Small and Light eligibility status of the item indicated by the specified seller SKU.
*
* @author Stefan Neuhaus / ClouSale
*/
class SmallAndLightEligibility implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SmallAndLightEligibility';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId',
'seller_sku' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SellerSKU',
'status' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEligibilityStatus', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'seller_sku' => null,
'status' => 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_sku' => 'sellerSKU',
'status' => 'status', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'seller_sku' => 'setSellerSku',
'status' => 'setStatus', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'seller_sku' => 'getSellerSku',
'status' => 'getStatus', ];
/**
* 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_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : 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['seller_sku']) {
$invalidProperties[] = "'seller_sku' can't be null";
}
if (null === $this->container['status']) {
$invalidProperties[] = "'status' 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 \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId $marketplace_id marketplace_id
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets seller_sku.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SellerSKU
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SellerSKU $seller_sku seller_sku
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets status.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEligibilityStatus
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEligibilityStatus $status status
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
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/FbaSmallAndLight/MarketplaceId.php | lib/Models/FbaSmallAndLight/MarketplaceId.php | <?php
/**
* MarketplaceId.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* MarketplaceId Class Doc Comment.
*
* @description A marketplace identifier.
*
* @author Stefan Neuhaus / ClouSale
*/
class MarketplaceId implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'MarketplaceId';
/**
* 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/FbaSmallAndLight/FeePreview.php | lib/Models/FbaSmallAndLight/FeePreview.php | <?php
/**
* FeePreview.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeePreview Class Doc Comment.
*
* @description The fee estimate for a specific item.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeePreview implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeePreview';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'asin' => 'string',
'price' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType',
'fee_breakdown' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\FeeLineItem[]',
'total_fees' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'asin' => null,
'price' => null,
'fee_breakdown' => null,
'total_fees' => 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 = [
'asin' => 'asin',
'price' => 'price',
'fee_breakdown' => 'feeBreakdown',
'total_fees' => 'totalFees',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'asin' => 'setAsin',
'price' => 'setPrice',
'fee_breakdown' => 'setFeeBreakdown',
'total_fees' => 'setTotalFees',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'asin' => 'getAsin',
'price' => 'getPrice',
'fee_breakdown' => 'getFeeBreakdown',
'total_fees' => 'getTotalFees',
'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['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['price'] = isset($data['price']) ? $data['price'] : null;
$this->container['fee_breakdown'] = isset($data['fee_breakdown']) ? $data['fee_breakdown'] : null;
$this->container['total_fees'] = isset($data['total_fees']) ? $data['total_fees'] : 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 asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) value used to identify the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType
*/
public function getPrice()
{
return $this->container['price'];
}
/**
* Sets price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType $price price
*
* @return $this
*/
public function setPrice($price)
{
$this->container['price'] = $price;
return $this;
}
/**
* Gets fee_breakdown.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\FeeLineItem[]
*/
public function getFeeBreakdown()
{
return $this->container['fee_breakdown'];
}
/**
* Sets fee_breakdown.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\FeeLineItem[] $fee_breakdown a list of the Small and Light fees for the item
*
* @return $this
*/
public function setFeeBreakdown($fee_breakdown)
{
$this->container['fee_breakdown'] = $fee_breakdown;
return $this;
}
/**
* Gets total_fees.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType
*/
public function getTotalFees()
{
return $this->container['total_fees'];
}
/**
* Sets total_fees.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType $total_fees total_fees
*
* @return $this
*/
public function setTotalFees($total_fees)
{
$this->container['total_fees'] = $total_fees;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\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/FbaSmallAndLight/SmallAndLightFeePreviewRequest.php | lib/Models/FbaSmallAndLight/SmallAndLightFeePreviewRequest.php | <?php
/**
* SmallAndLightFeePreviewRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SmallAndLightFeePreviewRequest Class Doc Comment.
*
* @description Request schema for submitting items for which to retrieve fee estimates.
*
* @author Stefan Neuhaus / ClouSale
*/
class SmallAndLightFeePreviewRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SmallAndLightFeePreviewRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId',
'items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\Item[]', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'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 = [
'marketplace_id' => 'marketplaceId',
'items' => 'items', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'items' => 'setItems', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'items' => 'getItems', ];
/**
* 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['items'] = isset($data['items']) ? $data['items'] : 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['items']) {
$invalidProperties[] = "'items' 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 \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MarketplaceId $marketplace_id marketplace_id
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets items.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\Item[]
*/
public function getItems()
{
return $this->container['items'];
}
/**
* Sets items.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\Item[] $items a list of items for which to retrieve fee estimates (limit: 25)
*
* @return $this
*/
public function setItems($items)
{
$this->container['items'] = $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/FbaSmallAndLight/Error.php | lib/Models/FbaSmallAndLight/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
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 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/FbaSmallAndLight/SmallAndLightEnrollmentStatus.php | lib/Models/FbaSmallAndLight/SmallAndLightEnrollmentStatus.php | <?php
/**
* SmallAndLightEnrollmentStatus.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
/**
* SmallAndLightEnrollmentStatus Class Doc Comment.
*
* @description The Small and Light enrollment status of the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class SmallAndLightEnrollmentStatus
{
/**
* Possible values of this enum.
*/
const ENROLLED = 'ENROLLED';
const NOT_ENROLLED = 'NOT_ENROLLED';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::ENROLLED,
self::NOT_ENROLLED, ];
}
}
| 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/FbaSmallAndLight/Item.php | lib/Models/FbaSmallAndLight/Item.php | <?php
/**
* Item.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Item Class Doc Comment.
*
* @description An item to be sold.
*
* @author Stefan Neuhaus / ClouSale
*/
class Item implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Item';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'asin' => 'string',
'price' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'asin' => null,
'price' => 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',
'price' => 'price', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'asin' => 'setAsin',
'price' => 'setPrice', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'asin' => 'getAsin',
'price' => 'getPrice', ];
/**
* 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['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['price'] = isset($data['price']) ? $data['price'] : 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['price']) {
$invalidProperties[] = "'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 asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) value used to identify the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType
*/
public function getPrice()
{
return $this->container['price'];
}
/**
* Sets price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType $price price
*
* @return $this
*/
public function setPrice($price)
{
$this->container['price'] = $price;
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/FbaSmallAndLight/FeeLineItem.php | lib/Models/FbaSmallAndLight/FeeLineItem.php | <?php
/**
* FeeLineItem.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* FeeLineItem Class Doc Comment.
*
* @description Fee details for a specific fee.
*
* @author Stefan Neuhaus / ClouSale
*/
class FeeLineItem implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FeeLineItem';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'fee_type' => 'string',
'fee_charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'fee_type' => null,
'fee_charge' => 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_charge' => 'feeCharge', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'fee_type' => 'setFeeType',
'fee_charge' => 'setFeeCharge', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'fee_type' => 'getFeeType',
'fee_charge' => 'getFeeCharge', ];
/**
* 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 FEE_TYPE_FBA_WEIGHT_BASED_FEE = 'FBAWeightBasedFee';
const FEE_TYPE_FBA_PER_ORDER_FULFILLMENT_FEE = 'FBAPerOrderFulfillmentFee';
const FEE_TYPE_FBA_PER_UNIT_FULFILLMENT_FEE = 'FBAPerUnitFulfillmentFee';
const FEE_TYPE_COMMISSION = 'Commission';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getFeeTypeAllowableValues()
{
return [
self::FEE_TYPE_FBA_WEIGHT_BASED_FEE,
self::FEE_TYPE_FBA_PER_ORDER_FULFILLMENT_FEE,
self::FEE_TYPE_FBA_PER_UNIT_FULFILLMENT_FEE,
self::FEE_TYPE_COMMISSION, ];
}
/**
* 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_charge'] = isset($data['fee_charge']) ? $data['fee_charge'] : 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";
}
$allowedValues = $this->getFeeTypeAllowableValues();
if (!is_null($this->container['fee_type']) && !in_array($this->container['fee_type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'fee_type', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if (null === $this->container['fee_charge']) {
$invalidProperties[] = "'fee_charge' 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 the seller
*
* @return $this
*/
public function setFeeType($fee_type)
{
$allowedValues = $this->getFeeTypeAllowableValues();
if (!in_array($fee_type, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'fee_type', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['fee_type'] = $fee_type;
return $this;
}
/**
* Gets fee_charge.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType
*/
public function getFeeCharge()
{
return $this->container['fee_charge'];
}
/**
* Sets fee_charge.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\MoneyType $fee_charge fee_charge
*
* @return $this
*/
public function setFeeCharge($fee_charge)
{
$this->container['fee_charge'] = $fee_charge;
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/FbaSmallAndLight/SellerSKU.php | lib/Models/FbaSmallAndLight/SellerSKU.php | <?php
/**
* SellerSKU.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Small And Light.
*
* The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerSKU Class Doc Comment.
*
* @description Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerSKU implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerSKU';
/**
* 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/Catalog/ListOfCategories.php | lib/Models/Catalog/ListOfCategories.php | <?php
/**
* ListOfCategories.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ListOfCategories Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ListOfCategories extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ListOfCategories';
/**
* 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/Catalog/SellerSKUIdentifier.php | lib/Models/Catalog/SellerSKUIdentifier.php | <?php
/**
* SellerSKUIdentifier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerSKUIdentifier Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerSKUIdentifier extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerSKUIdentifier';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => 'string',
'seller_id' => 'string',
'seller_sku' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'seller_id' => null,
'seller_sku' => 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',
'seller_sku' => 'SellerSKU', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'seller_id' => 'setSellerId',
'seller_sku' => 'setSellerSku', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'seller_id' => 'getSellerId',
'seller_sku' => 'getSellerSku', ];
/**
* 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['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : 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['seller_id']) {
$invalidProperties[] = "'seller_id' can't be null";
}
if (null === $this->container['seller_sku']) {
$invalidProperties[] = "'seller_sku' 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 seller_id.
*
* @return string
*/
public function getSellerId()
{
return $this->container['seller_id'];
}
/**
* Sets seller_id.
*
* @param string $seller_id the seller identifier submitted for the operation
*
* @return $this
*/
public function setSellerId($seller_id)
{
$this->container['seller_id'] = $seller_id;
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;
}
/**
* 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.