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/Shipping/GetRatesResult.php | lib/Models/Shipping/GetRatesResult.php | <?php
/**
* GetRatesResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetRatesResult Class Doc Comment.
*
* @description The payload schema for the getRates operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetRatesResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetRatesResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'service_rates' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceRateList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'service_rates' => 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 = [
'service_rates' => 'serviceRates', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'service_rates' => 'setServiceRates', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'service_rates' => 'getServiceRates', ];
/**
* 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['service_rates'] = isset($data['service_rates']) ? $data['service_rates'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['service_rates']) {
$invalidProperties[] = "'service_rates' 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 service_rates.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceRateList
*/
public function getServiceRates()
{
return $this->container['service_rates'];
}
/**
* Sets service_rates.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceRateList $service_rates service_rates
*
* @return $this
*/
public function setServiceRates($service_rates)
{
$this->container['service_rates'] = $service_rates;
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/Shipping/LabelResultList.php | lib/Models/Shipping/LabelResultList.php | <?php
/**
* LabelResultList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LabelResultList Class Doc Comment.
*
* @description A list of label results
*
* @author Stefan Neuhaus / ClouSale
*/
class LabelResultList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LabelResultList';
/**
* 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 LabelResult::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/Shipping/PurchaseLabelsResponse.php | lib/Models/Shipping/PurchaseLabelsResponse.php | <?php
/**
* PurchaseLabelsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PurchaseLabelsResponse Class Doc Comment.
*
* @description The response schema for the purchaseLabels operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class PurchaseLabelsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PurchaseLabelsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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\Shipping\PurchaseLabelsResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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/Shipping/Location.php | lib/Models/Shipping/Location.php | <?php
/**
* Location.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Location Class Doc Comment.
*
* @description The location where the person, business or institution is located.
*
* @author Stefan Neuhaus / ClouSale
*/
class Location implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Location';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'state_or_region' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\StateOrRegion',
'city' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\City',
'country_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CountryCode',
'postal_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PostalCode', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'state_or_region' => null,
'city' => null,
'country_code' => null,
'postal_code' => 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 = [
'state_or_region' => 'stateOrRegion',
'city' => 'city',
'country_code' => 'countryCode',
'postal_code' => 'postalCode', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'state_or_region' => 'setStateOrRegion',
'city' => 'setCity',
'country_code' => 'setCountryCode',
'postal_code' => 'setPostalCode', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'state_or_region' => 'getStateOrRegion',
'city' => 'getCity',
'country_code' => 'getCountryCode',
'postal_code' => 'getPostalCode', ];
/**
* 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['state_or_region'] = isset($data['state_or_region']) ? $data['state_or_region'] : null;
$this->container['city'] = isset($data['city']) ? $data['city'] : null;
$this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null;
$this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : 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 state_or_region.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\StateOrRegion
*/
public function getStateOrRegion()
{
return $this->container['state_or_region'];
}
/**
* Sets state_or_region.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\StateOrRegion $state_or_region state_or_region
*
* @return $this
*/
public function setStateOrRegion($state_or_region)
{
$this->container['state_or_region'] = $state_or_region;
return $this;
}
/**
* Gets city.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\City
*/
public function getCity()
{
return $this->container['city'];
}
/**
* Sets city.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\City $city city
*
* @return $this
*/
public function setCity($city)
{
$this->container['city'] = $city;
return $this;
}
/**
* Gets country_code.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CountryCode
*/
public function getCountryCode()
{
return $this->container['country_code'];
}
/**
* Sets country_code.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CountryCode $country_code country_code
*
* @return $this
*/
public function setCountryCode($country_code)
{
$this->container['country_code'] = $country_code;
return $this;
}
/**
* Gets postal_code.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PostalCode
*/
public function getPostalCode()
{
return $this->container['postal_code'];
}
/**
* Sets postal_code.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PostalCode $postal_code postal_code
*
* @return $this
*/
public function setPostalCode($postal_code)
{
$this->container['postal_code'] = $postal_code;
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/Shipping/City.php | lib/Models/Shipping/City.php | <?php
/**
* City.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* City Class Doc Comment.
*
* @description The city where the person, business or institution is located.
*
* @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/Shipping/ServiceType.php | lib/Models/Shipping/ServiceType.php | <?php
/**
* ServiceType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
/**
* ServiceType Class Doc Comment.
*
* @description The type of shipping service that will be used for the service offering.
*
* @author Stefan Neuhaus / ClouSale
*/
class ServiceType
{
/**
* Possible values of this enum.
*/
const GROUND = 'Amazon Shipping Ground';
const STANDARD = 'Amazon Shipping Standard';
const PREMIUM = 'Amazon Shipping Premium';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::GROUND,
self::STANDARD,
self::PREMIUM, ];
}
}
| 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/Shipping/CountryCode.php | lib/Models/Shipping/CountryCode.php | <?php
/**
* CountryCode.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CountryCode Class Doc Comment.
*
* @description The two digit 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/Shipping/ServiceRateList.php | lib/Models/Shipping/ServiceRateList.php | <?php
/**
* ServiceRateList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ServiceRateList Class Doc Comment.
*
* @description A list of service rates.
*
* @author Stefan Neuhaus / ClouSale
*/
class ServiceRateList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ServiceRateList';
/**
* 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 ServiceRate::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/Shipping/Error.php | lib/Models/Shipping/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
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/Shipping/Event.php | lib/Models/Shipping/Event.php | <?php
/**
* Event.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Event Class Doc Comment.
*
* @description An event of a shipment
*
* @author Stefan Neuhaus / ClouSale
*/
class Event implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Event';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'event_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\EventCode',
'event_time' => '\DateTime',
'location' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Location', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'event_code' => null,
'event_time' => 'date-time',
'location' => 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 = [
'event_code' => 'eventCode',
'event_time' => 'eventTime',
'location' => 'location', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'event_code' => 'setEventCode',
'event_time' => 'setEventTime',
'location' => 'setLocation', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'event_code' => 'getEventCode',
'event_time' => 'getEventTime',
'location' => 'getLocation', ];
/**
* 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['event_code'] = isset($data['event_code']) ? $data['event_code'] : null;
$this->container['event_time'] = isset($data['event_time']) ? $data['event_time'] : null;
$this->container['location'] = isset($data['location']) ? $data['location'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['event_code']) {
$invalidProperties[] = "'event_code' can't be null";
}
if (null === $this->container['event_time']) {
$invalidProperties[] = "'event_time' 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 event_code.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\EventCode
*/
public function getEventCode()
{
return $this->container['event_code'];
}
/**
* Sets event_code.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\EventCode $event_code event_code
*
* @return $this
*/
public function setEventCode($event_code)
{
$this->container['event_code'] = $event_code;
return $this;
}
/**
* Gets event_time.
*
* @return \DateTime
*/
public function getEventTime()
{
return $this->container['event_time'];
}
/**
* Sets event_time.
*
* @param \DateTime $event_time the date and time of an event for a shipment
*
* @return $this
*/
public function setEventTime($event_time)
{
$this->container['event_time'] = $event_time;
return $this;
}
/**
* Gets location.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Location
*/
public function getLocation()
{
return $this->container['location'];
}
/**
* Sets location.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Location $location location
*
* @return $this
*/
public function setLocation($location)
{
$this->container['location'] = $location;
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/Shipping/GetShipmentResponse.php | lib/Models/Shipping/GetShipmentResponse.php | <?php
/**
* GetShipmentResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetShipmentResponse Class Doc Comment.
*
* @description The response schema for the getShipment operation.
*
* @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\Shipping\Shipment',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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\Shipping\Shipment
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Shipment $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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/Shipping/Shipment.php | lib/Models/Shipping/Shipment.php | <?php
/**
* Shipment.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Shipment Class Doc Comment.
*
* @description The shipment related data.
*
* @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\Shipping\ShipmentId',
'client_reference_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId',
'ship_from' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address',
'ship_to' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address',
'accepted_rate' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\AcceptedRate',
'shipper' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Party',
'containers' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_id' => null,
'client_reference_id' => null,
'ship_from' => null,
'ship_to' => null,
'accepted_rate' => null,
'shipper' => null,
'containers' => 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',
'client_reference_id' => 'clientReferenceId',
'ship_from' => 'shipFrom',
'ship_to' => 'shipTo',
'accepted_rate' => 'acceptedRate',
'shipper' => 'shipper',
'containers' => 'containers', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_id' => 'setShipmentId',
'client_reference_id' => 'setClientReferenceId',
'ship_from' => 'setShipFrom',
'ship_to' => 'setShipTo',
'accepted_rate' => 'setAcceptedRate',
'shipper' => 'setShipper',
'containers' => 'setContainers', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_id' => 'getShipmentId',
'client_reference_id' => 'getClientReferenceId',
'ship_from' => 'getShipFrom',
'ship_to' => 'getShipTo',
'accepted_rate' => 'getAcceptedRate',
'shipper' => 'getShipper',
'containers' => 'getContainers', ];
/**
* 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['client_reference_id'] = isset($data['client_reference_id']) ? $data['client_reference_id'] : null;
$this->container['ship_from'] = isset($data['ship_from']) ? $data['ship_from'] : null;
$this->container['ship_to'] = isset($data['ship_to']) ? $data['ship_to'] : null;
$this->container['accepted_rate'] = isset($data['accepted_rate']) ? $data['accepted_rate'] : null;
$this->container['shipper'] = isset($data['shipper']) ? $data['shipper'] : null;
$this->container['containers'] = isset($data['containers']) ? $data['containers'] : 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['client_reference_id']) {
$invalidProperties[] = "'client_reference_id' can't be null";
}
if (null === $this->container['ship_from']) {
$invalidProperties[] = "'ship_from' can't be null";
}
if (null === $this->container['ship_to']) {
$invalidProperties[] = "'ship_to' can't be null";
}
if (null === $this->container['containers']) {
$invalidProperties[] = "'containers' 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\Shipping\ShipmentId
*/
public function getShipmentId()
{
return $this->container['shipment_id'];
}
/**
* Sets shipment_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShipmentId $shipment_id shipment_id
*
* @return $this
*/
public function setShipmentId($shipment_id)
{
$this->container['shipment_id'] = $shipment_id;
return $this;
}
/**
* Gets client_reference_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId
*/
public function getClientReferenceId()
{
return $this->container['client_reference_id'];
}
/**
* Sets client_reference_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId $client_reference_id client_reference_id
*
* @return $this
*/
public function setClientReferenceId($client_reference_id)
{
$this->container['client_reference_id'] = $client_reference_id;
return $this;
}
/**
* Gets ship_from.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address
*/
public function getShipFrom()
{
return $this->container['ship_from'];
}
/**
* Sets ship_from.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address $ship_from ship_from
*
* @return $this
*/
public function setShipFrom($ship_from)
{
$this->container['ship_from'] = $ship_from;
return $this;
}
/**
* Gets ship_to.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address
*/
public function getShipTo()
{
return $this->container['ship_to'];
}
/**
* Sets ship_to.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address $ship_to ship_to
*
* @return $this
*/
public function setShipTo($ship_to)
{
$this->container['ship_to'] = $ship_to;
return $this;
}
/**
* Gets accepted_rate.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\AcceptedRate
*/
public function getAcceptedRate()
{
return $this->container['accepted_rate'];
}
/**
* Sets accepted_rate.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\AcceptedRate $accepted_rate accepted_rate
*
* @return $this
*/
public function setAcceptedRate($accepted_rate)
{
$this->container['accepted_rate'] = $accepted_rate;
return $this;
}
/**
* Gets shipper.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Party
*/
public function getShipper()
{
return $this->container['shipper'];
}
/**
* Sets shipper.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Party $shipper shipper
*
* @return $this
*/
public function setShipper($shipper)
{
$this->container['shipper'] = $shipper;
return $this;
}
/**
* Gets containers.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerList
*/
public function getContainers()
{
return $this->container['containers'];
}
/**
* Sets containers.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerList $containers containers
*
* @return $this
*/
public function setContainers($containers)
{
$this->container['containers'] = $containers;
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/Shipping/CreateShipmentRequest.php | lib/Models/Shipping/CreateShipmentRequest.php | <?php
/**
* CreateShipmentRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateShipmentRequest Class Doc Comment.
*
* @description The request schema for the createShipment operation.
*
* @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 = [
'client_reference_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId',
'ship_to' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address',
'ship_from' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address',
'containers' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'client_reference_id' => null,
'ship_to' => null,
'ship_from' => null,
'containers' => 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 = [
'client_reference_id' => 'clientReferenceId',
'ship_to' => 'shipTo',
'ship_from' => 'shipFrom',
'containers' => 'containers', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'client_reference_id' => 'setClientReferenceId',
'ship_to' => 'setShipTo',
'ship_from' => 'setShipFrom',
'containers' => 'setContainers', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'client_reference_id' => 'getClientReferenceId',
'ship_to' => 'getShipTo',
'ship_from' => 'getShipFrom',
'containers' => 'getContainers', ];
/**
* 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['client_reference_id'] = isset($data['client_reference_id']) ? $data['client_reference_id'] : null;
$this->container['ship_to'] = isset($data['ship_to']) ? $data['ship_to'] : null;
$this->container['ship_from'] = isset($data['ship_from']) ? $data['ship_from'] : null;
$this->container['containers'] = isset($data['containers']) ? $data['containers'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['client_reference_id']) {
$invalidProperties[] = "'client_reference_id' can't be null";
}
if (null === $this->container['ship_to']) {
$invalidProperties[] = "'ship_to' can't be null";
}
if (null === $this->container['ship_from']) {
$invalidProperties[] = "'ship_from' can't be null";
}
if (null === $this->container['containers']) {
$invalidProperties[] = "'containers' 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 client_reference_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId
*/
public function getClientReferenceId()
{
return $this->container['client_reference_id'];
}
/**
* Sets client_reference_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId $client_reference_id client_reference_id
*
* @return $this
*/
public function setClientReferenceId($client_reference_id)
{
$this->container['client_reference_id'] = $client_reference_id;
return $this;
}
/**
* Gets ship_to.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address
*/
public function getShipTo()
{
return $this->container['ship_to'];
}
/**
* Sets ship_to.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address $ship_to ship_to
*
* @return $this
*/
public function setShipTo($ship_to)
{
$this->container['ship_to'] = $ship_to;
return $this;
}
/**
* Gets ship_from.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address
*/
public function getShipFrom()
{
return $this->container['ship_from'];
}
/**
* Sets ship_from.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address $ship_from ship_from
*
* @return $this
*/
public function setShipFrom($ship_from)
{
$this->container['ship_from'] = $ship_from;
return $this;
}
/**
* Gets containers.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerList
*/
public function getContainers()
{
return $this->container['containers'];
}
/**
* Sets containers.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerList $containers containers
*
* @return $this
*/
public function setContainers($containers)
{
$this->container['containers'] = $containers;
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/Shipping/ContainerSpecification.php | lib/Models/Shipping/ContainerSpecification.php | <?php
/**
* ContainerSpecification.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ContainerSpecification Class Doc Comment.
*
* @description Container specification for checking the service rate.
*
* @author Stefan Neuhaus / ClouSale
*/
class ContainerSpecification implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ContainerSpecification';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Dimensions',
'weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'dimensions' => null,
'weight' => 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 = [
'dimensions' => 'dimensions',
'weight' => 'weight', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'dimensions' => 'setDimensions',
'weight' => 'setWeight', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'dimensions' => 'getDimensions',
'weight' => 'getWeight', ];
/**
* 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['dimensions'] = isset($data['dimensions']) ? $data['dimensions'] : null;
$this->container['weight'] = isset($data['weight']) ? $data['weight'] : 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['weight']) {
$invalidProperties[] = "'weight' 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 dimensions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Dimensions
*/
public function getDimensions()
{
return $this->container['dimensions'];
}
/**
* Sets dimensions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Dimensions $dimensions dimensions
*
* @return $this
*/
public function setDimensions($dimensions)
{
$this->container['dimensions'] = $dimensions;
return $this;
}
/**
* Gets weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight
*/
public function getWeight()
{
return $this->container['weight'];
}
/**
* Sets weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight $weight weight
*
* @return $this
*/
public function setWeight($weight)
{
$this->container['weight'] = $weight;
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/Shipping/ContainerSpecificationList.php | lib/Models/Shipping/ContainerSpecificationList.php | <?php
/**
* ContainerSpecificationList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ContainerSpecificationList Class Doc Comment.
*
* @description A list of container specifications.
*
* @author Stefan Neuhaus / ClouSale
*/
class ContainerSpecificationList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ContainerSpecificationList';
/**
* 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 ContainerSpecification::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/Shipping/LabelSpecification.php | lib/Models/Shipping/LabelSpecification.php | <?php
/**
* LabelSpecification.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LabelSpecification Class Doc Comment.
*
* @description The label specification info.
*
* @author Stefan Neuhaus / ClouSale
*/
class LabelSpecification implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LabelSpecification';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'label_format' => 'string',
'label_stock_size' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'label_format' => null,
'label_stock_size' => 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 = [
'label_format' => 'labelFormat',
'label_stock_size' => 'labelStockSize', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'label_format' => 'setLabelFormat',
'label_stock_size' => 'setLabelStockSize', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'label_format' => 'getLabelFormat',
'label_stock_size' => 'getLabelStockSize', ];
/**
* 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 LABEL_FORMAT_PNG = 'PNG';
const LABEL_STOCK_SIZE__4X6 = '4x6';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getLabelFormatAllowableValues()
{
return [
self::LABEL_FORMAT_PNG, ];
}
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getLabelStockSizeAllowableValues()
{
return [
self::LABEL_STOCK_SIZE__4X6, ];
}
/**
* 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['label_format'] = isset($data['label_format']) ? $data['label_format'] : null;
$this->container['label_stock_size'] = isset($data['label_stock_size']) ? $data['label_stock_size'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['label_format']) {
$invalidProperties[] = "'label_format' can't be null";
}
$allowedValues = $this->getLabelFormatAllowableValues();
if (!is_null($this->container['label_format']) && !in_array($this->container['label_format'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'label_format', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if (null === $this->container['label_stock_size']) {
$invalidProperties[] = "'label_stock_size' can't be null";
}
$allowedValues = $this->getLabelStockSizeAllowableValues();
if (!is_null($this->container['label_stock_size']) && !in_array($this->container['label_stock_size'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'label_stock_size', must be one of '%s'",
implode("', '", $allowedValues)
);
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets label_format.
*
* @return string
*/
public function getLabelFormat()
{
return $this->container['label_format'];
}
/**
* Sets label_format.
*
* @param string $label_format The format of the label. Enum of PNG only for now.
*
* @return $this
*/
public function setLabelFormat($label_format)
{
$allowedValues = $this->getLabelFormatAllowableValues();
if (!in_array($label_format, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'label_format', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['label_format'] = $label_format;
return $this;
}
/**
* Gets label_stock_size.
*
* @return string
*/
public function getLabelStockSize()
{
return $this->container['label_stock_size'];
}
/**
* Sets label_stock_size.
*
* @param string $label_stock_size The label stock size specification in length and height. Enum of 4x6 only for now.
*
* @return $this
*/
public function setLabelStockSize($label_stock_size)
{
$allowedValues = $this->getLabelStockSizeAllowableValues();
if (!in_array($label_stock_size, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'label_stock_size', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['label_stock_size'] = $label_stock_size;
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/Shipping/Rate.php | lib/Models/Shipping/Rate.php | <?php
/**
* Rate.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Rate Class Doc Comment.
*
* @description The available rate that can be used to send the shipment
*
* @author Stefan Neuhaus / ClouSale
*/
class Rate implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Rate';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'rate_id' => 'string',
'total_charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency',
'billed_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight',
'expiration_time' => '\DateTime',
'service_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType',
'promise' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'rate_id' => null,
'total_charge' => null,
'billed_weight' => null,
'expiration_time' => 'date-time',
'service_type' => null,
'promise' => 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 = [
'rate_id' => 'rateId',
'total_charge' => 'totalCharge',
'billed_weight' => 'billedWeight',
'expiration_time' => 'expirationTime',
'service_type' => 'serviceType',
'promise' => 'promise', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'rate_id' => 'setRateId',
'total_charge' => 'setTotalCharge',
'billed_weight' => 'setBilledWeight',
'expiration_time' => 'setExpirationTime',
'service_type' => 'setServiceType',
'promise' => 'setPromise', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'rate_id' => 'getRateId',
'total_charge' => 'getTotalCharge',
'billed_weight' => 'getBilledWeight',
'expiration_time' => 'getExpirationTime',
'service_type' => 'getServiceType',
'promise' => 'getPromise', ];
/**
* 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['rate_id'] = isset($data['rate_id']) ? $data['rate_id'] : null;
$this->container['total_charge'] = isset($data['total_charge']) ? $data['total_charge'] : null;
$this->container['billed_weight'] = isset($data['billed_weight']) ? $data['billed_weight'] : null;
$this->container['expiration_time'] = isset($data['expiration_time']) ? $data['expiration_time'] : null;
$this->container['service_type'] = isset($data['service_type']) ? $data['service_type'] : null;
$this->container['promise'] = isset($data['promise']) ? $data['promise'] : 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 rate_id.
*
* @return string
*/
public function getRateId()
{
return $this->container['rate_id'];
}
/**
* Sets rate_id.
*
* @param string $rate_id an identifier for the rate
*
* @return $this
*/
public function setRateId($rate_id)
{
$this->container['rate_id'] = $rate_id;
return $this;
}
/**
* Gets total_charge.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency
*/
public function getTotalCharge()
{
return $this->container['total_charge'];
}
/**
* Sets total_charge.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency $total_charge total_charge
*
* @return $this
*/
public function setTotalCharge($total_charge)
{
$this->container['total_charge'] = $total_charge;
return $this;
}
/**
* Gets billed_weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight
*/
public function getBilledWeight()
{
return $this->container['billed_weight'];
}
/**
* Sets billed_weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight $billed_weight billed_weight
*
* @return $this
*/
public function setBilledWeight($billed_weight)
{
$this->container['billed_weight'] = $billed_weight;
return $this;
}
/**
* Gets expiration_time.
*
* @return \DateTime
*/
public function getExpirationTime()
{
return $this->container['expiration_time'];
}
/**
* Sets expiration_time.
*
* @param \DateTime $expiration_time the time after which the offering will expire
*
* @return $this
*/
public function setExpirationTime($expiration_time)
{
$this->container['expiration_time'] = $expiration_time;
return $this;
}
/**
* Gets service_type.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType
*/
public function getServiceType()
{
return $this->container['service_type'];
}
/**
* Sets service_type.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType $service_type service_type
*
* @return $this
*/
public function setServiceType($service_type)
{
$this->container['service_type'] = $service_type;
return $this;
}
/**
* Gets promise.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet
*/
public function getPromise()
{
return $this->container['promise'];
}
/**
* Sets promise.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet $promise promise
*
* @return $this
*/
public function setPromise($promise)
{
$this->container['promise'] = $promise;
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/Shipping/ServiceRate.php | lib/Models/Shipping/ServiceRate.php | <?php
/**
* ServiceRate.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ServiceRate Class Doc Comment.
*
* @description The specific rate for a shipping service, or null if no service available.
*
* @author Stefan Neuhaus / ClouSale
*/
class ServiceRate implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ServiceRate';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'total_charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency',
'billable_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight',
'service_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType',
'promise' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'total_charge' => null,
'billable_weight' => null,
'service_type' => null,
'promise' => 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 = [
'total_charge' => 'totalCharge',
'billable_weight' => 'billableWeight',
'service_type' => 'serviceType',
'promise' => 'promise', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'total_charge' => 'setTotalCharge',
'billable_weight' => 'setBillableWeight',
'service_type' => 'setServiceType',
'promise' => 'setPromise', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'total_charge' => 'getTotalCharge',
'billable_weight' => 'getBillableWeight',
'service_type' => 'getServiceType',
'promise' => 'getPromise', ];
/**
* 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['total_charge'] = isset($data['total_charge']) ? $data['total_charge'] : null;
$this->container['billable_weight'] = isset($data['billable_weight']) ? $data['billable_weight'] : null;
$this->container['service_type'] = isset($data['service_type']) ? $data['service_type'] : null;
$this->container['promise'] = isset($data['promise']) ? $data['promise'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['total_charge']) {
$invalidProperties[] = "'total_charge' can't be null";
}
if (null === $this->container['billable_weight']) {
$invalidProperties[] = "'billable_weight' can't be null";
}
if (null === $this->container['service_type']) {
$invalidProperties[] = "'service_type' can't be null";
}
if (null === $this->container['promise']) {
$invalidProperties[] = "'promise' 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 total_charge.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency
*/
public function getTotalCharge()
{
return $this->container['total_charge'];
}
/**
* Sets total_charge.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency $total_charge total_charge
*
* @return $this
*/
public function setTotalCharge($total_charge)
{
$this->container['total_charge'] = $total_charge;
return $this;
}
/**
* Gets billable_weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight
*/
public function getBillableWeight()
{
return $this->container['billable_weight'];
}
/**
* Sets billable_weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight $billable_weight billable_weight
*
* @return $this
*/
public function setBillableWeight($billable_weight)
{
$this->container['billable_weight'] = $billable_weight;
return $this;
}
/**
* Gets service_type.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType
*/
public function getServiceType()
{
return $this->container['service_type'];
}
/**
* Sets service_type.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType $service_type service_type
*
* @return $this
*/
public function setServiceType($service_type)
{
$this->container['service_type'] = $service_type;
return $this;
}
/**
* Gets promise.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet
*/
public function getPromise()
{
return $this->container['promise'];
}
/**
* Sets promise.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet $promise promise
*
* @return $this
*/
public function setPromise($promise)
{
$this->container['promise'] = $promise;
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/Shipping/RetrieveShippingLabelRequest.php | lib/Models/Shipping/RetrieveShippingLabelRequest.php | <?php
/**
* RetrieveShippingLabelRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RetrieveShippingLabelRequest Class Doc Comment.
*
* @description The request schema for the retrieveShippingLabel operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class RetrieveShippingLabelRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RetrieveShippingLabelRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'label_specification' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\LabelSpecification', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'label_specification' => 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 = [
'label_specification' => 'labelSpecification', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'label_specification' => 'setLabelSpecification', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'label_specification' => 'getLabelSpecification', ];
/**
* 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['label_specification'] = isset($data['label_specification']) ? $data['label_specification'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['label_specification']) {
$invalidProperties[] = "'label_specification' 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 label_specification.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\LabelSpecification
*/
public function getLabelSpecification()
{
return $this->container['label_specification'];
}
/**
* Sets label_specification.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\LabelSpecification $label_specification label_specification
*
* @return $this
*/
public function setLabelSpecification($label_specification)
{
$this->container['label_specification'] = $label_specification;
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/Shipping/GetRatesResponse.php | lib/Models/Shipping/GetRatesResponse.php | <?php
/**
* GetRatesResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetRatesResponse Class Doc Comment.
*
* @description The response schema for the getRates operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetRatesResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetRatesResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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\Shipping\GetRatesResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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/Shipping/AcceptedRate.php | lib/Models/Shipping/AcceptedRate.php | <?php
/**
* AcceptedRate.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AcceptedRate Class Doc Comment.
*
* @description The specific rate purchased for the shipment, or null if unpurchased.
*
* @author Stefan Neuhaus / ClouSale
*/
class AcceptedRate implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AcceptedRate';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'total_charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency',
'billed_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight',
'service_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType',
'promise' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'total_charge' => null,
'billed_weight' => null,
'service_type' => null,
'promise' => 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 = [
'total_charge' => 'totalCharge',
'billed_weight' => 'billedWeight',
'service_type' => 'serviceType',
'promise' => 'promise', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'total_charge' => 'setTotalCharge',
'billed_weight' => 'setBilledWeight',
'service_type' => 'setServiceType',
'promise' => 'setPromise', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'total_charge' => 'getTotalCharge',
'billed_weight' => 'getBilledWeight',
'service_type' => 'getServiceType',
'promise' => 'getPromise', ];
/**
* 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['total_charge'] = isset($data['total_charge']) ? $data['total_charge'] : null;
$this->container['billed_weight'] = isset($data['billed_weight']) ? $data['billed_weight'] : null;
$this->container['service_type'] = isset($data['service_type']) ? $data['service_type'] : null;
$this->container['promise'] = isset($data['promise']) ? $data['promise'] : 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 total_charge.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency
*/
public function getTotalCharge()
{
return $this->container['total_charge'];
}
/**
* Sets total_charge.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Currency $total_charge total_charge
*
* @return $this
*/
public function setTotalCharge($total_charge)
{
$this->container['total_charge'] = $total_charge;
return $this;
}
/**
* Gets billed_weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight
*/
public function getBilledWeight()
{
return $this->container['billed_weight'];
}
/**
* Sets billed_weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Weight $billed_weight billed_weight
*
* @return $this
*/
public function setBilledWeight($billed_weight)
{
$this->container['billed_weight'] = $billed_weight;
return $this;
}
/**
* Gets service_type.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType
*/
public function getServiceType()
{
return $this->container['service_type'];
}
/**
* Sets service_type.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceType $service_type service_type
*
* @return $this
*/
public function setServiceType($service_type)
{
$this->container['service_type'] = $service_type;
return $this;
}
/**
* Gets promise.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet
*/
public function getPromise()
{
return $this->container['promise'];
}
/**
* Sets promise.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShippingPromiseSet $promise promise
*
* @return $this
*/
public function setPromise($promise)
{
$this->container['promise'] = $promise;
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/Shipping/CancelShipmentResponse.php | lib/Models/Shipping/CancelShipmentResponse.php | <?php
/**
* CancelShipmentResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CancelShipmentResponse Class Doc Comment.
*
* @description The response schema for the cancelShipment operation.
*
* @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 = [
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'errors' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'errors' => 'getErrors', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['errors'] = isset($data['errors']) ? $data['errors'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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/Shipping/RateList.php | lib/Models/Shipping/RateList.php | <?php
/**
* RateList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RateList Class Doc Comment.
*
* @description A list of all the available rates that can be used to send the shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class RateList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RateList';
/**
* 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 Rate::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/Shipping/ShippingPromiseSet.php | lib/Models/Shipping/ShippingPromiseSet.php | <?php
/**
* ShippingPromiseSet.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShippingPromiseSet Class Doc Comment.
*
* @description The promised delivery time and pickup time.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShippingPromiseSet implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShippingPromiseSet';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'delivery_window' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\TimeRange',
'receive_window' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\TimeRange', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'delivery_window' => null,
'receive_window' => 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_window' => 'deliveryWindow',
'receive_window' => 'receiveWindow', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'delivery_window' => 'setDeliveryWindow',
'receive_window' => 'setReceiveWindow', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'delivery_window' => 'getDeliveryWindow',
'receive_window' => 'getReceiveWindow', ];
/**
* 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_window'] = isset($data['delivery_window']) ? $data['delivery_window'] : null;
$this->container['receive_window'] = isset($data['receive_window']) ? $data['receive_window'] : 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 delivery_window.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\TimeRange
*/
public function getDeliveryWindow()
{
return $this->container['delivery_window'];
}
/**
* Sets delivery_window.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\TimeRange $delivery_window delivery_window
*
* @return $this
*/
public function setDeliveryWindow($delivery_window)
{
$this->container['delivery_window'] = $delivery_window;
return $this;
}
/**
* Gets receive_window.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\TimeRange
*/
public function getReceiveWindow()
{
return $this->container['receive_window'];
}
/**
* Sets receive_window.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\TimeRange $receive_window receive_window
*
* @return $this
*/
public function setReceiveWindow($receive_window)
{
$this->container['receive_window'] = $receive_window;
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/Shipping/TimeRange.php | lib/Models/Shipping/TimeRange.php | <?php
/**
* TimeRange.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TimeRange Class Doc Comment.
*
* @description The time range.
*
* @author Stefan Neuhaus / ClouSale
*/
class TimeRange implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TimeRange';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'start' => '\DateTime',
'end' => '\DateTime', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'start' => 'date-time',
'end' => 'date-time', ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'start' => 'start',
'end' => 'end', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'start' => 'setStart',
'end' => 'setEnd', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'start' => 'getStart',
'end' => 'getEnd', ];
/**
* 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['start'] = isset($data['start']) ? $data['start'] : null;
$this->container['end'] = isset($data['end']) ? $data['end'] : 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 start.
*
* @return \DateTime
*/
public function getStart()
{
return $this->container['start'];
}
/**
* Sets start.
*
* @param \DateTime $start The start date and time. This defaults to the current date and time.
*
* @return $this
*/
public function setStart($start)
{
$this->container['start'] = $start;
return $this;
}
/**
* Gets end.
*
* @return \DateTime
*/
public function getEnd()
{
return $this->container['end'];
}
/**
* Sets end.
*
* @param \DateTime $end The end date and time. This must come after the value of start. This defaults to the next business day from the start.
*
* @return $this
*/
public function setEnd($end)
{
$this->container['end'] = $end;
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/Shipping/ContainerList.php | lib/Models/Shipping/ContainerList.php | <?php
/**
* ContainerList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ContainerList Class Doc Comment.
*
* @description A list of container.
*
* @author Stefan Neuhaus / ClouSale
*/
class ContainerList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ContainerList';
/**
* 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 Container::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/Shipping/GetRatesRequest.php | lib/Models/Shipping/GetRatesRequest.php | <?php
/**
* GetRatesRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetRatesRequest Class Doc Comment.
*
* @description The payload schema for the getRates operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetRatesRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetRatesRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'ship_to' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address',
'ship_from' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address',
'service_types' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceTypeList',
'ship_date' => '\DateTime',
'container_specifications' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerSpecificationList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'ship_to' => null,
'ship_from' => null,
'service_types' => null,
'ship_date' => 'date-time',
'container_specifications' => 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 = [
'ship_to' => 'shipTo',
'ship_from' => 'shipFrom',
'service_types' => 'serviceTypes',
'ship_date' => 'shipDate',
'container_specifications' => 'containerSpecifications', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'ship_to' => 'setShipTo',
'ship_from' => 'setShipFrom',
'service_types' => 'setServiceTypes',
'ship_date' => 'setShipDate',
'container_specifications' => 'setContainerSpecifications', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'ship_to' => 'getShipTo',
'ship_from' => 'getShipFrom',
'service_types' => 'getServiceTypes',
'ship_date' => 'getShipDate',
'container_specifications' => 'getContainerSpecifications', ];
/**
* 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['ship_to'] = isset($data['ship_to']) ? $data['ship_to'] : null;
$this->container['ship_from'] = isset($data['ship_from']) ? $data['ship_from'] : null;
$this->container['service_types'] = isset($data['service_types']) ? $data['service_types'] : null;
$this->container['ship_date'] = isset($data['ship_date']) ? $data['ship_date'] : null;
$this->container['container_specifications'] = isset($data['container_specifications']) ? $data['container_specifications'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['ship_to']) {
$invalidProperties[] = "'ship_to' can't be null";
}
if (null === $this->container['ship_from']) {
$invalidProperties[] = "'ship_from' can't be null";
}
if (null === $this->container['service_types']) {
$invalidProperties[] = "'service_types' can't be null";
}
if (null === $this->container['container_specifications']) {
$invalidProperties[] = "'container_specifications' 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 ship_to.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address
*/
public function getShipTo()
{
return $this->container['ship_to'];
}
/**
* Sets ship_to.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address $ship_to ship_to
*
* @return $this
*/
public function setShipTo($ship_to)
{
$this->container['ship_to'] = $ship_to;
return $this;
}
/**
* Gets ship_from.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address
*/
public function getShipFrom()
{
return $this->container['ship_from'];
}
/**
* Sets ship_from.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\Address $ship_from ship_from
*
* @return $this
*/
public function setShipFrom($ship_from)
{
$this->container['ship_from'] = $ship_from;
return $this;
}
/**
* Gets service_types.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceTypeList
*/
public function getServiceTypes()
{
return $this->container['service_types'];
}
/**
* Sets service_types.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ServiceTypeList $service_types service_types
*
* @return $this
*/
public function setServiceTypes($service_types)
{
$this->container['service_types'] = $service_types;
return $this;
}
/**
* Gets ship_date.
*
* @return \DateTime
*/
public function getShipDate()
{
return $this->container['ship_date'];
}
/**
* Sets ship_date.
*
* @param \DateTime $ship_date The start date and time. This defaults to the current date and time.
*
* @return $this
*/
public function setShipDate($ship_date)
{
$this->container['ship_date'] = $ship_date;
return $this;
}
/**
* Gets container_specifications.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerSpecificationList
*/
public function getContainerSpecifications()
{
return $this->container['container_specifications'];
}
/**
* Sets container_specifications.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ContainerSpecificationList $container_specifications container_specifications
*
* @return $this
*/
public function setContainerSpecifications($container_specifications)
{
$this->container['container_specifications'] = $container_specifications;
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/Shipping/GetTrackingInformationResponse.php | lib/Models/Shipping/GetTrackingInformationResponse.php | <?php
/**
* GetTrackingInformationResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetTrackingInformationResponse Class Doc Comment.
*
* @description The response schema for the getTrackingInformation operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetTrackingInformationResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetTrackingInformationResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\TrackingInformation',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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\Shipping\TrackingInformation
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\TrackingInformation $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\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/Shipping/LabelStream.php | lib/Models/Shipping/LabelStream.php | <?php
/**
* LabelStream.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LabelStream Class Doc Comment.
*
* @description Contains binary image data encoded as a base-64 string.
*
* @author Stefan Neuhaus / ClouSale
*/
class LabelStream implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LabelStream';
/**
* 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/Shipping/PurchaseLabelsResult.php | lib/Models/Shipping/PurchaseLabelsResult.php | <?php
/**
* PurchaseLabelsResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PurchaseLabelsResult Class Doc Comment.
*
* @description The payload schema for the purchaseLabels operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class PurchaseLabelsResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PurchaseLabelsResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShipmentId',
'client_reference_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId',
'accepted_rate' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\AcceptedRate',
'label_results' => '\ClouSale\AmazonSellingPartnerAPI\Models\Shipping\LabelResultList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_id' => null,
'client_reference_id' => null,
'accepted_rate' => null,
'label_results' => 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',
'client_reference_id' => 'clientReferenceId',
'accepted_rate' => 'acceptedRate',
'label_results' => 'labelResults', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_id' => 'setShipmentId',
'client_reference_id' => 'setClientReferenceId',
'accepted_rate' => 'setAcceptedRate',
'label_results' => 'setLabelResults', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_id' => 'getShipmentId',
'client_reference_id' => 'getClientReferenceId',
'accepted_rate' => 'getAcceptedRate',
'label_results' => 'getLabelResults', ];
/**
* 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['client_reference_id'] = isset($data['client_reference_id']) ? $data['client_reference_id'] : null;
$this->container['accepted_rate'] = isset($data['accepted_rate']) ? $data['accepted_rate'] : null;
$this->container['label_results'] = isset($data['label_results']) ? $data['label_results'] : 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['accepted_rate']) {
$invalidProperties[] = "'accepted_rate' can't be null";
}
if (null === $this->container['label_results']) {
$invalidProperties[] = "'label_results' 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\Shipping\ShipmentId
*/
public function getShipmentId()
{
return $this->container['shipment_id'];
}
/**
* Sets shipment_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ShipmentId $shipment_id shipment_id
*
* @return $this
*/
public function setShipmentId($shipment_id)
{
$this->container['shipment_id'] = $shipment_id;
return $this;
}
/**
* Gets client_reference_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId
*/
public function getClientReferenceId()
{
return $this->container['client_reference_id'];
}
/**
* Sets client_reference_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\ClientReferenceId $client_reference_id client_reference_id
*
* @return $this
*/
public function setClientReferenceId($client_reference_id)
{
$this->container['client_reference_id'] = $client_reference_id;
return $this;
}
/**
* Gets accepted_rate.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\AcceptedRate
*/
public function getAcceptedRate()
{
return $this->container['accepted_rate'];
}
/**
* Sets accepted_rate.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\AcceptedRate $accepted_rate accepted_rate
*
* @return $this
*/
public function setAcceptedRate($accepted_rate)
{
$this->container['accepted_rate'] = $accepted_rate;
return $this;
}
/**
* Gets label_results.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\LabelResultList
*/
public function getLabelResults()
{
return $this->container['label_results'];
}
/**
* Sets label_results.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\LabelResultList $label_results label_results
*
* @return $this
*/
public function setLabelResults($label_results)
{
$this->container['label_results'] = $label_results;
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/Shipping/EventCode.php | lib/Models/Shipping/EventCode.php | <?php
/**
* EventCode.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* EventCode Class Doc Comment.
*
* @description The event code of a shipment, such as Departed, Received, and ReadyForReceive.
*
* @author Stefan Neuhaus / ClouSale
*/
class EventCode implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'EventCode';
/**
* 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/Shipping/AccountId.php | lib/Models/Shipping/AccountId.php | <?php
/**
* AccountId.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Shipping.
*
* Provides programmatic access to Amazon Shipping APIs.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AccountId Class Doc Comment.
*
* @description This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process.
*
* @author Stefan Neuhaus / ClouSale
*/
class AccountId implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AccountId';
/**
* 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/Authorization/ErrorList.php | lib/Models/Authorization/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Authorization.
*
* The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization;
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/Authorization/AuthorizationCode.php | lib/Models/Authorization/AuthorizationCode.php | <?php
/**
* AuthorizationCode.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Authorization.
*
* The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AuthorizationCode Class Doc Comment.
*
* @description A Login with Amazon (LWA) authorization code.
*
* @author Stefan Neuhaus / ClouSale
*/
class AuthorizationCode implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AuthorizationCode';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'authorization_code' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'authorization_code' => 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 = [
'authorization_code' => 'authorizationCode', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'authorization_code' => 'setAuthorizationCode', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'authorization_code' => 'getAuthorizationCode', ];
/**
* 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['authorization_code'] = isset($data['authorization_code']) ? $data['authorization_code'] : 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 authorization_code.
*
* @return string
*/
public function getAuthorizationCode()
{
return $this->container['authorization_code'];
}
/**
* Sets authorization_code.
*
* @param string $authorization_code a Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API
*
* @return $this
*/
public function setAuthorizationCode($authorization_code)
{
$this->container['authorization_code'] = $authorization_code;
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/Authorization/Error.php | lib/Models/Authorization/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Authorization.
*
* The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Error Class Doc Comment.
*
* @description Error response returned when the request is unsuccessful.
*
* @author Stefan Neuhaus / ClouSale
*/
class Error implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Error';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'details' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'details' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'details' => 'details', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'details' => 'setDetails', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'details' => 'getDetails', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['code']) {
$invalidProperties[] = "'code' can't be null";
}
if (null === $this->container['message']) {
$invalidProperties[] = "'message' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets code.
*
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code.
*
* @param string $code an error code that identifies the type of error that occurred
*
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message.
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message.
*
* @param string $message a message that describes the error condition in a human-readable form
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets details.
*
* @return string
*/
public function getDetails()
{
return $this->container['details'];
}
/**
* Sets details.
*
* @param string $details additional details that can help the caller understand or fix the issue
*
* @return $this
*/
public function setDetails($details)
{
$this->container['details'] = $details;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Authorization/GetAuthorizationCodeResponse.php | lib/Models/Authorization/GetAuthorizationCodeResponse.php | <?php
/**
* GetAuthorizationCodeResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Authorization.
*
* The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetAuthorizationCodeResponse Class Doc Comment.
*
* @description The response schema for the GetAuthorizationCode operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetAuthorizationCodeResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetAuthorizationCodeResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Authorization\AuthorizationCode',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Authorization\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\Authorization\AuthorizationCode
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Authorization\AuthorizationCode $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Authorization\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Authorization\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/FulfillmentInbound/InboundShipmentPlanRequestItem.php | lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItem.php | <?php
/**
* InboundShipmentPlanRequestItem.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentPlanRequestItem Class Doc Comment.
*
* @description Item information for creating an inbound shipment plan. Submitted with a call to the createInboundShipmentPlan operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentPlanRequestItem implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentPlanRequestItem';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'seller_sku' => 'string',
'asin' => 'string',
'condition' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Condition',
'quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Quantity',
'quantity_in_case' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Quantity',
'prep_details_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepDetailsList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'seller_sku' => null,
'asin' => null,
'condition' => null,
'quantity' => null,
'quantity_in_case' => null,
'prep_details_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 = [
'seller_sku' => 'SellerSKU',
'asin' => 'ASIN',
'condition' => 'Condition',
'quantity' => 'Quantity',
'quantity_in_case' => 'QuantityInCase',
'prep_details_list' => 'PrepDetailsList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'seller_sku' => 'setSellerSku',
'asin' => 'setAsin',
'condition' => 'setCondition',
'quantity' => 'setQuantity',
'quantity_in_case' => 'setQuantityInCase',
'prep_details_list' => 'setPrepDetailsList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'seller_sku' => 'getSellerSku',
'asin' => 'getAsin',
'condition' => 'getCondition',
'quantity' => 'getQuantity',
'quantity_in_case' => 'getQuantityInCase',
'prep_details_list' => 'getPrepDetailsList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
$this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
$this->container['quantity_in_case'] = isset($data['quantity_in_case']) ? $data['quantity_in_case'] : null;
$this->container['prep_details_list'] = isset($data['prep_details_list']) ? $data['prep_details_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['seller_sku']) {
$invalidProperties[] = "'seller_sku' can't be null";
}
if (null === $this->container['asin']) {
$invalidProperties[] = "'asin' can't be null";
}
if (null === $this->container['condition']) {
$invalidProperties[] = "'condition' 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 seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku the seller SKU of the item
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets condition.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Condition
*/
public function getCondition()
{
return $this->container['condition'];
}
/**
* Sets condition.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Condition $condition condition
*
* @return $this
*/
public function setCondition($condition)
{
$this->container['condition'] = $condition;
return $this;
}
/**
* Gets quantity.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Quantity
*/
public function getQuantity()
{
return $this->container['quantity'];
}
/**
* Sets quantity.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Quantity $quantity quantity
*
* @return $this
*/
public function setQuantity($quantity)
{
$this->container['quantity'] = $quantity;
return $this;
}
/**
* Gets quantity_in_case.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Quantity
*/
public function getQuantityInCase()
{
return $this->container['quantity_in_case'];
}
/**
* Sets quantity_in_case.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Quantity $quantity_in_case quantity_in_case
*
* @return $this
*/
public function setQuantityInCase($quantity_in_case)
{
$this->container['quantity_in_case'] = $quantity_in_case;
return $this;
}
/**
* Gets prep_details_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepDetailsList
*/
public function getPrepDetailsList()
{
return $this->container['prep_details_list'];
}
/**
* Sets prep_details_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepDetailsList $prep_details_list prep_details_list
*
* @return $this
*/
public function setPrepDetailsList($prep_details_list)
{
$this->container['prep_details_list'] = $prep_details_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/FulfillmentInbound/PutTransportDetailsRequest.php | lib/Models/FulfillmentInbound/PutTransportDetailsRequest.php | <?php
/**
* PutTransportDetailsRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PutTransportDetailsRequest Class Doc Comment.
*
* @description The request schema for a putTransportDetails operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class PutTransportDetailsRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PutTransportDetailsRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'is_partnered' => 'bool',
'shipment_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentType',
'transport_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportDetailInput', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'is_partnered' => null,
'shipment_type' => null,
'transport_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 = [
'is_partnered' => 'IsPartnered',
'shipment_type' => 'ShipmentType',
'transport_details' => 'TransportDetails', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'is_partnered' => 'setIsPartnered',
'shipment_type' => 'setShipmentType',
'transport_details' => 'setTransportDetails', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'is_partnered' => 'getIsPartnered',
'shipment_type' => 'getShipmentType',
'transport_details' => 'getTransportDetails', ];
/**
* 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_partnered'] = isset($data['is_partnered']) ? $data['is_partnered'] : null;
$this->container['shipment_type'] = isset($data['shipment_type']) ? $data['shipment_type'] : null;
$this->container['transport_details'] = isset($data['transport_details']) ? $data['transport_details'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['is_partnered']) {
$invalidProperties[] = "'is_partnered' can't be null";
}
if (null === $this->container['shipment_type']) {
$invalidProperties[] = "'shipment_type' can't be null";
}
if (null === $this->container['transport_details']) {
$invalidProperties[] = "'transport_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 is_partnered.
*
* @return bool
*/
public function getIsPartnered()
{
return $this->container['is_partnered'];
}
/**
* Sets is_partnered.
*
* @param bool $is_partnered indicates whether a putTransportDetails request is for an Amazon-partnered carrier
*
* @return $this
*/
public function setIsPartnered($is_partnered)
{
$this->container['is_partnered'] = $is_partnered;
return $this;
}
/**
* Gets shipment_type.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentType
*/
public function getShipmentType()
{
return $this->container['shipment_type'];
}
/**
* Sets shipment_type.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentType $shipment_type shipment_type
*
* @return $this
*/
public function setShipmentType($shipment_type)
{
$this->container['shipment_type'] = $shipment_type;
return $this;
}
/**
* Gets transport_details.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportDetailInput
*/
public function getTransportDetails()
{
return $this->container['transport_details'];
}
/**
* Sets transport_details.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportDetailInput $transport_details transport_details
*
* @return $this
*/
public function setTransportDetails($transport_details)
{
$this->container['transport_details'] = $transport_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/FulfillmentInbound/GetShipmentsResponse.php | lib/Models/FulfillmentInbound/GetShipmentsResponse.php | <?php
/**
* GetShipmentsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetShipmentsResponse Class Doc Comment.
*
* @description The response schema for the getShipments operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetShipmentsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetShipmentsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentsResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\GetShipmentsResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentsResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/PrepDetails.php | lib/Models/FulfillmentInbound/PrepDetails.php | <?php
/**
* PrepDetails.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PrepDetails Class Doc Comment.
*
* @description Preparation instructions and who is responsible for the preparation.
*
* @author Stefan Neuhaus / ClouSale
*/
class PrepDetails implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PrepDetails';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'prep_instruction' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepInstruction',
'prep_owner' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepOwner', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'prep_instruction' => null,
'prep_owner' => 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 = [
'prep_instruction' => 'PrepInstruction',
'prep_owner' => 'PrepOwner', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'prep_instruction' => 'setPrepInstruction',
'prep_owner' => 'setPrepOwner', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'prep_instruction' => 'getPrepInstruction',
'prep_owner' => 'getPrepOwner', ];
/**
* 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['prep_instruction'] = isset($data['prep_instruction']) ? $data['prep_instruction'] : null;
$this->container['prep_owner'] = isset($data['prep_owner']) ? $data['prep_owner'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['prep_instruction']) {
$invalidProperties[] = "'prep_instruction' can't be null";
}
if (null === $this->container['prep_owner']) {
$invalidProperties[] = "'prep_owner' 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 prep_instruction.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepInstruction
*/
public function getPrepInstruction()
{
return $this->container['prep_instruction'];
}
/**
* Sets prep_instruction.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepInstruction $prep_instruction prep_instruction
*
* @return $this
*/
public function setPrepInstruction($prep_instruction)
{
$this->container['prep_instruction'] = $prep_instruction;
return $this;
}
/**
* Gets prep_owner.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepOwner
*/
public function getPrepOwner()
{
return $this->container['prep_owner'];
}
/**
* Sets prep_owner.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PrepOwner $prep_owner prep_owner
*
* @return $this
*/
public function setPrepOwner($prep_owner)
{
$this->container['prep_owner'] = $prep_owner;
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/FulfillmentInbound/PartneredLtlDataOutput.php | lib/Models/FulfillmentInbound/PartneredLtlDataOutput.php | <?php
/**
* PartneredLtlDataOutput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PartneredLtlDataOutput Class Doc Comment.
*
* @description Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment by an Amazon-partnered carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class PartneredLtlDataOutput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PartneredLtlDataOutput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'contact' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Contact',
'box_count' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\UnsignedIntType',
'seller_freight_class' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\SellerFreightClass',
'freight_ready_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType',
'pallet_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PalletList',
'total_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Weight',
'seller_declared_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Amount',
'amazon_calculated_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Amount',
'preview_pickup_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType',
'preview_delivery_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType',
'preview_freight_class' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\SellerFreightClass',
'amazon_reference_id' => 'string',
'is_bill_of_lading_available' => 'bool',
'partnered_estimate' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredEstimate',
'carrier_name' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'contact' => null,
'box_count' => null,
'seller_freight_class' => null,
'freight_ready_date' => null,
'pallet_list' => null,
'total_weight' => null,
'seller_declared_value' => null,
'amazon_calculated_value' => null,
'preview_pickup_date' => null,
'preview_delivery_date' => null,
'preview_freight_class' => null,
'amazon_reference_id' => null,
'is_bill_of_lading_available' => null,
'partnered_estimate' => null,
'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 = [
'contact' => 'Contact',
'box_count' => 'BoxCount',
'seller_freight_class' => 'SellerFreightClass',
'freight_ready_date' => 'FreightReadyDate',
'pallet_list' => 'PalletList',
'total_weight' => 'TotalWeight',
'seller_declared_value' => 'SellerDeclaredValue',
'amazon_calculated_value' => 'AmazonCalculatedValue',
'preview_pickup_date' => 'PreviewPickupDate',
'preview_delivery_date' => 'PreviewDeliveryDate',
'preview_freight_class' => 'PreviewFreightClass',
'amazon_reference_id' => 'AmazonReferenceId',
'is_bill_of_lading_available' => 'IsBillOfLadingAvailable',
'partnered_estimate' => 'PartneredEstimate',
'carrier_name' => 'CarrierName', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'contact' => 'setContact',
'box_count' => 'setBoxCount',
'seller_freight_class' => 'setSellerFreightClass',
'freight_ready_date' => 'setFreightReadyDate',
'pallet_list' => 'setPalletList',
'total_weight' => 'setTotalWeight',
'seller_declared_value' => 'setSellerDeclaredValue',
'amazon_calculated_value' => 'setAmazonCalculatedValue',
'preview_pickup_date' => 'setPreviewPickupDate',
'preview_delivery_date' => 'setPreviewDeliveryDate',
'preview_freight_class' => 'setPreviewFreightClass',
'amazon_reference_id' => 'setAmazonReferenceId',
'is_bill_of_lading_available' => 'setIsBillOfLadingAvailable',
'partnered_estimate' => 'setPartneredEstimate',
'carrier_name' => 'setCarrierName', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'contact' => 'getContact',
'box_count' => 'getBoxCount',
'seller_freight_class' => 'getSellerFreightClass',
'freight_ready_date' => 'getFreightReadyDate',
'pallet_list' => 'getPalletList',
'total_weight' => 'getTotalWeight',
'seller_declared_value' => 'getSellerDeclaredValue',
'amazon_calculated_value' => 'getAmazonCalculatedValue',
'preview_pickup_date' => 'getPreviewPickupDate',
'preview_delivery_date' => 'getPreviewDeliveryDate',
'preview_freight_class' => 'getPreviewFreightClass',
'amazon_reference_id' => 'getAmazonReferenceId',
'is_bill_of_lading_available' => 'getIsBillOfLadingAvailable',
'partnered_estimate' => 'getPartneredEstimate',
'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['contact'] = isset($data['contact']) ? $data['contact'] : null;
$this->container['box_count'] = isset($data['box_count']) ? $data['box_count'] : null;
$this->container['seller_freight_class'] = isset($data['seller_freight_class']) ? $data['seller_freight_class'] : null;
$this->container['freight_ready_date'] = isset($data['freight_ready_date']) ? $data['freight_ready_date'] : null;
$this->container['pallet_list'] = isset($data['pallet_list']) ? $data['pallet_list'] : null;
$this->container['total_weight'] = isset($data['total_weight']) ? $data['total_weight'] : null;
$this->container['seller_declared_value'] = isset($data['seller_declared_value']) ? $data['seller_declared_value'] : null;
$this->container['amazon_calculated_value'] = isset($data['amazon_calculated_value']) ? $data['amazon_calculated_value'] : null;
$this->container['preview_pickup_date'] = isset($data['preview_pickup_date']) ? $data['preview_pickup_date'] : null;
$this->container['preview_delivery_date'] = isset($data['preview_delivery_date']) ? $data['preview_delivery_date'] : null;
$this->container['preview_freight_class'] = isset($data['preview_freight_class']) ? $data['preview_freight_class'] : null;
$this->container['amazon_reference_id'] = isset($data['amazon_reference_id']) ? $data['amazon_reference_id'] : null;
$this->container['is_bill_of_lading_available'] = isset($data['is_bill_of_lading_available']) ? $data['is_bill_of_lading_available'] : null;
$this->container['partnered_estimate'] = isset($data['partnered_estimate']) ? $data['partnered_estimate'] : 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['contact']) {
$invalidProperties[] = "'contact' can't be null";
}
if (null === $this->container['box_count']) {
$invalidProperties[] = "'box_count' can't be null";
}
if (null === $this->container['freight_ready_date']) {
$invalidProperties[] = "'freight_ready_date' can't be null";
}
if (null === $this->container['pallet_list']) {
$invalidProperties[] = "'pallet_list' can't be null";
}
if (null === $this->container['total_weight']) {
$invalidProperties[] = "'total_weight' can't be null";
}
if (null === $this->container['preview_pickup_date']) {
$invalidProperties[] = "'preview_pickup_date' can't be null";
}
if (null === $this->container['preview_delivery_date']) {
$invalidProperties[] = "'preview_delivery_date' can't be null";
}
if (null === $this->container['preview_freight_class']) {
$invalidProperties[] = "'preview_freight_class' can't be null";
}
if (null === $this->container['amazon_reference_id']) {
$invalidProperties[] = "'amazon_reference_id' can't be null";
}
if (null === $this->container['is_bill_of_lading_available']) {
$invalidProperties[] = "'is_bill_of_lading_available' can't be null";
}
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 contact.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Contact
*/
public function getContact()
{
return $this->container['contact'];
}
/**
* Sets contact.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Contact $contact contact
*
* @return $this
*/
public function setContact($contact)
{
$this->container['contact'] = $contact;
return $this;
}
/**
* Gets box_count.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\UnsignedIntType
*/
public function getBoxCount()
{
return $this->container['box_count'];
}
/**
* Sets box_count.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\UnsignedIntType $box_count box_count
*
* @return $this
*/
public function setBoxCount($box_count)
{
$this->container['box_count'] = $box_count;
return $this;
}
/**
* Gets seller_freight_class.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\SellerFreightClass
*/
public function getSellerFreightClass()
{
return $this->container['seller_freight_class'];
}
/**
* Sets seller_freight_class.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\SellerFreightClass $seller_freight_class seller_freight_class
*
* @return $this
*/
public function setSellerFreightClass($seller_freight_class)
{
$this->container['seller_freight_class'] = $seller_freight_class;
return $this;
}
/**
* Gets freight_ready_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType
*/
public function getFreightReadyDate()
{
return $this->container['freight_ready_date'];
}
/**
* Sets freight_ready_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType $freight_ready_date freight_ready_date
*
* @return $this
*/
public function setFreightReadyDate($freight_ready_date)
{
$this->container['freight_ready_date'] = $freight_ready_date;
return $this;
}
/**
* Gets pallet_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PalletList
*/
public function getPalletList()
{
return $this->container['pallet_list'];
}
/**
* Sets pallet_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PalletList $pallet_list pallet_list
*
* @return $this
*/
public function setPalletList($pallet_list)
{
$this->container['pallet_list'] = $pallet_list;
return $this;
}
/**
* Gets total_weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Weight
*/
public function getTotalWeight()
{
return $this->container['total_weight'];
}
/**
* Sets total_weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Weight $total_weight total_weight
*
* @return $this
*/
public function setTotalWeight($total_weight)
{
$this->container['total_weight'] = $total_weight;
return $this;
}
/**
* Gets seller_declared_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Amount
*/
public function getSellerDeclaredValue()
{
return $this->container['seller_declared_value'];
}
/**
* Sets seller_declared_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Amount $seller_declared_value seller_declared_value
*
* @return $this
*/
public function setSellerDeclaredValue($seller_declared_value)
{
$this->container['seller_declared_value'] = $seller_declared_value;
return $this;
}
/**
* Gets amazon_calculated_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Amount
*/
public function getAmazonCalculatedValue()
{
return $this->container['amazon_calculated_value'];
}
/**
* Sets amazon_calculated_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Amount $amazon_calculated_value amazon_calculated_value
*
* @return $this
*/
public function setAmazonCalculatedValue($amazon_calculated_value)
{
$this->container['amazon_calculated_value'] = $amazon_calculated_value;
return $this;
}
/**
* Gets preview_pickup_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType
*/
public function getPreviewPickupDate()
{
return $this->container['preview_pickup_date'];
}
/**
* Sets preview_pickup_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType $preview_pickup_date preview_pickup_date
*
* @return $this
*/
public function setPreviewPickupDate($preview_pickup_date)
{
$this->container['preview_pickup_date'] = $preview_pickup_date;
return $this;
}
/**
* Gets preview_delivery_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType
*/
public function getPreviewDeliveryDate()
{
return $this->container['preview_delivery_date'];
}
/**
* Sets preview_delivery_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType $preview_delivery_date preview_delivery_date
*
* @return $this
*/
public function setPreviewDeliveryDate($preview_delivery_date)
{
$this->container['preview_delivery_date'] = $preview_delivery_date;
return $this;
}
/**
* Gets preview_freight_class.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\SellerFreightClass
*/
public function getPreviewFreightClass()
{
return $this->container['preview_freight_class'];
}
/**
* Sets preview_freight_class.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\SellerFreightClass $preview_freight_class preview_freight_class
*
* @return $this
*/
public function setPreviewFreightClass($preview_freight_class)
{
$this->container['preview_freight_class'] = $preview_freight_class;
return $this;
}
/**
* Gets amazon_reference_id.
*
* @return string
*/
public function getAmazonReferenceId()
{
return $this->container['amazon_reference_id'];
}
/**
* Sets amazon_reference_id.
*
* @param string $amazon_reference_id a unique identifier created by Amazon that identifies this Amazon-partnered, Less Than Truckload/Full Truckload (LTL/FTL) shipment
*
* @return $this
*/
public function setAmazonReferenceId($amazon_reference_id)
{
$this->container['amazon_reference_id'] = $amazon_reference_id;
return $this;
}
/**
* Gets is_bill_of_lading_available.
*
* @return bool
*/
public function getIsBillOfLadingAvailable()
{
return $this->container['is_bill_of_lading_available'];
}
/**
* Sets is_bill_of_lading_available.
*
* @param bool $is_bill_of_lading_available indicates whether the bill of lading for the shipment is available
*
* @return $this
*/
public function setIsBillOfLadingAvailable($is_bill_of_lading_available)
{
$this->container['is_bill_of_lading_available'] = $is_bill_of_lading_available;
return $this;
}
/**
* Gets partnered_estimate.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredEstimate
*/
public function getPartneredEstimate()
{
return $this->container['partnered_estimate'];
}
/**
* Sets partnered_estimate.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredEstimate $partnered_estimate partnered_estimate
*
* @return $this
*/
public function setPartneredEstimate($partnered_estimate)
{
$this->container['partnered_estimate'] = $partnered_estimate;
return $this;
}
/**
* Gets carrier_name.
*
* @return string
*/
public function getCarrierName()
{
return $this->container['carrier_name'];
}
/**
* Sets carrier_name.
*
* @param string $carrier_name the carrier for the inbound shipment
*
* @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/FulfillmentInbound/BillOfLadingDownloadURL.php | lib/Models/FulfillmentInbound/BillOfLadingDownloadURL.php | <?php
/**
* BillOfLadingDownloadURL.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* BillOfLadingDownloadURL Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class BillOfLadingDownloadURL implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'BillOfLadingDownloadURL';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'download_url' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'download_url' => 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 = [
'download_url' => 'DownloadURL', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'download_url' => 'setDownloadUrl', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'download_url' => 'getDownloadUrl', ];
/**
* 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['download_url'] = isset($data['download_url']) ? $data['download_url'] : 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 download_url.
*
* @return string
*/
public function getDownloadUrl()
{
return $this->container['download_url'];
}
/**
* Sets download_url.
*
* @param string $download_url URL to download the bill of lading for the package. Note: The URL will only be valid for 15 seconds
*
* @return $this
*/
public function setDownloadUrl($download_url)
{
$this->container['download_url'] = $download_url;
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/FulfillmentInbound/PrepDetailsList.php | lib/Models/FulfillmentInbound/PrepDetailsList.php | <?php
/**
* PrepDetailsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PrepDetailsList Class Doc Comment.
*
* @description A list of preparation instructions and who is responsible for that preparation.
*
* @author Stefan Neuhaus / ClouSale
*/
class PrepDetailsList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PrepDetailsList';
/**
* 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 PrepDetails::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/FulfillmentInbound/AmazonPrepFeesDetailsList.php | lib/Models/FulfillmentInbound/AmazonPrepFeesDetailsList.php | <?php
/**
* AmazonPrepFeesDetailsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AmazonPrepFeesDetailsList Class Doc Comment.
*
* @description A list of preparation instructions and fees for Amazon to prep goods for shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class AmazonPrepFeesDetailsList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AmazonPrepFeesDetailsList';
/**
* 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 AmazonPrepFeesDetails::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/FulfillmentInbound/GetLabelsResponse.php | lib/Models/FulfillmentInbound/GetLabelsResponse.php | <?php
/**
* GetLabelsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetLabelsResponse Class Doc Comment.
*
* @description The response schema for the getLabels operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetLabelsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetLabelsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelDownloadURL',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\LabelDownloadURL
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelDownloadURL $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/Quantity.php | lib/Models/FulfillmentInbound/Quantity.php | <?php
/**
* Quantity.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Quantity Class Doc Comment.
*
* @description The item quantity.
*
* @author Stefan Neuhaus / ClouSale
*/
class Quantity implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Quantity';
/**
* 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/FulfillmentInbound/Address.php | lib/Models/FulfillmentInbound/Address.php | <?php
/**
* Address.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Address Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class Address implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Address';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'name' => 'string',
'address_line1' => 'string',
'address_line2' => 'string',
'district_or_county' => 'string',
'city' => 'string',
'state_or_province_code' => 'string',
'country_code' => 'string',
'postal_code' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'name' => null,
'address_line1' => null,
'address_line2' => null,
'district_or_county' => null,
'city' => null,
'state_or_province_code' => null,
'country_code' => null,
'postal_code' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'name' => 'Name',
'address_line1' => 'AddressLine1',
'address_line2' => 'AddressLine2',
'district_or_county' => 'DistrictOrCounty',
'city' => 'City',
'state_or_province_code' => 'StateOrProvinceCode',
'country_code' => 'CountryCode',
'postal_code' => 'PostalCode', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'name' => 'setName',
'address_line1' => 'setAddressLine1',
'address_line2' => 'setAddressLine2',
'district_or_county' => 'setDistrictOrCounty',
'city' => 'setCity',
'state_or_province_code' => 'setStateOrProvinceCode',
'country_code' => 'setCountryCode',
'postal_code' => 'setPostalCode', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'name' => 'getName',
'address_line1' => 'getAddressLine1',
'address_line2' => 'getAddressLine2',
'district_or_county' => 'getDistrictOrCounty',
'city' => 'getCity',
'state_or_province_code' => 'getStateOrProvinceCode',
'country_code' => 'getCountryCode',
'postal_code' => 'getPostalCode', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['address_line1'] = isset($data['address_line1']) ? $data['address_line1'] : null;
$this->container['address_line2'] = isset($data['address_line2']) ? $data['address_line2'] : null;
$this->container['district_or_county'] = isset($data['district_or_county']) ? $data['district_or_county'] : null;
$this->container['city'] = isset($data['city']) ? $data['city'] : null;
$this->container['state_or_province_code'] = isset($data['state_or_province_code']) ? $data['state_or_province_code'] : null;
$this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null;
$this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['name']) {
$invalidProperties[] = "'name' can't be null";
}
if (null === $this->container['address_line1']) {
$invalidProperties[] = "'address_line1' can't be null";
}
if (null === $this->container['city']) {
$invalidProperties[] = "'city' can't be null";
}
if (null === $this->container['state_or_province_code']) {
$invalidProperties[] = "'state_or_province_code' can't be null";
}
if (null === $this->container['country_code']) {
$invalidProperties[] = "'country_code' can't be null";
}
if (null === $this->container['postal_code']) {
$invalidProperties[] = "'postal_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 name.
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name.
*
* @param string $name name of the individual or business
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets address_line1.
*
* @return string
*/
public function getAddressLine1()
{
return $this->container['address_line1'];
}
/**
* Sets address_line1.
*
* @param string $address_line1 the street address information
*
* @return $this
*/
public function setAddressLine1($address_line1)
{
$this->container['address_line1'] = $address_line1;
return $this;
}
/**
* Gets address_line2.
*
* @return string
*/
public function getAddressLine2()
{
return $this->container['address_line2'];
}
/**
* Sets address_line2.
*
* @param string $address_line2 additional street address information, if required
*
* @return $this
*/
public function setAddressLine2($address_line2)
{
$this->container['address_line2'] = $address_line2;
return $this;
}
/**
* Gets district_or_county.
*
* @return string
*/
public function getDistrictOrCounty()
{
return $this->container['district_or_county'];
}
/**
* Sets district_or_county.
*
* @param string $district_or_county the district or county
*
* @return $this
*/
public function setDistrictOrCounty($district_or_county)
{
$this->container['district_or_county'] = $district_or_county;
return $this;
}
/**
* Gets city.
*
* @return string
*/
public function getCity()
{
return $this->container['city'];
}
/**
* Sets city.
*
* @param string $city the city
*
* @return $this
*/
public function setCity($city)
{
$this->container['city'] = $city;
return $this;
}
/**
* Gets state_or_province_code.
*
* @return string
*/
public function getStateOrProvinceCode()
{
return $this->container['state_or_province_code'];
}
/**
* Sets state_or_province_code.
*
* @param string $state_or_province_code The state or province code. If state or province codes are used in your marketplace, it is recommended that you include one with your request. This helps Amazon to select the most appropriate Amazon fulfillment center for your inbound shipment plan.
*
* @return $this
*/
public function setStateOrProvinceCode($state_or_province_code)
{
$this->container['state_or_province_code'] = $state_or_province_code;
return $this;
}
/**
* Gets country_code.
*
* @return string
*/
public function getCountryCode()
{
return $this->container['country_code'];
}
/**
* Sets country_code.
*
* @param string $country_code the country code in two-character ISO 3166-1 alpha-2 format
*
* @return $this
*/
public function setCountryCode($country_code)
{
$this->container['country_code'] = $country_code;
return $this;
}
/**
* Gets postal_code.
*
* @return string
*/
public function getPostalCode()
{
return $this->container['postal_code'];
}
/**
* Sets postal_code.
*
* @param string $postal_code The postal code. If postal codes are used in your marketplace, we recommended that you include one with your request. This helps Amazon select the most appropriate Amazon fulfillment center for the inbound shipment plan.
*
* @return $this
*/
public function setPostalCode($postal_code)
{
$this->container['postal_code'] = $postal_code;
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/FulfillmentInbound/PalletList.php | lib/Models/FulfillmentInbound/PalletList.php | <?php
/**
* PalletList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PalletList Class Doc Comment.
*
* @description A list of pallet information.
*
* @author Stefan Neuhaus / ClouSale
*/
class PalletList implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PalletList';
/**
* 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/FulfillmentInbound/PackageStatus.php | lib/Models/FulfillmentInbound/PackageStatus.php | <?php
/**
* PackageStatus.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* PackageStatus Class Doc Comment.
*
* @description The shipment status of the package.
*
* @author Stefan Neuhaus / ClouSale
*/
class PackageStatus
{
/**
* Possible values of this enum.
*/
const SHIPPED = 'SHIPPED';
const IN_TRANSIT = 'IN_TRANSIT';
const DELIVERED = 'DELIVERED';
const CHECKED_IN = 'CHECKED_IN';
const RECEIVING = 'RECEIVING';
const CLOSED = 'CLOSED';
const DELETED = 'DELETED';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::SHIPPED,
self::IN_TRANSIT,
self::DELIVERED,
self::CHECKED_IN,
self::RECEIVING,
self::CLOSED,
self::DELETED, ];
}
}
| 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/FulfillmentInbound/ShipmentType.php | lib/Models/FulfillmentInbound/ShipmentType.php | <?php
/**
* ShipmentType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* ShipmentType Class Doc Comment.
*
* @description Specifies the carrier shipment type in a putTransportDetails request.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipmentType
{
/**
* Possible values of this enum.
*/
const SP = 'SP';
const LTL = 'LTL';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::SP,
self::LTL, ];
}
}
| 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/FulfillmentInbound/PartneredSmallParcelPackageInput.php | lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInput.php | <?php
/**
* PartneredSmallParcelPackageInput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PartneredSmallParcelPackageInput Class Doc Comment.
*
* @description Dimension and weight information for the package.
*
* @author Stefan Neuhaus / ClouSale
*/
class PartneredSmallParcelPackageInput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PartneredSmallParcelPackageInput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Dimensions',
'weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Weight', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'dimensions' => null,
'weight' => 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 = [
'dimensions' => 'Dimensions',
'weight' => 'Weight', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'dimensions' => 'setDimensions',
'weight' => 'setWeight', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'dimensions' => 'getDimensions',
'weight' => 'getWeight', ];
/**
* 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['dimensions'] = isset($data['dimensions']) ? $data['dimensions'] : null;
$this->container['weight'] = isset($data['weight']) ? $data['weight'] : 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['weight']) {
$invalidProperties[] = "'weight' 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 dimensions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Dimensions
*/
public function getDimensions()
{
return $this->container['dimensions'];
}
/**
* Sets dimensions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Dimensions $dimensions dimensions
*
* @return $this
*/
public function setDimensions($dimensions)
{
$this->container['dimensions'] = $dimensions;
return $this;
}
/**
* Gets weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Weight
*/
public function getWeight()
{
return $this->container['weight'];
}
/**
* Sets weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Weight $weight weight
*
* @return $this
*/
public function setWeight($weight)
{
$this->container['weight'] = $weight;
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/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php | lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php | <?php
/**
* NonPartneredSmallParcelDataOutput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NonPartneredSmallParcelDataOutput Class Doc Comment.
*
* @description Information returned by Amazon about a Small Parcel shipment by a carrier that has not partnered with Amazon.
*
* @author Stefan Neuhaus / ClouSale
*/
class NonPartneredSmallParcelDataOutput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NonPartneredSmallParcelDataOutput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'package_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelPackageOutputList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'package_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 = [
'package_list' => 'PackageList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'package_list' => 'setPackageList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'package_list' => 'getPackageList', ];
/**
* 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['package_list'] = isset($data['package_list']) ? $data['package_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['package_list']) {
$invalidProperties[] = "'package_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 package_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelPackageOutputList
*/
public function getPackageList()
{
return $this->container['package_list'];
}
/**
* Sets package_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelPackageOutputList $package_list package_list
*
* @return $this
*/
public function setPackageList($package_list)
{
$this->container['package_list'] = $package_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/FulfillmentInbound/TransportHeader.php | lib/Models/FulfillmentInbound/TransportHeader.php | <?php
/**
* TransportHeader.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TransportHeader Class Doc Comment.
*
* @description The shipping identifier, information about whether the shipment is by an Amazon-partnered carrier, and information about whether the shipment is Small Parcel or Less Than Truckload/Full Truckload (LTL/FTL).
*
* @author Stefan Neuhaus / ClouSale
*/
class TransportHeader implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TransportHeader';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'seller_id' => 'string',
'shipment_id' => 'string',
'is_partnered' => 'bool',
'shipment_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'seller_id' => null,
'shipment_id' => null,
'is_partnered' => null,
'shipment_type' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'seller_id' => 'SellerId',
'shipment_id' => 'ShipmentId',
'is_partnered' => 'IsPartnered',
'shipment_type' => 'ShipmentType', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'seller_id' => 'setSellerId',
'shipment_id' => 'setShipmentId',
'is_partnered' => 'setIsPartnered',
'shipment_type' => 'setShipmentType', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'seller_id' => 'getSellerId',
'shipment_id' => 'getShipmentId',
'is_partnered' => 'getIsPartnered',
'shipment_type' => 'getShipmentType', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['seller_id'] = isset($data['seller_id']) ? $data['seller_id'] : null;
$this->container['shipment_id'] = isset($data['shipment_id']) ? $data['shipment_id'] : null;
$this->container['is_partnered'] = isset($data['is_partnered']) ? $data['is_partnered'] : null;
$this->container['shipment_type'] = isset($data['shipment_type']) ? $data['shipment_type'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['seller_id']) {
$invalidProperties[] = "'seller_id' can't be null";
}
if (null === $this->container['shipment_id']) {
$invalidProperties[] = "'shipment_id' can't be null";
}
if (null === $this->container['is_partnered']) {
$invalidProperties[] = "'is_partnered' can't be null";
}
if (null === $this->container['shipment_type']) {
$invalidProperties[] = "'shipment_type' 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 seller_id.
*
* @return string
*/
public function getSellerId()
{
return $this->container['seller_id'];
}
/**
* Sets seller_id.
*
* @param string $seller_id the Amazon seller identifier
*
* @return $this
*/
public function setSellerId($seller_id)
{
$this->container['seller_id'] = $seller_id;
return $this;
}
/**
* Gets shipment_id.
*
* @return string
*/
public function getShipmentId()
{
return $this->container['shipment_id'];
}
/**
* Sets shipment_id.
*
* @param string $shipment_id a shipment identifier originally returned by the createInboundShipmentPlan operation
*
* @return $this
*/
public function setShipmentId($shipment_id)
{
$this->container['shipment_id'] = $shipment_id;
return $this;
}
/**
* Gets is_partnered.
*
* @return bool
*/
public function getIsPartnered()
{
return $this->container['is_partnered'];
}
/**
* Sets is_partnered.
*
* @param bool $is_partnered Indicates whether a putTransportDetails request is for a partnered carrier. Possible values: * true – Request is for an Amazon-partnered carrier. * false – Request is for a non-Amazon-partnered carrier.
*
* @return $this
*/
public function setIsPartnered($is_partnered)
{
$this->container['is_partnered'] = $is_partnered;
return $this;
}
/**
* Gets shipment_type.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentType
*/
public function getShipmentType()
{
return $this->container['shipment_type'];
}
/**
* Sets shipment_type.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentType $shipment_type shipment_type
*
* @return $this
*/
public function setShipmentType($shipment_type)
{
$this->container['shipment_type'] = $shipment_type;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentInbound/Amount.php | lib/Models/FulfillmentInbound/Amount.php | <?php
/**
* Amount.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Amount Class Doc Comment.
*
* @description The monetary value.
*
* @author Stefan Neuhaus / ClouSale
*/
class Amount implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Amount';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'currency_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CurrencyCode',
'value' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'currency_code' => null,
'value' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'currency_code' => 'CurrencyCode',
'value' => 'Value', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'currency_code' => 'setCurrencyCode',
'value' => 'setValue', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'currency_code' => 'getCurrencyCode',
'value' => 'getValue', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['currency_code'] = isset($data['currency_code']) ? $data['currency_code'] : null;
$this->container['value'] = isset($data['value']) ? $data['value'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['currency_code']) {
$invalidProperties[] = "'currency_code' can't be null";
}
if (null === $this->container['value']) {
$invalidProperties[] = "'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 currency_code.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CurrencyCode
*/
public function getCurrencyCode()
{
return $this->container['currency_code'];
}
/**
* Sets currency_code.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CurrencyCode $currency_code currency_code
*
* @return $this
*/
public function setCurrencyCode($currency_code)
{
$this->container['currency_code'] = $currency_code;
return $this;
}
/**
* Gets value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType
*/
public function getValue()
{
return $this->container['value'];
}
/**
* Sets value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType $value value
*
* @return $this
*/
public function setValue($value)
{
$this->container['value'] = $value;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentInbound/ErrorList.php | lib/Models/FulfillmentInbound/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
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/FulfillmentInbound/ShipmentStatus.php | lib/Models/FulfillmentInbound/ShipmentStatus.php | <?php
/**
* ShipmentStatus.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* ShipmentStatus Class Doc Comment.
*
* @description Indicates the status of the inbound shipment. When used with the createInboundShipment operation, WORKING is the only valid value. When used with the updateInboundShipment operation, possible values are WORKING, SHIPPED or CANCELLED.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipmentStatus
{
/**
* Possible values of this enum.
*/
const WORKING = 'WORKING';
const SHIPPED = 'SHIPPED';
const RECEIVING = 'RECEIVING';
const CANCELLED = 'CANCELLED';
const DELETED = 'DELETED';
const CLOSED = 'CLOSED';
const ERROR = 'ERROR';
const IN_TRANSIT = 'IN_TRANSIT';
const DELIVERED = 'DELIVERED';
const CHECKED_IN = 'CHECKED_IN';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::WORKING,
self::SHIPPED,
self::RECEIVING,
self::CANCELLED,
self::DELETED,
self::CLOSED,
self::ERROR,
self::IN_TRANSIT,
self::DELIVERED,
self::CHECKED_IN, ];
}
}
| 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/FulfillmentInbound/ASINInboundGuidance.php | lib/Models/FulfillmentInbound/ASINInboundGuidance.php | <?php
/**
* ASINInboundGuidance.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ASINInboundGuidance Class Doc Comment.
*
* @description Reasons why a given ASIN is not recommended for shipment to Amazon's fulfillment network.
*
* @author Stefan Neuhaus / ClouSale
*/
class ASINInboundGuidance implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ASINInboundGuidance';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'asin' => 'string',
'inbound_guidance' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundGuidance',
'guidance_reason_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GuidanceReasonList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'asin' => null,
'inbound_guidance' => null,
'guidance_reason_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 = [
'asin' => 'ASIN',
'inbound_guidance' => 'InboundGuidance',
'guidance_reason_list' => 'GuidanceReasonList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'asin' => 'setAsin',
'inbound_guidance' => 'setInboundGuidance',
'guidance_reason_list' => 'setGuidanceReasonList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'asin' => 'getAsin',
'inbound_guidance' => 'getInboundGuidance',
'guidance_reason_list' => 'getGuidanceReasonList', ];
/**
* 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['inbound_guidance'] = isset($data['inbound_guidance']) ? $data['inbound_guidance'] : null;
$this->container['guidance_reason_list'] = isset($data['guidance_reason_list']) ? $data['guidance_reason_list'] : 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['inbound_guidance']) {
$invalidProperties[] = "'inbound_guidance' 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) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets inbound_guidance.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundGuidance
*/
public function getInboundGuidance()
{
return $this->container['inbound_guidance'];
}
/**
* Sets inbound_guidance.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundGuidance $inbound_guidance inbound_guidance
*
* @return $this
*/
public function setInboundGuidance($inbound_guidance)
{
$this->container['inbound_guidance'] = $inbound_guidance;
return $this;
}
/**
* Gets guidance_reason_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GuidanceReasonList
*/
public function getGuidanceReasonList()
{
return $this->container['guidance_reason_list'];
}
/**
* Sets guidance_reason_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GuidanceReasonList $guidance_reason_list guidance_reason_list
*
* @return $this
*/
public function setGuidanceReasonList($guidance_reason_list)
{
$this->container['guidance_reason_list'] = $guidance_reason_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/FulfillmentInbound/PutTransportDetailsResponse.php | lib/Models/FulfillmentInbound/PutTransportDetailsResponse.php | <?php
/**
* PutTransportDetailsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PutTransportDetailsResponse Class Doc Comment.
*
* @description Workflow status for a shipment with an Amazon-partnered carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class PutTransportDetailsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PutTransportDetailsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CommonTransportResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\CommonTransportResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CommonTransportResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/InboundShipmentPlanList.php | lib/Models/FulfillmentInbound/InboundShipmentPlanList.php | <?php
/**
* InboundShipmentPlanList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentPlanList Class Doc Comment.
*
* @description A list of inbound shipment plan information
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentPlanList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentPlanList';
/**
* 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 InboundShipmentPlan::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/FulfillmentInbound/ErrorReason.php | lib/Models/FulfillmentInbound/ErrorReason.php | <?php
/**
* ErrorReason.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* ErrorReason Class Doc Comment.
*
* @description The reason that the ASIN is invalid.
*
* @author Stefan Neuhaus / ClouSale
*/
class ErrorReason
{
/**
* Possible values of this enum.
*/
const DOES_NOT_EXIST = 'DoesNotExist';
const INVALID_ASIN = 'InvalidASIN';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::DOES_NOT_EXIST,
self::INVALID_ASIN, ];
}
}
| 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/FulfillmentInbound/BoxContentsSource.php | lib/Models/FulfillmentInbound/BoxContentsSource.php | <?php
/**
* BoxContentsSource.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* BoxContentsSource Class Doc Comment.
*
* @description Where the seller provided box contents information for a shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class BoxContentsSource
{
/**
* Possible values of this enum.
*/
const NONE = 'NONE';
const FEED = 'FEED';
const _2_D_BARCODE = '2D_BARCODE';
const INTERACTIVE = 'INTERACTIVE';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::NONE,
self::FEED,
self::_2_D_BARCODE,
self::INTERACTIVE, ];
}
}
| 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/FulfillmentInbound/InboundShipmentItemList.php | lib/Models/FulfillmentInbound/InboundShipmentItemList.php | <?php
/**
* InboundShipmentItemList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentItemList Class Doc Comment.
*
* @description A list of inbound shipment item information.
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentItemList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentItemList';
/**
* 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 InboundShipmentItem::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/FulfillmentInbound/TrackingId.php | lib/Models/FulfillmentInbound/TrackingId.php | <?php
/**
* TrackingId.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TrackingId Class Doc Comment.
*
* @description The tracking number of the package, provided by the carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class TrackingId implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TrackingId';
/**
* 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/FulfillmentInbound/SKUPrepInstructionsList.php | lib/Models/FulfillmentInbound/SKUPrepInstructionsList.php | <?php
/**
* SKUPrepInstructionsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SKUPrepInstructionsList Class Doc Comment.
*
* @description A list of SKU labeling requirements and item preparation instructions.
*
* @author Stefan Neuhaus / ClouSale
*/
class SKUPrepInstructionsList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SKUPrepInstructionsList';
/**
* 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 SKUPrepInstructions::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/FulfillmentInbound/Dimensions.php | lib/Models/FulfillmentInbound/Dimensions.php | <?php
/**
* Dimensions.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Dimensions Class Doc Comment.
*
* @description The dimension values and unit of measurement.
*
* @author Stefan Neuhaus / ClouSale
*/
class Dimensions implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Dimensions';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'length' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType',
'width' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType',
'height' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType',
'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\UnitOfMeasurement', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'length' => null,
'width' => null,
'height' => 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',
'height' => 'Height',
'unit' => 'Unit', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'length' => 'setLength',
'width' => 'setWidth',
'height' => 'setHeight',
'unit' => 'setUnit', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'length' => 'getLength',
'width' => 'getWidth',
'height' => 'getHeight',
'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['height'] = isset($data['height']) ? $data['height'] : 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['height']) {
$invalidProperties[] = "'height' 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\FulfillmentInbound\BigDecimalType
*/
public function getLength()
{
return $this->container['length'];
}
/**
* Sets length.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType $length length
*
* @return $this
*/
public function setLength($length)
{
$this->container['length'] = $length;
return $this;
}
/**
* Gets width.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType
*/
public function getWidth()
{
return $this->container['width'];
}
/**
* Sets width.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType $width width
*
* @return $this
*/
public function setWidth($width)
{
$this->container['width'] = $width;
return $this;
}
/**
* Gets height.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType
*/
public function getHeight()
{
return $this->container['height'];
}
/**
* Sets height.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType $height height
*
* @return $this
*/
public function setHeight($height)
{
$this->container['height'] = $height;
return $this;
}
/**
* Gets unit.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\UnitOfMeasurement
*/
public function getUnit()
{
return $this->container['unit'];
}
/**
* Sets unit.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\UnitOfMeasurement $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/FulfillmentInbound/PartneredSmallParcelDataInput.php | lib/Models/FulfillmentInbound/PartneredSmallParcelDataInput.php | <?php
/**
* PartneredSmallParcelDataInput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PartneredSmallParcelDataInput Class Doc Comment.
*
* @description Information that is required by an Amazon-partnered carrier to ship a Small Parcel inbound shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class PartneredSmallParcelDataInput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PartneredSmallParcelDataInput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'package_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredSmallParcelPackageInputList',
'carrier_name' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'package_list' => null,
'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 = [
'package_list' => 'PackageList',
'carrier_name' => 'CarrierName', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'package_list' => 'setPackageList',
'carrier_name' => 'setCarrierName', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'package_list' => 'getPackageList',
'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['package_list'] = isset($data['package_list']) ? $data['package_list'] : 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 = [];
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 package_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredSmallParcelPackageInputList
*/
public function getPackageList()
{
return $this->container['package_list'];
}
/**
* Sets package_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredSmallParcelPackageInputList $package_list package_list
*
* @return $this
*/
public function setPackageList($package_list)
{
$this->container['package_list'] = $package_list;
return $this;
}
/**
* Gets carrier_name.
*
* @return string
*/
public function getCarrierName()
{
return $this->container['carrier_name'];
}
/**
* Sets carrier_name.
*
* @param string $carrier_name the Amazon-partnered carrier to use for the inbound shipment
*
* @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/FulfillmentInbound/ProNumber.php | lib/Models/FulfillmentInbound/ProNumber.php | <?php
/**
* ProNumber.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ProNumber Class Doc Comment.
*
* @description The PRO number (\"progressive number\" or \"progressive ID\") assigned to the shipment by the carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class ProNumber implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ProNumber';
/**
* 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/FulfillmentInbound/GetPreorderInfoResult.php | lib/Models/FulfillmentInbound/GetPreorderInfoResult.php | <?php
/**
* GetPreorderInfoResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetPreorderInfoResult Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetPreorderInfoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetPreorderInfoResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_contains_preorderable_items' => 'bool',
'shipment_confirmed_for_preorder' => 'bool',
'need_by_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType',
'confirmed_fulfillable_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_contains_preorderable_items' => null,
'shipment_confirmed_for_preorder' => null,
'need_by_date' => null,
'confirmed_fulfillable_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_contains_preorderable_items' => 'ShipmentContainsPreorderableItems',
'shipment_confirmed_for_preorder' => 'ShipmentConfirmedForPreorder',
'need_by_date' => 'NeedByDate',
'confirmed_fulfillable_date' => 'ConfirmedFulfillableDate', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_contains_preorderable_items' => 'setShipmentContainsPreorderableItems',
'shipment_confirmed_for_preorder' => 'setShipmentConfirmedForPreorder',
'need_by_date' => 'setNeedByDate',
'confirmed_fulfillable_date' => 'setConfirmedFulfillableDate', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_contains_preorderable_items' => 'getShipmentContainsPreorderableItems',
'shipment_confirmed_for_preorder' => 'getShipmentConfirmedForPreorder',
'need_by_date' => 'getNeedByDate',
'confirmed_fulfillable_date' => 'getConfirmedFulfillableDate', ];
/**
* 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_contains_preorderable_items'] = isset($data['shipment_contains_preorderable_items']) ? $data['shipment_contains_preorderable_items'] : null;
$this->container['shipment_confirmed_for_preorder'] = isset($data['shipment_confirmed_for_preorder']) ? $data['shipment_confirmed_for_preorder'] : null;
$this->container['need_by_date'] = isset($data['need_by_date']) ? $data['need_by_date'] : null;
$this->container['confirmed_fulfillable_date'] = isset($data['confirmed_fulfillable_date']) ? $data['confirmed_fulfillable_date'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets shipment_contains_preorderable_items.
*
* @return bool
*/
public function getShipmentContainsPreorderableItems()
{
return $this->container['shipment_contains_preorderable_items'];
}
/**
* Sets shipment_contains_preorderable_items.
*
* @param bool $shipment_contains_preorderable_items Indicates whether the shipment contains items that have been enabled for pre-order. For more information about enabling items for pre-order, see the Seller Central Help.
*
* @return $this
*/
public function setShipmentContainsPreorderableItems($shipment_contains_preorderable_items)
{
$this->container['shipment_contains_preorderable_items'] = $shipment_contains_preorderable_items;
return $this;
}
/**
* Gets shipment_confirmed_for_preorder.
*
* @return bool
*/
public function getShipmentConfirmedForPreorder()
{
return $this->container['shipment_confirmed_for_preorder'];
}
/**
* Sets shipment_confirmed_for_preorder.
*
* @param bool $shipment_confirmed_for_preorder indicates whether this shipment has been confirmed for pre-order
*
* @return $this
*/
public function setShipmentConfirmedForPreorder($shipment_confirmed_for_preorder)
{
$this->container['shipment_confirmed_for_preorder'] = $shipment_confirmed_for_preorder;
return $this;
}
/**
* Gets need_by_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType
*/
public function getNeedByDate()
{
return $this->container['need_by_date'];
}
/**
* Sets need_by_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType $need_by_date need_by_date
*
* @return $this
*/
public function setNeedByDate($need_by_date)
{
$this->container['need_by_date'] = $need_by_date;
return $this;
}
/**
* Gets confirmed_fulfillable_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType
*/
public function getConfirmedFulfillableDate()
{
return $this->container['confirmed_fulfillable_date'];
}
/**
* Sets confirmed_fulfillable_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType $confirmed_fulfillable_date confirmed_fulfillable_date
*
* @return $this
*/
public function setConfirmedFulfillableDate($confirmed_fulfillable_date)
{
$this->container['confirmed_fulfillable_date'] = $confirmed_fulfillable_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/FulfillmentInbound/Weight.php | lib/Models/FulfillmentInbound/Weight.php | <?php
/**
* Weight.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Weight Class Doc Comment.
*
* @description The weight of the package.
*
* @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\FulfillmentInbound\BigDecimalType',
'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\BigDecimalType
*/
public function getValue()
{
return $this->container['value'];
}
/**
* Sets value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BigDecimalType $value value
*
* @return $this
*/
public function setValue($value)
{
$this->container['value'] = $value;
return $this;
}
/**
* Gets unit.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\UnitOfWeight
*/
public function getUnit()
{
return $this->container['unit'];
}
/**
* Sets unit.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/PrepInstruction.php | lib/Models/FulfillmentInbound/PrepInstruction.php | <?php
/**
* PrepInstruction.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* PrepInstruction Class Doc Comment.
*
* @description Preparation instructions for shipping an item to Amazon's fulfillment network. For more information about preparing items for shipment to Amazon's fulfillment network, see the Seller Central Help for your marketplace.
*
* @author Stefan Neuhaus / ClouSale
*/
class PrepInstruction
{
/**
* Possible values of this enum.
*/
const POLYBAGGING = 'Polybagging';
const BUBBLE_WRAPPING = 'BubbleWrapping';
const TAPING = 'Taping';
const BLACK_SHRINK_WRAPPING = 'BlackShrinkWrapping';
const LABELING = 'Labeling';
const HANG_GARMENT = 'HangGarment';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::POLYBAGGING,
self::BUBBLE_WRAPPING,
self::TAPING,
self::BLACK_SHRINK_WRAPPING,
self::LABELING,
self::HANG_GARMENT, ];
}
}
| 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/FulfillmentInbound/PrepOwner.php | lib/Models/FulfillmentInbound/PrepOwner.php | <?php
/**
* PrepOwner.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* PrepOwner Class Doc Comment.
*
* @description Indicates who will prepare the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class PrepOwner
{
/**
* Possible values of this enum.
*/
const AMAZON = 'AMAZON';
const SELLER = 'SELLER';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::AMAZON,
self::SELLER, ];
}
}
| 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/FulfillmentInbound/TransportDetailInput.php | lib/Models/FulfillmentInbound/TransportDetailInput.php | <?php
/**
* TransportDetailInput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TransportDetailInput Class Doc Comment.
*
* @description Information required to create an Amazon-partnered carrier shipping estimate, or to alert the Amazon fulfillment center to the arrival of an inbound shipment by a non-Amazon-partnered carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class TransportDetailInput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TransportDetailInput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'partnered_small_parcel_data' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredSmallParcelDataInput',
'non_partnered_small_parcel_data' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelDataInput',
'partnered_ltl_data' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredLtlDataInput',
'non_partnered_ltl_data' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredLtlDataInput', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'partnered_small_parcel_data' => null,
'non_partnered_small_parcel_data' => null,
'partnered_ltl_data' => null,
'non_partnered_ltl_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 = [
'partnered_small_parcel_data' => 'PartneredSmallParcelData',
'non_partnered_small_parcel_data' => 'NonPartneredSmallParcelData',
'partnered_ltl_data' => 'PartneredLtlData',
'non_partnered_ltl_data' => 'NonPartneredLtlData', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'partnered_small_parcel_data' => 'setPartneredSmallParcelData',
'non_partnered_small_parcel_data' => 'setNonPartneredSmallParcelData',
'partnered_ltl_data' => 'setPartneredLtlData',
'non_partnered_ltl_data' => 'setNonPartneredLtlData', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'partnered_small_parcel_data' => 'getPartneredSmallParcelData',
'non_partnered_small_parcel_data' => 'getNonPartneredSmallParcelData',
'partnered_ltl_data' => 'getPartneredLtlData',
'non_partnered_ltl_data' => 'getNonPartneredLtlData', ];
/**
* 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['partnered_small_parcel_data'] = isset($data['partnered_small_parcel_data']) ? $data['partnered_small_parcel_data'] : null;
$this->container['non_partnered_small_parcel_data'] = isset($data['non_partnered_small_parcel_data']) ? $data['non_partnered_small_parcel_data'] : null;
$this->container['partnered_ltl_data'] = isset($data['partnered_ltl_data']) ? $data['partnered_ltl_data'] : null;
$this->container['non_partnered_ltl_data'] = isset($data['non_partnered_ltl_data']) ? $data['non_partnered_ltl_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 partnered_small_parcel_data.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredSmallParcelDataInput
*/
public function getPartneredSmallParcelData()
{
return $this->container['partnered_small_parcel_data'];
}
/**
* Sets partnered_small_parcel_data.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredSmallParcelDataInput $partnered_small_parcel_data partnered_small_parcel_data
*
* @return $this
*/
public function setPartneredSmallParcelData($partnered_small_parcel_data)
{
$this->container['partnered_small_parcel_data'] = $partnered_small_parcel_data;
return $this;
}
/**
* Gets non_partnered_small_parcel_data.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelDataInput
*/
public function getNonPartneredSmallParcelData()
{
return $this->container['non_partnered_small_parcel_data'];
}
/**
* Sets non_partnered_small_parcel_data.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelDataInput $non_partnered_small_parcel_data non_partnered_small_parcel_data
*
* @return $this
*/
public function setNonPartneredSmallParcelData($non_partnered_small_parcel_data)
{
$this->container['non_partnered_small_parcel_data'] = $non_partnered_small_parcel_data;
return $this;
}
/**
* Gets partnered_ltl_data.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredLtlDataInput
*/
public function getPartneredLtlData()
{
return $this->container['partnered_ltl_data'];
}
/**
* Sets partnered_ltl_data.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PartneredLtlDataInput $partnered_ltl_data partnered_ltl_data
*
* @return $this
*/
public function setPartneredLtlData($partnered_ltl_data)
{
$this->container['partnered_ltl_data'] = $partnered_ltl_data;
return $this;
}
/**
* Gets non_partnered_ltl_data.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredLtlDataInput
*/
public function getNonPartneredLtlData()
{
return $this->container['non_partnered_ltl_data'];
}
/**
* Sets non_partnered_ltl_data.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredLtlDataInput $non_partnered_ltl_data non_partnered_ltl_data
*
* @return $this
*/
public function setNonPartneredLtlData($non_partnered_ltl_data)
{
$this->container['non_partnered_ltl_data'] = $non_partnered_ltl_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/FulfillmentInbound/NonPartneredLtlDataOutput.php | lib/Models/FulfillmentInbound/NonPartneredLtlDataOutput.php | <?php
/**
* NonPartneredLtlDataOutput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NonPartneredLtlDataOutput Class Doc Comment.
*
* @description Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment shipped by a carrier that has not partnered with Amazon.
*
* @author Stefan Neuhaus / ClouSale
*/
class NonPartneredLtlDataOutput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NonPartneredLtlDataOutput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'carrier_name' => 'string',
'pro_number' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ProNumber', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'carrier_name' => null,
'pro_number' => 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',
'pro_number' => 'ProNumber', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'carrier_name' => 'setCarrierName',
'pro_number' => 'setProNumber', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'carrier_name' => 'getCarrierName',
'pro_number' => 'getProNumber', ];
/**
* 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['pro_number'] = isset($data['pro_number']) ? $data['pro_number'] : 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['pro_number']) {
$invalidProperties[] = "'pro_number' 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 carrier that you are using for the inbound shipment
*
* @return $this
*/
public function setCarrierName($carrier_name)
{
$this->container['carrier_name'] = $carrier_name;
return $this;
}
/**
* Gets pro_number.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ProNumber
*/
public function getProNumber()
{
return $this->container['pro_number'];
}
/**
* Sets pro_number.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ProNumber $pro_number pro_number
*
* @return $this
*/
public function setProNumber($pro_number)
{
$this->container['pro_number'] = $pro_number;
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/FulfillmentInbound/TransportContent.php | lib/Models/FulfillmentInbound/TransportContent.php | <?php
/**
* TransportContent.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* TransportContent Class Doc Comment.
*
* @description Inbound shipment information, including carrier details, shipment status, and the workflow status for a request for shipment with an Amazon-partnered carrier.
*
* @author Stefan Neuhaus / ClouSale
*/
class TransportContent implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'TransportContent';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'transport_header' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportHeader',
'transport_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportDetailOutput',
'transport_result' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportResult', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'transport_header' => null,
'transport_details' => null,
'transport_result' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'transport_header' => 'TransportHeader',
'transport_details' => 'TransportDetails',
'transport_result' => 'TransportResult', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'transport_header' => 'setTransportHeader',
'transport_details' => 'setTransportDetails',
'transport_result' => 'setTransportResult', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'transport_header' => 'getTransportHeader',
'transport_details' => 'getTransportDetails',
'transport_result' => 'getTransportResult', ];
/**
* 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['transport_header'] = isset($data['transport_header']) ? $data['transport_header'] : null;
$this->container['transport_details'] = isset($data['transport_details']) ? $data['transport_details'] : null;
$this->container['transport_result'] = isset($data['transport_result']) ? $data['transport_result'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['transport_header']) {
$invalidProperties[] = "'transport_header' can't be null";
}
if (null === $this->container['transport_details']) {
$invalidProperties[] = "'transport_details' can't be null";
}
if (null === $this->container['transport_result']) {
$invalidProperties[] = "'transport_result' 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 transport_header.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportHeader
*/
public function getTransportHeader()
{
return $this->container['transport_header'];
}
/**
* Sets transport_header.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportHeader $transport_header transport_header
*
* @return $this
*/
public function setTransportHeader($transport_header)
{
$this->container['transport_header'] = $transport_header;
return $this;
}
/**
* Gets transport_details.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportDetailOutput
*/
public function getTransportDetails()
{
return $this->container['transport_details'];
}
/**
* Sets transport_details.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportDetailOutput $transport_details transport_details
*
* @return $this
*/
public function setTransportDetails($transport_details)
{
$this->container['transport_details'] = $transport_details;
return $this;
}
/**
* Gets transport_result.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportResult
*/
public function getTransportResult()
{
return $this->container['transport_result'];
}
/**
* Sets transport_result.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TransportResult $transport_result transport_result
*
* @return $this
*/
public function setTransportResult($transport_result)
{
$this->container['transport_result'] = $transport_result;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php | lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php | <?php
/**
* NonPartneredSmallParcelPackageOutput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NonPartneredSmallParcelPackageOutput Class Doc Comment.
*
* @description Carrier, tracking number, and status information for the package.
*
* @author Stefan Neuhaus / ClouSale
*/
class NonPartneredSmallParcelPackageOutput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NonPartneredSmallParcelPackageOutput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'carrier_name' => 'string',
'tracking_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TrackingId',
'package_status' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PackageStatus', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'carrier_name' => null,
'tracking_id' => null,
'package_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 = [
'carrier_name' => 'CarrierName',
'tracking_id' => 'TrackingId',
'package_status' => 'PackageStatus', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'carrier_name' => 'setCarrierName',
'tracking_id' => 'setTrackingId',
'package_status' => 'setPackageStatus', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'carrier_name' => 'getCarrierName',
'tracking_id' => 'getTrackingId',
'package_status' => 'getPackageStatus', ];
/**
* 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['tracking_id'] = isset($data['tracking_id']) ? $data['tracking_id'] : null;
$this->container['package_status'] = isset($data['package_status']) ? $data['package_status'] : 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['tracking_id']) {
$invalidProperties[] = "'tracking_id' can't be null";
}
if (null === $this->container['package_status']) {
$invalidProperties[] = "'package_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 carrier_name.
*
* @return string
*/
public function getCarrierName()
{
return $this->container['carrier_name'];
}
/**
* Sets carrier_name.
*
* @param string $carrier_name the carrier that you are using for the inbound shipment
*
* @return $this
*/
public function setCarrierName($carrier_name)
{
$this->container['carrier_name'] = $carrier_name;
return $this;
}
/**
* Gets tracking_id.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TrackingId
*/
public function getTrackingId()
{
return $this->container['tracking_id'];
}
/**
* Sets tracking_id.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\TrackingId $tracking_id tracking_id
*
* @return $this
*/
public function setTrackingId($tracking_id)
{
$this->container['tracking_id'] = $tracking_id;
return $this;
}
/**
* Gets package_status.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PackageStatus
*/
public function getPackageStatus()
{
return $this->container['package_status'];
}
/**
* Sets package_status.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PackageStatus $package_status package_status
*
* @return $this
*/
public function setPackageStatus($package_status)
{
$this->container['package_status'] = $package_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/FulfillmentInbound/IntendedBoxContentsSource.php | lib/Models/FulfillmentInbound/IntendedBoxContentsSource.php | <?php
/**
* IntendedBoxContentsSource.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* IntendedBoxContentsSource Class Doc Comment.
*
* @description How the seller intends to provide box contents information for a shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class IntendedBoxContentsSource
{
/**
* Possible values of this enum.
*/
const NONE = 'NONE';
const FEED = 'FEED';
const _2_D_BARCODE = '2D_BARCODE';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::NONE,
self::FEED,
self::_2_D_BARCODE, ];
}
}
| 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/FulfillmentInbound/ConfirmTransportResponse.php | lib/Models/FulfillmentInbound/ConfirmTransportResponse.php | <?php
/**
* ConfirmTransportResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ConfirmTransportResponse Class Doc Comment.
*
* @description The response schema for the confirmTransport operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class ConfirmTransportResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ConfirmTransportResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CommonTransportResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\CommonTransportResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CommonTransportResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/InboundShipmentPlanRequestItemList.php | lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItemList.php | <?php
/**
* InboundShipmentPlanRequestItemList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentPlanRequestItemList Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentPlanRequestItemList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentPlanRequestItemList';
/**
* 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 InboundShipmentPlanRequestItem::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/FulfillmentInbound/GetShipmentsResult.php | lib/Models/FulfillmentInbound/GetShipmentsResult.php | <?php
/**
* GetShipmentsResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetShipmentsResult Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetShipmentsResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetShipmentsResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_data' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentList',
'next_token' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_data' => null,
'next_token' => 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_data' => 'ShipmentData',
'next_token' => 'NextToken', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_data' => 'setShipmentData',
'next_token' => 'setNextToken', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_data' => 'getShipmentData',
'next_token' => 'getNextToken', ];
/**
* 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_data'] = isset($data['shipment_data']) ? $data['shipment_data'] : null;
$this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : 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_data.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentList
*/
public function getShipmentData()
{
return $this->container['shipment_data'];
}
/**
* Sets shipment_data.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentList $shipment_data shipment_data
*
* @return $this
*/
public function setShipmentData($shipment_data)
{
$this->container['shipment_data'] = $shipment_data;
return $this;
}
/**
* Gets next_token.
*
* @return string
*/
public function getNextToken()
{
return $this->container['next_token'];
}
/**
* Sets next_token.
*
* @param string $next_token when present and not empty, pass this string token in the next request to return the next response page
*
* @return $this
*/
public function setNextToken($next_token)
{
$this->container['next_token'] = $next_token;
return $this;
}
/**
* 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/FulfillmentInbound/ConfirmPreorderResponse.php | lib/Models/FulfillmentInbound/ConfirmPreorderResponse.php | <?php
/**
* ConfirmPreorderResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ConfirmPreorderResponse Class Doc Comment.
*
* @description The response schema for the confirmPreorder operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class ConfirmPreorderResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ConfirmPreorderResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmPreorderResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\ConfirmPreorderResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmPreorderResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/GuidanceReasonList.php | lib/Models/FulfillmentInbound/GuidanceReasonList.php | <?php
/**
* GuidanceReasonList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GuidanceReasonList Class Doc Comment.
*
* @description A list of inbound guidance reason information.
*
* @author Stefan Neuhaus / ClouSale
*/
class GuidanceReasonList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GuidanceReasonList';
/**
* 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 GuidanceReason::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/FulfillmentInbound/InboundShipmentHeader.php | lib/Models/FulfillmentInbound/InboundShipmentHeader.php | <?php
/**
* InboundShipmentHeader.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentHeader Class Doc Comment.
*
* @description Inbound shipment information used to create and update inbound shipments.
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentHeader implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentHeader';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_name' => 'string',
'ship_from_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Address',
'destination_fulfillment_center_id' => 'string',
'are_cases_required' => 'bool',
'shipment_status' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentStatus',
'label_prep_preference' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepPreference',
'intended_box_contents_source' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\IntendedBoxContentsSource', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_name' => null,
'ship_from_address' => null,
'destination_fulfillment_center_id' => null,
'are_cases_required' => null,
'shipment_status' => null,
'label_prep_preference' => null,
'intended_box_contents_source' => 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_name' => 'ShipmentName',
'ship_from_address' => 'ShipFromAddress',
'destination_fulfillment_center_id' => 'DestinationFulfillmentCenterId',
'are_cases_required' => 'AreCasesRequired',
'shipment_status' => 'ShipmentStatus',
'label_prep_preference' => 'LabelPrepPreference',
'intended_box_contents_source' => 'IntendedBoxContentsSource', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_name' => 'setShipmentName',
'ship_from_address' => 'setShipFromAddress',
'destination_fulfillment_center_id' => 'setDestinationFulfillmentCenterId',
'are_cases_required' => 'setAreCasesRequired',
'shipment_status' => 'setShipmentStatus',
'label_prep_preference' => 'setLabelPrepPreference',
'intended_box_contents_source' => 'setIntendedBoxContentsSource', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_name' => 'getShipmentName',
'ship_from_address' => 'getShipFromAddress',
'destination_fulfillment_center_id' => 'getDestinationFulfillmentCenterId',
'are_cases_required' => 'getAreCasesRequired',
'shipment_status' => 'getShipmentStatus',
'label_prep_preference' => 'getLabelPrepPreference',
'intended_box_contents_source' => 'getIntendedBoxContentsSource', ];
/**
* 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_name'] = isset($data['shipment_name']) ? $data['shipment_name'] : null;
$this->container['ship_from_address'] = isset($data['ship_from_address']) ? $data['ship_from_address'] : null;
$this->container['destination_fulfillment_center_id'] = isset($data['destination_fulfillment_center_id']) ? $data['destination_fulfillment_center_id'] : null;
$this->container['are_cases_required'] = isset($data['are_cases_required']) ? $data['are_cases_required'] : null;
$this->container['shipment_status'] = isset($data['shipment_status']) ? $data['shipment_status'] : null;
$this->container['label_prep_preference'] = isset($data['label_prep_preference']) ? $data['label_prep_preference'] : null;
$this->container['intended_box_contents_source'] = isset($data['intended_box_contents_source']) ? $data['intended_box_contents_source'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['shipment_name']) {
$invalidProperties[] = "'shipment_name' can't be null";
}
if (null === $this->container['ship_from_address']) {
$invalidProperties[] = "'ship_from_address' can't be null";
}
if (null === $this->container['destination_fulfillment_center_id']) {
$invalidProperties[] = "'destination_fulfillment_center_id' can't be null";
}
if (null === $this->container['shipment_status']) {
$invalidProperties[] = "'shipment_status' can't be null";
}
if (null === $this->container['label_prep_preference']) {
$invalidProperties[] = "'label_prep_preference' 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_name.
*
* @return string
*/
public function getShipmentName()
{
return $this->container['shipment_name'];
}
/**
* Sets shipment_name.
*
* @param string $shipment_name The name for the shipment. Use a naming convention that helps distinguish between shipments over time, such as the date the shipment was created.
*
* @return $this
*/
public function setShipmentName($shipment_name)
{
$this->container['shipment_name'] = $shipment_name;
return $this;
}
/**
* Gets ship_from_address.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Address
*/
public function getShipFromAddress()
{
return $this->container['ship_from_address'];
}
/**
* Sets ship_from_address.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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 destination_fulfillment_center_id.
*
* @return string
*/
public function getDestinationFulfillmentCenterId()
{
return $this->container['destination_fulfillment_center_id'];
}
/**
* Sets destination_fulfillment_center_id.
*
* @param string $destination_fulfillment_center_id The identifier for the fulfillment center to which the shipment will be shipped. Get this value from the InboundShipmentPlan object in the response returned by the createInboundShipmentPlan operation.
*
* @return $this
*/
public function setDestinationFulfillmentCenterId($destination_fulfillment_center_id)
{
$this->container['destination_fulfillment_center_id'] = $destination_fulfillment_center_id;
return $this;
}
/**
* Gets are_cases_required.
*
* @return bool
*/
public function getAreCasesRequired()
{
return $this->container['are_cases_required'];
}
/**
* Sets are_cases_required.
*
* @param bool $are_cases_required Indicates whether or not an inbound shipment contains case-packed boxes. Note: A shipment must contain either all case-packed boxes or all individually packed boxes. Possible values: true - All boxes in the shipment must be case packed. false - All boxes in the shipment must be individually packed. Note: If AreCasesRequired = true for an inbound shipment, then the value of QuantityInCase must be greater than zero for every item in the shipment. Otherwise the service returns an error.
*
* @return $this
*/
public function setAreCasesRequired($are_cases_required)
{
$this->container['are_cases_required'] = $are_cases_required;
return $this;
}
/**
* Gets shipment_status.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentStatus
*/
public function getShipmentStatus()
{
return $this->container['shipment_status'];
}
/**
* Sets shipment_status.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentStatus $shipment_status shipment_status
*
* @return $this
*/
public function setShipmentStatus($shipment_status)
{
$this->container['shipment_status'] = $shipment_status;
return $this;
}
/**
* Gets label_prep_preference.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepPreference
*/
public function getLabelPrepPreference()
{
return $this->container['label_prep_preference'];
}
/**
* Sets label_prep_preference.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepPreference $label_prep_preference label_prep_preference
*
* @return $this
*/
public function setLabelPrepPreference($label_prep_preference)
{
$this->container['label_prep_preference'] = $label_prep_preference;
return $this;
}
/**
* Gets intended_box_contents_source.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\IntendedBoxContentsSource
*/
public function getIntendedBoxContentsSource()
{
return $this->container['intended_box_contents_source'];
}
/**
* Sets intended_box_contents_source.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\IntendedBoxContentsSource $intended_box_contents_source intended_box_contents_source
*
* @return $this
*/
public function setIntendedBoxContentsSource($intended_box_contents_source)
{
$this->container['intended_box_contents_source'] = $intended_box_contents_source;
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/FulfillmentInbound/GetShipmentItemsResponse.php | lib/Models/FulfillmentInbound/GetShipmentItemsResponse.php | <?php
/**
* GetShipmentItemsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetShipmentItemsResponse Class Doc Comment.
*
* @description The response schema for the getShipmentItems operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetShipmentItemsResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetShipmentItemsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\GetShipmentItemsResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/ASINInboundGuidanceList.php | lib/Models/FulfillmentInbound/ASINInboundGuidanceList.php | <?php
/**
* ASINInboundGuidanceList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ASINInboundGuidanceList Class Doc Comment.
*
* @description A list of ASINs and their associated inbound guidance.
*
* @author Stefan Neuhaus / ClouSale
*/
class ASINInboundGuidanceList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ASINInboundGuidanceList';
/**
* 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 ASINInboundGuidance::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/FulfillmentInbound/NonPartneredSmallParcelPackageInputList.php | lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInputList.php | <?php
/**
* NonPartneredSmallParcelPackageInputList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NonPartneredSmallParcelPackageInputList Class Doc Comment.
*
* @description A list of package tracking information.
*
* @author Stefan Neuhaus / ClouSale
*/
class NonPartneredSmallParcelPackageInputList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NonPartneredSmallParcelPackageInputList';
/**
* 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 NonPartneredSmallParcelPackageInput::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/FulfillmentInbound/PrepGuidance.php | lib/Models/FulfillmentInbound/PrepGuidance.php | <?php
/**
* PrepGuidance.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* PrepGuidance Class Doc Comment.
*
* @description Item preparation instructions.
*
* @author Stefan Neuhaus / ClouSale
*/
class PrepGuidance
{
/**
* Possible values of this enum.
*/
const CONSULT_HELP_DOCUMENTS = 'ConsultHelpDocuments';
const NO_ADDITIONAL_PREP_REQUIRED = 'NoAdditionalPrepRequired';
const SEE_PREP_INSTRUCTIONS_LIST = 'SeePrepInstructionsList';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::CONSULT_HELP_DOCUMENTS,
self::NO_ADDITIONAL_PREP_REQUIRED,
self::SEE_PREP_INSTRUCTIONS_LIST, ];
}
}
| 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/FulfillmentInbound/NonPartneredSmallParcelPackageOutputList.php | lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutputList.php | <?php
/**
* NonPartneredSmallParcelPackageOutputList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NonPartneredSmallParcelPackageOutputList Class Doc Comment.
*
* @description A list of packages, including carrier, tracking number, and status information for each package.
*
* @author Stefan Neuhaus / ClouSale
*/
class NonPartneredSmallParcelPackageOutputList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NonPartneredSmallParcelPackageOutputList';
/**
* 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 NonPartneredSmallParcelPackageOutput::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/FulfillmentInbound/InboundShipmentInfo.php | lib/Models/FulfillmentInbound/InboundShipmentInfo.php | <?php
/**
* InboundShipmentInfo.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentInfo Class Doc Comment.
*
* @description Information about the seller's inbound shipments. Returned by the listInboundShipments operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentInfo implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentInfo';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'shipment_id' => 'string',
'shipment_name' => 'string',
'ship_from_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Address',
'destination_fulfillment_center_id' => 'string',
'shipment_status' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentStatus',
'label_prep_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepType',
'are_cases_required' => 'bool',
'confirmed_need_by_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType',
'box_contents_source' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BoxContentsSource',
'estimated_box_contents_fee' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BoxContentsFeeDetails', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'shipment_id' => null,
'shipment_name' => null,
'ship_from_address' => null,
'destination_fulfillment_center_id' => null,
'shipment_status' => null,
'label_prep_type' => null,
'are_cases_required' => null,
'confirmed_need_by_date' => null,
'box_contents_source' => null,
'estimated_box_contents_fee' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'shipment_id' => 'ShipmentId',
'shipment_name' => 'ShipmentName',
'ship_from_address' => 'ShipFromAddress',
'destination_fulfillment_center_id' => 'DestinationFulfillmentCenterId',
'shipment_status' => 'ShipmentStatus',
'label_prep_type' => 'LabelPrepType',
'are_cases_required' => 'AreCasesRequired',
'confirmed_need_by_date' => 'ConfirmedNeedByDate',
'box_contents_source' => 'BoxContentsSource',
'estimated_box_contents_fee' => 'EstimatedBoxContentsFee', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'shipment_id' => 'setShipmentId',
'shipment_name' => 'setShipmentName',
'ship_from_address' => 'setShipFromAddress',
'destination_fulfillment_center_id' => 'setDestinationFulfillmentCenterId',
'shipment_status' => 'setShipmentStatus',
'label_prep_type' => 'setLabelPrepType',
'are_cases_required' => 'setAreCasesRequired',
'confirmed_need_by_date' => 'setConfirmedNeedByDate',
'box_contents_source' => 'setBoxContentsSource',
'estimated_box_contents_fee' => 'setEstimatedBoxContentsFee', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'shipment_id' => 'getShipmentId',
'shipment_name' => 'getShipmentName',
'ship_from_address' => 'getShipFromAddress',
'destination_fulfillment_center_id' => 'getDestinationFulfillmentCenterId',
'shipment_status' => 'getShipmentStatus',
'label_prep_type' => 'getLabelPrepType',
'are_cases_required' => 'getAreCasesRequired',
'confirmed_need_by_date' => 'getConfirmedNeedByDate',
'box_contents_source' => 'getBoxContentsSource',
'estimated_box_contents_fee' => 'getEstimatedBoxContentsFee', ];
/**
* 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['shipment_name'] = isset($data['shipment_name']) ? $data['shipment_name'] : null;
$this->container['ship_from_address'] = isset($data['ship_from_address']) ? $data['ship_from_address'] : null;
$this->container['destination_fulfillment_center_id'] = isset($data['destination_fulfillment_center_id']) ? $data['destination_fulfillment_center_id'] : null;
$this->container['shipment_status'] = isset($data['shipment_status']) ? $data['shipment_status'] : null;
$this->container['label_prep_type'] = isset($data['label_prep_type']) ? $data['label_prep_type'] : null;
$this->container['are_cases_required'] = isset($data['are_cases_required']) ? $data['are_cases_required'] : null;
$this->container['confirmed_need_by_date'] = isset($data['confirmed_need_by_date']) ? $data['confirmed_need_by_date'] : null;
$this->container['box_contents_source'] = isset($data['box_contents_source']) ? $data['box_contents_source'] : null;
$this->container['estimated_box_contents_fee'] = isset($data['estimated_box_contents_fee']) ? $data['estimated_box_contents_fee'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['ship_from_address']) {
$invalidProperties[] = "'ship_from_address' can't be null";
}
if (null === $this->container['are_cases_required']) {
$invalidProperties[] = "'are_cases_required' 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 string
*/
public function getShipmentId()
{
return $this->container['shipment_id'];
}
/**
* Sets shipment_id.
*
* @param string $shipment_id the shipment identifier submitted in the request
*
* @return $this
*/
public function setShipmentId($shipment_id)
{
$this->container['shipment_id'] = $shipment_id;
return $this;
}
/**
* Gets shipment_name.
*
* @return string
*/
public function getShipmentName()
{
return $this->container['shipment_name'];
}
/**
* Sets shipment_name.
*
* @param string $shipment_name the name for the inbound shipment
*
* @return $this
*/
public function setShipmentName($shipment_name)
{
$this->container['shipment_name'] = $shipment_name;
return $this;
}
/**
* Gets ship_from_address.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Address
*/
public function getShipFromAddress()
{
return $this->container['ship_from_address'];
}
/**
* Sets ship_from_address.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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 destination_fulfillment_center_id.
*
* @return string
*/
public function getDestinationFulfillmentCenterId()
{
return $this->container['destination_fulfillment_center_id'];
}
/**
* Sets destination_fulfillment_center_id.
*
* @param string $destination_fulfillment_center_id an Amazon fulfillment center identifier created by Amazon
*
* @return $this
*/
public function setDestinationFulfillmentCenterId($destination_fulfillment_center_id)
{
$this->container['destination_fulfillment_center_id'] = $destination_fulfillment_center_id;
return $this;
}
/**
* Gets shipment_status.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentStatus
*/
public function getShipmentStatus()
{
return $this->container['shipment_status'];
}
/**
* Sets shipment_status.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ShipmentStatus $shipment_status shipment_status
*
* @return $this
*/
public function setShipmentStatus($shipment_status)
{
$this->container['shipment_status'] = $shipment_status;
return $this;
}
/**
* Gets label_prep_type.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepType
*/
public function getLabelPrepType()
{
return $this->container['label_prep_type'];
}
/**
* Sets label_prep_type.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepType $label_prep_type label_prep_type
*
* @return $this
*/
public function setLabelPrepType($label_prep_type)
{
$this->container['label_prep_type'] = $label_prep_type;
return $this;
}
/**
* Gets are_cases_required.
*
* @return bool
*/
public function getAreCasesRequired()
{
return $this->container['are_cases_required'];
}
/**
* Sets are_cases_required.
*
* @param bool $are_cases_required Indicates whether or not an inbound shipment contains case-packed boxes. When AreCasesRequired = true for an inbound shipment, all items in the inbound shipment must be case packed.
*
* @return $this
*/
public function setAreCasesRequired($are_cases_required)
{
$this->container['are_cases_required'] = $are_cases_required;
return $this;
}
/**
* Gets confirmed_need_by_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType
*/
public function getConfirmedNeedByDate()
{
return $this->container['confirmed_need_by_date'];
}
/**
* Sets confirmed_need_by_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType $confirmed_need_by_date confirmed_need_by_date
*
* @return $this
*/
public function setConfirmedNeedByDate($confirmed_need_by_date)
{
$this->container['confirmed_need_by_date'] = $confirmed_need_by_date;
return $this;
}
/**
* Gets box_contents_source.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BoxContentsSource
*/
public function getBoxContentsSource()
{
return $this->container['box_contents_source'];
}
/**
* Sets box_contents_source.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BoxContentsSource $box_contents_source box_contents_source
*
* @return $this
*/
public function setBoxContentsSource($box_contents_source)
{
$this->container['box_contents_source'] = $box_contents_source;
return $this;
}
/**
* Gets estimated_box_contents_fee.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BoxContentsFeeDetails
*/
public function getEstimatedBoxContentsFee()
{
return $this->container['estimated_box_contents_fee'];
}
/**
* Sets estimated_box_contents_fee.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\BoxContentsFeeDetails $estimated_box_contents_fee estimated_box_contents_fee
*
* @return $this
*/
public function setEstimatedBoxContentsFee($estimated_box_contents_fee)
{
$this->container['estimated_box_contents_fee'] = $estimated_box_contents_fee;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentInbound/LabelPrepPreference.php | lib/Models/FulfillmentInbound/LabelPrepPreference.php | <?php
/**
* LabelPrepPreference.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
/**
* LabelPrepPreference Class Doc Comment.
*
* @description The preference for label preparation for an inbound shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class LabelPrepPreference
{
/**
* Possible values of this enum.
*/
const SELLER_LABEL = 'SELLER_LABEL';
const AMAZON_LABEL_ONLY = 'AMAZON_LABEL_ONLY';
const AMAZON_LABEL_PREFERRED = 'AMAZON_LABEL_PREFERRED';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::SELLER_LABEL,
self::AMAZON_LABEL_ONLY,
self::AMAZON_LABEL_PREFERRED, ];
}
}
| 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/FulfillmentInbound/ConfirmPreorderResult.php | lib/Models/FulfillmentInbound/ConfirmPreorderResult.php | <?php
/**
* ConfirmPreorderResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ConfirmPreorderResult Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ConfirmPreorderResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ConfirmPreorderResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'confirmed_need_by_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType',
'confirmed_fulfillable_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'confirmed_need_by_date' => null,
'confirmed_fulfillable_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 = [
'confirmed_need_by_date' => 'ConfirmedNeedByDate',
'confirmed_fulfillable_date' => 'ConfirmedFulfillableDate', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'confirmed_need_by_date' => 'setConfirmedNeedByDate',
'confirmed_fulfillable_date' => 'setConfirmedFulfillableDate', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'confirmed_need_by_date' => 'getConfirmedNeedByDate',
'confirmed_fulfillable_date' => 'getConfirmedFulfillableDate', ];
/**
* 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['confirmed_need_by_date'] = isset($data['confirmed_need_by_date']) ? $data['confirmed_need_by_date'] : null;
$this->container['confirmed_fulfillable_date'] = isset($data['confirmed_fulfillable_date']) ? $data['confirmed_fulfillable_date'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets confirmed_need_by_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType
*/
public function getConfirmedNeedByDate()
{
return $this->container['confirmed_need_by_date'];
}
/**
* Sets confirmed_need_by_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType $confirmed_need_by_date confirmed_need_by_date
*
* @return $this
*/
public function setConfirmedNeedByDate($confirmed_need_by_date)
{
$this->container['confirmed_need_by_date'] = $confirmed_need_by_date;
return $this;
}
/**
* Gets confirmed_fulfillable_date.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType
*/
public function getConfirmedFulfillableDate()
{
return $this->container['confirmed_fulfillable_date'];
}
/**
* Sets confirmed_fulfillable_date.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\DateStringType $confirmed_fulfillable_date confirmed_fulfillable_date
*
* @return $this
*/
public function setConfirmedFulfillableDate($confirmed_fulfillable_date)
{
$this->container['confirmed_fulfillable_date'] = $confirmed_fulfillable_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/FulfillmentInbound/VoidTransportResponse.php | lib/Models/FulfillmentInbound/VoidTransportResponse.php | <?php
/**
* VoidTransportResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* VoidTransportResponse Class Doc Comment.
*
* @description The response schema for the voidTransport operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class VoidTransportResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'VoidTransportResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CommonTransportResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\CommonTransportResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CommonTransportResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/NonPartneredSmallParcelDataInput.php | lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataInput.php | <?php
/**
* NonPartneredSmallParcelDataInput.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NonPartneredSmallParcelDataInput Class Doc Comment.
*
* @description Information that you provide to Amazon about a Small Parcel shipment shipped by a carrier that has not partnered with Amazon.
*
* @author Stefan Neuhaus / ClouSale
*/
class NonPartneredSmallParcelDataInput implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NonPartneredSmallParcelDataInput';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'carrier_name' => 'string',
'package_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelPackageInputList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'carrier_name' => null,
'package_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 = [
'carrier_name' => 'CarrierName',
'package_list' => 'PackageList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'carrier_name' => 'setCarrierName',
'package_list' => 'setPackageList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'carrier_name' => 'getCarrierName',
'package_list' => 'getPackageList', ];
/**
* 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['package_list'] = isset($data['package_list']) ? $data['package_list'] : 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['package_list']) {
$invalidProperties[] = "'package_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 carrier_name.
*
* @return string
*/
public function getCarrierName()
{
return $this->container['carrier_name'];
}
/**
* Sets carrier_name.
*
* @param string $carrier_name the carrier that you are using for the inbound shipment
*
* @return $this
*/
public function setCarrierName($carrier_name)
{
$this->container['carrier_name'] = $carrier_name;
return $this;
}
/**
* Gets package_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelPackageInputList
*/
public function getPackageList()
{
return $this->container['package_list'];
}
/**
* Sets package_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\NonPartneredSmallParcelPackageInputList $package_list package_list
*
* @return $this
*/
public function setPackageList($package_list)
{
$this->container['package_list'] = $package_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/FulfillmentInbound/SKUInboundGuidance.php | lib/Models/FulfillmentInbound/SKUInboundGuidance.php | <?php
/**
* SKUInboundGuidance.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SKUInboundGuidance Class Doc Comment.
*
* @description Reasons why a given seller SKU is not recommended for shipment to Amazon's fulfillment network.
*
* @author Stefan Neuhaus / ClouSale
*/
class SKUInboundGuidance implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SKUInboundGuidance';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'seller_sku' => 'string',
'asin' => 'string',
'inbound_guidance' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundGuidance',
'guidance_reason_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GuidanceReasonList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'seller_sku' => null,
'asin' => null,
'inbound_guidance' => null,
'guidance_reason_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 = [
'seller_sku' => 'SellerSKU',
'asin' => 'ASIN',
'inbound_guidance' => 'InboundGuidance',
'guidance_reason_list' => 'GuidanceReasonList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'seller_sku' => 'setSellerSku',
'asin' => 'setAsin',
'inbound_guidance' => 'setInboundGuidance',
'guidance_reason_list' => 'setGuidanceReasonList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'seller_sku' => 'getSellerSku',
'asin' => 'getAsin',
'inbound_guidance' => 'getInboundGuidance',
'guidance_reason_list' => 'getGuidanceReasonList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['inbound_guidance'] = isset($data['inbound_guidance']) ? $data['inbound_guidance'] : null;
$this->container['guidance_reason_list'] = isset($data['guidance_reason_list']) ? $data['guidance_reason_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['seller_sku']) {
$invalidProperties[] = "'seller_sku' can't be null";
}
if (null === $this->container['asin']) {
$invalidProperties[] = "'asin' can't be null";
}
if (null === $this->container['inbound_guidance']) {
$invalidProperties[] = "'inbound_guidance' 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 seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku the seller SKU of the item
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets inbound_guidance.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundGuidance
*/
public function getInboundGuidance()
{
return $this->container['inbound_guidance'];
}
/**
* Sets inbound_guidance.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundGuidance $inbound_guidance inbound_guidance
*
* @return $this
*/
public function setInboundGuidance($inbound_guidance)
{
$this->container['inbound_guidance'] = $inbound_guidance;
return $this;
}
/**
* Gets guidance_reason_list.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GuidanceReasonList
*/
public function getGuidanceReasonList()
{
return $this->container['guidance_reason_list'];
}
/**
* Sets guidance_reason_list.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GuidanceReasonList $guidance_reason_list guidance_reason_list
*
* @return $this
*/
public function setGuidanceReasonList($guidance_reason_list)
{
$this->container['guidance_reason_list'] = $guidance_reason_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/FulfillmentInbound/GetPreorderInfoResponse.php | lib/Models/FulfillmentInbound/GetPreorderInfoResponse.php | <?php
/**
* GetPreorderInfoResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetPreorderInfoResponse Class Doc Comment.
*
* @description The response schema for the getPreorderInfo operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetPreorderInfoResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetPreorderInfoResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPreorderInfoResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\GetPreorderInfoResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPreorderInfoResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/InboundShipmentList.php | lib/Models/FulfillmentInbound/InboundShipmentList.php | <?php
/**
* InboundShipmentList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentList Class Doc Comment.
*
* @description A list of inbound shipment information.
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentList';
/**
* 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 InboundShipmentInfo::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/FulfillmentInbound/InboundShipmentResponse.php | lib/Models/FulfillmentInbound/InboundShipmentResponse.php | <?php
/**
* InboundShipmentResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentResponse Class Doc Comment.
*
* @description The response schema for this operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\InboundShipmentResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/GetInboundGuidanceResponse.php | lib/Models/FulfillmentInbound/GetInboundGuidanceResponse.php | <?php
/**
* GetInboundGuidanceResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetInboundGuidanceResponse Class Doc Comment.
*
* @description The response schema for the getInboundGuidance operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetInboundGuidanceResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetInboundGuidanceResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetInboundGuidanceResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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\FulfillmentInbound\GetInboundGuidanceResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetInboundGuidanceResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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/FulfillmentInbound/InvalidASIN.php | lib/Models/FulfillmentInbound/InvalidASIN.php | <?php
/**
* InvalidASIN.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InvalidASIN Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class InvalidASIN implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InvalidASIN';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'asin' => 'string',
'error_reason' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorReason', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'asin' => null,
'error_reason' => 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',
'error_reason' => 'ErrorReason', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'asin' => 'setAsin',
'error_reason' => 'setErrorReason', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'asin' => 'getAsin',
'error_reason' => 'getErrorReason', ];
/**
* 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['error_reason'] = isset($data['error_reason']) ? $data['error_reason'] : 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) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets error_reason.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorReason
*/
public function getErrorReason()
{
return $this->container['error_reason'];
}
/**
* Sets error_reason.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ErrorReason $error_reason error_reason
*
* @return $this
*/
public function setErrorReason($error_reason)
{
$this->container['error_reason'] = $error_reason;
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/FulfillmentInbound/CreateInboundShipmentPlanRequest.php | lib/Models/FulfillmentInbound/CreateInboundShipmentPlanRequest.php | <?php
/**
* CreateInboundShipmentPlanRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateInboundShipmentPlanRequest Class Doc Comment.
*
* @description The request schema for the createInboundShipmentPlan operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateInboundShipmentPlanRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateInboundShipmentPlanRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'ship_from_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Address',
'label_prep_preference' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepPreference',
'ship_to_country_code' => 'string',
'ship_to_country_subdivision_code' => 'string',
'inbound_shipment_plan_request_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentPlanRequestItemList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'ship_from_address' => null,
'label_prep_preference' => null,
'ship_to_country_code' => null,
'ship_to_country_subdivision_code' => null,
'inbound_shipment_plan_request_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 = [
'ship_from_address' => 'ShipFromAddress',
'label_prep_preference' => 'LabelPrepPreference',
'ship_to_country_code' => 'ShipToCountryCode',
'ship_to_country_subdivision_code' => 'ShipToCountrySubdivisionCode',
'inbound_shipment_plan_request_items' => 'InboundShipmentPlanRequestItems', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'ship_from_address' => 'setShipFromAddress',
'label_prep_preference' => 'setLabelPrepPreference',
'ship_to_country_code' => 'setShipToCountryCode',
'ship_to_country_subdivision_code' => 'setShipToCountrySubdivisionCode',
'inbound_shipment_plan_request_items' => 'setInboundShipmentPlanRequestItems', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'ship_from_address' => 'getShipFromAddress',
'label_prep_preference' => 'getLabelPrepPreference',
'ship_to_country_code' => 'getShipToCountryCode',
'ship_to_country_subdivision_code' => 'getShipToCountrySubdivisionCode',
'inbound_shipment_plan_request_items' => 'getInboundShipmentPlanRequestItems', ];
/**
* 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['ship_from_address'] = isset($data['ship_from_address']) ? $data['ship_from_address'] : null;
$this->container['label_prep_preference'] = isset($data['label_prep_preference']) ? $data['label_prep_preference'] : null;
$this->container['ship_to_country_code'] = isset($data['ship_to_country_code']) ? $data['ship_to_country_code'] : null;
$this->container['ship_to_country_subdivision_code'] = isset($data['ship_to_country_subdivision_code']) ? $data['ship_to_country_subdivision_code'] : null;
$this->container['inbound_shipment_plan_request_items'] = isset($data['inbound_shipment_plan_request_items']) ? $data['inbound_shipment_plan_request_items'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['ship_from_address']) {
$invalidProperties[] = "'ship_from_address' can't be null";
}
if (null === $this->container['label_prep_preference']) {
$invalidProperties[] = "'label_prep_preference' can't be null";
}
if (null === $this->container['inbound_shipment_plan_request_items']) {
$invalidProperties[] = "'inbound_shipment_plan_request_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 ship_from_address.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\Address
*/
public function getShipFromAddress()
{
return $this->container['ship_from_address'];
}
/**
* Sets ship_from_address.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\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 label_prep_preference.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepPreference
*/
public function getLabelPrepPreference()
{
return $this->container['label_prep_preference'];
}
/**
* Sets label_prep_preference.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\LabelPrepPreference $label_prep_preference label_prep_preference
*
* @return $this
*/
public function setLabelPrepPreference($label_prep_preference)
{
$this->container['label_prep_preference'] = $label_prep_preference;
return $this;
}
/**
* Gets ship_to_country_code.
*
* @return string
*/
public function getShipToCountryCode()
{
return $this->container['ship_to_country_code'];
}
/**
* Sets ship_to_country_code.
*
* @param string $ship_to_country_code The two-character country code for the country where the inbound shipment is to be sent. Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error. Values: ShipToCountryCode values for North America: * CA – Canada * MX - Mexico * US - United States ShipToCountryCode values for MCI sellers in Europe: * DE – Germany * ES – Spain * FR – France * GB – United Kingdom * IT – Italy Default: The country code for the seller's home marketplace.
*
* @return $this
*/
public function setShipToCountryCode($ship_to_country_code)
{
$this->container['ship_to_country_code'] = $ship_to_country_code;
return $this;
}
/**
* Gets ship_to_country_subdivision_code.
*
* @return string
*/
public function getShipToCountrySubdivisionCode()
{
return $this->container['ship_to_country_subdivision_code'];
}
/**
* Sets ship_to_country_subdivision_code.
*
* @param string $ship_to_country_subdivision_code The two-character country code, followed by a dash and then up to three characters that represent the subdivision of the country where the inbound shipment is to be sent. For example, \"IN-MH\". In full ISO 3166-2 format. Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error.
*
* @return $this
*/
public function setShipToCountrySubdivisionCode($ship_to_country_subdivision_code)
{
$this->container['ship_to_country_subdivision_code'] = $ship_to_country_subdivision_code;
return $this;
}
/**
* Gets inbound_shipment_plan_request_items.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentPlanRequestItemList
*/
public function getInboundShipmentPlanRequestItems()
{
return $this->container['inbound_shipment_plan_request_items'];
}
/**
* Sets inbound_shipment_plan_request_items.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentPlanRequestItemList $inbound_shipment_plan_request_items inbound_shipment_plan_request_items
*
* @return $this
*/
public function setInboundShipmentPlanRequestItems($inbound_shipment_plan_request_items)
{
$this->container['inbound_shipment_plan_request_items'] = $inbound_shipment_plan_request_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/FulfillmentInbound/InboundShipmentRequest.php | lib/Models/FulfillmentInbound/InboundShipmentRequest.php | <?php
/**
* InboundShipmentRequest.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Fulfillment Inbound.
*
* The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* InboundShipmentRequest Class Doc Comment.
*
* @description The request schema for an inbound shipment.
*
* @author Stefan Neuhaus / ClouSale
*/
class InboundShipmentRequest implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InboundShipmentRequest';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'inbound_shipment_header' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentHeader',
'inbound_shipment_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentItemList',
'marketplace_id' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'inbound_shipment_header' => null,
'inbound_shipment_items' => null,
'marketplace_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 = [
'inbound_shipment_header' => 'InboundShipmentHeader',
'inbound_shipment_items' => 'InboundShipmentItems',
'marketplace_id' => 'MarketplaceId', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'inbound_shipment_header' => 'setInboundShipmentHeader',
'inbound_shipment_items' => 'setInboundShipmentItems',
'marketplace_id' => 'setMarketplaceId', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'inbound_shipment_header' => 'getInboundShipmentHeader',
'inbound_shipment_items' => 'getInboundShipmentItems',
'marketplace_id' => 'getMarketplaceId', ];
/**
* 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['inbound_shipment_header'] = isset($data['inbound_shipment_header']) ? $data['inbound_shipment_header'] : null;
$this->container['inbound_shipment_items'] = isset($data['inbound_shipment_items']) ? $data['inbound_shipment_items'] : null;
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['inbound_shipment_header']) {
$invalidProperties[] = "'inbound_shipment_header' can't be null";
}
if (null === $this->container['inbound_shipment_items']) {
$invalidProperties[] = "'inbound_shipment_items' can't be null";
}
if (null === $this->container['marketplace_id']) {
$invalidProperties[] = "'marketplace_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 inbound_shipment_header.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentHeader
*/
public function getInboundShipmentHeader()
{
return $this->container['inbound_shipment_header'];
}
/**
* Sets inbound_shipment_header.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentHeader $inbound_shipment_header inbound_shipment_header
*
* @return $this
*/
public function setInboundShipmentHeader($inbound_shipment_header)
{
$this->container['inbound_shipment_header'] = $inbound_shipment_header;
return $this;
}
/**
* Gets inbound_shipment_items.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentItemList
*/
public function getInboundShipmentItems()
{
return $this->container['inbound_shipment_items'];
}
/**
* Sets inbound_shipment_items.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentItemList $inbound_shipment_items inbound_shipment_items
*
* @return $this
*/
public function setInboundShipmentItems($inbound_shipment_items)
{
$this->container['inbound_shipment_items'] = $inbound_shipment_items;
return $this;
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored.
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.