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/Orders/OrderBuyerInfo.php
lib/Models/Orders/OrderBuyerInfo.php
<?php /** * OrderBuyerInfo. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * OrderBuyerInfo Class Doc Comment. * * @description Buyer information for an order. * * @author Stefan Neuhaus / ClouSale */ class OrderBuyerInfo implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'OrderBuyerInfo'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'amazon_order_id' => 'string', 'buyer_email' => 'string', 'buyer_name' => 'string', 'buyer_county' => 'string', 'buyer_tax_info' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\BuyerTaxInfo', 'purchase_order_number' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'amazon_order_id' => null, 'buyer_email' => null, 'buyer_name' => null, 'buyer_county' => null, 'buyer_tax_info' => null, 'purchase_order_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 = [ 'amazon_order_id' => 'AmazonOrderId', 'buyer_email' => 'BuyerEmail', 'buyer_name' => 'BuyerName', 'buyer_county' => 'BuyerCounty', 'buyer_tax_info' => 'BuyerTaxInfo', 'purchase_order_number' => 'PurchaseOrderNumber', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'amazon_order_id' => 'setAmazonOrderId', 'buyer_email' => 'setBuyerEmail', 'buyer_name' => 'setBuyerName', 'buyer_county' => 'setBuyerCounty', 'buyer_tax_info' => 'setBuyerTaxInfo', 'purchase_order_number' => 'setPurchaseOrderNumber', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'amazon_order_id' => 'getAmazonOrderId', 'buyer_email' => 'getBuyerEmail', 'buyer_name' => 'getBuyerName', 'buyer_county' => 'getBuyerCounty', 'buyer_tax_info' => 'getBuyerTaxInfo', 'purchase_order_number' => 'getPurchaseOrderNumber', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null; $this->container['buyer_email'] = isset($data['buyer_email']) ? $data['buyer_email'] : null; $this->container['buyer_name'] = isset($data['buyer_name']) ? $data['buyer_name'] : null; $this->container['buyer_county'] = isset($data['buyer_county']) ? $data['buyer_county'] : null; $this->container['buyer_tax_info'] = isset($data['buyer_tax_info']) ? $data['buyer_tax_info'] : null; $this->container['purchase_order_number'] = isset($data['purchase_order_number']) ? $data['purchase_order_number'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['amazon_order_id']) { $invalidProperties[] = "'amazon_order_id' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets amazon_order_id. * * @return string */ public function getAmazonOrderId() { return $this->container['amazon_order_id']; } /** * Sets amazon_order_id. * * @param string $amazon_order_id an Amazon-defined order identifier, in 3-7-7 format * * @return $this */ public function setAmazonOrderId($amazon_order_id) { $this->container['amazon_order_id'] = $amazon_order_id; return $this; } /** * Gets buyer_email. * * @return string */ public function getBuyerEmail() { return $this->container['buyer_email']; } /** * Sets buyer_email. * * @param string $buyer_email the anonymized email address of the buyer * * @return $this */ public function setBuyerEmail($buyer_email) { $this->container['buyer_email'] = $buyer_email; return $this; } /** * Gets buyer_name. * * @return string */ public function getBuyerName() { return $this->container['buyer_name']; } /** * Sets buyer_name. * * @param string $buyer_name the name of the buyer * * @return $this */ public function setBuyerName($buyer_name) { $this->container['buyer_name'] = $buyer_name; return $this; } /** * Gets buyer_county. * * @return string */ public function getBuyerCounty() { return $this->container['buyer_county']; } /** * Sets buyer_county. * * @param string $buyer_county the county of the buyer * * @return $this */ public function setBuyerCounty($buyer_county) { $this->container['buyer_county'] = $buyer_county; return $this; } /** * Gets buyer_tax_info. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\BuyerTaxInfo */ public function getBuyerTaxInfo() { return $this->container['buyer_tax_info']; } /** * Sets buyer_tax_info. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\BuyerTaxInfo $buyer_tax_info buyer_tax_info * * @return $this */ public function setBuyerTaxInfo($buyer_tax_info) { $this->container['buyer_tax_info'] = $buyer_tax_info; return $this; } /** * Gets purchase_order_number. * * @return string */ public function getPurchaseOrderNumber() { return $this->container['purchase_order_number']; } /** * Sets purchase_order_number. * * @param string $purchase_order_number The purchase order (PO) number entered by the buyer at checkout. Returned only for orders where the buyer entered a PO number at checkout. * * @return $this */ public function setPurchaseOrderNumber($purchase_order_number) { $this->container['purchase_order_number'] = $purchase_order_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/Orders/TaxCollection.php
lib/Models/Orders/TaxCollection.php
<?php /** * TaxCollection. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TaxCollection Class Doc Comment. * * @description Information about withheld taxes. * * @author Stefan Neuhaus / ClouSale */ class TaxCollection implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TaxCollection'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'model' => 'string', 'responsible_party' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'model' => null, 'responsible_party' => 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 = [ 'model' => 'Model', 'responsible_party' => 'ResponsibleParty', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'model' => 'setModel', 'responsible_party' => 'setResponsibleParty', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'model' => 'getModel', 'responsible_party' => 'getResponsibleParty', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 MODEL_MARKETPLACE_FACILITATOR = 'MarketplaceFacilitator'; const RESPONSIBLE_PARTY_AMAZON_SERVICES_INC = 'Amazon Services, Inc.'; /** * Gets allowable values of the enum. * * @return string[] */ public function getModelAllowableValues() { return [ self::MODEL_MARKETPLACE_FACILITATOR, ]; } /** * Gets allowable values of the enum. * * @return string[] */ public function getResponsiblePartyAllowableValues() { return [ self::RESPONSIBLE_PARTY_AMAZON_SERVICES_INC, ]; } /** * Associative array for storing 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['model'] = isset($data['model']) ? $data['model'] : null; $this->container['responsible_party'] = isset($data['responsible_party']) ? $data['responsible_party'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getModelAllowableValues(); if (!is_null($this->container['model']) && !in_array($this->container['model'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'model', must be one of '%s'", implode("', '", $allowedValues) ); } $allowedValues = $this->getResponsiblePartyAllowableValues(); if (!is_null($this->container['responsible_party']) && !in_array($this->container['responsible_party'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'responsible_party', 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 model. * * @return string */ public function getModel() { return $this->container['model']; } /** * Sets model. * * @param string $model the tax collection model applied to the item * * @return $this */ public function setModel($model) { $allowedValues = $this->getModelAllowableValues(); if (!is_null($model) && !in_array($model, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'model', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['model'] = $model; return $this; } /** * Gets responsible_party. * * @return string */ public function getResponsibleParty() { return $this->container['responsible_party']; } /** * Sets responsible_party. * * @param string $responsible_party the party responsible for withholding the taxes and remitting them to the taxing authority * * @return $this */ public function setResponsibleParty($responsible_party) { $allowedValues = $this->getResponsiblePartyAllowableValues(); if (!is_null($responsible_party) && !in_array($responsible_party, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'responsible_party', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['responsible_party'] = $responsible_party; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/FulfillmentInstruction.php
lib/Models/Orders/FulfillmentInstruction.php
<?php /** * FulfillmentInstruction. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentInstruction Class Doc Comment. * * @description Contains the instructions about the fulfillment like where should it be fulfilled from. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentInstruction implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentInstruction'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'fulfillment_supply_source_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'fulfillment_supply_source_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 = [ 'fulfillment_supply_source_id' => 'FulfillmentSupplySourceId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'fulfillment_supply_source_id' => 'setFulfillmentSupplySourceId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'fulfillment_supply_source_id' => 'getFulfillmentSupplySourceId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['fulfillment_supply_source_id'] = isset($data['fulfillment_supply_source_id']) ? $data['fulfillment_supply_source_id'] : 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 fulfillment_supply_source_id. * * @return string */ public function getFulfillmentSupplySourceId() { return $this->container['fulfillment_supply_source_id']; } /** * Sets fulfillment_supply_source_id. * * @param string $fulfillment_supply_source_id denotes the recommended sourceId where the order should be fulfilled from * * @return $this */ public function setFulfillmentSupplySourceId($fulfillment_supply_source_id) { $this->container['fulfillment_supply_source_id'] = $fulfillment_supply_source_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/PaymentExecutionDetailItem.php
lib/Models/Orders/PaymentExecutionDetailItem.php
<?php /** * PaymentExecutionDetailItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * PaymentExecutionDetailItem Class Doc Comment. * * @description Information about a sub-payment method used to pay for a COD order. * * @author Stefan Neuhaus / ClouSale */ class PaymentExecutionDetailItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'PaymentExecutionDetailItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payment' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money', 'payment_method' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payment' => null, 'payment_method' => 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 = [ 'payment' => 'Payment', 'payment_method' => 'PaymentMethod', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payment' => 'setPayment', 'payment_method' => 'setPaymentMethod', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payment' => 'getPayment', 'payment_method' => 'getPaymentMethod', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['payment'] = isset($data['payment']) ? $data['payment'] : null; $this->container['payment_method'] = isset($data['payment_method']) ? $data['payment_method'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['payment']) { $invalidProperties[] = "'payment' can't be null"; } if (null === $this->container['payment_method']) { $invalidProperties[] = "'payment_method' 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 payment. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money */ public function getPayment() { return $this->container['payment']; } /** * Sets payment. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $payment payment * * @return $this */ public function setPayment($payment) { $this->container['payment'] = $payment; return $this; } /** * Gets payment_method. * * @return string */ public function getPaymentMethod() { return $this->container['payment_method']; } /** * Sets payment_method. * * @param string $payment_method A sub-payment method for a COD order. Possible values: * COD - Cash On Delivery. * GC - Gift Card. * PointsAccount - Amazon Points. * * @return $this */ public function setPaymentMethod($payment_method) { $this->container['payment_method'] = $payment_method; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/GetOrderItemsResponse.php
lib/Models/Orders/GetOrderItemsResponse.php
<?php /** * GetOrderItemsResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetOrderItemsResponse Class Doc Comment. * * @description The response schema for the getOrderItems operation. * * @author Stefan Neuhaus / ClouSale */ class GetOrderItemsResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetOrderItemsResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemsList', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payload' => null, 'errors' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', 'errors' => 'errors', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'errors' => 'setErrors', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['payload'] = isset($data['payload']) ? $data['payload'] : null; $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemsList */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemsList $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList $errors errors * * @return $this */ public function setErrors($errors) { $this->container['errors'] = $errors; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/PointsGrantedDetail.php
lib/Models/Orders/PointsGrantedDetail.php
<?php /** * PointsGrantedDetail. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * PointsGrantedDetail Class Doc Comment. * * @description The number of Amazon Points offered with the purchase of an item, and their monetary value. * * @author Stefan Neuhaus / ClouSale */ class PointsGrantedDetail implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'PointsGrantedDetail'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'points_number' => 'int', 'points_monetary_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'points_number' => null, 'points_monetary_value' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'points_number' => 'PointsNumber', 'points_monetary_value' => 'PointsMonetaryValue', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'points_number' => 'setPointsNumber', 'points_monetary_value' => 'setPointsMonetaryValue', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'points_number' => 'getPointsNumber', 'points_monetary_value' => 'getPointsMonetaryValue', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['points_number'] = isset($data['points_number']) ? $data['points_number'] : null; $this->container['points_monetary_value'] = isset($data['points_monetary_value']) ? $data['points_monetary_value'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets points_number. * * @return int */ public function getPointsNumber() { return $this->container['points_number']; } /** * Sets points_number. * * @param int $points_number the number of Amazon Points granted with the purchase of an item * * @return $this */ public function setPointsNumber($points_number) { $this->container['points_number'] = $points_number; return $this; } /** * Gets points_monetary_value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money */ public function getPointsMonetaryValue() { return $this->container['points_monetary_value']; } /** * Sets points_monetary_value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Money $points_monetary_value points_monetary_value * * @return $this */ public function setPointsMonetaryValue($points_monetary_value) { $this->container['points_monetary_value'] = $points_monetary_value; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/OrdersList.php
lib/Models/Orders/OrdersList.php
<?php /** * OrdersList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * OrdersList Class Doc Comment. * * @description A list of orders along with additional information to make subsequent API calls. * * @author Stefan Neuhaus / ClouSale */ class OrdersList implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'OrdersList'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'orders' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderList', 'next_token' => 'string', 'last_updated_before' => 'string', 'created_before' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'orders' => null, 'next_token' => null, 'last_updated_before' => null, 'created_before' => 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 = [ 'orders' => 'Orders', 'next_token' => 'NextToken', 'last_updated_before' => 'LastUpdatedBefore', 'created_before' => 'CreatedBefore', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'orders' => 'setOrders', 'next_token' => 'setNextToken', 'last_updated_before' => 'setLastUpdatedBefore', 'created_before' => 'setCreatedBefore', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'orders' => 'getOrders', 'next_token' => 'getNextToken', 'last_updated_before' => 'getLastUpdatedBefore', 'created_before' => 'getCreatedBefore', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['orders'] = isset($data['orders']) ? $data['orders'] : null; $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; $this->container['last_updated_before'] = isset($data['last_updated_before']) ? $data['last_updated_before'] : null; $this->container['created_before'] = isset($data['created_before']) ? $data['created_before'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['orders']) { $invalidProperties[] = "'orders' 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 orders. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderList */ public function getOrders() { return $this->container['orders']; } /** * Sets orders. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderList $orders orders * * @return $this */ public function setOrders($orders) { $this->container['orders'] = $orders; return $this; } /** * Gets next_token. * * @return string */ public function getNextToken() { return $this->container['next_token']; } /** * Sets next_token. * * @param string $next_token when present and not empty, pass this string token in the next request to return the next response page * * @return $this */ public function setNextToken($next_token) { $this->container['next_token'] = $next_token; return $this; } /** * Gets last_updated_before. * * @return string */ public function getLastUpdatedBefore() { return $this->container['last_updated_before']; } /** * Sets last_updated_before. * * @param string $last_updated_before A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. All dates must be in ISO 8601 format. * * @return $this */ public function setLastUpdatedBefore($last_updated_before) { $this->container['last_updated_before'] = $last_updated_before; return $this; } /** * Gets created_before. * * @return string */ public function getCreatedBefore() { return $this->container['created_before']; } /** * Sets created_before. * * @param string $created_before A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. * * @return $this */ public function setCreatedBefore($created_before) { $this->container['created_before'] = $created_before; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/OrderItemBuyerInfoList.php
lib/Models/Orders/OrderItemBuyerInfoList.php
<?php /** * OrderItemBuyerInfoList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * OrderItemBuyerInfoList Class Doc Comment. * * @description A single order item&#x27;s buyer information list. * * @author Stefan Neuhaus / ClouSale */ class OrderItemBuyerInfoList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'OrderItemBuyerInfoList'; /** * 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 OrderItemBuyerInfo::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/Error.php
lib/Models/Orders/Error.php
<?php /** * Error. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * 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/Orders/BuyerTaxInfo.php
lib/Models/Orders/BuyerTaxInfo.php
<?php /** * BuyerTaxInfo. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * BuyerTaxInfo Class Doc Comment. * * @description Tax information about the buyer. * * @author Stefan Neuhaus / ClouSale */ class BuyerTaxInfo implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'BuyerTaxInfo'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'company_legal_name' => 'string', 'taxing_region' => 'string', 'tax_classifications' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\TaxClassification[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'company_legal_name' => null, 'taxing_region' => null, 'tax_classifications' => 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 = [ 'company_legal_name' => 'CompanyLegalName', 'taxing_region' => 'TaxingRegion', 'tax_classifications' => 'TaxClassifications', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'company_legal_name' => 'setCompanyLegalName', 'taxing_region' => 'setTaxingRegion', 'tax_classifications' => 'setTaxClassifications', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'company_legal_name' => 'getCompanyLegalName', 'taxing_region' => 'getTaxingRegion', 'tax_classifications' => 'getTaxClassifications', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['company_legal_name'] = isset($data['company_legal_name']) ? $data['company_legal_name'] : null; $this->container['taxing_region'] = isset($data['taxing_region']) ? $data['taxing_region'] : null; $this->container['tax_classifications'] = isset($data['tax_classifications']) ? $data['tax_classifications'] : 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 company_legal_name. * * @return string */ public function getCompanyLegalName() { return $this->container['company_legal_name']; } /** * Sets company_legal_name. * * @param string $company_legal_name the legal name of the company * * @return $this */ public function setCompanyLegalName($company_legal_name) { $this->container['company_legal_name'] = $company_legal_name; return $this; } /** * Gets taxing_region. * * @return string */ public function getTaxingRegion() { return $this->container['taxing_region']; } /** * Sets taxing_region. * * @param string $taxing_region the country or region imposing the tax * * @return $this */ public function setTaxingRegion($taxing_region) { $this->container['taxing_region'] = $taxing_region; return $this; } /** * Gets tax_classifications. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\TaxClassification[] */ public function getTaxClassifications() { return $this->container['tax_classifications']; } /** * Sets tax_classifications. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\TaxClassification[] $tax_classifications a list of tax classifications that apply to the order * * @return $this */ public function setTaxClassifications($tax_classifications) { $this->container['tax_classifications'] = $tax_classifications; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/BuyerCustomizedInfoDetail.php
lib/Models/Orders/BuyerCustomizedInfoDetail.php
<?php /** * BuyerCustomizedInfoDetail. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * BuyerCustomizedInfoDetail Class Doc Comment. * * @description Buyer information for custom orders from the Amazon Custom program. * * @author Stefan Neuhaus / ClouSale */ class BuyerCustomizedInfoDetail implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'BuyerCustomizedInfoDetail'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'customized_url' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'customized_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 = [ 'customized_url' => 'CustomizedURL', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'customized_url' => 'setCustomizedUrl', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'customized_url' => 'getCustomizedUrl', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['customized_url'] = isset($data['customized_url']) ? $data['customized_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 customized_url. * * @return string */ public function getCustomizedUrl() { return $this->container['customized_url']; } /** * Sets customized_url. * * @param string $customized_url the location of a zip file containing Amazon Custom data * * @return $this */ public function setCustomizedUrl($customized_url) { $this->container['customized_url'] = $customized_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/Orders/PaymentMethodDetailItemList.php
lib/Models/Orders/PaymentMethodDetailItemList.php
<?php /** * PaymentMethodDetailItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * PaymentMethodDetailItemList Class Doc Comment. * * @description A list of payment method detail items. * * @author Stefan Neuhaus / ClouSale */ class PaymentMethodDetailItemList implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'PaymentMethodDetailItemList'; /** * 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/Orders/GetOrderItemsBuyerInfoResponse.php
lib/Models/Orders/GetOrderItemsBuyerInfoResponse.php
<?php /** * GetOrderItemsBuyerInfoResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetOrderItemsBuyerInfoResponse Class Doc Comment. * * @description The response schema for the getOrderItemsBuyerInfo operation. * * @author Stefan Neuhaus / ClouSale */ class GetOrderItemsBuyerInfoResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetOrderItemsBuyerInfoResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemsBuyerInfoList', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payload' => null, 'errors' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', 'errors' => 'errors', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'errors' => 'setErrors', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['payload'] = isset($data['payload']) ? $data['payload'] : null; $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemsBuyerInfoList */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderItemsBuyerInfoList $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList $errors errors * * @return $this */ public function setErrors($errors) { $this->container['errors'] = $errors; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/GetOrderAddressResponse.php
lib/Models/Orders/GetOrderAddressResponse.php
<?php /** * GetOrderAddressResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetOrderAddressResponse Class Doc Comment. * * @description The response schema for the getOrderAddress operation. * * @author Stefan Neuhaus / ClouSale */ class GetOrderAddressResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetOrderAddressResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderAddress', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payload' => null, 'errors' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', 'errors' => 'errors', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'errors' => 'setErrors', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['payload'] = isset($data['payload']) ? $data['payload'] : null; $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderAddress */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrderAddress $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList $errors errors * * @return $this */ public function setErrors($errors) { $this->container['errors'] = $errors; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/PromotionIdList.php
lib/Models/Orders/PromotionIdList.php
<?php /** * PromotionIdList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * PromotionIdList Class Doc Comment. * * @description A list of promotion identifiers provided by the seller when the promotions were created. * * @author Stefan Neuhaus / ClouSale */ class PromotionIdList implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'PromotionIdList'; /** * 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/Orders/OrderAddress.php
lib/Models/Orders/OrderAddress.php
<?php /** * OrderAddress. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * OrderAddress Class Doc Comment. * * @description The shipping address for the order. * * @author Stefan Neuhaus / ClouSale */ class OrderAddress implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'OrderAddress'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'amazon_order_id' => 'string', 'shipping_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Address', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'amazon_order_id' => null, 'shipping_address' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'amazon_order_id' => 'AmazonOrderId', 'shipping_address' => 'ShippingAddress', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'amazon_order_id' => 'setAmazonOrderId', 'shipping_address' => 'setShippingAddress', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'amazon_order_id' => 'getAmazonOrderId', 'shipping_address' => 'getShippingAddress', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null; $this->container['shipping_address'] = isset($data['shipping_address']) ? $data['shipping_address'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['amazon_order_id']) { $invalidProperties[] = "'amazon_order_id' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets amazon_order_id. * * @return string */ public function getAmazonOrderId() { return $this->container['amazon_order_id']; } /** * Sets amazon_order_id. * * @param string $amazon_order_id an Amazon-defined order identifier, in 3-7-7 format * * @return $this */ public function setAmazonOrderId($amazon_order_id) { $this->container['amazon_order_id'] = $amazon_order_id; return $this; } /** * Gets shipping_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Address */ public function getShippingAddress() { return $this->container['shipping_address']; } /** * Sets shipping_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Address $shipping_address shipping_address * * @return $this */ public function setShippingAddress($shipping_address) { $this->container['shipping_address'] = $shipping_address; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/GetOrderResponse.php
lib/Models/Orders/GetOrderResponse.php
<?php /** * GetOrderResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetOrderResponse Class Doc Comment. * * @description The response schema for the getOrder operation. * * @author Stefan Neuhaus / ClouSale */ class GetOrderResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetOrderResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\Order', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payload' => null, 'errors' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', 'errors' => 'errors', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'errors' => 'setErrors', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['payload'] = isset($data['payload']) ? $data['payload'] : null; $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Order */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\Order $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList $errors errors * * @return $this */ public function setErrors($errors) { $this->container['errors'] = $errors; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/GetOrdersResponse.php
lib/Models/Orders/GetOrdersResponse.php
<?php /** * GetOrdersResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetOrdersResponse Class Doc Comment. * * @description The response schema for the getOrders operation. * * @author Stefan Neuhaus / ClouSale */ class GetOrdersResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetOrdersResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrdersList', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payload' => null, 'errors' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', 'errors' => 'errors', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'errors' => 'setErrors', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['payload'] = isset($data['payload']) ? $data['payload'] : null; $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrdersList */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\OrdersList $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Orders\ErrorList $errors errors * * @return $this */ public function setErrors($errors) { $this->container['errors'] = $errors; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Orders/OrderItemList.php
lib/Models/Orders/OrderItemList.php
<?php /** * OrderItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Orders. * * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Orders; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * OrderItemList Class Doc Comment. * * @description A list of order items. * * @author Stefan Neuhaus / ClouSale */ class OrderItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'OrderItemList'; /** * 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 OrderItem::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/Services/ItemDeliveryPromise.php
lib/Models/Services/ItemDeliveryPromise.php
<?php /** * ItemDeliveryPromise. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ItemDeliveryPromise Class Doc Comment. * * @description Promised delivery information for the item. * * @author Stefan Neuhaus / ClouSale */ class ItemDeliveryPromise implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ItemDeliveryPromise'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'start_time' => '\DateTime', 'end_time' => '\DateTime', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'start_time' => 'date-time', 'end_time' => 'date-time', ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'start_time' => 'startTime', 'end_time' => 'endTime', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'start_time' => 'setStartTime', 'end_time' => 'setEndTime', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'start_time' => 'getStartTime', 'end_time' => 'getEndTime', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_time'] = isset($data['start_time']) ? $data['start_time'] : null; $this->container['end_time'] = isset($data['end_time']) ? $data['end_time'] : 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_time. * * @return \DateTime */ public function getStartTime() { return $this->container['start_time']; } /** * Sets start_time. * * @param \DateTime $start_time the date and time of the start of the promised delivery window, in ISO 8601 format * * @return $this */ public function setStartTime($start_time) { $this->container['start_time'] = $start_time; return $this; } /** * Gets end_time. * * @return \DateTime */ public function getEndTime() { return $this->container['end_time']; } /** * Sets end_time. * * @param \DateTime $end_time the date and time of the end of the promised delivery window, in ISO 8601 format * * @return $this */ public function setEndTime($end_time) { $this->container['end_time'] = $end_time; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Services/Appointment.php
lib/Models/Services/Appointment.php
<?php /** * Appointment. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Appointment Class Doc Comment. * * @description The details of an appointment. * * @author Stefan Neuhaus / ClouSale */ class Appointment implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Appointment'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'appointment_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId', 'appointment_status' => 'string', 'appointment_time' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime', 'assigned_technicians' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\Technician[]', 'rescheduled_appointment_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId', 'poa' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\Poa', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'appointment_id' => null, 'appointment_status' => null, 'appointment_time' => null, 'assigned_technicians' => null, 'rescheduled_appointment_id' => null, 'poa' => 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 = [ 'appointment_id' => 'appointmentId', 'appointment_status' => 'appointmentStatus', 'appointment_time' => 'appointmentTime', 'assigned_technicians' => 'assignedTechnicians', 'rescheduled_appointment_id' => 'rescheduledAppointmentId', 'poa' => 'poa', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'appointment_id' => 'setAppointmentId', 'appointment_status' => 'setAppointmentStatus', 'appointment_time' => 'setAppointmentTime', 'assigned_technicians' => 'setAssignedTechnicians', 'rescheduled_appointment_id' => 'setRescheduledAppointmentId', 'poa' => 'setPoa', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'appointment_id' => 'getAppointmentId', 'appointment_status' => 'getAppointmentStatus', 'appointment_time' => 'getAppointmentTime', 'assigned_technicians' => 'getAssignedTechnicians', 'rescheduled_appointment_id' => 'getRescheduledAppointmentId', 'poa' => 'getPoa', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 APPOINTMENT_STATUS_ACTIVE = 'ACTIVE'; const APPOINTMENT_STATUS_CANCELLED = 'CANCELLED'; const APPOINTMENT_STATUS_COMPLETED = 'COMPLETED'; /** * Gets allowable values of the enum. * * @return string[] */ public function getAppointmentStatusAllowableValues() { return [ self::APPOINTMENT_STATUS_ACTIVE, self::APPOINTMENT_STATUS_CANCELLED, self::APPOINTMENT_STATUS_COMPLETED, ]; } /** * Associative array for storing 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['appointment_id'] = isset($data['appointment_id']) ? $data['appointment_id'] : null; $this->container['appointment_status'] = isset($data['appointment_status']) ? $data['appointment_status'] : null; $this->container['appointment_time'] = isset($data['appointment_time']) ? $data['appointment_time'] : null; $this->container['assigned_technicians'] = isset($data['assigned_technicians']) ? $data['assigned_technicians'] : null; $this->container['rescheduled_appointment_id'] = isset($data['rescheduled_appointment_id']) ? $data['rescheduled_appointment_id'] : null; $this->container['poa'] = isset($data['poa']) ? $data['poa'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getAppointmentStatusAllowableValues(); if (!is_null($this->container['appointment_status']) && !in_array($this->container['appointment_status'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'appointment_status', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets appointment_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId */ public function getAppointmentId() { return $this->container['appointment_id']; } /** * Sets appointment_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId $appointment_id appointment_id * * @return $this */ public function setAppointmentId($appointment_id) { $this->container['appointment_id'] = $appointment_id; return $this; } /** * Gets appointment_status. * * @return string */ public function getAppointmentStatus() { return $this->container['appointment_status']; } /** * Sets appointment_status. * * @param string $appointment_status the status of the appointment * * @return $this */ public function setAppointmentStatus($appointment_status) { $allowedValues = $this->getAppointmentStatusAllowableValues(); if (!is_null($appointment_status) && !in_array($appointment_status, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'appointment_status', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['appointment_status'] = $appointment_status; return $this; } /** * Gets appointment_time. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime */ public function getAppointmentTime() { return $this->container['appointment_time']; } /** * Sets appointment_time. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime $appointment_time appointment_time * * @return $this */ public function setAppointmentTime($appointment_time) { $this->container['appointment_time'] = $appointment_time; return $this; } /** * Gets assigned_technicians. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\Technician[] */ public function getAssignedTechnicians() { return $this->container['assigned_technicians']; } /** * Sets assigned_technicians. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\Technician[] $assigned_technicians a list of technicians assigned to the service job * * @return $this */ public function setAssignedTechnicians($assigned_technicians) { $this->container['assigned_technicians'] = $assigned_technicians; return $this; } /** * Gets rescheduled_appointment_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId */ public function getRescheduledAppointmentId() { return $this->container['rescheduled_appointment_id']; } /** * Sets rescheduled_appointment_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId $rescheduled_appointment_id rescheduled_appointment_id * * @return $this */ public function setRescheduledAppointmentId($rescheduled_appointment_id) { $this->container['rescheduled_appointment_id'] = $rescheduled_appointment_id; return $this; } /** * Gets poa. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\Poa */ public function getPoa() { return $this->container['poa']; } /** * Sets poa. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\Poa $poa poa * * @return $this */ public function setPoa($poa) { $this->container['poa'] = $poa; 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/Services/AppointmentTimeInput.php
lib/Models/Services/AppointmentTimeInput.php
<?php /** * AppointmentTimeInput. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AppointmentTimeInput Class Doc Comment. * * @description The input appointment time details. * * @author Stefan Neuhaus / ClouSale */ class AppointmentTimeInput implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AppointmentTimeInput'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'start_time' => '\DateTime', 'duration_in_minutes' => 'int', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'start_time' => 'date-time', 'duration_in_minutes' => 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 = [ 'start_time' => 'startTime', 'duration_in_minutes' => 'durationInMinutes', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'start_time' => 'setStartTime', 'duration_in_minutes' => 'setDurationInMinutes', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'start_time' => 'getStartTime', 'duration_in_minutes' => 'getDurationInMinutes', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_time'] = isset($data['start_time']) ? $data['start_time'] : null; $this->container['duration_in_minutes'] = isset($data['duration_in_minutes']) ? $data['duration_in_minutes'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['start_time']) { $invalidProperties[] = "'start_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 start_time. * * @return \DateTime */ public function getStartTime() { return $this->container['start_time']; } /** * Sets start_time. * * @param \DateTime $start_time the date, time in UTC for the start time of an appointment in ISO 8601 format * * @return $this */ public function setStartTime($start_time) { $this->container['start_time'] = $start_time; return $this; } /** * Gets duration_in_minutes. * * @return int */ public function getDurationInMinutes() { return $this->container['duration_in_minutes']; } /** * Sets duration_in_minutes. * * @param int $duration_in_minutes the duration of an appointment in minutes * * @return $this */ public function setDurationInMinutes($duration_in_minutes) { $this->container['duration_in_minutes'] = $duration_in_minutes; 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/Services/GetServiceJobByServiceJobIdResponse.php
lib/Models/Services/GetServiceJobByServiceJobIdResponse.php
<?php /** * GetServiceJobByServiceJobIdResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetServiceJobByServiceJobIdResponse Class Doc Comment. * * @description The response schema for the GetServiceJobByServiceJobId operation. * * @author Stefan Neuhaus / ClouSale */ class GetServiceJobByServiceJobIdResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetServiceJobByServiceJobIdResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJob', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\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\Services\ServiceJob */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJob $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\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/Services/Address.php
lib/Models/Services/Address.php
<?php /** * Address. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Address Class Doc Comment. * * @description The shipping address for the service job. * * @author Stefan Neuhaus / ClouSale */ class Address implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Address'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'name' => 'string', 'address_line1' => 'string', 'address_line2' => 'string', 'address_line3' => 'string', 'city' => 'string', 'county' => 'string', 'district' => 'string', 'state_or_region' => 'string', 'postal_code' => 'string', 'country_code' => 'string', 'phone' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'name' => null, 'address_line1' => null, 'address_line2' => null, 'address_line3' => null, 'city' => null, 'county' => null, 'district' => null, 'state_or_region' => null, 'postal_code' => null, 'country_code' => null, 'phone' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'name' => 'name', 'address_line1' => 'addressLine1', 'address_line2' => 'addressLine2', 'address_line3' => 'addressLine3', 'city' => 'city', 'county' => 'county', 'district' => 'district', 'state_or_region' => 'stateOrRegion', 'postal_code' => 'postalCode', 'country_code' => 'countryCode', 'phone' => 'phone', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'name' => 'setName', 'address_line1' => 'setAddressLine1', 'address_line2' => 'setAddressLine2', 'address_line3' => 'setAddressLine3', 'city' => 'setCity', 'county' => 'setCounty', 'district' => 'setDistrict', 'state_or_region' => 'setStateOrRegion', 'postal_code' => 'setPostalCode', 'country_code' => 'setCountryCode', 'phone' => 'setPhone', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'name' => 'getName', 'address_line1' => 'getAddressLine1', 'address_line2' => 'getAddressLine2', 'address_line3' => 'getAddressLine3', 'city' => 'getCity', 'county' => 'getCounty', 'district' => 'getDistrict', 'state_or_region' => 'getStateOrRegion', 'postal_code' => 'getPostalCode', 'country_code' => 'getCountryCode', 'phone' => 'getPhone', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['address_line1'] = isset($data['address_line1']) ? $data['address_line1'] : null; $this->container['address_line2'] = isset($data['address_line2']) ? $data['address_line2'] : null; $this->container['address_line3'] = isset($data['address_line3']) ? $data['address_line3'] : null; $this->container['city'] = isset($data['city']) ? $data['city'] : null; $this->container['county'] = isset($data['county']) ? $data['county'] : null; $this->container['district'] = isset($data['district']) ? $data['district'] : null; $this->container['state_or_region'] = isset($data['state_or_region']) ? $data['state_or_region'] : null; $this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null; $this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null; $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null; } /** * 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"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets name. * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name. * * @param string $name the name of the person, business, or institution * * @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 first line of the address * * @return $this */ public function setAddressLine1($address_line1) { $this->container['address_line1'] = $address_line1; return $this; } /** * Gets address_line2. * * @return string */ public function getAddressLine2() { return $this->container['address_line2']; } /** * Sets address_line2. * * @param string $address_line2 additional address information, if required * * @return $this */ public function setAddressLine2($address_line2) { $this->container['address_line2'] = $address_line2; return $this; } /** * Gets address_line3. * * @return string */ public function getAddressLine3() { return $this->container['address_line3']; } /** * Sets address_line3. * * @param string $address_line3 additional address information, if required * * @return $this */ public function setAddressLine3($address_line3) { $this->container['address_line3'] = $address_line3; return $this; } /** * Gets city. * * @return string */ public function getCity() { return $this->container['city']; } /** * Sets city. * * @param string $city the city * * @return $this */ public function setCity($city) { $this->container['city'] = $city; return $this; } /** * Gets county. * * @return string */ public function getCounty() { return $this->container['county']; } /** * Sets county. * * @param string $county the county * * @return $this */ public function setCounty($county) { $this->container['county'] = $county; return $this; } /** * Gets district. * * @return string */ public function getDistrict() { return $this->container['district']; } /** * Sets district. * * @param string $district the district * * @return $this */ public function setDistrict($district) { $this->container['district'] = $district; return $this; } /** * Gets state_or_region. * * @return string */ public function getStateOrRegion() { return $this->container['state_or_region']; } /** * Sets state_or_region. * * @param string $state_or_region the state or region * * @return $this */ public function setStateOrRegion($state_or_region) { $this->container['state_or_region'] = $state_or_region; return $this; } /** * Gets postal_code. * * @return string */ public function getPostalCode() { return $this->container['postal_code']; } /** * Sets postal_code. * * @param string $postal_code The postal code. This can contain letters, digits, spaces, and/or punctuation. * * @return $this */ public function setPostalCode($postal_code) { $this->container['postal_code'] = $postal_code; return $this; } /** * Gets country_code. * * @return string */ public function getCountryCode() { return $this->container['country_code']; } /** * Sets country_code. * * @param string $country_code the two digit country code, in ISO 3166-1 alpha-2 format * * @return $this */ public function setCountryCode($country_code) { $this->container['country_code'] = $country_code; return $this; } /** * Gets phone. * * @return string */ public function getPhone() { return $this->container['phone']; } /** * Sets phone. * * @param string $phone the phone number * * @return $this */ public function setPhone($phone) { $this->container['phone'] = $phone; 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/Services/ItemDelivery.php
lib/Models/Services/ItemDelivery.php
<?php /** * ItemDelivery. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ItemDelivery Class Doc Comment. * * @description Delivery information for the item. * * @author Stefan Neuhaus / ClouSale */ class ItemDelivery implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ItemDelivery'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'estimated_delivery_date' => '\DateTime', 'item_delivery_promise' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ItemDeliveryPromise', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'estimated_delivery_date' => 'date-time', 'item_delivery_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 = [ 'estimated_delivery_date' => 'estimatedDeliveryDate', 'item_delivery_promise' => 'itemDeliveryPromise', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'estimated_delivery_date' => 'setEstimatedDeliveryDate', 'item_delivery_promise' => 'setItemDeliveryPromise', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'estimated_delivery_date' => 'getEstimatedDeliveryDate', 'item_delivery_promise' => 'getItemDeliveryPromise', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['estimated_delivery_date'] = isset($data['estimated_delivery_date']) ? $data['estimated_delivery_date'] : null; $this->container['item_delivery_promise'] = isset($data['item_delivery_promise']) ? $data['item_delivery_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 estimated_delivery_date. * * @return \DateTime */ public function getEstimatedDeliveryDate() { return $this->container['estimated_delivery_date']; } /** * Sets estimated_delivery_date. * * @param \DateTime $estimated_delivery_date The date and time of the latest Estimated Delivery Date (EDD) of all the items with an EDD. In ISO 8601 format. * * @return $this */ public function setEstimatedDeliveryDate($estimated_delivery_date) { $this->container['estimated_delivery_date'] = $estimated_delivery_date; return $this; } /** * Gets item_delivery_promise. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ItemDeliveryPromise */ public function getItemDeliveryPromise() { return $this->container['item_delivery_promise']; } /** * Sets item_delivery_promise. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\ItemDeliveryPromise $item_delivery_promise item_delivery_promise * * @return $this */ public function setItemDeliveryPromise($item_delivery_promise) { $this->container['item_delivery_promise'] = $item_delivery_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/Services/WarningList.php
lib/Models/Services/WarningList.php
<?php /** * WarningList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * WarningList Class Doc Comment. * * @description A list of warnings returned in the sucessful execution response of an API request. * * @author Stefan Neuhaus / ClouSale */ class WarningList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'WarningList'; /** * 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 Warning::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/Services/SetAppointmentResponse.php
lib/Models/Services/SetAppointmentResponse.php
<?php /** * SetAppointmentResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * SetAppointmentResponse Class Doc Comment. * * @description Response schema for add or reschedule appointment operation. * * @author Stefan Neuhaus / ClouSale */ class SetAppointmentResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'SetAppointmentResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'appointment_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId', 'warnings' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\WarningList', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ErrorList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'appointment_id' => null, 'warnings' => 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 = [ 'appointment_id' => 'appointmentId', 'warnings' => 'warnings', 'errors' => 'errors', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'appointment_id' => 'setAppointmentId', 'warnings' => 'setWarnings', 'errors' => 'setErrors', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'appointment_id' => 'getAppointmentId', 'warnings' => 'getWarnings', '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['appointment_id'] = isset($data['appointment_id']) ? $data['appointment_id'] : null; $this->container['warnings'] = isset($data['warnings']) ? $data['warnings'] : 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 appointment_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId */ public function getAppointmentId() { return $this->container['appointment_id']; } /** * Sets appointment_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentId $appointment_id appointment_id * * @return $this */ public function setAppointmentId($appointment_id) { $this->container['appointment_id'] = $appointment_id; return $this; } /** * Gets warnings. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\WarningList */ public function getWarnings() { return $this->container['warnings']; } /** * Sets warnings. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\WarningList $warnings warnings * * @return $this */ public function setWarnings($warnings) { $this->container['warnings'] = $warnings; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\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/Services/ErrorList.php
lib/Models/Services/ErrorList.php
<?php /** * ErrorList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; 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/Services/AppointmentId.php
lib/Models/Services/AppointmentId.php
<?php /** * AppointmentId. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AppointmentId Class Doc Comment. * * @description The appointment identifier. * * @author Stefan Neuhaus / ClouSale */ class AppointmentId implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AppointmentId'; /** * 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/Services/Seller.php
lib/Models/Services/Seller.php
<?php /** * Seller. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Seller Class Doc Comment. * * @description Information about the seller of the service job. * * @author Stefan Neuhaus / ClouSale */ class Seller implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Seller'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_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 = [ 'seller_id' => 'sellerId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_id' => 'setSellerId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_id' => 'getSellerId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_id. * * @return string */ public function getSellerId() { return $this->container['seller_id']; } /** * Sets seller_id. * * @param string $seller_id the identifier of the seller of the service job * * @return $this */ public function setSellerId($seller_id) { $this->container['seller_id'] = $seller_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Services/OrderId.php
lib/Models/Services/OrderId.php
<?php /** * OrderId. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * OrderId Class Doc Comment. * * @description The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. * * @author Stefan Neuhaus / ClouSale */ class OrderId implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'OrderId'; /** * 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/Services/GetServiceJobsResponse.php
lib/Models/Services/GetServiceJobsResponse.php
<?php /** * GetServiceJobsResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetServiceJobsResponse Class Doc Comment. * * @description Response schema for GetJobs operation. * * @author Stefan Neuhaus / ClouSale */ class GetServiceJobsResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetServiceJobsResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\JobListing', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\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\Services\JobListing */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\JobListing $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\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/Services/Poa.php
lib/Models/Services/Poa.php
<?php /** * Poa. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Poa Class Doc Comment. * * @description Proof of Appointment (POA) details. * * @author Stefan Neuhaus / ClouSale */ class Poa implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Poa'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'appointment_time' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime', 'technicians' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\Technician[]', 'uploading_technician' => 'string', 'upload_time' => '\DateTime', 'poa_type' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'appointment_time' => null, 'technicians' => null, 'uploading_technician' => null, 'upload_time' => 'date-time', 'poa_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 = [ 'appointment_time' => 'appointmentTime', 'technicians' => 'technicians', 'uploading_technician' => 'uploadingTechnician', 'upload_time' => 'uploadTime', 'poa_type' => 'poaType', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'appointment_time' => 'setAppointmentTime', 'technicians' => 'setTechnicians', 'uploading_technician' => 'setUploadingTechnician', 'upload_time' => 'setUploadTime', 'poa_type' => 'setPoaType', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'appointment_time' => 'getAppointmentTime', 'technicians' => 'getTechnicians', 'uploading_technician' => 'getUploadingTechnician', 'upload_time' => 'getUploadTime', 'poa_type' => 'getPoaType', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 POA_TYPE_NO_SIGNATURE_DUMMY_POS = 'NO_SIGNATURE_DUMMY_POS'; const POA_TYPE_CUSTOMER_SIGNATURE = 'CUSTOMER_SIGNATURE'; const POA_TYPE_DUMMY_RECEIPT = 'DUMMY_RECEIPT'; const POA_TYPE_POA_RECEIPT = 'POA_RECEIPT'; /** * Gets allowable values of the enum. * * @return string[] */ public function getPoaTypeAllowableValues() { return [ self::POA_TYPE_NO_SIGNATURE_DUMMY_POS, self::POA_TYPE_CUSTOMER_SIGNATURE, self::POA_TYPE_DUMMY_RECEIPT, self::POA_TYPE_POA_RECEIPT, ]; } /** * Associative array for storing 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['appointment_time'] = isset($data['appointment_time']) ? $data['appointment_time'] : null; $this->container['technicians'] = isset($data['technicians']) ? $data['technicians'] : null; $this->container['uploading_technician'] = isset($data['uploading_technician']) ? $data['uploading_technician'] : null; $this->container['upload_time'] = isset($data['upload_time']) ? $data['upload_time'] : null; $this->container['poa_type'] = isset($data['poa_type']) ? $data['poa_type'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getPoaTypeAllowableValues(); if (!is_null($this->container['poa_type']) && !in_array($this->container['poa_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'poa_type', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets appointment_time. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime */ public function getAppointmentTime() { return $this->container['appointment_time']; } /** * Sets appointment_time. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime $appointment_time appointment_time * * @return $this */ public function setAppointmentTime($appointment_time) { $this->container['appointment_time'] = $appointment_time; return $this; } /** * Gets technicians. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\Technician[] */ public function getTechnicians() { return $this->container['technicians']; } /** * Sets technicians. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\Technician[] $technicians a list of technicians * * @return $this */ public function setTechnicians($technicians) { $this->container['technicians'] = $technicians; return $this; } /** * Gets uploading_technician. * * @return string */ public function getUploadingTechnician() { return $this->container['uploading_technician']; } /** * Sets uploading_technician. * * @param string $uploading_technician the identifier of the technician who uploaded the POA * * @return $this */ public function setUploadingTechnician($uploading_technician) { $this->container['uploading_technician'] = $uploading_technician; return $this; } /** * Gets upload_time. * * @return \DateTime */ public function getUploadTime() { return $this->container['upload_time']; } /** * Sets upload_time. * * @param \DateTime $upload_time the date and time when the POA was uploaded, in ISO 8601 format * * @return $this */ public function setUploadTime($upload_time) { $this->container['upload_time'] = $upload_time; return $this; } /** * Gets poa_type. * * @return string */ public function getPoaType() { return $this->container['poa_type']; } /** * Sets poa_type. * * @param string $poa_type the type of POA uploaded * * @return $this */ public function setPoaType($poa_type) { $allowedValues = $this->getPoaTypeAllowableValues(); if (!is_null($poa_type) && !in_array($poa_type, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'poa_type', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['poa_type'] = $poa_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/Services/RescheduleReasonCode.php
lib/Models/Services/RescheduleReasonCode.php
<?php /** * RescheduleReasonCode. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * RescheduleReasonCode Class Doc Comment. * * @description Appointment reschedule reason code. * * @author Stefan Neuhaus / ClouSale */ class RescheduleReasonCode implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'RescheduleReasonCode'; /** * 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/Services/AddAppointmentRequest.php
lib/Models/Services/AddAppointmentRequest.php
<?php /** * AddAppointmentRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AddAppointmentRequest Class Doc Comment. * * @description Input for add appointment operation. * * @author Stefan Neuhaus / ClouSale */ class AddAppointmentRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AddAppointmentRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'appointment_time' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTimeInput', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'appointment_time' => 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 = [ 'appointment_time' => 'appointmentTime', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'appointment_time' => 'setAppointmentTime', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'appointment_time' => 'getAppointmentTime', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['appointment_time'] = isset($data['appointment_time']) ? $data['appointment_time'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['appointment_time']) { $invalidProperties[] = "'appointment_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 appointment_time. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTimeInput */ public function getAppointmentTime() { return $this->container['appointment_time']; } /** * Sets appointment_time. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTimeInput $appointment_time appointment_time * * @return $this */ public function setAppointmentTime($appointment_time) { $this->container['appointment_time'] = $appointment_time; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Services/CompleteServiceJobByServiceJobIdResponse.php
lib/Models/Services/CompleteServiceJobByServiceJobIdResponse.php
<?php /** * CompleteServiceJobByServiceJobIdResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CompleteServiceJobByServiceJobIdResponse Class Doc Comment. * * @description Response schema for CompleteServiceJobByServiceJobId operation. * * @author Stefan Neuhaus / ClouSale */ class CompleteServiceJobByServiceJobIdResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CompleteServiceJobByServiceJobIdResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\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\Services\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\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/Services/AppointmentTime.php
lib/Models/Services/AppointmentTime.php
<?php /** * AppointmentTime. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AppointmentTime Class Doc Comment. * * @description The time of the appointment window. * * @author Stefan Neuhaus / ClouSale */ class AppointmentTime implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AppointmentTime'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'start_time' => '\DateTime', 'duration_in_minutes' => 'int', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'start_time' => 'date-time', 'duration_in_minutes' => 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 = [ 'start_time' => 'startTime', 'duration_in_minutes' => 'durationInMinutes', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'start_time' => 'setStartTime', 'duration_in_minutes' => 'setDurationInMinutes', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'start_time' => 'getStartTime', 'duration_in_minutes' => 'getDurationInMinutes', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_time'] = isset($data['start_time']) ? $data['start_time'] : null; $this->container['duration_in_minutes'] = isset($data['duration_in_minutes']) ? $data['duration_in_minutes'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['start_time']) { $invalidProperties[] = "'start_time' can't be null"; } if (null === $this->container['duration_in_minutes']) { $invalidProperties[] = "'duration_in_minutes' 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 start_time. * * @return \DateTime */ public function getStartTime() { return $this->container['start_time']; } /** * Sets start_time. * * @param \DateTime $start_time the date and time of the start of the appointment window, in ISO 8601 format * * @return $this */ public function setStartTime($start_time) { $this->container['start_time'] = $start_time; return $this; } /** * Gets duration_in_minutes. * * @return int */ public function getDurationInMinutes() { return $this->container['duration_in_minutes']; } /** * Sets duration_in_minutes. * * @param int $duration_in_minutes the duration of the appointment window, in minutes * * @return $this */ public function setDurationInMinutes($duration_in_minutes) { $this->container['duration_in_minutes'] = $duration_in_minutes; 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/Services/CancelServiceJobByServiceJobIdResponse.php
lib/Models/Services/CancelServiceJobByServiceJobIdResponse.php
<?php /** * CancelServiceJobByServiceJobIdResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CancelServiceJobByServiceJobIdResponse Class Doc Comment. * * @description Response schema for CancelServiceJobByServiceJobId operation. * * @author Stefan Neuhaus / ClouSale */ class CancelServiceJobByServiceJobIdResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CancelServiceJobByServiceJobIdResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\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\Services\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\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/Services/Error.php
lib/Models/Services/Error.php
<?php /** * Error. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; 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', 'error_level' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'code' => null, 'message' => null, 'details' => null, 'error_level' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'code' => 'code', 'message' => 'message', 'details' => 'details', 'error_level' => 'errorLevel', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', 'details' => 'setDetails', 'error_level' => 'setErrorLevel', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', 'details' => 'getDetails', 'error_level' => 'getErrorLevel', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 ERROR_LEVEL_ERROR = 'ERROR'; const ERROR_LEVEL_WARNING = 'WARNING'; /** * Gets allowable values of the enum. * * @return string[] */ public function getErrorLevelAllowableValues() { return [ self::ERROR_LEVEL_ERROR, self::ERROR_LEVEL_WARNING, ]; } /** * Associative array for storing 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; $this->container['error_level'] = isset($data['error_level']) ? $data['error_level'] : 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"; } $allowedValues = $this->getErrorLevelAllowableValues(); if (!is_null($this->container['error_level']) && !in_array($this->container['error_level'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'error_level', 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 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; } /** * Gets error_level. * * @return string */ public function getErrorLevel() { return $this->container['error_level']; } /** * Sets error_level. * * @param string $error_level the type of error * * @return $this */ public function setErrorLevel($error_level) { $allowedValues = $this->getErrorLevelAllowableValues(); if (!is_null($error_level) && !in_array($error_level, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'error_level', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['error_level'] = $error_level; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Services/ServiceJobId.php
lib/Models/Services/ServiceJobId.php
<?php /** * ServiceJobId. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ServiceJobId Class Doc Comment. * * @description Amazon identifier for the service job. * * @author Stefan Neuhaus / ClouSale */ class ServiceJobId implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ServiceJobId'; /** * 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/Services/Buyer.php
lib/Models/Services/Buyer.php
<?php /** * Buyer. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Buyer Class Doc Comment. * * @description Information about the buyer. * * @author Stefan Neuhaus / ClouSale */ class Buyer implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Buyer'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'buyer_id' => 'string', 'name' => 'string', 'phone' => 'string', 'is_prime_member' => 'bool', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'buyer_id' => null, 'name' => null, 'phone' => null, 'is_prime_member' => 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 = [ 'buyer_id' => 'buyerId', 'name' => 'name', 'phone' => 'phone', 'is_prime_member' => 'isPrimeMember', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'buyer_id' => 'setBuyerId', 'name' => 'setName', 'phone' => 'setPhone', 'is_prime_member' => 'setIsPrimeMember', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'buyer_id' => 'getBuyerId', 'name' => 'getName', 'phone' => 'getPhone', 'is_prime_member' => 'getIsPrimeMember', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['buyer_id'] = isset($data['buyer_id']) ? $data['buyer_id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null; $this->container['is_prime_member'] = isset($data['is_prime_member']) ? $data['is_prime_member'] : 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 buyer_id. * * @return string */ public function getBuyerId() { return $this->container['buyer_id']; } /** * Sets buyer_id. * * @param string $buyer_id the identifier of the buyer * * @return $this */ public function setBuyerId($buyer_id) { $this->container['buyer_id'] = $buyer_id; return $this; } /** * Gets name. * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name. * * @param string $name the name of the buyer * * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets phone. * * @return string */ public function getPhone() { return $this->container['phone']; } /** * Sets phone. * * @param string $phone the phone number of the buyer * * @return $this */ public function setPhone($phone) { $this->container['phone'] = $phone; return $this; } /** * Gets is_prime_member. * * @return bool */ public function getIsPrimeMember() { return $this->container['is_prime_member']; } /** * Sets is_prime_member. * * @param bool $is_prime_member when true, the service is for an Amazon Prime buyer * * @return $this */ public function setIsPrimeMember($is_prime_member) { $this->container['is_prime_member'] = $is_prime_member; 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/Services/ScopeOfWork.php
lib/Models/Services/ScopeOfWork.php
<?php /** * ScopeOfWork. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ScopeOfWork Class Doc Comment. * * @description The scope of work for the order. * * @author Stefan Neuhaus / ClouSale */ class ScopeOfWork implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ScopeOfWork'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'asin' => 'string', 'title' => 'string', 'quantity' => 'int', 'required_skills' => 'string[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'asin' => null, 'title' => null, 'quantity' => null, 'required_skills' => 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', 'title' => 'title', 'quantity' => 'quantity', 'required_skills' => 'requiredSkills', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'asin' => 'setAsin', 'title' => 'setTitle', 'quantity' => 'setQuantity', 'required_skills' => 'setRequiredSkills', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'asin' => 'getAsin', 'title' => 'getTitle', 'quantity' => 'getQuantity', 'required_skills' => 'getRequiredSkills', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['title'] = isset($data['title']) ? $data['title'] : null; $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; $this->container['required_skills'] = isset($data['required_skills']) ? $data['required_skills'] : 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 service job * * @return $this */ public function setAsin($asin) { $this->container['asin'] = $asin; return $this; } /** * Gets title. * * @return string */ public function getTitle() { return $this->container['title']; } /** * Sets title. * * @param string $title the title of the service job * * @return $this */ public function setTitle($title) { $this->container['title'] = $title; return $this; } /** * Gets quantity. * * @return int */ public function getQuantity() { return $this->container['quantity']; } /** * Sets quantity. * * @param int $quantity the number of service jobs * * @return $this */ public function setQuantity($quantity) { $this->container['quantity'] = $quantity; return $this; } /** * Gets required_skills. * * @return string[] */ public function getRequiredSkills() { return $this->container['required_skills']; } /** * Sets required_skills. * * @param string[] $required_skills a list of skills required to perform the job * * @return $this */ public function setRequiredSkills($required_skills) { $this->container['required_skills'] = $required_skills; 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/Services/Warning.php
lib/Models/Services/Warning.php
<?php /** * Warning. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Warning Class Doc Comment. * * @description Warning returned when the request is successful but execution have some important callouts on basis of which API clients should take defined actions. * * @author Stefan Neuhaus / ClouSale */ class Warning implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Warning'; /** * 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 warning code that identifies the type of warning 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 warning 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 address the warning * * @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/Services/ServiceJobProvider.php
lib/Models/Services/ServiceJobProvider.php
<?php /** * ServiceJobProvider. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ServiceJobProvider Class Doc Comment. * * @description Information about the service job provider. * * @author Stefan Neuhaus / ClouSale */ class ServiceJobProvider implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ServiceJobProvider'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'service_job_provider_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'service_job_provider_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 = [ 'service_job_provider_id' => 'serviceJobProviderId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'service_job_provider_id' => 'setServiceJobProviderId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'service_job_provider_id' => 'getServiceJobProviderId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_job_provider_id'] = isset($data['service_job_provider_id']) ? $data['service_job_provider_id'] : 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 service_job_provider_id. * * @return string */ public function getServiceJobProviderId() { return $this->container['service_job_provider_id']; } /** * Sets service_job_provider_id. * * @param string $service_job_provider_id the identifier of the service job provider * * @return $this */ public function setServiceJobProviderId($service_job_provider_id) { $this->container['service_job_provider_id'] = $service_job_provider_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Services/AssociatedItem.php
lib/Models/Services/AssociatedItem.php
<?php /** * AssociatedItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AssociatedItem Class Doc Comment. * * @description Information about an item associated with the service job. * * @author Stefan Neuhaus / ClouSale */ class AssociatedItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AssociatedItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'asin' => 'string', 'title' => 'string', 'quantity' => 'int', 'order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\OrderId', 'item_status' => 'string', 'brand_name' => 'string', 'item_delivery' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ItemDelivery', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'asin' => null, 'title' => null, 'quantity' => null, 'order_id' => null, 'item_status' => null, 'brand_name' => null, 'item_delivery' => 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', 'title' => 'title', 'quantity' => 'quantity', 'order_id' => 'orderId', 'item_status' => 'itemStatus', 'brand_name' => 'brandName', 'item_delivery' => 'itemDelivery', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'asin' => 'setAsin', 'title' => 'setTitle', 'quantity' => 'setQuantity', 'order_id' => 'setOrderId', 'item_status' => 'setItemStatus', 'brand_name' => 'setBrandName', 'item_delivery' => 'setItemDelivery', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'asin' => 'getAsin', 'title' => 'getTitle', 'quantity' => 'getQuantity', 'order_id' => 'getOrderId', 'item_status' => 'getItemStatus', 'brand_name' => 'getBrandName', 'item_delivery' => 'getItemDelivery', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 ITEM_STATUS_ACTIVE = 'ACTIVE'; const ITEM_STATUS_CANCELLED = 'CANCELLED'; const ITEM_STATUS_SHIPPED = 'SHIPPED'; const ITEM_STATUS_DELIVERED = 'DELIVERED'; /** * Gets allowable values of the enum. * * @return string[] */ public function getItemStatusAllowableValues() { return [ self::ITEM_STATUS_ACTIVE, self::ITEM_STATUS_CANCELLED, self::ITEM_STATUS_SHIPPED, self::ITEM_STATUS_DELIVERED, ]; } /** * Associative array for storing 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['title'] = isset($data['title']) ? $data['title'] : null; $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; $this->container['item_status'] = isset($data['item_status']) ? $data['item_status'] : null; $this->container['brand_name'] = isset($data['brand_name']) ? $data['brand_name'] : null; $this->container['item_delivery'] = isset($data['item_delivery']) ? $data['item_delivery'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getItemStatusAllowableValues(); if (!is_null($this->container['item_status']) && !in_array($this->container['item_status'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'item_status', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets 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 title. * * @return string */ public function getTitle() { return $this->container['title']; } /** * Sets title. * * @param string $title the title of the item * * @return $this */ public function setTitle($title) { $this->container['title'] = $title; return $this; } /** * Gets quantity. * * @return int */ public function getQuantity() { return $this->container['quantity']; } /** * Sets quantity. * * @param int $quantity the total number of items included in the order * * @return $this */ public function setQuantity($quantity) { $this->container['quantity'] = $quantity; return $this; } /** * Gets order_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\OrderId */ public function getOrderId() { return $this->container['order_id']; } /** * Sets order_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\OrderId $order_id order_id * * @return $this */ public function setOrderId($order_id) { $this->container['order_id'] = $order_id; return $this; } /** * Gets item_status. * * @return string */ public function getItemStatus() { return $this->container['item_status']; } /** * Sets item_status. * * @param string $item_status the status of the item * * @return $this */ public function setItemStatus($item_status) { $allowedValues = $this->getItemStatusAllowableValues(); if (!is_null($item_status) && !in_array($item_status, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'item_status', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['item_status'] = $item_status; return $this; } /** * Gets brand_name. * * @return string */ public function getBrandName() { return $this->container['brand_name']; } /** * Sets brand_name. * * @param string $brand_name the brand name of the item * * @return $this */ public function setBrandName($brand_name) { $this->container['brand_name'] = $brand_name; return $this; } /** * Gets item_delivery. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ItemDelivery */ public function getItemDelivery() { return $this->container['item_delivery']; } /** * Sets item_delivery. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\ItemDelivery $item_delivery item_delivery * * @return $this */ public function setItemDelivery($item_delivery) { $this->container['item_delivery'] = $item_delivery; 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/Services/JobListing.php
lib/Models/Services/JobListing.php
<?php /** * JobListing. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * JobListing Class Doc Comment. * * @description The payload for the GetJobs operation. * * @author Stefan Neuhaus / ClouSale */ class JobListing implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'JobListing'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'total_result_size' => 'int', 'next_page_token' => 'string', 'previous_page_token' => 'string', 'jobs' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJob[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'total_result_size' => null, 'next_page_token' => null, 'previous_page_token' => null, 'jobs' => 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_result_size' => 'totalResultSize', 'next_page_token' => 'nextPageToken', 'previous_page_token' => 'previousPageToken', 'jobs' => 'jobs', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'total_result_size' => 'setTotalResultSize', 'next_page_token' => 'setNextPageToken', 'previous_page_token' => 'setPreviousPageToken', 'jobs' => 'setJobs', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'total_result_size' => 'getTotalResultSize', 'next_page_token' => 'getNextPageToken', 'previous_page_token' => 'getPreviousPageToken', 'jobs' => 'getJobs', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_result_size'] = isset($data['total_result_size']) ? $data['total_result_size'] : null; $this->container['next_page_token'] = isset($data['next_page_token']) ? $data['next_page_token'] : null; $this->container['previous_page_token'] = isset($data['previous_page_token']) ? $data['previous_page_token'] : null; $this->container['jobs'] = isset($data['jobs']) ? $data['jobs'] : 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_result_size. * * @return int */ public function getTotalResultSize() { return $this->container['total_result_size']; } /** * Sets total_result_size. * * @param int $total_result_size total result size of the query result * * @return $this */ public function setTotalResultSize($total_result_size) { $this->container['total_result_size'] = $total_result_size; return $this; } /** * Gets next_page_token. * * @return string */ public function getNextPageToken() { return $this->container['next_page_token']; } /** * Sets next_page_token. * * @param string $next_page_token A generated string used to pass information to your next request.If nextPageToken is returned, pass the value of nextPageToken to the pageToken to get next results. * * @return $this */ public function setNextPageToken($next_page_token) { $this->container['next_page_token'] = $next_page_token; return $this; } /** * Gets previous_page_token. * * @return string */ public function getPreviousPageToken() { return $this->container['previous_page_token']; } /** * Sets previous_page_token. * * @param string $previous_page_token A generated string used to pass information to your next request.If previousPageToken is returned, pass the value of previousPageToken to the pageToken to get previous page results. * * @return $this */ public function setPreviousPageToken($previous_page_token) { $this->container['previous_page_token'] = $previous_page_token; return $this; } /** * Gets jobs. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJob[] */ public function getJobs() { return $this->container['jobs']; } /** * Sets jobs. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJob[] $jobs list of job details for the given input * * @return $this */ public function setJobs($jobs) { $this->container['jobs'] = $jobs; 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/Services/Technician.php
lib/Models/Services/Technician.php
<?php /** * Technician. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Technician Class Doc Comment. * * @description A technician who is assigned to perform the service job in part or in full. * * @author Stefan Neuhaus / ClouSale */ class Technician implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Technician'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'technician_id' => 'string', 'name' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'technician_id' => null, '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 = [ 'technician_id' => 'technicianId', 'name' => 'name', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'technician_id' => 'setTechnicianId', 'name' => 'setName', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'technician_id' => 'getTechnicianId', 'name' => 'getName', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['technician_id'] = isset($data['technician_id']) ? $data['technician_id'] : null; $this->container['name'] = isset($data['name']) ? $data['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 technician_id. * * @return string */ public function getTechnicianId() { return $this->container['technician_id']; } /** * Sets technician_id. * * @param string $technician_id the technician identifier * * @return $this */ public function setTechnicianId($technician_id) { $this->container['technician_id'] = $technician_id; return $this; } /** * Gets name. * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name. * * @param string $name the name of the technician * * @return $this */ public function setName($name) { $this->container['name'] = $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/Services/RescheduleAppointmentRequest.php
lib/Models/Services/RescheduleAppointmentRequest.php
<?php /** * RescheduleAppointmentRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * RescheduleAppointmentRequest Class Doc Comment. * * @description Input for rescheduled appointment operation. * * @author Stefan Neuhaus / ClouSale */ class RescheduleAppointmentRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'RescheduleAppointmentRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'appointment_time' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTimeInput', 'reschedule_reason_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleReasonCode', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'appointment_time' => null, 'reschedule_reason_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 = [ 'appointment_time' => 'appointmentTime', 'reschedule_reason_code' => 'rescheduleReasonCode', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'appointment_time' => 'setAppointmentTime', 'reschedule_reason_code' => 'setRescheduleReasonCode', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'appointment_time' => 'getAppointmentTime', 'reschedule_reason_code' => 'getRescheduleReasonCode', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['appointment_time'] = isset($data['appointment_time']) ? $data['appointment_time'] : null; $this->container['reschedule_reason_code'] = isset($data['reschedule_reason_code']) ? $data['reschedule_reason_code'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['appointment_time']) { $invalidProperties[] = "'appointment_time' can't be null"; } if (null === $this->container['reschedule_reason_code']) { $invalidProperties[] = "'reschedule_reason_code' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets appointment_time. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTimeInput */ public function getAppointmentTime() { return $this->container['appointment_time']; } /** * Sets appointment_time. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTimeInput $appointment_time appointment_time * * @return $this */ public function setAppointmentTime($appointment_time) { $this->container['appointment_time'] = $appointment_time; return $this; } /** * Gets reschedule_reason_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleReasonCode */ public function getRescheduleReasonCode() { return $this->container['reschedule_reason_code']; } /** * Sets reschedule_reason_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleReasonCode $reschedule_reason_code reschedule_reason_code * * @return $this */ public function setRescheduleReasonCode($reschedule_reason_code) { $this->container['reschedule_reason_code'] = $reschedule_reason_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/Services/ServiceJob.php
lib/Models/Services/ServiceJob.php
<?php /** * ServiceJob. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ServiceJob Class Doc Comment. * * @description The job details of a service. * * @author Stefan Neuhaus / ClouSale */ class ServiceJob implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ServiceJob'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'create_time' => '\DateTime', 'service_job_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJobId', 'service_job_status' => 'string', 'scope_of_work' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ScopeOfWork', 'seller' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\Seller', 'service_job_provider' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJobProvider', 'preferred_appointment_times' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime[]', 'appointments' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\Appointment[]', 'service_order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\OrderId', 'marketplace_id' => 'string', 'buyer' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\Buyer', 'associated_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\AssociatedItem[]', 'service_location' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceLocation', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'create_time' => 'date-time', 'service_job_id' => null, 'service_job_status' => null, 'scope_of_work' => null, 'seller' => null, 'service_job_provider' => null, 'preferred_appointment_times' => null, 'appointments' => null, 'service_order_id' => null, 'marketplace_id' => null, 'buyer' => null, 'associated_items' => null, 'service_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 = [ 'create_time' => 'createTime', 'service_job_id' => 'serviceJobId', 'service_job_status' => 'serviceJobStatus', 'scope_of_work' => 'scopeOfWork', 'seller' => 'seller', 'service_job_provider' => 'serviceJobProvider', 'preferred_appointment_times' => 'preferredAppointmentTimes', 'appointments' => 'appointments', 'service_order_id' => 'serviceOrderId', 'marketplace_id' => 'marketplaceId', 'buyer' => 'buyer', 'associated_items' => 'associatedItems', 'service_location' => 'serviceLocation', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'create_time' => 'setCreateTime', 'service_job_id' => 'setServiceJobId', 'service_job_status' => 'setServiceJobStatus', 'scope_of_work' => 'setScopeOfWork', 'seller' => 'setSeller', 'service_job_provider' => 'setServiceJobProvider', 'preferred_appointment_times' => 'setPreferredAppointmentTimes', 'appointments' => 'setAppointments', 'service_order_id' => 'setServiceOrderId', 'marketplace_id' => 'setMarketplaceId', 'buyer' => 'setBuyer', 'associated_items' => 'setAssociatedItems', 'service_location' => 'setServiceLocation', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'create_time' => 'getCreateTime', 'service_job_id' => 'getServiceJobId', 'service_job_status' => 'getServiceJobStatus', 'scope_of_work' => 'getScopeOfWork', 'seller' => 'getSeller', 'service_job_provider' => 'getServiceJobProvider', 'preferred_appointment_times' => 'getPreferredAppointmentTimes', 'appointments' => 'getAppointments', 'service_order_id' => 'getServiceOrderId', 'marketplace_id' => 'getMarketplaceId', 'buyer' => 'getBuyer', 'associated_items' => 'getAssociatedItems', 'service_location' => 'getServiceLocation', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 SERVICE_JOB_STATUS_NOT_SERVICED = 'NOT_SERVICED'; const SERVICE_JOB_STATUS_CANCELLED = 'CANCELLED'; const SERVICE_JOB_STATUS_COMPLETED = 'COMPLETED'; const SERVICE_JOB_STATUS_PENDING_SCHEDULE = 'PENDING_SCHEDULE'; const SERVICE_JOB_STATUS_NOT_FULFILLABLE = 'NOT_FULFILLABLE'; const SERVICE_JOB_STATUS_HOLD = 'HOLD'; const SERVICE_JOB_STATUS_PAYMENT_DECLINED = 'PAYMENT_DECLINED'; /** * Gets allowable values of the enum. * * @return string[] */ public function getServiceJobStatusAllowableValues() { return [ self::SERVICE_JOB_STATUS_NOT_SERVICED, self::SERVICE_JOB_STATUS_CANCELLED, self::SERVICE_JOB_STATUS_COMPLETED, self::SERVICE_JOB_STATUS_PENDING_SCHEDULE, self::SERVICE_JOB_STATUS_NOT_FULFILLABLE, self::SERVICE_JOB_STATUS_HOLD, self::SERVICE_JOB_STATUS_PAYMENT_DECLINED, ]; } /** * Associative array for storing 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['create_time'] = isset($data['create_time']) ? $data['create_time'] : null; $this->container['service_job_id'] = isset($data['service_job_id']) ? $data['service_job_id'] : null; $this->container['service_job_status'] = isset($data['service_job_status']) ? $data['service_job_status'] : null; $this->container['scope_of_work'] = isset($data['scope_of_work']) ? $data['scope_of_work'] : null; $this->container['seller'] = isset($data['seller']) ? $data['seller'] : null; $this->container['service_job_provider'] = isset($data['service_job_provider']) ? $data['service_job_provider'] : null; $this->container['preferred_appointment_times'] = isset($data['preferred_appointment_times']) ? $data['preferred_appointment_times'] : null; $this->container['appointments'] = isset($data['appointments']) ? $data['appointments'] : null; $this->container['service_order_id'] = isset($data['service_order_id']) ? $data['service_order_id'] : null; $this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null; $this->container['buyer'] = isset($data['buyer']) ? $data['buyer'] : null; $this->container['associated_items'] = isset($data['associated_items']) ? $data['associated_items'] : null; $this->container['service_location'] = isset($data['service_location']) ? $data['service_location'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getServiceJobStatusAllowableValues(); if (!is_null($this->container['service_job_status']) && !in_array($this->container['service_job_status'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'service_job_status', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets create_time. * * @return \DateTime */ public function getCreateTime() { return $this->container['create_time']; } /** * Sets create_time. * * @param \DateTime $create_time the date and time of the creation of the job, in ISO 8601 format * * @return $this */ public function setCreateTime($create_time) { $this->container['create_time'] = $create_time; return $this; } /** * Gets service_job_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJobId */ public function getServiceJobId() { return $this->container['service_job_id']; } /** * Sets service_job_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJobId $service_job_id service_job_id * * @return $this */ public function setServiceJobId($service_job_id) { $this->container['service_job_id'] = $service_job_id; return $this; } /** * Gets service_job_status. * * @return string */ public function getServiceJobStatus() { return $this->container['service_job_status']; } /** * Sets service_job_status. * * @param string $service_job_status the status of the service job * * @return $this */ public function setServiceJobStatus($service_job_status) { $allowedValues = $this->getServiceJobStatusAllowableValues(); if (!is_null($service_job_status) && !in_array($service_job_status, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'service_job_status', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['service_job_status'] = $service_job_status; return $this; } /** * Gets scope_of_work. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ScopeOfWork */ public function getScopeOfWork() { return $this->container['scope_of_work']; } /** * Sets scope_of_work. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\ScopeOfWork $scope_of_work scope_of_work * * @return $this */ public function setScopeOfWork($scope_of_work) { $this->container['scope_of_work'] = $scope_of_work; return $this; } /** * Gets seller. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\Seller */ public function getSeller() { return $this->container['seller']; } /** * Sets seller. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\Seller $seller seller * * @return $this */ public function setSeller($seller) { $this->container['seller'] = $seller; return $this; } /** * Gets service_job_provider. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJobProvider */ public function getServiceJobProvider() { return $this->container['service_job_provider']; } /** * Sets service_job_provider. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceJobProvider $service_job_provider service_job_provider * * @return $this */ public function setServiceJobProvider($service_job_provider) { $this->container['service_job_provider'] = $service_job_provider; return $this; } /** * Gets preferred_appointment_times. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime[] */ public function getPreferredAppointmentTimes() { return $this->container['preferred_appointment_times']; } /** * Sets preferred_appointment_times. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AppointmentTime[] $preferred_appointment_times A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order. * * @return $this */ public function setPreferredAppointmentTimes($preferred_appointment_times) { $this->container['preferred_appointment_times'] = $preferred_appointment_times; return $this; } /** * Gets appointments. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\Appointment[] */ public function getAppointments() { return $this->container['appointments']; } /** * Sets appointments. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\Appointment[] $appointments a list of appointments * * @return $this */ public function setAppointments($appointments) { $this->container['appointments'] = $appointments; return $this; } /** * Gets service_order_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\OrderId */ public function getServiceOrderId() { return $this->container['service_order_id']; } /** * Sets service_order_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\OrderId $service_order_id service_order_id * * @return $this */ public function setServiceOrderId($service_order_id) { $this->container['service_order_id'] = $service_order_id; return $this; } /** * Gets marketplace_id. * * @return string */ public function getMarketplaceId() { return $this->container['marketplace_id']; } /** * Sets marketplace_id. * * @param string $marketplace_id the marketplace identifier * * @return $this */ public function setMarketplaceId($marketplace_id) { $this->container['marketplace_id'] = $marketplace_id; return $this; } /** * Gets buyer. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\Buyer */ public function getBuyer() { return $this->container['buyer']; } /** * Sets buyer. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\Buyer $buyer buyer * * @return $this */ public function setBuyer($buyer) { $this->container['buyer'] = $buyer; return $this; } /** * Gets associated_items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\AssociatedItem[] */ public function getAssociatedItems() { return $this->container['associated_items']; } /** * Sets associated_items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AssociatedItem[] $associated_items a list of items associated with the service job * * @return $this */ public function setAssociatedItems($associated_items) { $this->container['associated_items'] = $associated_items; return $this; } /** * Gets service_location. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceLocation */ public function getServiceLocation() { return $this->container['service_location']; } /** * Sets service_location. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\ServiceLocation $service_location service_location * * @return $this */ public function setServiceLocation($service_location) { $this->container['service_location'] = $service_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/Services/ServiceLocation.php
lib/Models/Services/ServiceLocation.php
<?php /** * ServiceLocation. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Services. * * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ServiceLocation Class Doc Comment. * * @description Information about the location of the service job. * * @author Stefan Neuhaus / ClouSale */ class ServiceLocation implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ServiceLocation'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'service_location_type' => 'string', 'address' => '\ClouSale\AmazonSellingPartnerAPI\Models\Services\Address', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'service_location_type' => null, 'address' => 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_location_type' => 'serviceLocationType', 'address' => 'address', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'service_location_type' => 'setServiceLocationType', 'address' => 'setAddress', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'service_location_type' => 'getServiceLocationType', 'address' => 'getAddress', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 SERVICE_LOCATION_TYPE_IN_HOME = 'IN_HOME'; const SERVICE_LOCATION_TYPE_IN_STORE = 'IN_STORE'; const SERVICE_LOCATION_TYPE_ONLINE = 'ONLINE'; /** * Gets allowable values of the enum. * * @return string[] */ public function getServiceLocationTypeAllowableValues() { return [ self::SERVICE_LOCATION_TYPE_IN_HOME, self::SERVICE_LOCATION_TYPE_IN_STORE, self::SERVICE_LOCATION_TYPE_ONLINE, ]; } /** * Associative array for storing 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_location_type'] = isset($data['service_location_type']) ? $data['service_location_type'] : null; $this->container['address'] = isset($data['address']) ? $data['address'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getServiceLocationTypeAllowableValues(); if (!is_null($this->container['service_location_type']) && !in_array($this->container['service_location_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'service_location_type', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets service_location_type. * * @return string */ public function getServiceLocationType() { return $this->container['service_location_type']; } /** * Sets service_location_type. * * @param string $service_location_type the location of the service job * * @return $this */ public function setServiceLocationType($service_location_type) { $allowedValues = $this->getServiceLocationTypeAllowableValues(); if (!is_null($service_location_type) && !in_array($service_location_type, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'service_location_type', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['service_location_type'] = $service_location_type; return $this; } /** * Gets address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\Address */ public function getAddress() { return $this->container['address']; } /** * Sets address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\Address $address address * * @return $this */ public function setAddress($address) { $this->container['address'] = $address; 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/Notifications/DestinationResource.php
lib/Models/Notifications/DestinationResource.php
<?php /** * DestinationResource. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DestinationResource Class Doc Comment. * * @description The destination resource types. * * @author Stefan Neuhaus / ClouSale */ class DestinationResource implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DestinationResource'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'sqs' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\SqsResource', 'event_bridge' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\EventBridgeResource', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'sqs' => null, 'event_bridge' => 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 = [ 'sqs' => 'sqs', 'event_bridge' => 'eventBridge', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'sqs' => 'setSqs', 'event_bridge' => 'setEventBridge', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'sqs' => 'getSqs', 'event_bridge' => 'getEventBridge', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['sqs'] = isset($data['sqs']) ? $data['sqs'] : null; $this->container['event_bridge'] = isset($data['event_bridge']) ? $data['event_bridge'] : 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 sqs. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\SqsResource */ public function getSqs() { return $this->container['sqs']; } /** * Sets sqs. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\SqsResource $sqs sqs * * @return $this */ public function setSqs($sqs) { $this->container['sqs'] = $sqs; return $this; } /** * Gets event_bridge. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\EventBridgeResource */ public function getEventBridge() { return $this->container['event_bridge']; } /** * Sets event_bridge. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\EventBridgeResource $event_bridge event_bridge * * @return $this */ public function setEventBridge($event_bridge) { $this->container['event_bridge'] = $event_bridge; 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/Notifications/CreateDestinationResponse.php
lib/Models/Notifications/CreateDestinationResponse.php
<?php /** * CreateDestinationResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateDestinationResponse Class Doc Comment. * * @description The response schema for the createDestination operation. * * @author Stefan Neuhaus / ClouSale */ class CreateDestinationResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateDestinationResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Destination', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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\Notifications\Destination */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Destination $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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/Notifications/ErrorList.php
lib/Models/Notifications/ErrorList.php
<?php /** * ErrorList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; 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/Notifications/DeleteSubscriptionByIdResponse.php
lib/Models/Notifications/DeleteSubscriptionByIdResponse.php
<?php /** * DeleteSubscriptionByIdResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DeleteSubscriptionByIdResponse Class Doc Comment. * * @description The response schema for the deleteSubscriptionById operation. * * @author Stefan Neuhaus / ClouSale */ class DeleteSubscriptionByIdResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DeleteSubscriptionByIdResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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\Notifications\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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/Notifications/CreateSubscriptionResponse.php
lib/Models/Notifications/CreateSubscriptionResponse.php
<?php /** * CreateSubscriptionResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateSubscriptionResponse Class Doc Comment. * * @description The response schema for the createSubscription operation. * * @author Stefan Neuhaus / ClouSale */ class CreateSubscriptionResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateSubscriptionResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Subscription', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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\Notifications\Subscription */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Subscription $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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/Notifications/GetDestinationResponse.php
lib/Models/Notifications/GetDestinationResponse.php
<?php /** * GetDestinationResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetDestinationResponse Class Doc Comment. * * @description The response schema for the getDestination operation. * * @author Stefan Neuhaus / ClouSale */ class GetDestinationResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetDestinationResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Destination', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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\Notifications\Destination */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Destination $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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/Notifications/Subscription.php
lib/Models/Notifications/Subscription.php
<?php /** * Subscription. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Subscription Class Doc Comment. * * @description Represents a subscription to receive notifications. * * @author Stefan Neuhaus / ClouSale */ class Subscription implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Subscription'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'subscription_id' => 'string', 'payload_version' => 'string', 'destination_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'subscription_id' => null, 'payload_version' => null, 'destination_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 = [ 'subscription_id' => 'subscriptionId', 'payload_version' => 'payloadVersion', 'destination_id' => 'destinationId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'subscription_id' => 'setSubscriptionId', 'payload_version' => 'setPayloadVersion', 'destination_id' => 'setDestinationId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'subscription_id' => 'getSubscriptionId', 'payload_version' => 'getPayloadVersion', 'destination_id' => 'getDestinationId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['subscription_id'] = isset($data['subscription_id']) ? $data['subscription_id'] : null; $this->container['payload_version'] = isset($data['payload_version']) ? $data['payload_version'] : null; $this->container['destination_id'] = isset($data['destination_id']) ? $data['destination_id'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['subscription_id']) { $invalidProperties[] = "'subscription_id' can't be null"; } if (null === $this->container['payload_version']) { $invalidProperties[] = "'payload_version' can't be null"; } if (null === $this->container['destination_id']) { $invalidProperties[] = "'destination_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 subscription_id. * * @return string */ public function getSubscriptionId() { return $this->container['subscription_id']; } /** * Sets subscription_id. * * @param string $subscription_id the subscription identifier generated when the subscription is created * * @return $this */ public function setSubscriptionId($subscription_id) { $this->container['subscription_id'] = $subscription_id; return $this; } /** * Gets payload_version. * * @return string */ public function getPayloadVersion() { return $this->container['payload_version']; } /** * Sets payload_version. * * @param string $payload_version the version of the payload object to be used in the notification * * @return $this */ public function setPayloadVersion($payload_version) { $this->container['payload_version'] = $payload_version; return $this; } /** * Gets destination_id. * * @return string */ public function getDestinationId() { return $this->container['destination_id']; } /** * Sets destination_id. * * @param string $destination_id the identifier for the destination where notifications will be delivered * * @return $this */ public function setDestinationId($destination_id) { $this->container['destination_id'] = $destination_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Notifications/DestinationList.php
lib/Models/Notifications/DestinationList.php
<?php /** * DestinationList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DestinationList Class Doc Comment. * * @description A list of destinations. * * @author Stefan Neuhaus / ClouSale */ class DestinationList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DestinationList'; /** * 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 Destination::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/Notifications/SqsResource.php
lib/Models/Notifications/SqsResource.php
<?php /** * SqsResource. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * SqsResource Class Doc Comment. * * @description The information required to create an Amazon Simple Queue Service (Amazon SQS) queue destination. * * @author Stefan Neuhaus / ClouSale */ class SqsResource implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'SqsResource'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'arn' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'arn' => 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 = [ 'arn' => 'arn', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'arn' => 'setArn', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'arn' => 'getArn', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['arn'] = isset($data['arn']) ? $data['arn'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['arn']) { $invalidProperties[] = "'arn' 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 arn. * * @return string */ public function getArn() { return $this->container['arn']; } /** * Sets arn. * * @param string $arn the Amazon Resource Name (ARN) associated with the SQS queue * * @return $this */ public function setArn($arn) { $this->container['arn'] = $arn; 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/Notifications/DeleteDestinationResponse.php
lib/Models/Notifications/DeleteDestinationResponse.php
<?php /** * DeleteDestinationResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DeleteDestinationResponse Class Doc Comment. * * @description The response schema for the deleteDestination operation. * * @author Stefan Neuhaus / ClouSale */ class DeleteDestinationResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DeleteDestinationResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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\Notifications\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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/Notifications/GetSubscriptionByIdResponse.php
lib/Models/Notifications/GetSubscriptionByIdResponse.php
<?php /** * GetSubscriptionByIdResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetSubscriptionByIdResponse Class Doc Comment. * * @description The response schema for the getSubscriptionById operation. * * @author Stefan Neuhaus / ClouSale */ class GetSubscriptionByIdResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetSubscriptionByIdResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Subscription', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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\Notifications\Subscription */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Subscription $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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/Notifications/GetDestinationsResponse.php
lib/Models/Notifications/GetDestinationsResponse.php
<?php /** * GetDestinationsResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetDestinationsResponse Class Doc Comment. * * @description The response schema for the getDestinations operation. * * @author Stefan Neuhaus / ClouSale */ class GetDestinationsResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetDestinationsResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\DestinationList', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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\Notifications\DestinationList */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\DestinationList $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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/Notifications/DestinationResourceSpecification.php
lib/Models/Notifications/DestinationResourceSpecification.php
<?php /** * DestinationResourceSpecification. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DestinationResourceSpecification Class Doc Comment. * * @description The information required to create a destination resource. Applications should use one resource type (sqs or eventBridge) per destination. * * @author Stefan Neuhaus / ClouSale */ class DestinationResourceSpecification implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DestinationResourceSpecification'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'sqs' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\SqsResource', 'event_bridge' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\EventBridgeResourceSpecification', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'sqs' => null, 'event_bridge' => 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 = [ 'sqs' => 'sqs', 'event_bridge' => 'eventBridge', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'sqs' => 'setSqs', 'event_bridge' => 'setEventBridge', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'sqs' => 'getSqs', 'event_bridge' => 'getEventBridge', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['sqs'] = isset($data['sqs']) ? $data['sqs'] : null; $this->container['event_bridge'] = isset($data['event_bridge']) ? $data['event_bridge'] : 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 sqs. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\SqsResource */ public function getSqs() { return $this->container['sqs']; } /** * Sets sqs. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\SqsResource $sqs sqs * * @return $this */ public function setSqs($sqs) { $this->container['sqs'] = $sqs; return $this; } /** * Gets event_bridge. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\EventBridgeResourceSpecification */ public function getEventBridge() { return $this->container['event_bridge']; } /** * Sets event_bridge. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\EventBridgeResourceSpecification $event_bridge event_bridge * * @return $this */ public function setEventBridge($event_bridge) { $this->container['event_bridge'] = $event_bridge; 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/Notifications/Error.php
lib/Models/Notifications/Error.php
<?php /** * Error. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; 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/Notifications/Destination.php
lib/Models/Notifications/Destination.php
<?php /** * Destination. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Destination Class Doc Comment. * * @description Represents a destination created when you call the createDestination operation. * * @author Stefan Neuhaus / ClouSale */ class Destination implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Destination'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'name' => 'string', 'destination_id' => 'string', 'resource' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\DestinationResource', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'name' => null, 'destination_id' => null, 'resource' => 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', 'destination_id' => 'destinationId', 'resource' => 'resource', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'name' => 'setName', 'destination_id' => 'setDestinationId', 'resource' => 'setResource', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'name' => 'getName', 'destination_id' => 'getDestinationId', 'resource' => 'getResource', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['destination_id'] = isset($data['destination_id']) ? $data['destination_id'] : null; $this->container['resource'] = isset($data['resource']) ? $data['resource'] : 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['destination_id']) { $invalidProperties[] = "'destination_id' can't be null"; } if (null === $this->container['resource']) { $invalidProperties[] = "'resource' 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 the developer-defined name for this destination * * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets destination_id. * * @return string */ public function getDestinationId() { return $this->container['destination_id']; } /** * Sets destination_id. * * @param string $destination_id the destination identifier generated when you created the destination * * @return $this */ public function setDestinationId($destination_id) { $this->container['destination_id'] = $destination_id; return $this; } /** * Gets resource. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\DestinationResource */ public function getResource() { return $this->container['resource']; } /** * Sets resource. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\DestinationResource $resource resource * * @return $this */ public function setResource($resource) { $this->container['resource'] = $resource; 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/Notifications/GetSubscriptionResponse.php
lib/Models/Notifications/GetSubscriptionResponse.php
<?php /** * GetSubscriptionResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetSubscriptionResponse Class Doc Comment. * * @description The response schema for the getSubscription operation. * * @author Stefan Neuhaus / ClouSale */ class GetSubscriptionResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetSubscriptionResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Subscription', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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\Notifications\Subscription */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\Subscription $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\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/Notifications/EventBridgeResourceSpecification.php
lib/Models/Notifications/EventBridgeResourceSpecification.php
<?php /** * EventBridgeResourceSpecification. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * EventBridgeResourceSpecification Class Doc Comment. * * @description The information required to create an Amazon EventBridge destination. * * @author Stefan Neuhaus / ClouSale */ class EventBridgeResourceSpecification implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'EventBridgeResourceSpecification'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'region' => 'string', 'account_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'region' => null, 'account_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 = [ 'region' => 'region', 'account_id' => 'accountId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'region' => 'setRegion', 'account_id' => 'setAccountId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'region' => 'getRegion', 'account_id' => 'getAccountId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['region'] = isset($data['region']) ? $data['region'] : null; $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['region']) { $invalidProperties[] = "'region' can't be null"; } if (null === $this->container['account_id']) { $invalidProperties[] = "'account_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 region. * * @return string */ public function getRegion() { return $this->container['region']; } /** * Sets region. * * @param string $region the AWS region in which you will be receiving the notifications * * @return $this */ public function setRegion($region) { $this->container['region'] = $region; return $this; } /** * Gets account_id. * * @return string */ public function getAccountId() { return $this->container['account_id']; } /** * Sets account_id. * * @param string $account_id the identifier for the AWS account that is responsible for charges related to receiving notifications * * @return $this */ public function setAccountId($account_id) { $this->container['account_id'] = $account_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Notifications/EventBridgeResource.php
lib/Models/Notifications/EventBridgeResource.php
<?php /** * EventBridgeResource. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * EventBridgeResource Class Doc Comment. * * @description Represents an Amazon EventBridge destination. * * @author Stefan Neuhaus / ClouSale */ class EventBridgeResource implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'EventBridgeResource'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'name' => 'string', 'region' => 'string', 'account_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'name' => null, 'region' => null, 'account_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 = [ 'name' => 'name', 'region' => 'region', 'account_id' => 'accountId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'name' => 'setName', 'region' => 'setRegion', 'account_id' => 'setAccountId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'name' => 'getName', 'region' => 'getRegion', 'account_id' => 'getAccountId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['region'] = isset($data['region']) ? $data['region'] : null; $this->container['account_id'] = isset($data['account_id']) ? $data['account_id'] : 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['region']) { $invalidProperties[] = "'region' can't be null"; } if (null === $this->container['account_id']) { $invalidProperties[] = "'account_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 name. * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name. * * @param string $name the name of the partner event source associated with the destination * * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets region. * * @return string */ public function getRegion() { return $this->container['region']; } /** * Sets region. * * @param string $region The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, see https://docs.aws.amazon.com/general/latest/gr/ev.html. * * @return $this */ public function setRegion($region) { $this->container['region'] = $region; return $this; } /** * Gets account_id. * * @return string */ public function getAccountId() { return $this->container['account_id']; } /** * Sets account_id. * * @param string $account_id the identifier for the AWS account that is responsible for charges related to receiving notifications * * @return $this */ public function setAccountId($account_id) { $this->container['account_id'] = $account_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Notifications/CreateDestinationRequest.php
lib/Models/Notifications/CreateDestinationRequest.php
<?php /** * CreateDestinationRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateDestinationRequest Class Doc Comment. * * @description The request schema for the createDestination operation. * * @author Stefan Neuhaus / ClouSale */ class CreateDestinationRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateDestinationRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'resource_specification' => '\ClouSale\AmazonSellingPartnerAPI\Models\Notifications\DestinationResourceSpecification', 'name' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'resource_specification' => null, '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 = [ 'resource_specification' => 'resourceSpecification', 'name' => 'name', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'resource_specification' => 'setResourceSpecification', 'name' => 'setName', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'resource_specification' => 'getResourceSpecification', 'name' => 'getName', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['resource_specification'] = isset($data['resource_specification']) ? $data['resource_specification'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['resource_specification']) { $invalidProperties[] = "'resource_specification' can't be null"; } if (null === $this->container['name']) { $invalidProperties[] = "'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 resource_specification. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\DestinationResourceSpecification */ public function getResourceSpecification() { return $this->container['resource_specification']; } /** * Sets resource_specification. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\DestinationResourceSpecification $resource_specification resource_specification * * @return $this */ public function setResourceSpecification($resource_specification) { $this->container['resource_specification'] = $resource_specification; return $this; } /** * Gets name. * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name. * * @param string $name a developer-defined name to help identify this destination * * @return $this */ public function setName($name) { $this->container['name'] = $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/Notifications/CreateSubscriptionRequest.php
lib/Models/Notifications/CreateSubscriptionRequest.php
<?php /** * CreateSubscriptionRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Notifications. * * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Notifications; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateSubscriptionRequest Class Doc Comment. * * @description The request schema for the createSubscription operation. * * @author Stefan Neuhaus / ClouSale */ class CreateSubscriptionRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateSubscriptionRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload_version' => 'string', 'destination_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payload_version' => null, 'destination_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 = [ 'payload_version' => 'payloadVersion', 'destination_id' => 'destinationId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload_version' => 'setPayloadVersion', 'destination_id' => 'setDestinationId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload_version' => 'getPayloadVersion', 'destination_id' => 'getDestinationId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_version'] = isset($data['payload_version']) ? $data['payload_version'] : null; $this->container['destination_id'] = isset($data['destination_id']) ? $data['destination_id'] : 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_version. * * @return string */ public function getPayloadVersion() { return $this->container['payload_version']; } /** * Sets payload_version. * * @param string $payload_version the version of the payload object to be used in the notification * * @return $this */ public function setPayloadVersion($payload_version) { $this->container['payload_version'] = $payload_version; return $this; } /** * Gets destination_id. * * @return string */ public function getDestinationId() { return $this->container['destination_id']; } /** * Sets destination_id. * * @param string $destination_id the identifier for the destination where notifications will be delivered * * @return $this */ public function setDestinationId($destination_id) { $this->container['destination_id'] = $destination_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FbaInventory/ErrorList.php
lib/Models/FbaInventory/ErrorList.php
<?php /** * ErrorList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; 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/FbaInventory/InventorySummary.php
lib/Models/FbaInventory/InventorySummary.php
<?php /** * InventorySummary. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * InventorySummary Class Doc Comment. * * @description Inventory summary for a specific item. * * @author Stefan Neuhaus / ClouSale */ class InventorySummary implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'InventorySummary'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'asin' => 'string', 'fn_sku' => 'string', 'seller_sku' => 'string', 'condition' => 'string', 'inventory_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\InventoryDetails', 'last_updated_time' => '\DateTime', 'product_name' => 'string', 'total_quantity' => 'int', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'asin' => null, 'fn_sku' => null, 'seller_sku' => null, 'condition' => null, 'inventory_details' => null, 'last_updated_time' => 'date-time', 'product_name' => null, 'total_quantity' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'asin' => 'asin', 'fn_sku' => 'fnSku', 'seller_sku' => 'sellerSku', 'condition' => 'condition', 'inventory_details' => 'inventoryDetails', 'last_updated_time' => 'lastUpdatedTime', 'product_name' => 'productName', 'total_quantity' => 'totalQuantity', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'asin' => 'setAsin', 'fn_sku' => 'setFnSku', 'seller_sku' => 'setSellerSku', 'condition' => 'setCondition', 'inventory_details' => 'setInventoryDetails', 'last_updated_time' => 'setLastUpdatedTime', 'product_name' => 'setProductName', 'total_quantity' => 'setTotalQuantity', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'asin' => 'getAsin', 'fn_sku' => 'getFnSku', 'seller_sku' => 'getSellerSku', 'condition' => 'getCondition', 'inventory_details' => 'getInventoryDetails', 'last_updated_time' => 'getLastUpdatedTime', 'product_name' => 'getProductName', 'total_quantity' => 'getTotalQuantity', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['fn_sku'] = isset($data['fn_sku']) ? $data['fn_sku'] : null; $this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null; $this->container['condition'] = isset($data['condition']) ? $data['condition'] : null; $this->container['inventory_details'] = isset($data['inventory_details']) ? $data['inventory_details'] : null; $this->container['last_updated_time'] = isset($data['last_updated_time']) ? $data['last_updated_time'] : null; $this->container['product_name'] = isset($data['product_name']) ? $data['product_name'] : null; $this->container['total_quantity'] = isset($data['total_quantity']) ? $data['total_quantity'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets asin. * * @return string */ public function getAsin() { return $this->container['asin']; } /** * Sets asin. * * @param string $asin the Amazon Standard Identification Number (ASIN) of an item * * @return $this */ public function setAsin($asin) { $this->container['asin'] = $asin; return $this; } /** * Gets fn_sku. * * @return string */ public function getFnSku() { return $this->container['fn_sku']; } /** * Sets fn_sku. * * @param string $fn_sku amazon's fulfillment network SKU identifier * * @return $this */ public function setFnSku($fn_sku) { $this->container['fn_sku'] = $fn_sku; return $this; } /** * Gets seller_sku. * * @return string */ public function getSellerSku() { return $this->container['seller_sku']; } /** * Sets seller_sku. * * @param string $seller_sku the seller SKU of the item * * @return $this */ public function setSellerSku($seller_sku) { $this->container['seller_sku'] = $seller_sku; return $this; } /** * Gets condition. * * @return string */ public function getCondition() { return $this->container['condition']; } /** * Sets condition. * * @param string $condition the condition of the item as described by the seller (for example, New Item) * * @return $this */ public function setCondition($condition) { $this->container['condition'] = $condition; return $this; } /** * Gets inventory_details. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\InventoryDetails */ public function getInventoryDetails() { return $this->container['inventory_details']; } /** * Sets inventory_details. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\InventoryDetails $inventory_details inventory_details * * @return $this */ public function setInventoryDetails($inventory_details) { $this->container['inventory_details'] = $inventory_details; return $this; } /** * Gets last_updated_time. * * @return \DateTime */ public function getLastUpdatedTime() { return $this->container['last_updated_time']; } /** * Sets last_updated_time. * * @param \DateTime $last_updated_time the date and time that any quantity was last updated * * @return $this */ public function setLastUpdatedTime($last_updated_time) { $this->container['last_updated_time'] = $last_updated_time; return $this; } /** * Gets product_name. * * @return string */ public function getProductName() { return $this->container['product_name']; } /** * Sets product_name. * * @param string $product_name the localized language product title of the item within the specific marketplace * * @return $this */ public function setProductName($product_name) { $this->container['product_name'] = $product_name; return $this; } /** * Gets total_quantity. * * @return int */ public function getTotalQuantity() { return $this->container['total_quantity']; } /** * Sets total_quantity. * * @param int $total_quantity the total number of units in an inbound shipment or in Amazon fulfillment centers * * @return $this */ public function setTotalQuantity($total_quantity) { $this->container['total_quantity'] = $total_quantity; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FbaInventory/GetInventorySummariesResponse.php
lib/Models/FbaInventory/GetInventorySummariesResponse.php
<?php /** * GetInventorySummariesResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetInventorySummariesResponse Class Doc Comment. * * @description The Response schema. * * @author Stefan Neuhaus / ClouSale */ class GetInventorySummariesResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetInventorySummariesResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\GetInventorySummariesResult', 'pagination' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\Pagination', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ErrorList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payload' => null, 'pagination' => 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', 'pagination' => 'pagination', 'errors' => 'errors', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'pagination' => 'setPagination', 'errors' => 'setErrors', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'pagination' => 'getPagination', '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['pagination'] = isset($data['pagination']) ? $data['pagination'] : 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\FbaInventory\GetInventorySummariesResult */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\GetInventorySummariesResult $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets pagination. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\Pagination */ public function getPagination() { return $this->container['pagination']; } /** * Sets pagination. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\Pagination $pagination pagination * * @return $this */ public function setPagination($pagination) { $this->container['pagination'] = $pagination; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\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/FbaInventory/Pagination.php
lib/Models/FbaInventory/Pagination.php
<?php /** * Pagination. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Pagination Class Doc Comment. * * @description The process of returning the results to a request in batches of a defined size called pages. This is done to exercise some control over result size and overall throughput. It&#x27;s a form of traffic management. * * @author Stefan Neuhaus / ClouSale */ class Pagination implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Pagination'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'next_token' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ '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 = [ 'next_token' => 'nextToken', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'next_token' => 'setNextToken', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ '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['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 next_token. * * @return string */ public function getNextToken() { return $this->container['next_token']; } /** * Sets next_token. * * @param string $next_token A generated string used to retrieve the next page of the result. If nextToken is returned, pass the value of nextToken to the next request. If nextToken is not returned, there are no more items to return. * * @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/FbaInventory/ResearchingQuantityEntry.php
lib/Models/FbaInventory/ResearchingQuantityEntry.php
<?php /** * ResearchingQuantityEntry. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ResearchingQuantityEntry Class Doc Comment. * * @description The misplaced or warehouse damaged inventory that is actively being confirmed at our fulfillment centers. * * @author Stefan Neuhaus / ClouSale */ class ResearchingQuantityEntry implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ResearchingQuantityEntry'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'name' => 'string', 'quantity' => 'int', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'name' => null, 'quantity' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'name' => 'name', 'quantity' => 'quantity', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'name' => 'setName', 'quantity' => 'setQuantity', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'name' => 'getName', 'quantity' => 'getQuantity', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } const NAME_RESEARCHING_QUANTITY_IN_SHORT_TERM = 'researchingQuantityInShortTerm'; const NAME_RESEARCHING_QUANTITY_IN_MID_TERM = 'researchingQuantityInMidTerm'; const NAME_RESEARCHING_QUANTITY_IN_LONG_TERM = 'researchingQuantityInLongTerm'; /** * Gets allowable values of the enum. * * @return string[] */ public function getNameAllowableValues() { return [ self::NAME_RESEARCHING_QUANTITY_IN_SHORT_TERM, self::NAME_RESEARCHING_QUANTITY_IN_MID_TERM, self::NAME_RESEARCHING_QUANTITY_IN_LONG_TERM, ]; } /** * Associative array for storing 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['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['name']) { $invalidProperties[] = "'name' can't be null"; } $allowedValues = $this->getNameAllowableValues(); if (!is_null($this->container['name']) && !in_array($this->container['name'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'name', must be one of '%s'", implode("', '", $allowedValues) ); } 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 name. * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name. * * @param string $name the duration of the research * * @return $this */ public function setName($name) { $allowedValues = $this->getNameAllowableValues(); if (!in_array($name, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'name', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['name'] = $name; return $this; } /** * Gets quantity. * * @return int */ public function getQuantity() { return $this->container['quantity']; } /** * Sets quantity. * * @param int $quantity the number of units * * @return $this */ public function setQuantity($quantity) { $this->container['quantity'] = $quantity; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FbaInventory/InventorySummaries.php
lib/Models/FbaInventory/InventorySummaries.php
<?php /** * InventorySummaries. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * InventorySummaries Class Doc Comment. * * @description A list of inventory summaries. * * @author Stefan Neuhaus / ClouSale */ class InventorySummaries implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'InventorySummaries'; /** * 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/FbaInventory/InventoryDetails.php
lib/Models/FbaInventory/InventoryDetails.php
<?php /** * InventoryDetails. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * InventoryDetails Class Doc Comment. * * @description Summarized inventory details. This object will not appear if the details parameter in the request is false. * * @author Stefan Neuhaus / ClouSale */ class InventoryDetails implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'InventoryDetails'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'fulfillable_quantity' => 'int', 'inbound_working_quantity' => 'int', 'inbound_shipped_quantity' => 'int', 'inbound_receiving_quantity' => 'int', 'reserved_quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ReservedQuantity', 'researching_quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ResearchingQuantity', 'unfulfillable_quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\UnfulfillableQuantity', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'fulfillable_quantity' => null, 'inbound_working_quantity' => null, 'inbound_shipped_quantity' => null, 'inbound_receiving_quantity' => null, 'reserved_quantity' => null, 'researching_quantity' => null, 'unfulfillable_quantity' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'fulfillable_quantity' => 'fulfillableQuantity', 'inbound_working_quantity' => 'inboundWorkingQuantity', 'inbound_shipped_quantity' => 'inboundShippedQuantity', 'inbound_receiving_quantity' => 'inboundReceivingQuantity', 'reserved_quantity' => 'reservedQuantity', 'researching_quantity' => 'researchingQuantity', 'unfulfillable_quantity' => 'unfulfillableQuantity', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'fulfillable_quantity' => 'setFulfillableQuantity', 'inbound_working_quantity' => 'setInboundWorkingQuantity', 'inbound_shipped_quantity' => 'setInboundShippedQuantity', 'inbound_receiving_quantity' => 'setInboundReceivingQuantity', 'reserved_quantity' => 'setReservedQuantity', 'researching_quantity' => 'setResearchingQuantity', 'unfulfillable_quantity' => 'setUnfulfillableQuantity', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'fulfillable_quantity' => 'getFulfillableQuantity', 'inbound_working_quantity' => 'getInboundWorkingQuantity', 'inbound_shipped_quantity' => 'getInboundShippedQuantity', 'inbound_receiving_quantity' => 'getInboundReceivingQuantity', 'reserved_quantity' => 'getReservedQuantity', 'researching_quantity' => 'getResearchingQuantity', 'unfulfillable_quantity' => 'getUnfulfillableQuantity', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['fulfillable_quantity'] = isset($data['fulfillable_quantity']) ? $data['fulfillable_quantity'] : null; $this->container['inbound_working_quantity'] = isset($data['inbound_working_quantity']) ? $data['inbound_working_quantity'] : null; $this->container['inbound_shipped_quantity'] = isset($data['inbound_shipped_quantity']) ? $data['inbound_shipped_quantity'] : null; $this->container['inbound_receiving_quantity'] = isset($data['inbound_receiving_quantity']) ? $data['inbound_receiving_quantity'] : null; $this->container['reserved_quantity'] = isset($data['reserved_quantity']) ? $data['reserved_quantity'] : null; $this->container['researching_quantity'] = isset($data['researching_quantity']) ? $data['researching_quantity'] : null; $this->container['unfulfillable_quantity'] = isset($data['unfulfillable_quantity']) ? $data['unfulfillable_quantity'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets fulfillable_quantity. * * @return int */ public function getFulfillableQuantity() { return $this->container['fulfillable_quantity']; } /** * Sets fulfillable_quantity. * * @param int $fulfillable_quantity the item quantity that can be picked, packed, and shipped * * @return $this */ public function setFulfillableQuantity($fulfillable_quantity) { $this->container['fulfillable_quantity'] = $fulfillable_quantity; return $this; } /** * Gets inbound_working_quantity. * * @return int */ public function getInboundWorkingQuantity() { return $this->container['inbound_working_quantity']; } /** * Sets inbound_working_quantity. * * @param int $inbound_working_quantity the number of units in an inbound shipment for which you have notified Amazon * * @return $this */ public function setInboundWorkingQuantity($inbound_working_quantity) { $this->container['inbound_working_quantity'] = $inbound_working_quantity; return $this; } /** * Gets inbound_shipped_quantity. * * @return int */ public function getInboundShippedQuantity() { return $this->container['inbound_shipped_quantity']; } /** * Sets inbound_shipped_quantity. * * @param int $inbound_shipped_quantity the number of units in an inbound shipment that you have notified Amazon about and have provided a tracking number * * @return $this */ public function setInboundShippedQuantity($inbound_shipped_quantity) { $this->container['inbound_shipped_quantity'] = $inbound_shipped_quantity; return $this; } /** * Gets inbound_receiving_quantity. * * @return int */ public function getInboundReceivingQuantity() { return $this->container['inbound_receiving_quantity']; } /** * Sets inbound_receiving_quantity. * * @param int $inbound_receiving_quantity the number of units that have not yet been received at an Amazon fulfillment center for processing, but are part of an inbound shipment with some units that have already been received and processed * * @return $this */ public function setInboundReceivingQuantity($inbound_receiving_quantity) { $this->container['inbound_receiving_quantity'] = $inbound_receiving_quantity; return $this; } /** * Gets reserved_quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ReservedQuantity */ public function getReservedQuantity() { return $this->container['reserved_quantity']; } /** * Sets reserved_quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ReservedQuantity $reserved_quantity reserved_quantity * * @return $this */ public function setReservedQuantity($reserved_quantity) { $this->container['reserved_quantity'] = $reserved_quantity; return $this; } /** * Gets researching_quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ResearchingQuantity */ public function getResearchingQuantity() { return $this->container['researching_quantity']; } /** * Sets researching_quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ResearchingQuantity $researching_quantity researching_quantity * * @return $this */ public function setResearchingQuantity($researching_quantity) { $this->container['researching_quantity'] = $researching_quantity; return $this; } /** * Gets unfulfillable_quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\UnfulfillableQuantity */ public function getUnfulfillableQuantity() { return $this->container['unfulfillable_quantity']; } /** * Sets unfulfillable_quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\UnfulfillableQuantity $unfulfillable_quantity unfulfillable_quantity * * @return $this */ public function setUnfulfillableQuantity($unfulfillable_quantity) { $this->container['unfulfillable_quantity'] = $unfulfillable_quantity; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FbaInventory/UnfulfillableQuantity.php
lib/Models/FbaInventory/UnfulfillableQuantity.php
<?php /** * UnfulfillableQuantity. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * UnfulfillableQuantity Class Doc Comment. * * @description The quantity of unfulfillable inventory. * * @author Stefan Neuhaus / ClouSale */ class UnfulfillableQuantity implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'UnfulfillableQuantity'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'total_unfulfillable_quantity' => 'int', 'customer_damaged_quantity' => 'int', 'warehouse_damaged_quantity' => 'int', 'distributor_damaged_quantity' => 'int', 'carrier_damaged_quantity' => 'int', 'defective_quantity' => 'int', 'expired_quantity' => 'int', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'total_unfulfillable_quantity' => null, 'customer_damaged_quantity' => null, 'warehouse_damaged_quantity' => null, 'distributor_damaged_quantity' => null, 'carrier_damaged_quantity' => null, 'defective_quantity' => null, 'expired_quantity' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'total_unfulfillable_quantity' => 'totalUnfulfillableQuantity', 'customer_damaged_quantity' => 'customerDamagedQuantity', 'warehouse_damaged_quantity' => 'warehouseDamagedQuantity', 'distributor_damaged_quantity' => 'distributorDamagedQuantity', 'carrier_damaged_quantity' => 'carrierDamagedQuantity', 'defective_quantity' => 'defectiveQuantity', 'expired_quantity' => 'expiredQuantity', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'total_unfulfillable_quantity' => 'setTotalUnfulfillableQuantity', 'customer_damaged_quantity' => 'setCustomerDamagedQuantity', 'warehouse_damaged_quantity' => 'setWarehouseDamagedQuantity', 'distributor_damaged_quantity' => 'setDistributorDamagedQuantity', 'carrier_damaged_quantity' => 'setCarrierDamagedQuantity', 'defective_quantity' => 'setDefectiveQuantity', 'expired_quantity' => 'setExpiredQuantity', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'total_unfulfillable_quantity' => 'getTotalUnfulfillableQuantity', 'customer_damaged_quantity' => 'getCustomerDamagedQuantity', 'warehouse_damaged_quantity' => 'getWarehouseDamagedQuantity', 'distributor_damaged_quantity' => 'getDistributorDamagedQuantity', 'carrier_damaged_quantity' => 'getCarrierDamagedQuantity', 'defective_quantity' => 'getDefectiveQuantity', 'expired_quantity' => 'getExpiredQuantity', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_unfulfillable_quantity'] = isset($data['total_unfulfillable_quantity']) ? $data['total_unfulfillable_quantity'] : null; $this->container['customer_damaged_quantity'] = isset($data['customer_damaged_quantity']) ? $data['customer_damaged_quantity'] : null; $this->container['warehouse_damaged_quantity'] = isset($data['warehouse_damaged_quantity']) ? $data['warehouse_damaged_quantity'] : null; $this->container['distributor_damaged_quantity'] = isset($data['distributor_damaged_quantity']) ? $data['distributor_damaged_quantity'] : null; $this->container['carrier_damaged_quantity'] = isset($data['carrier_damaged_quantity']) ? $data['carrier_damaged_quantity'] : null; $this->container['defective_quantity'] = isset($data['defective_quantity']) ? $data['defective_quantity'] : null; $this->container['expired_quantity'] = isset($data['expired_quantity']) ? $data['expired_quantity'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets total_unfulfillable_quantity. * * @return int */ public function getTotalUnfulfillableQuantity() { return $this->container['total_unfulfillable_quantity']; } /** * Sets total_unfulfillable_quantity. * * @param int $total_unfulfillable_quantity the total number of units in Amazon's fulfillment network in unsellable condition * * @return $this */ public function setTotalUnfulfillableQuantity($total_unfulfillable_quantity) { $this->container['total_unfulfillable_quantity'] = $total_unfulfillable_quantity; return $this; } /** * Gets customer_damaged_quantity. * * @return int */ public function getCustomerDamagedQuantity() { return $this->container['customer_damaged_quantity']; } /** * Sets customer_damaged_quantity. * * @param int $customer_damaged_quantity the number of units in customer damaged disposition * * @return $this */ public function setCustomerDamagedQuantity($customer_damaged_quantity) { $this->container['customer_damaged_quantity'] = $customer_damaged_quantity; return $this; } /** * Gets warehouse_damaged_quantity. * * @return int */ public function getWarehouseDamagedQuantity() { return $this->container['warehouse_damaged_quantity']; } /** * Sets warehouse_damaged_quantity. * * @param int $warehouse_damaged_quantity the number of units in warehouse damaged disposition * * @return $this */ public function setWarehouseDamagedQuantity($warehouse_damaged_quantity) { $this->container['warehouse_damaged_quantity'] = $warehouse_damaged_quantity; return $this; } /** * Gets distributor_damaged_quantity. * * @return int */ public function getDistributorDamagedQuantity() { return $this->container['distributor_damaged_quantity']; } /** * Sets distributor_damaged_quantity. * * @param int $distributor_damaged_quantity the number of units in distributor damaged disposition * * @return $this */ public function setDistributorDamagedQuantity($distributor_damaged_quantity) { $this->container['distributor_damaged_quantity'] = $distributor_damaged_quantity; return $this; } /** * Gets carrier_damaged_quantity. * * @return int */ public function getCarrierDamagedQuantity() { return $this->container['carrier_damaged_quantity']; } /** * Sets carrier_damaged_quantity. * * @param int $carrier_damaged_quantity the number of units in carrier damaged disposition * * @return $this */ public function setCarrierDamagedQuantity($carrier_damaged_quantity) { $this->container['carrier_damaged_quantity'] = $carrier_damaged_quantity; return $this; } /** * Gets defective_quantity. * * @return int */ public function getDefectiveQuantity() { return $this->container['defective_quantity']; } /** * Sets defective_quantity. * * @param int $defective_quantity the number of units in defective disposition * * @return $this */ public function setDefectiveQuantity($defective_quantity) { $this->container['defective_quantity'] = $defective_quantity; return $this; } /** * Gets expired_quantity. * * @return int */ public function getExpiredQuantity() { return $this->container['expired_quantity']; } /** * Sets expired_quantity. * * @param int $expired_quantity the number of units in expired disposition * * @return $this */ public function setExpiredQuantity($expired_quantity) { $this->container['expired_quantity'] = $expired_quantity; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FbaInventory/Granularity.php
lib/Models/FbaInventory/Granularity.php
<?php /** * Granularity. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Granularity Class Doc Comment. * * @description Describes a granularity at which inventory data can be aggregated. For example, if you use Marketplace granularity, the fulfillable quantity will reflect inventory that could be fulfilled in the given marketplace. * * @author Stefan Neuhaus / ClouSale */ class Granularity implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Granularity'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'granularity_type' => 'string', 'granularity_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'granularity_type' => null, 'granularity_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 = [ 'granularity_type' => 'granularityType', 'granularity_id' => 'granularityId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'granularity_type' => 'setGranularityType', 'granularity_id' => 'setGranularityId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'granularity_type' => 'getGranularityType', 'granularity_id' => 'getGranularityId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 GRANULARITY_TYPE_MARKETPLACE = 'Marketplace'; /** * Gets allowable values of the enum. * * @return string[] */ public function getGranularityTypeAllowableValues() { return [ self::GRANULARITY_TYPE_MARKETPLACE, ]; } /** * Associative array for storing 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['granularity_type'] = isset($data['granularity_type']) ? $data['granularity_type'] : null; $this->container['granularity_id'] = isset($data['granularity_id']) ? $data['granularity_id'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getGranularityTypeAllowableValues(); if (!is_null($this->container['granularity_type']) && !in_array($this->container['granularity_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'granularity_type', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets granularity_type. * * @return string */ public function getGranularityType() { return $this->container['granularity_type']; } /** * Sets granularity_type. * * @param string $granularity_type the granularity type for the inventory aggregation level * * @return $this */ public function setGranularityType($granularity_type) { $allowedValues = $this->getGranularityTypeAllowableValues(); if (!is_null($granularity_type) && !in_array($granularity_type, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'granularity_type', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['granularity_type'] = $granularity_type; return $this; } /** * Gets granularity_id. * * @return string */ public function getGranularityId() { return $this->container['granularity_id']; } /** * Sets granularity_id. * * @param string $granularity_id The granularity ID for the specified granularity type. When granularityType is Marketplace, specify the marketplaceId. * * @return $this */ public function setGranularityId($granularity_id) { $this->container['granularity_id'] = $granularity_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FbaInventory/Error.php
lib/Models/FbaInventory/Error.php
<?php /** * Error. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Error Class Doc Comment. * * @description An 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"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets code. * * @return string */ public function getCode() { return $this->container['code']; } /** * Sets code. * * @param string $code an error code that identifies the type of error that occurred * * @return $this */ public function setCode($code) { $this->container['code'] = $code; return $this; } /** * Gets message. * * @return string */ public function getMessage() { return $this->container['message']; } /** * Sets message. * * @param string $message a message that describes the error condition in a human-readable form * * @return $this */ public function setMessage($message) { $this->container['message'] = $message; return $this; } /** * Gets details. * * @return string */ public function getDetails() { return $this->container['details']; } /** * Sets details. * * @param string $details additional information that can help the caller understand or fix the issue * * @return $this */ public function setDetails($details) { $this->container['details'] = $details; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FbaInventory/ResearchingQuantity.php
lib/Models/FbaInventory/ResearchingQuantity.php
<?php /** * ResearchingQuantity. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ResearchingQuantity Class Doc Comment. * * @description The number of misplaced or warehouse damaged units that are actively being confirmed at our fulfillment centers. * * @author Stefan Neuhaus / ClouSale */ class ResearchingQuantity implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ResearchingQuantity'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'total_researching_quantity' => 'int', 'researching_quantity_breakdown' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ResearchingQuantityEntry[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'total_researching_quantity' => null, 'researching_quantity_breakdown' => 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_researching_quantity' => 'totalResearchingQuantity', 'researching_quantity_breakdown' => 'researchingQuantityBreakdown', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'total_researching_quantity' => 'setTotalResearchingQuantity', 'researching_quantity_breakdown' => 'setResearchingQuantityBreakdown', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'total_researching_quantity' => 'getTotalResearchingQuantity', 'researching_quantity_breakdown' => 'getResearchingQuantityBreakdown', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_researching_quantity'] = isset($data['total_researching_quantity']) ? $data['total_researching_quantity'] : null; $this->container['researching_quantity_breakdown'] = isset($data['researching_quantity_breakdown']) ? $data['researching_quantity_breakdown'] : 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_researching_quantity. * * @return int */ public function getTotalResearchingQuantity() { return $this->container['total_researching_quantity']; } /** * Sets total_researching_quantity. * * @param int $total_researching_quantity the total number of units currently being researched in Amazon's fulfillment network * * @return $this */ public function setTotalResearchingQuantity($total_researching_quantity) { $this->container['total_researching_quantity'] = $total_researching_quantity; return $this; } /** * Gets researching_quantity_breakdown. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ResearchingQuantityEntry[] */ public function getResearchingQuantityBreakdown() { return $this->container['researching_quantity_breakdown']; } /** * Sets researching_quantity_breakdown. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\ResearchingQuantityEntry[] $researching_quantity_breakdown a list of quantity details for items currently being researched * * @return $this */ public function setResearchingQuantityBreakdown($researching_quantity_breakdown) { $this->container['researching_quantity_breakdown'] = $researching_quantity_breakdown; 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/FbaInventory/GetInventorySummariesResult.php
lib/Models/FbaInventory/GetInventorySummariesResult.php
<?php /** * GetInventorySummariesResult. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetInventorySummariesResult Class Doc Comment. * * @description The payload schema for the getInventorySummaries operation. * * @author Stefan Neuhaus / ClouSale */ class GetInventorySummariesResult implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetInventorySummariesResult'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'granularity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\Granularity', 'inventory_summaries' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\InventorySummaries', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'granularity' => null, 'inventory_summaries' => 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 = [ 'granularity' => 'granularity', 'inventory_summaries' => 'inventorySummaries', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'granularity' => 'setGranularity', 'inventory_summaries' => 'setInventorySummaries', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'granularity' => 'getGranularity', 'inventory_summaries' => 'getInventorySummaries', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['granularity'] = isset($data['granularity']) ? $data['granularity'] : null; $this->container['inventory_summaries'] = isset($data['inventory_summaries']) ? $data['inventory_summaries'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['granularity']) { $invalidProperties[] = "'granularity' can't be null"; } if (null === $this->container['inventory_summaries']) { $invalidProperties[] = "'inventory_summaries' 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 granularity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\Granularity */ public function getGranularity() { return $this->container['granularity']; } /** * Sets granularity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\Granularity $granularity granularity * * @return $this */ public function setGranularity($granularity) { $this->container['granularity'] = $granularity; return $this; } /** * Gets inventory_summaries. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\InventorySummaries */ public function getInventorySummaries() { return $this->container['inventory_summaries']; } /** * Sets inventory_summaries. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\InventorySummaries $inventory_summaries inventory_summaries * * @return $this */ public function setInventorySummaries($inventory_summaries) { $this->container['inventory_summaries'] = $inventory_summaries; 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/FbaInventory/ReservedQuantity.php
lib/Models/FbaInventory/ReservedQuantity.php
<?php /** * ReservedQuantity. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for FBA Inventory. * * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ReservedQuantity Class Doc Comment. * * @description The quantity of reserved inventory. * * @author Stefan Neuhaus / ClouSale */ class ReservedQuantity implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ReservedQuantity'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'total_reserved_quantity' => 'int', 'pending_customer_order_quantity' => 'int', 'pending_transshipment_quantity' => 'int', 'fc_processing_quantity' => 'int', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'total_reserved_quantity' => null, 'pending_customer_order_quantity' => null, 'pending_transshipment_quantity' => null, 'fc_processing_quantity' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'total_reserved_quantity' => 'totalReservedQuantity', 'pending_customer_order_quantity' => 'pendingCustomerOrderQuantity', 'pending_transshipment_quantity' => 'pendingTransshipmentQuantity', 'fc_processing_quantity' => 'fcProcessingQuantity', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'total_reserved_quantity' => 'setTotalReservedQuantity', 'pending_customer_order_quantity' => 'setPendingCustomerOrderQuantity', 'pending_transshipment_quantity' => 'setPendingTransshipmentQuantity', 'fc_processing_quantity' => 'setFcProcessingQuantity', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'total_reserved_quantity' => 'getTotalReservedQuantity', 'pending_customer_order_quantity' => 'getPendingCustomerOrderQuantity', 'pending_transshipment_quantity' => 'getPendingTransshipmentQuantity', 'fc_processing_quantity' => 'getFcProcessingQuantity', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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_reserved_quantity'] = isset($data['total_reserved_quantity']) ? $data['total_reserved_quantity'] : null; $this->container['pending_customer_order_quantity'] = isset($data['pending_customer_order_quantity']) ? $data['pending_customer_order_quantity'] : null; $this->container['pending_transshipment_quantity'] = isset($data['pending_transshipment_quantity']) ? $data['pending_transshipment_quantity'] : null; $this->container['fc_processing_quantity'] = isset($data['fc_processing_quantity']) ? $data['fc_processing_quantity'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets total_reserved_quantity. * * @return int */ public function getTotalReservedQuantity() { return $this->container['total_reserved_quantity']; } /** * Sets total_reserved_quantity. * * @param int $total_reserved_quantity the total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes * * @return $this */ public function setTotalReservedQuantity($total_reserved_quantity) { $this->container['total_reserved_quantity'] = $total_reserved_quantity; return $this; } /** * Gets pending_customer_order_quantity. * * @return int */ public function getPendingCustomerOrderQuantity() { return $this->container['pending_customer_order_quantity']; } /** * Sets pending_customer_order_quantity. * * @param int $pending_customer_order_quantity the number of units reserved for customer orders * * @return $this */ public function setPendingCustomerOrderQuantity($pending_customer_order_quantity) { $this->container['pending_customer_order_quantity'] = $pending_customer_order_quantity; return $this; } /** * Gets pending_transshipment_quantity. * * @return int */ public function getPendingTransshipmentQuantity() { return $this->container['pending_transshipment_quantity']; } /** * Sets pending_transshipment_quantity. * * @param int $pending_transshipment_quantity the number of units being transferred from one fulfillment center to another * * @return $this */ public function setPendingTransshipmentQuantity($pending_transshipment_quantity) { $this->container['pending_transshipment_quantity'] = $pending_transshipment_quantity; return $this; } /** * Gets fc_processing_quantity. * * @return int */ public function getFcProcessingQuantity() { return $this->container['fc_processing_quantity']; } /** * Sets fc_processing_quantity. * * @param int $fc_processing_quantity the number of units that have been sidelined at the fulfillment center for additional processing * * @return $this */ public function setFcProcessingQuantity($fc_processing_quantity) { $this->container['fc_processing_quantity'] = $fc_processing_quantity; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/AdditionalSellerInputs.php
lib/Models/MerchantFulfillment/AdditionalSellerInputs.php
<?php /** * AdditionalSellerInputs. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AdditionalSellerInputs Class Doc Comment. * * @description An additional set of seller inputs required to purchase shipping. * * @author Stefan Neuhaus / ClouSale */ class AdditionalSellerInputs implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AdditionalSellerInputs'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'additional_input_field_name' => 'string', 'additional_seller_input' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'additional_input_field_name' => null, 'additional_seller_input' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'additional_input_field_name' => 'AdditionalInputFieldName', 'additional_seller_input' => 'AdditionalSellerInput', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'additional_input_field_name' => 'setAdditionalInputFieldName', 'additional_seller_input' => 'setAdditionalSellerInput', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'additional_input_field_name' => 'getAdditionalInputFieldName', 'additional_seller_input' => 'getAdditionalSellerInput', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['additional_input_field_name'] = isset($data['additional_input_field_name']) ? $data['additional_input_field_name'] : null; $this->container['additional_seller_input'] = isset($data['additional_seller_input']) ? $data['additional_seller_input'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['additional_input_field_name']) { $invalidProperties[] = "'additional_input_field_name' can't be null"; } if (null === $this->container['additional_seller_input']) { $invalidProperties[] = "'additional_seller_input' 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 additional_input_field_name. * * @return string */ public function getAdditionalInputFieldName() { return $this->container['additional_input_field_name']; } /** * Sets additional_input_field_name. * * @param string $additional_input_field_name the name of the additional input field * * @return $this */ public function setAdditionalInputFieldName($additional_input_field_name) { $this->container['additional_input_field_name'] = $additional_input_field_name; return $this; } /** * Gets additional_seller_input. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput */ public function getAdditionalSellerInput() { return $this->container['additional_seller_input']; } /** * Sets additional_seller_input. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput $additional_seller_input additional_seller_input * * @return $this */ public function setAdditionalSellerInput($additional_seller_input) { $this->container['additional_seller_input'] = $additional_seller_input; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrierList.php
lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrierList.php
<?php /** * TemporarilyUnavailableCarrierList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TemporarilyUnavailableCarrierList Class Doc Comment. * * @description A list of temporarily unavailable carriers. * * @author Stefan Neuhaus / ClouSale */ class TemporarilyUnavailableCarrierList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TemporarilyUnavailableCarrierList'; /** * 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 TemporarilyUnavailableCarrier::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/TransparencyCodeList.php
lib/Models/MerchantFulfillment/TransparencyCodeList.php
<?php /** * TransparencyCodeList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TransparencyCodeList Class Doc Comment. * * @description A list of transparency codes. * * @author Stefan Neuhaus / ClouSale */ class TransparencyCodeList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TransparencyCodeList'; /** * 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 TransparencyCode::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/LabelFormatList.php
lib/Models/MerchantFulfillment/LabelFormatList.php
<?php /** * LabelFormatList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * LabelFormatList Class Doc Comment. * * @description List of label formats. * * @author Stefan Neuhaus / ClouSale */ class LabelFormatList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'LabelFormatList'; /** * 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 LabelFormat::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOption.php
lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOption.php
<?php /** * AvailableDeliveryExperienceOption. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AvailableDeliveryExperienceOption Class Doc Comment. * * @description The available delivery confirmation options, and the fee charged, if any. * * @author Stefan Neuhaus / ClouSale */ class AvailableDeliveryExperienceOption implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AvailableDeliveryExperienceOption'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'delivery_experience_option' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption', 'charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'delivery_experience_option' => null, 'charge' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'delivery_experience_option' => 'DeliveryExperienceOption', 'charge' => 'Charge', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'delivery_experience_option' => 'setDeliveryExperienceOption', 'charge' => 'setCharge', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'delivery_experience_option' => 'getDeliveryExperienceOption', 'charge' => 'getCharge', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['delivery_experience_option'] = isset($data['delivery_experience_option']) ? $data['delivery_experience_option'] : null; $this->container['charge'] = isset($data['charge']) ? $data['charge'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['delivery_experience_option']) { $invalidProperties[] = "'delivery_experience_option' can't be null"; } if (null === $this->container['charge']) { $invalidProperties[] = "'charge' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets delivery_experience_option. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption */ public function getDeliveryExperienceOption() { return $this->container['delivery_experience_option']; } /** * Sets delivery_experience_option. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption $delivery_experience_option delivery_experience_option * * @return $this */ public function setDeliveryExperienceOption($delivery_experience_option) { $this->container['delivery_experience_option'] = $delivery_experience_option; return $this; } /** * Gets charge. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount */ public function getCharge() { return $this->container['charge']; } /** * Sets charge. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $charge charge * * @return $this */ public function setCharge($charge) { $this->container['charge'] = $charge; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/Address.php
lib/Models/MerchantFulfillment/Address.php
<?php /** * Address. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Address Class Doc Comment. * * @description The postal address information. * * @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' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressName', 'address_line1' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine1', 'address_line2' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine2', 'address_line3' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine3', 'district_or_county' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DistrictOrCounty', 'email' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\EmailAddress', 'city' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\City', 'state_or_province_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StateOrProvinceCode', 'postal_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PostalCode', 'country_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CountryCode', 'phone' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PhoneNumber', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'name' => null, 'address_line1' => null, 'address_line2' => null, 'address_line3' => null, 'district_or_county' => null, 'email' => null, 'city' => null, 'state_or_province_code' => null, 'postal_code' => null, 'country_code' => null, 'phone' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'name' => 'Name', 'address_line1' => 'AddressLine1', 'address_line2' => 'AddressLine2', 'address_line3' => 'AddressLine3', 'district_or_county' => 'DistrictOrCounty', 'email' => 'Email', 'city' => 'City', 'state_or_province_code' => 'StateOrProvinceCode', 'postal_code' => 'PostalCode', 'country_code' => 'CountryCode', 'phone' => 'Phone', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'name' => 'setName', 'address_line1' => 'setAddressLine1', 'address_line2' => 'setAddressLine2', 'address_line3' => 'setAddressLine3', 'district_or_county' => 'setDistrictOrCounty', 'email' => 'setEmail', 'city' => 'setCity', 'state_or_province_code' => 'setStateOrProvinceCode', 'postal_code' => 'setPostalCode', 'country_code' => 'setCountryCode', 'phone' => 'setPhone', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'name' => 'getName', 'address_line1' => 'getAddressLine1', 'address_line2' => 'getAddressLine2', 'address_line3' => 'getAddressLine3', 'district_or_county' => 'getDistrictOrCounty', 'email' => 'getEmail', 'city' => 'getCity', 'state_or_province_code' => 'getStateOrProvinceCode', 'postal_code' => 'getPostalCode', 'country_code' => 'getCountryCode', 'phone' => 'getPhone', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['address_line1'] = isset($data['address_line1']) ? $data['address_line1'] : null; $this->container['address_line2'] = isset($data['address_line2']) ? $data['address_line2'] : null; $this->container['address_line3'] = isset($data['address_line3']) ? $data['address_line3'] : null; $this->container['district_or_county'] = isset($data['district_or_county']) ? $data['district_or_county'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : 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['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null; $this->container['country_code'] = isset($data['country_code']) ? $data['country_code'] : null; $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null; } /** * 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['email']) { $invalidProperties[] = "'email' can't be null"; } if (null === $this->container['city']) { $invalidProperties[] = "'city' can't be null"; } if (null === $this->container['postal_code']) { $invalidProperties[] = "'postal_code' can't be null"; } if (null === $this->container['country_code']) { $invalidProperties[] = "'country_code' can't be null"; } if (null === $this->container['phone']) { $invalidProperties[] = "'phone' 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 \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressName */ public function getName() { return $this->container['name']; } /** * Sets name. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressName $name name * * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets address_line1. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine1 */ public function getAddressLine1() { return $this->container['address_line1']; } /** * Sets address_line1. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine1 $address_line1 address_line1 * * @return $this */ public function setAddressLine1($address_line1) { $this->container['address_line1'] = $address_line1; return $this; } /** * Gets address_line2. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine2 */ public function getAddressLine2() { return $this->container['address_line2']; } /** * Sets address_line2. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine2 $address_line2 address_line2 * * @return $this */ public function setAddressLine2($address_line2) { $this->container['address_line2'] = $address_line2; return $this; } /** * Gets address_line3. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine3 */ public function getAddressLine3() { return $this->container['address_line3']; } /** * Sets address_line3. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine3 $address_line3 address_line3 * * @return $this */ public function setAddressLine3($address_line3) { $this->container['address_line3'] = $address_line3; return $this; } /** * Gets district_or_county. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DistrictOrCounty */ public function getDistrictOrCounty() { return $this->container['district_or_county']; } /** * Sets district_or_county. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DistrictOrCounty $district_or_county district_or_county * * @return $this */ public function setDistrictOrCounty($district_or_county) { $this->container['district_or_county'] = $district_or_county; return $this; } /** * Gets email. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\EmailAddress */ public function getEmail() { return $this->container['email']; } /** * Sets email. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\EmailAddress $email email * * @return $this */ public function setEmail($email) { $this->container['email'] = $email; return $this; } /** * Gets city. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\City */ public function getCity() { return $this->container['city']; } /** * Sets city. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\City $city city * * @return $this */ public function setCity($city) { $this->container['city'] = $city; return $this; } /** * Gets state_or_province_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StateOrProvinceCode */ public function getStateOrProvinceCode() { return $this->container['state_or_province_code']; } /** * Sets state_or_province_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StateOrProvinceCode $state_or_province_code state_or_province_code * * @return $this */ public function setStateOrProvinceCode($state_or_province_code) { $this->container['state_or_province_code'] = $state_or_province_code; return $this; } /** * Gets postal_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PostalCode */ public function getPostalCode() { return $this->container['postal_code']; } /** * Sets postal_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PostalCode $postal_code postal_code * * @return $this */ public function setPostalCode($postal_code) { $this->container['postal_code'] = $postal_code; return $this; } /** * Gets country_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CountryCode */ public function getCountryCode() { return $this->container['country_code']; } /** * Sets country_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CountryCode $country_code country_code * * @return $this */ public function setCountryCode($country_code) { $this->container['country_code'] = $country_code; return $this; } /** * Gets phone. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PhoneNumber */ public function getPhone() { return $this->container['phone']; } /** * Sets phone. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PhoneNumber $phone phone * * @return $this */ public function setPhone($phone) { $this->container['phone'] = $phone; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/StateOrProvinceCode.php
lib/Models/MerchantFulfillment/StateOrProvinceCode.php
<?php /** * StateOrProvinceCode. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * StateOrProvinceCode Class Doc Comment. * * @description The state or province code. * * @author Stefan Neuhaus / ClouSale */ class StateOrProvinceCode implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'StateOrProvinceCode'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOptionsList.php
lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOptionsList.php
<?php /** * AvailableDeliveryExperienceOptionsList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AvailableDeliveryExperienceOptionsList Class Doc Comment. * * @description List of available delivery experience options. * * @author Stefan Neuhaus / ClouSale */ class AvailableDeliveryExperienceOptionsList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AvailableDeliveryExperienceOptionsList'; /** * 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 AvailableDeliveryExperienceOption::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOptionsList.php
lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOptionsList.php
<?php /** * AvailableCarrierWillPickUpOptionsList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AvailableCarrierWillPickUpOptionsList Class Doc Comment. * * @description List of available carrier pickup options. * * @author Stefan Neuhaus / ClouSale */ class AvailableCarrierWillPickUpOptionsList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AvailableCarrierWillPickUpOptionsList'; /** * 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 AvailableCarrierWillPickUpOption::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/ErrorList.php
lib/Models/MerchantFulfillment/ErrorList.php
<?php /** * ErrorList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * 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/MerchantFulfillment/ShipmentStatus.php
lib/Models/MerchantFulfillment/ShipmentStatus.php
<?php /** * ShipmentStatus. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; /** * ShipmentStatus Class Doc Comment. * * @description The shipment status. * * @author Stefan Neuhaus / ClouSale */ class ShipmentStatus { /** * Possible values of this enum. */ const PURCHASED = 'Purchased'; const REFUND_PENDING = 'RefundPending'; const REFUND_REJECTED = 'RefundRejected'; const REFUND_APPLIED = 'RefundApplied'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::PURCHASED, self::REFUND_PENDING, self::REFUND_REJECTED, self::REFUND_APPLIED, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/ItemLevelFields.php
lib/Models/MerchantFulfillment/ItemLevelFields.php
<?php /** * ItemLevelFields. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ItemLevelFields Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class ItemLevelFields implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ItemLevelFields'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'asin' => 'string', 'additional_inputs' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'asin' => null, 'additional_inputs' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'asin' => 'Asin', 'additional_inputs' => 'AdditionalInputs', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'asin' => 'setAsin', 'additional_inputs' => 'setAdditionalInputs', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'asin' => 'getAsin', 'additional_inputs' => 'getAdditionalInputs', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing 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['additional_inputs'] = isset($data['additional_inputs']) ? $data['additional_inputs'] : 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['additional_inputs']) { $invalidProperties[] = "'additional_inputs' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets 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 additional_inputs. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList */ public function getAdditionalInputs() { return $this->container['additional_inputs']; } /** * Sets additional_inputs. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList $additional_inputs additional_inputs * * @return $this */ public function setAdditionalInputs($additional_inputs) { $this->container['additional_inputs'] = $additional_inputs; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/AddressLine3.php
lib/Models/MerchantFulfillment/AddressLine3.php
<?php /** * AddressLine3. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AddressLine3 Class Doc Comment. * * @description Additional street address information. * * @author Stefan Neuhaus / ClouSale */ class AddressLine3 implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AddressLine3'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/LabelCustomization.php
lib/Models/MerchantFulfillment/LabelCustomization.php
<?php /** * LabelCustomization. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * LabelCustomization Class Doc Comment. * * @description Custom text for shipping labels. * * @author Stefan Neuhaus / ClouSale */ class LabelCustomization implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'LabelCustomization'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'custom_text_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel', 'standard_id_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'custom_text_for_label' => null, 'standard_id_for_label' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'custom_text_for_label' => 'CustomTextForLabel', 'standard_id_for_label' => 'StandardIdForLabel', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'custom_text_for_label' => 'setCustomTextForLabel', 'standard_id_for_label' => 'setStandardIdForLabel', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'custom_text_for_label' => 'getCustomTextForLabel', 'standard_id_for_label' => 'getStandardIdForLabel', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['custom_text_for_label'] = isset($data['custom_text_for_label']) ? $data['custom_text_for_label'] : null; $this->container['standard_id_for_label'] = isset($data['standard_id_for_label']) ? $data['standard_id_for_label'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets custom_text_for_label. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel */ public function getCustomTextForLabel() { return $this->container['custom_text_for_label']; } /** * Sets custom_text_for_label. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel $custom_text_for_label custom_text_for_label * * @return $this */ public function setCustomTextForLabel($custom_text_for_label) { $this->container['custom_text_for_label'] = $custom_text_for_label; return $this; } /** * Gets standard_id_for_label. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel */ public function getStandardIdForLabel() { return $this->container['standard_id_for_label']; } /** * Sets standard_id_for_label. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel $standard_id_for_label standard_id_for_label * * @return $this */ public function setStandardIdForLabel($standard_id_for_label) { $this->container['standard_id_for_label'] = $standard_id_for_label; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/TrackingId.php
lib/Models/MerchantFulfillment/TrackingId.php
<?php /** * TrackingId. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TrackingId Class Doc Comment. * * @description The shipment tracking identifier 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/MerchantFulfillment/DeliveryExperienceType.php
lib/Models/MerchantFulfillment/DeliveryExperienceType.php
<?php /** * DeliveryExperienceType. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; /** * DeliveryExperienceType Class Doc Comment. * * @description The delivery confirmation level. * * @author Stefan Neuhaus / ClouSale */ class DeliveryExperienceType { /** * Possible values of this enum. */ const DELIVERY_CONFIRMATION_WITH_ADULT_SIGNATURE = 'DeliveryConfirmationWithAdultSignature'; const DELIVERY_CONFIRMATION_WITH_SIGNATURE = 'DeliveryConfirmationWithSignature'; const DELIVERY_CONFIRMATION_WITHOUT_SIGNATURE = 'DeliveryConfirmationWithoutSignature'; const NO_TRACKING = 'NoTracking'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::DELIVERY_CONFIRMATION_WITH_ADULT_SIGNATURE, self::DELIVERY_CONFIRMATION_WITH_SIGNATURE, self::DELIVERY_CONFIRMATION_WITHOUT_SIGNATURE, self::NO_TRACKING, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/MerchantFulfillment/LabelFormatOptionRequest.php
lib/Models/MerchantFulfillment/LabelFormatOptionRequest.php
<?php /** * LabelFormatOptionRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Merchant Fulfillment. * * The Selling Partner API for Merchant Fulfillment helps you build applications that let sellers purchase shipping for non-Prime and Prime orders using Amazon’s Buy Shipping Services. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * LabelFormatOptionRequest Class Doc Comment. * * @description Whether to include a packing slip. * * @author Stefan Neuhaus / ClouSale */ class LabelFormatOptionRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'LabelFormatOptionRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'include_packing_slip_with_label' => 'bool', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'include_packing_slip_with_label' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['include_packing_slip_with_label'] = isset($data['include_packing_slip_with_label']) ? $data['include_packing_slip_with_label'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets include_packing_slip_with_label. * * @return bool */ public function getIncludePackingSlipWithLabel() { return $this->container['include_packing_slip_with_label']; } /** * Sets include_packing_slip_with_label. * * @param bool $include_packing_slip_with_label when true, include a packing slip with the label * * @return $this */ public function setIncludePackingSlipWithLabel($include_packing_slip_with_label) { $this->container['include_packing_slip_with_label'] = $include_packing_slip_with_label; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { 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