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/Catalog/AttributeSetList.php | lib/Models/Catalog/AttributeSetList.php | <?php
/**
* AttributeSetList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AttributeSetList Class Doc Comment.
*
* @description A list of attributes for the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class AttributeSetList extends Categories implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AttributeSetList';
/**
* 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 AttributeSetListType::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/Catalog/ListCatalogItemsResponse.php | lib/Models/Catalog/ListCatalogItemsResponse.php | <?php
/**
* ListCatalogItemsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ListCatalogItemsResponse Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ListCatalogItemsResponse extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ListCatalogItemsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ListMatchingItemsResponse',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\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\Catalog\ListMatchingItemsResponse
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ListMatchingItemsResponse $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\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/Catalog/ErrorList.php | lib/Models/Catalog/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\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 extends Categories 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/Catalog/Categories.php | lib/Models/Catalog/Categories.php | <?php
/**
* Categories.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Categories Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Categories';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'product_category_id' => 'string',
'product_category_name' => 'string',
'parent' => 'object', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'product_category_id' => null,
'product_category_name' => null,
'parent' => 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 = [
'product_category_id' => 'ProductCategoryId',
'product_category_name' => 'ProductCategoryName',
'parent' => 'parent', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'product_category_id' => 'setProductCategoryId',
'product_category_name' => 'setProductCategoryName',
'parent' => 'setParent', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'product_category_id' => 'getProductCategoryId',
'product_category_name' => 'getProductCategoryName',
'parent' => 'getParent', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['product_category_id'] = isset($data['product_category_id']) ? $data['product_category_id'] : null;
$this->container['product_category_name'] = isset($data['product_category_name']) ? $data['product_category_name'] : null;
$this->container['parent'] = isset($data['parent']) ? $data['parent'] : 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 product_category_id.
*
* @return string
*/
public function getProductCategoryId()
{
return $this->container['product_category_id'];
}
/**
* Sets product_category_id.
*
* @param string $product_category_id the identifier for the product category (or browse node)
*
* @return $this
*/
public function setProductCategoryId($product_category_id)
{
$this->container['product_category_id'] = $product_category_id;
return $this;
}
/**
* Gets product_category_name.
*
* @return string
*/
public function getProductCategoryName()
{
return $this->container['product_category_name'];
}
/**
* Sets product_category_name.
*
* @param string $product_category_name the name of the product category (or browse node)
*
* @return $this
*/
public function setProductCategoryName($product_category_name)
{
$this->container['product_category_name'] = $product_category_name;
return $this;
}
/**
* Gets parent.
*
* @return object
*/
public function getParent()
{
return $this->container['parent'];
}
/**
* Sets parent.
*
* @param object $parent the parent product category
*
* @return $this
*/
public function setParent($parent)
{
$this->container['parent'] = $parent;
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/Catalog/DimensionType.php | lib/Models/Catalog/DimensionType.php | <?php
/**
* DimensionType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* DimensionType Class Doc Comment.
*
* @description The dimension type attribute of an item.
*
* @author Stefan Neuhaus / ClouSale
*/
class DimensionType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'DimensionType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'height' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'length' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'width' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'height' => null,
'length' => null,
'width' => null,
'weight' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'height' => 'Height',
'length' => 'Length',
'width' => 'Width',
'weight' => 'Weight', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'height' => 'setHeight',
'length' => 'setLength',
'width' => 'setWidth',
'weight' => 'setWeight', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'height' => 'getHeight',
'length' => 'getLength',
'width' => 'getWidth',
'weight' => 'getWeight', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['height'] = isset($data['height']) ? $data['height'] : null;
$this->container['length'] = isset($data['length']) ? $data['length'] : null;
$this->container['width'] = isset($data['width']) ? $data['width'] : null;
$this->container['weight'] = isset($data['weight']) ? $data['weight'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets height.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getHeight()
{
return $this->container['height'];
}
/**
* Sets height.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $height height
*
* @return $this
*/
public function setHeight($height)
{
$this->container['height'] = $height;
return $this;
}
/**
* Gets length.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getLength()
{
return $this->container['length'];
}
/**
* Sets length.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $length length
*
* @return $this
*/
public function setLength($length)
{
$this->container['length'] = $length;
return $this;
}
/**
* Gets width.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getWidth()
{
return $this->container['width'];
}
/**
* Sets width.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $width width
*
* @return $this
*/
public function setWidth($width)
{
$this->container['width'] = $width;
return $this;
}
/**
* Gets weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getWeight()
{
return $this->container['weight'];
}
/**
* Sets weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $weight weight
*
* @return $this
*/
public function setWeight($weight)
{
$this->container['weight'] = $weight;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/SalesRankType.php | lib/Models/Catalog/SalesRankType.php | <?php
/**
* SalesRankType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SalesRankType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class SalesRankType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SalesRankType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'product_category_id' => 'string',
'rank' => 'int', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'product_category_id' => null,
'rank' => 'int32', ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'product_category_id' => 'ProductCategoryId',
'rank' => 'Rank', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'product_category_id' => 'setProductCategoryId',
'rank' => 'setRank', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'product_category_id' => 'getProductCategoryId',
'rank' => 'getRank', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['product_category_id'] = isset($data['product_category_id']) ? $data['product_category_id'] : null;
$this->container['rank'] = isset($data['rank']) ? $data['rank'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['product_category_id']) {
$invalidProperties[] = "'product_category_id' can't be null";
}
if (null === $this->container['rank']) {
$invalidProperties[] = "'rank' 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 product_category_id.
*
* @return string
*/
public function getProductCategoryId()
{
return $this->container['product_category_id'];
}
/**
* Sets product_category_id.
*
* @param string $product_category_id identifies the item category from which the sales rank is taken
*
* @return $this
*/
public function setProductCategoryId($product_category_id)
{
$this->container['product_category_id'] = $product_category_id;
return $this;
}
/**
* Gets rank.
*
* @return int
*/
public function getRank()
{
return $this->container['rank'];
}
/**
* Sets rank.
*
* @param int $rank the sales rank of the item within the item category
*
* @return $this
*/
public function setRank($rank)
{
$this->container['rank'] = $rank;
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/Catalog/RelationshipList.php | lib/Models/Catalog/RelationshipList.php | <?php
/**
* RelationshipList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RelationshipList Class Doc Comment.
*
* @description A list of variation relationship information, if applicable for the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class RelationshipList extends Categories implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RelationshipList';
/**
* 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 RelationshipType::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/Catalog/ItemList.php | lib/Models/Catalog/ItemList.php | <?php
/**
* ItemList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ItemList Class Doc Comment.
*
* @description A list of items.
*
* @author Stefan Neuhaus / ClouSale
*/
class ItemList extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ItemList';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = parent::listInvalidProperties();
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/Image.php | lib/Models/Catalog/Image.php | <?php
/**
* Image.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Image Class Doc Comment.
*
* @description The image attribute of the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class Image extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Image';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'url' => 'string',
'height' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'width' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'url' => null,
'height' => null,
'width' => 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 = [
'url' => 'URL',
'height' => 'Height',
'width' => 'Width', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'url' => 'setUrl',
'height' => 'setHeight',
'width' => 'setWidth', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'url' => 'getUrl',
'height' => 'getHeight',
'width' => 'getWidth', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['url'] = isset($data['url']) ? $data['url'] : null;
$this->container['height'] = isset($data['height']) ? $data['height'] : null;
$this->container['width'] = isset($data['width']) ? $data['width'] : 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 url.
*
* @return string
*/
public function getUrl()
{
return $this->container['url'];
}
/**
* Sets url.
*
* @param string $url the image URL attribute of the item
*
* @return $this
*/
public function setUrl($url)
{
$this->container['url'] = $url;
return $this;
}
/**
* Gets height.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getHeight()
{
return $this->container['height'];
}
/**
* Sets height.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $height height
*
* @return $this
*/
public function setHeight($height)
{
$this->container['height'] = $height;
return $this;
}
/**
* Gets width.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getWidth()
{
return $this->container['width'];
}
/**
* Sets width.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $width width
*
* @return $this
*/
public function setWidth($width)
{
$this->container['width'] = $width;
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/Catalog/QualifiersType.php | lib/Models/Catalog/QualifiersType.php | <?php
/**
* QualifiersType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* QualifiersType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class QualifiersType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'QualifiersType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'item_condition' => 'string',
'item_subcondition' => 'string',
'fulfillment_channel' => 'string',
'ships_domestically' => 'string',
'shipping_time' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ShippingTimeType',
'seller_positive_feedback_rating' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'item_condition' => null,
'item_subcondition' => null,
'fulfillment_channel' => null,
'ships_domestically' => null,
'shipping_time' => null,
'seller_positive_feedback_rating' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'item_condition' => 'ItemCondition',
'item_subcondition' => 'ItemSubcondition',
'fulfillment_channel' => 'FulfillmentChannel',
'ships_domestically' => 'ShipsDomestically',
'shipping_time' => 'ShippingTime',
'seller_positive_feedback_rating' => 'SellerPositiveFeedbackRating', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'item_condition' => 'setItemCondition',
'item_subcondition' => 'setItemSubcondition',
'fulfillment_channel' => 'setFulfillmentChannel',
'ships_domestically' => 'setShipsDomestically',
'shipping_time' => 'setShippingTime',
'seller_positive_feedback_rating' => 'setSellerPositiveFeedbackRating', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'item_condition' => 'getItemCondition',
'item_subcondition' => 'getItemSubcondition',
'fulfillment_channel' => 'getFulfillmentChannel',
'ships_domestically' => 'getShipsDomestically',
'shipping_time' => 'getShippingTime',
'seller_positive_feedback_rating' => 'getSellerPositiveFeedbackRating', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['item_condition'] = isset($data['item_condition']) ? $data['item_condition'] : null;
$this->container['item_subcondition'] = isset($data['item_subcondition']) ? $data['item_subcondition'] : null;
$this->container['fulfillment_channel'] = isset($data['fulfillment_channel']) ? $data['fulfillment_channel'] : null;
$this->container['ships_domestically'] = isset($data['ships_domestically']) ? $data['ships_domestically'] : null;
$this->container['shipping_time'] = isset($data['shipping_time']) ? $data['shipping_time'] : null;
$this->container['seller_positive_feedback_rating'] = isset($data['seller_positive_feedback_rating']) ? $data['seller_positive_feedback_rating'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['item_condition']) {
$invalidProperties[] = "'item_condition' can't be null";
}
if (null === $this->container['item_subcondition']) {
$invalidProperties[] = "'item_subcondition' can't be null";
}
if (null === $this->container['fulfillment_channel']) {
$invalidProperties[] = "'fulfillment_channel' can't be null";
}
if (null === $this->container['ships_domestically']) {
$invalidProperties[] = "'ships_domestically' can't be null";
}
if (null === $this->container['shipping_time']) {
$invalidProperties[] = "'shipping_time' can't be null";
}
if (null === $this->container['seller_positive_feedback_rating']) {
$invalidProperties[] = "'seller_positive_feedback_rating' 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 item_condition.
*
* @return string
*/
public function getItemCondition()
{
return $this->container['item_condition'];
}
/**
* Sets item_condition.
*
* @param string $item_condition The condition of the item. Possible values: New, Used, Collectible, Refurbished, or Club.
*
* @return $this
*/
public function setItemCondition($item_condition)
{
$this->container['item_condition'] = $item_condition;
return $this;
}
/**
* Gets item_subcondition.
*
* @return string
*/
public function getItemSubcondition()
{
return $this->container['item_subcondition'];
}
/**
* Sets item_subcondition.
*
* @param string $item_subcondition The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other.
*
* @return $this
*/
public function setItemSubcondition($item_subcondition)
{
$this->container['item_subcondition'] = $item_subcondition;
return $this;
}
/**
* Gets fulfillment_channel.
*
* @return string
*/
public function getFulfillmentChannel()
{
return $this->container['fulfillment_channel'];
}
/**
* Sets fulfillment_channel.
*
* @param string $fulfillment_channel The fulfillment channel for the item. Possible values: * Amazon - Fulfilled by Amazon. * Merchant - Fulfilled by the seller.
*
* @return $this
*/
public function setFulfillmentChannel($fulfillment_channel)
{
$this->container['fulfillment_channel'] = $fulfillment_channel;
return $this;
}
/**
* Gets ships_domestically.
*
* @return string
*/
public function getShipsDomestically()
{
return $this->container['ships_domestically'];
}
/**
* Sets ships_domestically.
*
* @param string $ships_domestically Indicates whether the marketplace specified in the request and the location that the item ships from are in the same country. Possible values: True, False, or Unknown.
*
* @return $this
*/
public function setShipsDomestically($ships_domestically)
{
$this->container['ships_domestically'] = $ships_domestically;
return $this;
}
/**
* Gets shipping_time.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ShippingTimeType
*/
public function getShippingTime()
{
return $this->container['shipping_time'];
}
/**
* Sets shipping_time.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ShippingTimeType $shipping_time shipping_time
*
* @return $this
*/
public function setShippingTime($shipping_time)
{
$this->container['shipping_time'] = $shipping_time;
return $this;
}
/**
* Gets seller_positive_feedback_rating.
*
* @return string
*/
public function getSellerPositiveFeedbackRating()
{
return $this->container['seller_positive_feedback_rating'];
}
/**
* Sets seller_positive_feedback_rating.
*
* @param string $seller_positive_feedback_rating (98-100%, 95-97%, 90-94%, 80-89%, 70-79%, Less than 70%, or Just launched ) – Indicates the percentage of feedback ratings that were positive over the past 12 months
*
* @return $this
*/
public function setSellerPositiveFeedbackRating($seller_positive_feedback_rating)
{
$this->container['seller_positive_feedback_rating'] = $seller_positive_feedback_rating;
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/Catalog/GetCatalogItemResponse.php | lib/Models/Catalog/GetCatalogItemResponse.php | <?php
/**
* GetCatalogItemResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetCatalogItemResponse Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetCatalogItemResponse extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetCatalogItemResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\Item',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\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\Catalog\Item
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\Item $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\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/Catalog/RelationshipType.php | lib/Models/Catalog/RelationshipType.php | <?php
/**
* RelationshipType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RelationshipType Class Doc Comment.
*
* @description Specific variations of the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class RelationshipType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RelationshipType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'color' => 'string',
'edition' => 'string',
'flavor' => 'string',
'gem_type' => 'string[]',
'golf_club_flex' => 'string',
'hand_orientation' => 'string',
'hardware_platform' => 'string',
'material_type' => 'string[]',
'metal_type' => 'string',
'model' => 'string',
'operating_system' => 'string[]',
'product_type_subcategory' => 'string',
'ring_size' => 'string',
'shaft_material' => 'string',
'scent' => 'string',
'size' => 'string',
'size_per_pearl' => 'string',
'golf_club_loft' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'total_diamond_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'total_gem_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'package_quantity' => 'int',
'item_dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DimensionType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'color' => null,
'edition' => null,
'flavor' => null,
'gem_type' => null,
'golf_club_flex' => null,
'hand_orientation' => null,
'hardware_platform' => null,
'material_type' => null,
'metal_type' => null,
'model' => null,
'operating_system' => null,
'product_type_subcategory' => null,
'ring_size' => null,
'shaft_material' => null,
'scent' => null,
'size' => null,
'size_per_pearl' => null,
'golf_club_loft' => null,
'total_diamond_weight' => null,
'total_gem_weight' => null,
'package_quantity' => null,
'item_dimensions' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'color' => 'Color',
'edition' => 'Edition',
'flavor' => 'Flavor',
'gem_type' => 'GemType',
'golf_club_flex' => 'GolfClubFlex',
'hand_orientation' => 'HandOrientation',
'hardware_platform' => 'HardwarePlatform',
'material_type' => 'MaterialType',
'metal_type' => 'MetalType',
'model' => 'Model',
'operating_system' => 'OperatingSystem',
'product_type_subcategory' => 'ProductTypeSubcategory',
'ring_size' => 'RingSize',
'shaft_material' => 'ShaftMaterial',
'scent' => 'Scent',
'size' => 'Size',
'size_per_pearl' => 'SizePerPearl',
'golf_club_loft' => 'GolfClubLoft',
'total_diamond_weight' => 'TotalDiamondWeight',
'total_gem_weight' => 'TotalGemWeight',
'package_quantity' => 'PackageQuantity',
'item_dimensions' => 'ItemDimensions', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'color' => 'setColor',
'edition' => 'setEdition',
'flavor' => 'setFlavor',
'gem_type' => 'setGemType',
'golf_club_flex' => 'setGolfClubFlex',
'hand_orientation' => 'setHandOrientation',
'hardware_platform' => 'setHardwarePlatform',
'material_type' => 'setMaterialType',
'metal_type' => 'setMetalType',
'model' => 'setModel',
'operating_system' => 'setOperatingSystem',
'product_type_subcategory' => 'setProductTypeSubcategory',
'ring_size' => 'setRingSize',
'shaft_material' => 'setShaftMaterial',
'scent' => 'setScent',
'size' => 'setSize',
'size_per_pearl' => 'setSizePerPearl',
'golf_club_loft' => 'setGolfClubLoft',
'total_diamond_weight' => 'setTotalDiamondWeight',
'total_gem_weight' => 'setTotalGemWeight',
'package_quantity' => 'setPackageQuantity',
'item_dimensions' => 'setItemDimensions', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'color' => 'getColor',
'edition' => 'getEdition',
'flavor' => 'getFlavor',
'gem_type' => 'getGemType',
'golf_club_flex' => 'getGolfClubFlex',
'hand_orientation' => 'getHandOrientation',
'hardware_platform' => 'getHardwarePlatform',
'material_type' => 'getMaterialType',
'metal_type' => 'getMetalType',
'model' => 'getModel',
'operating_system' => 'getOperatingSystem',
'product_type_subcategory' => 'getProductTypeSubcategory',
'ring_size' => 'getRingSize',
'shaft_material' => 'getShaftMaterial',
'scent' => 'getScent',
'size' => 'getSize',
'size_per_pearl' => 'getSizePerPearl',
'golf_club_loft' => 'getGolfClubLoft',
'total_diamond_weight' => 'getTotalDiamondWeight',
'total_gem_weight' => 'getTotalGemWeight',
'package_quantity' => 'getPackageQuantity',
'item_dimensions' => 'getItemDimensions', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['color'] = isset($data['color']) ? $data['color'] : null;
$this->container['edition'] = isset($data['edition']) ? $data['edition'] : null;
$this->container['flavor'] = isset($data['flavor']) ? $data['flavor'] : null;
$this->container['gem_type'] = isset($data['gem_type']) ? $data['gem_type'] : null;
$this->container['golf_club_flex'] = isset($data['golf_club_flex']) ? $data['golf_club_flex'] : null;
$this->container['hand_orientation'] = isset($data['hand_orientation']) ? $data['hand_orientation'] : null;
$this->container['hardware_platform'] = isset($data['hardware_platform']) ? $data['hardware_platform'] : null;
$this->container['material_type'] = isset($data['material_type']) ? $data['material_type'] : null;
$this->container['metal_type'] = isset($data['metal_type']) ? $data['metal_type'] : null;
$this->container['model'] = isset($data['model']) ? $data['model'] : null;
$this->container['operating_system'] = isset($data['operating_system']) ? $data['operating_system'] : null;
$this->container['product_type_subcategory'] = isset($data['product_type_subcategory']) ? $data['product_type_subcategory'] : null;
$this->container['ring_size'] = isset($data['ring_size']) ? $data['ring_size'] : null;
$this->container['shaft_material'] = isset($data['shaft_material']) ? $data['shaft_material'] : null;
$this->container['scent'] = isset($data['scent']) ? $data['scent'] : null;
$this->container['size'] = isset($data['size']) ? $data['size'] : null;
$this->container['size_per_pearl'] = isset($data['size_per_pearl']) ? $data['size_per_pearl'] : null;
$this->container['golf_club_loft'] = isset($data['golf_club_loft']) ? $data['golf_club_loft'] : null;
$this->container['total_diamond_weight'] = isset($data['total_diamond_weight']) ? $data['total_diamond_weight'] : null;
$this->container['total_gem_weight'] = isset($data['total_gem_weight']) ? $data['total_gem_weight'] : null;
$this->container['package_quantity'] = isset($data['package_quantity']) ? $data['package_quantity'] : null;
$this->container['item_dimensions'] = isset($data['item_dimensions']) ? $data['item_dimensions'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets color.
*
* @return string
*/
public function getColor()
{
return $this->container['color'];
}
/**
* Sets color.
*
* @param string $color the color variation of the item
*
* @return $this
*/
public function setColor($color)
{
$this->container['color'] = $color;
return $this;
}
/**
* Gets edition.
*
* @return string
*/
public function getEdition()
{
return $this->container['edition'];
}
/**
* Sets edition.
*
* @param string $edition the edition variation of the item
*
* @return $this
*/
public function setEdition($edition)
{
$this->container['edition'] = $edition;
return $this;
}
/**
* Gets flavor.
*
* @return string
*/
public function getFlavor()
{
return $this->container['flavor'];
}
/**
* Sets flavor.
*
* @param string $flavor the flavor variation of the item
*
* @return $this
*/
public function setFlavor($flavor)
{
$this->container['flavor'] = $flavor;
return $this;
}
/**
* Gets gem_type.
*
* @return string[]
*/
public function getGemType()
{
return $this->container['gem_type'];
}
/**
* Sets gem_type.
*
* @param string[] $gem_type the gem type variations of the item
*
* @return $this
*/
public function setGemType($gem_type)
{
$this->container['gem_type'] = $gem_type;
return $this;
}
/**
* Gets golf_club_flex.
*
* @return string
*/
public function getGolfClubFlex()
{
return $this->container['golf_club_flex'];
}
/**
* Sets golf_club_flex.
*
* @param string $golf_club_flex the golf club flex variation of an item
*
* @return $this
*/
public function setGolfClubFlex($golf_club_flex)
{
$this->container['golf_club_flex'] = $golf_club_flex;
return $this;
}
/**
* Gets hand_orientation.
*
* @return string
*/
public function getHandOrientation()
{
return $this->container['hand_orientation'];
}
/**
* Sets hand_orientation.
*
* @param string $hand_orientation the hand orientation variation of an item
*
* @return $this
*/
public function setHandOrientation($hand_orientation)
{
$this->container['hand_orientation'] = $hand_orientation;
return $this;
}
/**
* Gets hardware_platform.
*
* @return string
*/
public function getHardwarePlatform()
{
return $this->container['hardware_platform'];
}
/**
* Sets hardware_platform.
*
* @param string $hardware_platform the hardware platform variation of an item
*
* @return $this
*/
public function setHardwarePlatform($hardware_platform)
{
$this->container['hardware_platform'] = $hardware_platform;
return $this;
}
/**
* Gets material_type.
*
* @return string[]
*/
public function getMaterialType()
{
return $this->container['material_type'];
}
/**
* Sets material_type.
*
* @param string[] $material_type the material type variations of an item
*
* @return $this
*/
public function setMaterialType($material_type)
{
$this->container['material_type'] = $material_type;
return $this;
}
/**
* Gets metal_type.
*
* @return string
*/
public function getMetalType()
{
return $this->container['metal_type'];
}
/**
* Sets metal_type.
*
* @param string $metal_type the metal type variation of an item
*
* @return $this
*/
public function setMetalType($metal_type)
{
$this->container['metal_type'] = $metal_type;
return $this;
}
/**
* Gets model.
*
* @return string
*/
public function getModel()
{
return $this->container['model'];
}
/**
* Sets model.
*
* @param string $model the model variation of an item
*
* @return $this
*/
public function setModel($model)
{
$this->container['model'] = $model;
return $this;
}
/**
* Gets operating_system.
*
* @return string[]
*/
public function getOperatingSystem()
{
return $this->container['operating_system'];
}
/**
* Sets operating_system.
*
* @param string[] $operating_system the operating system variations of an item
*
* @return $this
*/
public function setOperatingSystem($operating_system)
{
$this->container['operating_system'] = $operating_system;
return $this;
}
/**
* Gets product_type_subcategory.
*
* @return string
*/
public function getProductTypeSubcategory()
{
return $this->container['product_type_subcategory'];
}
/**
* Sets product_type_subcategory.
*
* @param string $product_type_subcategory the product type subcategory variation of an item
*
* @return $this
*/
public function setProductTypeSubcategory($product_type_subcategory)
{
$this->container['product_type_subcategory'] = $product_type_subcategory;
return $this;
}
/**
* Gets ring_size.
*
* @return string
*/
public function getRingSize()
{
return $this->container['ring_size'];
}
/**
* Sets ring_size.
*
* @param string $ring_size the ring size variation of an item
*
* @return $this
*/
public function setRingSize($ring_size)
{
$this->container['ring_size'] = $ring_size;
return $this;
}
/**
* Gets shaft_material.
*
* @return string
*/
public function getShaftMaterial()
{
return $this->container['shaft_material'];
}
/**
* Sets shaft_material.
*
* @param string $shaft_material the shaft material variation of an item
*
* @return $this
*/
public function setShaftMaterial($shaft_material)
{
$this->container['shaft_material'] = $shaft_material;
return $this;
}
/**
* Gets scent.
*
* @return string
*/
public function getScent()
{
return $this->container['scent'];
}
/**
* Sets scent.
*
* @param string $scent the scent variation of an item
*
* @return $this
*/
public function setScent($scent)
{
$this->container['scent'] = $scent;
return $this;
}
/**
* Gets size.
*
* @return string
*/
public function getSize()
{
return $this->container['size'];
}
/**
* Sets size.
*
* @param string $size the size variation of an item
*
* @return $this
*/
public function setSize($size)
{
$this->container['size'] = $size;
return $this;
}
/**
* Gets size_per_pearl.
*
* @return string
*/
public function getSizePerPearl()
{
return $this->container['size_per_pearl'];
}
/**
* Sets size_per_pearl.
*
* @param string $size_per_pearl the size per pearl variation of an item
*
* @return $this
*/
public function setSizePerPearl($size_per_pearl)
{
$this->container['size_per_pearl'] = $size_per_pearl;
return $this;
}
/**
* Gets golf_club_loft.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getGolfClubLoft()
{
return $this->container['golf_club_loft'];
}
/**
* Sets golf_club_loft.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $golf_club_loft golf_club_loft
*
* @return $this
*/
public function setGolfClubLoft($golf_club_loft)
{
$this->container['golf_club_loft'] = $golf_club_loft;
return $this;
}
/**
* Gets total_diamond_weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getTotalDiamondWeight()
{
return $this->container['total_diamond_weight'];
}
/**
* Sets total_diamond_weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $total_diamond_weight total_diamond_weight
*
* @return $this
*/
public function setTotalDiamondWeight($total_diamond_weight)
{
$this->container['total_diamond_weight'] = $total_diamond_weight;
return $this;
}
/**
* Gets total_gem_weight.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits
*/
public function getTotalGemWeight()
{
return $this->container['total_gem_weight'];
}
/**
* Sets total_gem_weight.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits $total_gem_weight total_gem_weight
*
* @return $this
*/
public function setTotalGemWeight($total_gem_weight)
{
$this->container['total_gem_weight'] = $total_gem_weight;
return $this;
}
/**
* Gets package_quantity.
*
* @return int
*/
public function getPackageQuantity()
{
return $this->container['package_quantity'];
}
/**
* Sets package_quantity.
*
* @param int $package_quantity the package quantity variation of an item
*
* @return $this
*/
public function setPackageQuantity($package_quantity)
{
$this->container['package_quantity'] = $package_quantity;
return $this;
}
/**
* Gets item_dimensions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DimensionType
*/
public function getItemDimensions()
{
return $this->container['item_dimensions'];
}
/**
* Sets item_dimensions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DimensionType $item_dimensions item_dimensions
*
* @return $this
*/
public function setItemDimensions($item_dimensions)
{
$this->container['item_dimensions'] = $item_dimensions;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/ShippingTimeType.php | lib/Models/Catalog/ShippingTimeType.php | <?php
/**
* ShippingTimeType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShippingTimeType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShippingTimeType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShippingTimeType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'max' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'max' => 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 = [
'max' => 'Max', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'max' => 'setMax', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'max' => 'getMax', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['max'] = isset($data['max']) ? $data['max'] : 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 max.
*
* @return string
*/
public function getMax()
{
return $this->container['max'];
}
/**
* Sets max.
*
* @param string $max (0-2 days, 3-7 days, 8-13 days, or 14 or more days) – Indicates the maximum time within which the item will likely be shipped once an order has been placed
*
* @return $this
*/
public function setMax($max)
{
$this->container['max'] = $max;
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/Catalog/LanguageType.php | lib/Models/Catalog/LanguageType.php | <?php
/**
* LanguageType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LanguageType Class Doc Comment.
*
* @description The language type attribute of an item.
*
* @author Stefan Neuhaus / ClouSale
*/
class LanguageType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LanguageType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'name' => 'string',
'type' => 'string',
'audio_format' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'name' => null,
'type' => null,
'audio_format' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'name' => 'Name',
'type' => 'Type',
'audio_format' => 'AudioFormat', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'name' => 'setName',
'type' => 'setType',
'audio_format' => 'setAudioFormat', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'name' => 'getName',
'type' => 'getType',
'audio_format' => 'getAudioFormat', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @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['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['audio_format'] = isset($data['audio_format']) ? $data['audio_format'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets name.
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name.
*
* @param string $name the name attribute of the item
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets type.
*
* @return string
*/
public function getType()
{
return $this->container['type'];
}
/**
* Sets type.
*
* @param string $type the type attribute of the item
*
* @return $this
*/
public function setType($type)
{
$this->container['type'] = $type;
return $this;
}
/**
* Gets audio_format.
*
* @return string
*/
public function getAudioFormat()
{
return $this->container['audio_format'];
}
/**
* Sets audio_format.
*
* @param string $audio_format the audio format attribute of the item
*
* @return $this
*/
public function setAudioFormat($audio_format)
{
$this->container['audio_format'] = $audio_format;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/IdentifierType.php | lib/Models/Catalog/IdentifierType.php | <?php
/**
* IdentifierType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* IdentifierType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class IdentifierType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'IdentifierType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_asin' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ASINIdentifier',
'sku_identifier' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\SellerSKUIdentifier', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_asin' => null,
'sku_identifier' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_asin' => 'MarketplaceASIN',
'sku_identifier' => 'SKUIdentifier', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_asin' => 'setMarketplaceAsin',
'sku_identifier' => 'setSkuIdentifier', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_asin' => 'getMarketplaceAsin',
'sku_identifier' => 'getSkuIdentifier', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_asin'] = isset($data['marketplace_asin']) ? $data['marketplace_asin'] : null;
$this->container['sku_identifier'] = isset($data['sku_identifier']) ? $data['sku_identifier'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_asin.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ASINIdentifier
*/
public function getMarketplaceAsin()
{
return $this->container['marketplace_asin'];
}
/**
* Sets marketplace_asin.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ASINIdentifier $marketplace_asin marketplace_asin
*
* @return $this
*/
public function setMarketplaceAsin($marketplace_asin)
{
$this->container['marketplace_asin'] = $marketplace_asin;
return $this;
}
/**
* Gets sku_identifier.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\SellerSKUIdentifier
*/
public function getSkuIdentifier()
{
return $this->container['sku_identifier'];
}
/**
* Sets sku_identifier.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\SellerSKUIdentifier $sku_identifier sku_identifier
*
* @return $this
*/
public function setSkuIdentifier($sku_identifier)
{
$this->container['sku_identifier'] = $sku_identifier;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/Error.php | lib/Models/Catalog/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Error Class Doc Comment.
*
* @description Error response returned when the request is unsuccessful.
*
* @author Stefan Neuhaus / ClouSale
*/
class Error extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Error';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'details' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'details' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'details' => 'details', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'details' => 'setDetails', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'details' => 'getDetails', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['code']) {
$invalidProperties[] = "'code' can't be null";
}
if (null === $this->container['message']) {
$invalidProperties[] = "'message' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets code.
*
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code.
*
* @param string $code an error code that identifies the type of error that occurred
*
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message.
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message.
*
* @param string $message a message that describes the error condition in a human-readable form
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets details.
*
* @return string
*/
public function getDetails()
{
return $this->container['details'];
}
/**
* Sets details.
*
* @param string $details additional information that can help the caller understand or fix the issue
*
* @return $this
*/
public function setDetails($details)
{
$this->container['details'] = $details;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/DecimalWithUnits.php | lib/Models/Catalog/DecimalWithUnits.php | <?php
/**
* DecimalWithUnits.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* DecimalWithUnits Class Doc Comment.
*
* @description The decimal value and unit.
*
* @author Stefan Neuhaus / ClouSale
*/
class DecimalWithUnits extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'DecimalWithUnits';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'value' => 'float',
'units' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'value' => null,
'units' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'value' => 'value',
'units' => 'Units', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'value' => 'setValue',
'units' => 'setUnits', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'value' => 'getValue',
'units' => 'getUnits', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['value'] = isset($data['value']) ? $data['value'] : null;
$this->container['units'] = isset($data['units']) ? $data['units'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets value.
*
* @return float
*/
public function getValue()
{
return $this->container['value'];
}
/**
* Sets value.
*
* @param float $value the decimal value
*
* @return $this
*/
public function setValue($value)
{
$this->container['value'] = $value;
return $this;
}
/**
* Gets units.
*
* @return string
*/
public function getUnits()
{
return $this->container['units'];
}
/**
* Sets units.
*
* @param string $units the unit of the decimal value
*
* @return $this
*/
public function setUnits($units)
{
$this->container['units'] = $units;
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/Catalog/ListMatchingItemsResponse.php | lib/Models/Catalog/ListMatchingItemsResponse.php | <?php
/**
* ListMatchingItemsResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ListMatchingItemsResponse Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ListMatchingItemsResponse extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ListMatchingItemsResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'items' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ItemList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'items' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'items' => 'Items', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'items' => 'setItems', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'items' => 'getItems', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['items'] = isset($data['items']) ? $data['items'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets items.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ItemList
*/
public function getItems()
{
return $this->container['items'];
}
/**
* Sets items.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ItemList $items items
*
* @return $this
*/
public function setItems($items)
{
$this->container['items'] = $items;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/OfferListingCountType.php | lib/Models/Catalog/OfferListingCountType.php | <?php
/**
* OfferListingCountType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OfferListingCountType Class Doc Comment.
*
* @description The number of offer listings with the specified condition.
*
* @author Stefan Neuhaus / ClouSale
*/
class OfferListingCountType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OfferListingCountType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'count' => 'int',
'condition' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'count' => 'int32',
'condition' => 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 = [
'count' => 'Count',
'condition' => 'condition', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'count' => 'setCount',
'condition' => 'setCondition', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'count' => 'getCount',
'condition' => 'getCondition', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['count'] = isset($data['count']) ? $data['count'] : null;
$this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['count']) {
$invalidProperties[] = "'count' can't be null";
}
if (null === $this->container['condition']) {
$invalidProperties[] = "'condition' 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 count.
*
* @return int
*/
public function getCount()
{
return $this->container['count'];
}
/**
* Sets count.
*
* @param int $count the number of offer listings
*
* @return $this
*/
public function setCount($count)
{
$this->container['count'] = $count;
return $this;
}
/**
* Gets condition.
*
* @return string
*/
public function getCondition()
{
return $this->container['condition'];
}
/**
* Sets condition.
*
* @param string $condition the condition of the item
*
* @return $this
*/
public function setCondition($condition)
{
$this->container['condition'] = $condition;
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/Catalog/Price.php | lib/Models/Catalog/Price.php | <?php
/**
* Price.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Price Class Doc Comment.
*
* @description The price attribute of the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class Price extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Price';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'amount' => 'float',
'currency_code' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'amount' => null,
'currency_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 = [
'amount' => 'Amount',
'currency_code' => 'CurrencyCode', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'amount' => 'setAmount',
'currency_code' => 'setCurrencyCode', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'amount' => 'getAmount',
'currency_code' => 'getCurrencyCode', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
$this->container['currency_code'] = isset($data['currency_code']) ? $data['currency_code'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets amount.
*
* @return float
*/
public function getAmount()
{
return $this->container['amount'];
}
/**
* Sets amount.
*
* @param float $amount the amount
*
* @return $this
*/
public function setAmount($amount)
{
$this->container['amount'] = $amount;
return $this;
}
/**
* Gets currency_code.
*
* @return string
*/
public function getCurrencyCode()
{
return $this->container['currency_code'];
}
/**
* Sets currency_code.
*
* @param string $currency_code the currency code of the amount
*
* @return $this
*/
public function setCurrencyCode($currency_code)
{
$this->container['currency_code'] = $currency_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/Catalog/Item.php | lib/Models/Catalog/Item.php | <?php
/**
* Item.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Item Class Doc Comment.
*
* @description An item in the Amazon catalog.
*
* @author Stefan Neuhaus / ClouSale
*/
class Item extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Item';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'identifiers' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\IdentifierType',
'attribute_sets' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\AttributeSetList',
'relationships' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\RelationshipList',
'sales_rankings' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\SalesRankList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'identifiers' => null,
'attribute_sets' => null,
'relationships' => null,
'sales_rankings' => 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 = [
'identifiers' => 'Identifiers',
'attribute_sets' => 'AttributeSets',
'relationships' => 'Relationships',
'sales_rankings' => 'SalesRankings', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'identifiers' => 'setIdentifiers',
'attribute_sets' => 'setAttributeSets',
'relationships' => 'setRelationships',
'sales_rankings' => 'setSalesRankings', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'identifiers' => 'getIdentifiers',
'attribute_sets' => 'getAttributeSets',
'relationships' => 'getRelationships',
'sales_rankings' => 'getSalesRankings', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['identifiers'] = isset($data['identifiers']) ? $data['identifiers'] : null;
$this->container['attribute_sets'] = isset($data['attribute_sets']) ? $data['attribute_sets'] : null;
$this->container['relationships'] = isset($data['relationships']) ? $data['relationships'] : null;
$this->container['sales_rankings'] = isset($data['sales_rankings']) ? $data['sales_rankings'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['identifiers']) {
$invalidProperties[] = "'identifiers' 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 identifiers.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\IdentifierType
*/
public function getIdentifiers()
{
return $this->container['identifiers'];
}
/**
* Sets identifiers.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\IdentifierType $identifiers identifiers
*
* @return $this
*/
public function setIdentifiers($identifiers)
{
$this->container['identifiers'] = $identifiers;
return $this;
}
/**
* Gets attribute_sets.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\AttributeSetList
*/
public function getAttributeSets()
{
return $this->container['attribute_sets'];
}
/**
* Sets attribute_sets.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\AttributeSetList $attribute_sets attribute_sets
*
* @return $this
*/
public function setAttributeSets($attribute_sets)
{
$this->container['attribute_sets'] = $attribute_sets;
return $this;
}
/**
* Gets relationships.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\RelationshipList
*/
public function getRelationships()
{
return $this->container['relationships'];
}
/**
* Sets relationships.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\RelationshipList $relationships relationships
*
* @return $this
*/
public function setRelationships($relationships)
{
$this->container['relationships'] = $relationships;
return $this;
}
/**
* Gets sales_rankings.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\SalesRankList
*/
public function getSalesRankings()
{
return $this->container['sales_rankings'];
}
/**
* Sets sales_rankings.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\SalesRankList $sales_rankings sales_rankings
*
* @return $this
*/
public function setSalesRankings($sales_rankings)
{
$this->container['sales_rankings'] = $sales_rankings;
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/Catalog/ListCatalogCategoriesResponse.php | lib/Models/Catalog/ListCatalogCategoriesResponse.php | <?php
/**
* ListCatalogCategoriesResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ListCatalogCategoriesResponse Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ListCatalogCategoriesResponse extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ListCatalogCategoriesResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ListOfCategories',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\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\Catalog\ListOfCategories
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ListOfCategories $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Catalog\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/Catalog/CreatorType.php | lib/Models/Catalog/CreatorType.php | <?php
/**
* CreatorType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreatorType Class Doc Comment.
*
* @description The creator type attribute of an item.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreatorType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreatorType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'value' => 'string',
'role' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'value' => null,
'role' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'value' => 'value',
'role' => 'Role', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'value' => 'setValue',
'role' => 'setRole', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'value' => 'getValue',
'role' => 'getRole', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['value'] = isset($data['value']) ? $data['value'] : null;
$this->container['role'] = isset($data['role']) ? $data['role'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets value.
*
* @return string
*/
public function getValue()
{
return $this->container['value'];
}
/**
* Sets value.
*
* @param string $value the value of the attribute
*
* @return $this
*/
public function setValue($value)
{
$this->container['value'] = $value;
return $this;
}
/**
* Gets role.
*
* @return string
*/
public function getRole()
{
return $this->container['role'];
}
/**
* Sets role.
*
* @param string $role the role of the value
*
* @return $this
*/
public function setRole($role)
{
$this->container['role'] = $role;
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/Catalog/ASINIdentifier.php | lib/Models/Catalog/ASINIdentifier.php | <?php
/**
* ASINIdentifier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ASINIdentifier Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ASINIdentifier extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ASINIdentifier';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => 'string',
'asin' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'asin' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_id' => 'MarketplaceId',
'asin' => 'ASIN', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'asin' => 'setAsin', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'asin' => 'getAsin', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['marketplace_id']) {
$invalidProperties[] = "'marketplace_id' can't be null";
}
if (null === $this->container['asin']) {
$invalidProperties[] = "'asin' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id a marketplace identifier
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/AttributeSetListType.php | lib/Models/Catalog/AttributeSetListType.php | <?php
/**
* AttributeSetListType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AttributeSetListType Class Doc Comment.
*
* @description The attributes of the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class AttributeSetListType extends Categories implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AttributeSetListType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'actor' => 'string[]',
'artist' => 'string[]',
'aspect_ratio' => 'string',
'audience_rating' => 'string',
'author' => 'string[]',
'back_finding' => 'string',
'band_material_type' => 'string',
'binding' => 'string',
'bluray_region' => 'string',
'brand' => 'string',
'cero_age_rating' => 'string',
'chain_type' => 'string',
'clasp_type' => 'string',
'color' => 'string',
'cpu_manufacturer' => 'string',
'cpu_speed' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'cpu_type' => 'string',
'creator' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\CreatorType[]',
'department' => 'string',
'director' => 'string[]',
'display_size' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'edition' => 'string',
'episode_sequence' => 'string',
'esrb_age_rating' => 'string',
'feature' => 'string[]',
'flavor' => 'string',
'format' => 'string[]',
'gem_type' => 'string[]',
'genre' => 'string',
'golf_club_flex' => 'string',
'golf_club_loft' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'hand_orientation' => 'string',
'hard_disk_interface' => 'string',
'hard_disk_size' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'hardware_platform' => 'string',
'hazardous_material_type' => 'string',
'item_dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DimensionType',
'is_adult_product' => 'bool',
'is_autographed' => 'bool',
'is_eligible_for_trade_in' => 'bool',
'is_memorabilia' => 'bool',
'issues_per_year' => 'string',
'item_part_number' => 'string',
'label' => 'string',
'languages' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\LanguageType[]',
'legal_disclaimer' => 'string',
'list_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\Price',
'manufacturer' => 'string',
'manufacturer_maximum_age' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'manufacturer_minimum_age' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'manufacturer_parts_warranty_description' => 'string',
'material_type' => 'string[]',
'maximum_resolution' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'media_type' => 'string[]',
'metal_stamp' => 'string',
'metal_type' => 'string',
'model' => 'string',
'number_of_discs' => 'int',
'number_of_issues' => 'int',
'number_of_items' => 'int',
'number_of_pages' => 'int',
'number_of_tracks' => 'int',
'operating_system' => 'string[]',
'optical_zoom' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'package_dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DimensionType',
'package_quantity' => 'int',
'part_number' => 'string',
'pegi_rating' => 'string',
'platform' => 'string[]',
'processor_count' => 'int',
'product_group' => 'string',
'product_type_name' => 'string',
'product_type_subcategory' => 'string',
'publication_date' => 'string',
'publisher' => 'string',
'region_code' => 'string',
'release_date' => 'string',
'ring_size' => 'string',
'running_time' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'shaft_material' => 'string',
'scent' => 'string',
'season_sequence' => 'string',
'seikodo_product_code' => 'string',
'size' => 'string',
'size_per_pearl' => 'string',
'small_image' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\Image',
'studio' => 'string',
'subscription_length' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'system_memory_size' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'system_memory_type' => 'string',
'theatrical_release_date' => 'string',
'title' => 'string',
'total_diamond_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'total_gem_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\DecimalWithUnits',
'warranty' => 'string',
'weee_tax_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\Catalog\Price', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'actor' => null,
'artist' => null,
'aspect_ratio' => null,
'audience_rating' => null,
'author' => null,
'back_finding' => null,
'band_material_type' => null,
'binding' => null,
'bluray_region' => null,
'brand' => null,
'cero_age_rating' => null,
'chain_type' => null,
'clasp_type' => null,
'color' => null,
'cpu_manufacturer' => null,
'cpu_speed' => null,
'cpu_type' => null,
'creator' => null,
'department' => null,
'director' => null,
'display_size' => null,
'edition' => null,
'episode_sequence' => null,
'esrb_age_rating' => null,
'feature' => null,
'flavor' => null,
'format' => null,
'gem_type' => null,
'genre' => null,
'golf_club_flex' => null,
'golf_club_loft' => null,
'hand_orientation' => null,
'hard_disk_interface' => null,
'hard_disk_size' => null,
'hardware_platform' => null,
'hazardous_material_type' => null,
'item_dimensions' => null,
'is_adult_product' => null,
'is_autographed' => null,
'is_eligible_for_trade_in' => null,
'is_memorabilia' => null,
'issues_per_year' => null,
'item_part_number' => null,
'label' => null,
'languages' => null,
'legal_disclaimer' => null,
'list_price' => null,
'manufacturer' => null,
'manufacturer_maximum_age' => null,
'manufacturer_minimum_age' => null,
'manufacturer_parts_warranty_description' => null,
'material_type' => null,
'maximum_resolution' => null,
'media_type' => null,
'metal_stamp' => null,
'metal_type' => null,
'model' => null,
'number_of_discs' => null,
'number_of_issues' => null,
'number_of_items' => null,
'number_of_pages' => null,
'number_of_tracks' => null,
'operating_system' => null,
'optical_zoom' => null,
'package_dimensions' => null,
'package_quantity' => null,
'part_number' => null,
'pegi_rating' => null,
'platform' => null,
'processor_count' => null,
'product_group' => null,
'product_type_name' => null,
'product_type_subcategory' => null,
'publication_date' => null,
'publisher' => null,
'region_code' => null,
'release_date' => null,
'ring_size' => null,
'running_time' => null,
'shaft_material' => null,
'scent' => null,
'season_sequence' => null,
'seikodo_product_code' => null,
'size' => null,
'size_per_pearl' => null,
'small_image' => null,
'studio' => null,
'subscription_length' => null,
'system_memory_size' => null,
'system_memory_type' => null,
'theatrical_release_date' => null,
'title' => null,
'total_diamond_weight' => null,
'total_gem_weight' => null,
'warranty' => null,
'weee_tax_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 = [
'actor' => 'Actor',
'artist' => 'Artist',
'aspect_ratio' => 'AspectRatio',
'audience_rating' => 'AudienceRating',
'author' => 'Author',
'back_finding' => 'BackFinding',
'band_material_type' => 'BandMaterialType',
'binding' => 'Binding',
'bluray_region' => 'BlurayRegion',
'brand' => 'Brand',
'cero_age_rating' => 'CeroAgeRating',
'chain_type' => 'ChainType',
'clasp_type' => 'ClaspType',
'color' => 'Color',
'cpu_manufacturer' => 'CpuManufacturer',
'cpu_speed' => 'CpuSpeed',
'cpu_type' => 'CpuType',
'creator' => 'Creator',
'department' => 'Department',
'director' => 'Director',
'display_size' => 'DisplaySize',
'edition' => 'Edition',
'episode_sequence' => 'EpisodeSequence',
'esrb_age_rating' => 'EsrbAgeRating',
'feature' => 'Feature',
'flavor' => 'Flavor',
'format' => 'Format',
'gem_type' => 'GemType',
'genre' => 'Genre',
'golf_club_flex' => 'GolfClubFlex',
'golf_club_loft' => 'GolfClubLoft',
'hand_orientation' => 'HandOrientation',
'hard_disk_interface' => 'HardDiskInterface',
'hard_disk_size' => 'HardDiskSize',
'hardware_platform' => 'HardwarePlatform',
'hazardous_material_type' => 'HazardousMaterialType',
'item_dimensions' => 'ItemDimensions',
'is_adult_product' => 'IsAdultProduct',
'is_autographed' => 'IsAutographed',
'is_eligible_for_trade_in' => 'IsEligibleForTradeIn',
'is_memorabilia' => 'IsMemorabilia',
'issues_per_year' => 'IssuesPerYear',
'item_part_number' => 'ItemPartNumber',
'label' => 'Label',
'languages' => 'Languages',
'legal_disclaimer' => 'LegalDisclaimer',
'list_price' => 'ListPrice',
'manufacturer' => 'Manufacturer',
'manufacturer_maximum_age' => 'ManufacturerMaximumAge',
'manufacturer_minimum_age' => 'ManufacturerMinimumAge',
'manufacturer_parts_warranty_description' => 'ManufacturerPartsWarrantyDescription',
'material_type' => 'MaterialType',
'maximum_resolution' => 'MaximumResolution',
'media_type' => 'MediaType',
'metal_stamp' => 'MetalStamp',
'metal_type' => 'MetalType',
'model' => 'Model',
'number_of_discs' => 'NumberOfDiscs',
'number_of_issues' => 'NumberOfIssues',
'number_of_items' => 'NumberOfItems',
'number_of_pages' => 'NumberOfPages',
'number_of_tracks' => 'NumberOfTracks',
'operating_system' => 'OperatingSystem',
'optical_zoom' => 'OpticalZoom',
'package_dimensions' => 'PackageDimensions',
'package_quantity' => 'PackageQuantity',
'part_number' => 'PartNumber',
'pegi_rating' => 'PegiRating',
'platform' => 'Platform',
'processor_count' => 'ProcessorCount',
'product_group' => 'ProductGroup',
'product_type_name' => 'ProductTypeName',
'product_type_subcategory' => 'ProductTypeSubcategory',
'publication_date' => 'PublicationDate',
'publisher' => 'Publisher',
'region_code' => 'RegionCode',
'release_date' => 'ReleaseDate',
'ring_size' => 'RingSize',
'running_time' => 'RunningTime',
'shaft_material' => 'ShaftMaterial',
'scent' => 'Scent',
'season_sequence' => 'SeasonSequence',
'seikodo_product_code' => 'SeikodoProductCode',
'size' => 'Size',
'size_per_pearl' => 'SizePerPearl',
'small_image' => 'SmallImage',
'studio' => 'Studio',
'subscription_length' => 'SubscriptionLength',
'system_memory_size' => 'SystemMemorySize',
'system_memory_type' => 'SystemMemoryType',
'theatrical_release_date' => 'TheatricalReleaseDate',
'title' => 'Title',
'total_diamond_weight' => 'TotalDiamondWeight',
'total_gem_weight' => 'TotalGemWeight',
'warranty' => 'Warranty',
'weee_tax_value' => 'WeeeTaxValue', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'actor' => 'setActor',
'artist' => 'setArtist',
'aspect_ratio' => 'setAspectRatio',
'audience_rating' => 'setAudienceRating',
'author' => 'setAuthor',
'back_finding' => 'setBackFinding',
'band_material_type' => 'setBandMaterialType',
'binding' => 'setBinding',
'bluray_region' => 'setBlurayRegion',
'brand' => 'setBrand',
'cero_age_rating' => 'setCeroAgeRating',
'chain_type' => 'setChainType',
'clasp_type' => 'setClaspType',
'color' => 'setColor',
'cpu_manufacturer' => 'setCpuManufacturer',
'cpu_speed' => 'setCpuSpeed',
'cpu_type' => 'setCpuType',
'creator' => 'setCreator',
'department' => 'setDepartment',
'director' => 'setDirector',
'display_size' => 'setDisplaySize',
'edition' => 'setEdition',
'episode_sequence' => 'setEpisodeSequence',
'esrb_age_rating' => 'setEsrbAgeRating',
'feature' => 'setFeature',
'flavor' => 'setFlavor',
'format' => 'setFormat',
'gem_type' => 'setGemType',
'genre' => 'setGenre',
'golf_club_flex' => 'setGolfClubFlex',
'golf_club_loft' => 'setGolfClubLoft',
'hand_orientation' => 'setHandOrientation',
'hard_disk_interface' => 'setHardDiskInterface',
'hard_disk_size' => 'setHardDiskSize',
'hardware_platform' => 'setHardwarePlatform',
'hazardous_material_type' => 'setHazardousMaterialType',
'item_dimensions' => 'setItemDimensions',
'is_adult_product' => 'setIsAdultProduct',
'is_autographed' => 'setIsAutographed',
'is_eligible_for_trade_in' => 'setIsEligibleForTradeIn',
'is_memorabilia' => 'setIsMemorabilia',
'issues_per_year' => 'setIssuesPerYear',
'item_part_number' => 'setItemPartNumber',
'label' => 'setLabel',
'languages' => 'setLanguages',
'legal_disclaimer' => 'setLegalDisclaimer',
'list_price' => 'setListPrice',
'manufacturer' => 'setManufacturer',
'manufacturer_maximum_age' => 'setManufacturerMaximumAge',
'manufacturer_minimum_age' => 'setManufacturerMinimumAge',
'manufacturer_parts_warranty_description' => 'setManufacturerPartsWarrantyDescription',
'material_type' => 'setMaterialType',
'maximum_resolution' => 'setMaximumResolution',
'media_type' => 'setMediaType',
'metal_stamp' => 'setMetalStamp',
'metal_type' => 'setMetalType',
'model' => 'setModel',
'number_of_discs' => 'setNumberOfDiscs',
'number_of_issues' => 'setNumberOfIssues',
'number_of_items' => 'setNumberOfItems',
'number_of_pages' => 'setNumberOfPages',
'number_of_tracks' => 'setNumberOfTracks',
'operating_system' => 'setOperatingSystem',
'optical_zoom' => 'setOpticalZoom',
'package_dimensions' => 'setPackageDimensions',
'package_quantity' => 'setPackageQuantity',
'part_number' => 'setPartNumber',
'pegi_rating' => 'setPegiRating',
'platform' => 'setPlatform',
'processor_count' => 'setProcessorCount',
'product_group' => 'setProductGroup',
'product_type_name' => 'setProductTypeName',
'product_type_subcategory' => 'setProductTypeSubcategory',
'publication_date' => 'setPublicationDate',
'publisher' => 'setPublisher',
'region_code' => 'setRegionCode',
'release_date' => 'setReleaseDate',
'ring_size' => 'setRingSize',
'running_time' => 'setRunningTime',
'shaft_material' => 'setShaftMaterial',
'scent' => 'setScent',
'season_sequence' => 'setSeasonSequence',
'seikodo_product_code' => 'setSeikodoProductCode',
'size' => 'setSize',
'size_per_pearl' => 'setSizePerPearl',
'small_image' => 'setSmallImage',
'studio' => 'setStudio',
'subscription_length' => 'setSubscriptionLength',
'system_memory_size' => 'setSystemMemorySize',
'system_memory_type' => 'setSystemMemoryType',
'theatrical_release_date' => 'setTheatricalReleaseDate',
'title' => 'setTitle',
'total_diamond_weight' => 'setTotalDiamondWeight',
'total_gem_weight' => 'setTotalGemWeight',
'warranty' => 'setWarranty',
'weee_tax_value' => 'setWeeeTaxValue', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'actor' => 'getActor',
'artist' => 'getArtist',
'aspect_ratio' => 'getAspectRatio',
'audience_rating' => 'getAudienceRating',
'author' => 'getAuthor',
'back_finding' => 'getBackFinding',
'band_material_type' => 'getBandMaterialType',
'binding' => 'getBinding',
'bluray_region' => 'getBlurayRegion',
'brand' => 'getBrand',
'cero_age_rating' => 'getCeroAgeRating',
'chain_type' => 'getChainType',
'clasp_type' => 'getClaspType',
'color' => 'getColor',
'cpu_manufacturer' => 'getCpuManufacturer',
'cpu_speed' => 'getCpuSpeed',
'cpu_type' => 'getCpuType',
'creator' => 'getCreator',
'department' => 'getDepartment',
'director' => 'getDirector',
'display_size' => 'getDisplaySize',
'edition' => 'getEdition',
'episode_sequence' => 'getEpisodeSequence',
'esrb_age_rating' => 'getEsrbAgeRating',
'feature' => 'getFeature',
'flavor' => 'getFlavor',
'format' => 'getFormat',
'gem_type' => 'getGemType',
'genre' => 'getGenre',
'golf_club_flex' => 'getGolfClubFlex',
'golf_club_loft' => 'getGolfClubLoft',
'hand_orientation' => 'getHandOrientation',
'hard_disk_interface' => 'getHardDiskInterface',
'hard_disk_size' => 'getHardDiskSize',
'hardware_platform' => 'getHardwarePlatform',
'hazardous_material_type' => 'getHazardousMaterialType',
'item_dimensions' => 'getItemDimensions',
'is_adult_product' => 'getIsAdultProduct',
'is_autographed' => 'getIsAutographed',
'is_eligible_for_trade_in' => 'getIsEligibleForTradeIn',
'is_memorabilia' => 'getIsMemorabilia',
'issues_per_year' => 'getIssuesPerYear',
'item_part_number' => 'getItemPartNumber',
'label' => 'getLabel',
'languages' => 'getLanguages',
'legal_disclaimer' => 'getLegalDisclaimer',
'list_price' => 'getListPrice',
'manufacturer' => 'getManufacturer',
'manufacturer_maximum_age' => 'getManufacturerMaximumAge',
'manufacturer_minimum_age' => 'getManufacturerMinimumAge',
'manufacturer_parts_warranty_description' => 'getManufacturerPartsWarrantyDescription',
'material_type' => 'getMaterialType',
'maximum_resolution' => 'getMaximumResolution',
'media_type' => 'getMediaType',
'metal_stamp' => 'getMetalStamp',
'metal_type' => 'getMetalType',
'model' => 'getModel',
'number_of_discs' => 'getNumberOfDiscs',
'number_of_issues' => 'getNumberOfIssues',
'number_of_items' => 'getNumberOfItems',
'number_of_pages' => 'getNumberOfPages',
'number_of_tracks' => 'getNumberOfTracks',
'operating_system' => 'getOperatingSystem',
'optical_zoom' => 'getOpticalZoom',
'package_dimensions' => 'getPackageDimensions',
'package_quantity' => 'getPackageQuantity',
'part_number' => 'getPartNumber',
'pegi_rating' => 'getPegiRating',
'platform' => 'getPlatform',
'processor_count' => 'getProcessorCount',
'product_group' => 'getProductGroup',
'product_type_name' => 'getProductTypeName',
'product_type_subcategory' => 'getProductTypeSubcategory',
'publication_date' => 'getPublicationDate',
'publisher' => 'getPublisher',
'region_code' => 'getRegionCode',
'release_date' => 'getReleaseDate',
'ring_size' => 'getRingSize',
'running_time' => 'getRunningTime',
'shaft_material' => 'getShaftMaterial',
'scent' => 'getScent',
'season_sequence' => 'getSeasonSequence',
'seikodo_product_code' => 'getSeikodoProductCode',
'size' => 'getSize',
'size_per_pearl' => 'getSizePerPearl',
'small_image' => 'getSmallImage',
'studio' => 'getStudio',
'subscription_length' => 'getSubscriptionLength',
'system_memory_size' => 'getSystemMemorySize',
'system_memory_type' => 'getSystemMemoryType',
'theatrical_release_date' => 'getTheatricalReleaseDate',
'title' => 'getTitle',
'total_diamond_weight' => 'getTotalDiamondWeight',
'total_gem_weight' => 'getTotalGemWeight',
'warranty' => 'getWarranty',
'weee_tax_value' => 'getWeeeTaxValue', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['actor'] = isset($data['actor']) ? $data['actor'] : null;
$this->container['artist'] = isset($data['artist']) ? $data['artist'] : null;
$this->container['aspect_ratio'] = isset($data['aspect_ratio']) ? $data['aspect_ratio'] : null;
$this->container['audience_rating'] = isset($data['audience_rating']) ? $data['audience_rating'] : null;
$this->container['author'] = isset($data['author']) ? $data['author'] : null;
$this->container['back_finding'] = isset($data['back_finding']) ? $data['back_finding'] : null;
$this->container['band_material_type'] = isset($data['band_material_type']) ? $data['band_material_type'] : null;
$this->container['binding'] = isset($data['binding']) ? $data['binding'] : null;
$this->container['bluray_region'] = isset($data['bluray_region']) ? $data['bluray_region'] : null;
$this->container['brand'] = isset($data['brand']) ? $data['brand'] : null;
$this->container['cero_age_rating'] = isset($data['cero_age_rating']) ? $data['cero_age_rating'] : null;
$this->container['chain_type'] = isset($data['chain_type']) ? $data['chain_type'] : null;
$this->container['clasp_type'] = isset($data['clasp_type']) ? $data['clasp_type'] : null;
$this->container['color'] = isset($data['color']) ? $data['color'] : null;
$this->container['cpu_manufacturer'] = isset($data['cpu_manufacturer']) ? $data['cpu_manufacturer'] : null;
$this->container['cpu_speed'] = isset($data['cpu_speed']) ? $data['cpu_speed'] : null;
$this->container['cpu_type'] = isset($data['cpu_type']) ? $data['cpu_type'] : null;
$this->container['creator'] = isset($data['creator']) ? $data['creator'] : null;
$this->container['department'] = isset($data['department']) ? $data['department'] : null;
$this->container['director'] = isset($data['director']) ? $data['director'] : null;
$this->container['display_size'] = isset($data['display_size']) ? $data['display_size'] : null;
$this->container['edition'] = isset($data['edition']) ? $data['edition'] : null;
$this->container['episode_sequence'] = isset($data['episode_sequence']) ? $data['episode_sequence'] : null;
$this->container['esrb_age_rating'] = isset($data['esrb_age_rating']) ? $data['esrb_age_rating'] : null;
$this->container['feature'] = isset($data['feature']) ? $data['feature'] : null;
$this->container['flavor'] = isset($data['flavor']) ? $data['flavor'] : null;
$this->container['format'] = isset($data['format']) ? $data['format'] : null;
$this->container['gem_type'] = isset($data['gem_type']) ? $data['gem_type'] : null;
$this->container['genre'] = isset($data['genre']) ? $data['genre'] : null;
$this->container['golf_club_flex'] = isset($data['golf_club_flex']) ? $data['golf_club_flex'] : null;
$this->container['golf_club_loft'] = isset($data['golf_club_loft']) ? $data['golf_club_loft'] : null;
$this->container['hand_orientation'] = isset($data['hand_orientation']) ? $data['hand_orientation'] : null;
$this->container['hard_disk_interface'] = isset($data['hard_disk_interface']) ? $data['hard_disk_interface'] : null;
$this->container['hard_disk_size'] = isset($data['hard_disk_size']) ? $data['hard_disk_size'] : null;
$this->container['hardware_platform'] = isset($data['hardware_platform']) ? $data['hardware_platform'] : null;
$this->container['hazardous_material_type'] = isset($data['hazardous_material_type']) ? $data['hazardous_material_type'] : null;
$this->container['item_dimensions'] = isset($data['item_dimensions']) ? $data['item_dimensions'] : null;
$this->container['is_adult_product'] = isset($data['is_adult_product']) ? $data['is_adult_product'] : null;
$this->container['is_autographed'] = isset($data['is_autographed']) ? $data['is_autographed'] : null;
$this->container['is_eligible_for_trade_in'] = isset($data['is_eligible_for_trade_in']) ? $data['is_eligible_for_trade_in'] : null;
$this->container['is_memorabilia'] = isset($data['is_memorabilia']) ? $data['is_memorabilia'] : null;
$this->container['issues_per_year'] = isset($data['issues_per_year']) ? $data['issues_per_year'] : null;
$this->container['item_part_number'] = isset($data['item_part_number']) ? $data['item_part_number'] : null;
$this->container['label'] = isset($data['label']) ? $data['label'] : null;
$this->container['languages'] = isset($data['languages']) ? $data['languages'] : null;
$this->container['legal_disclaimer'] = isset($data['legal_disclaimer']) ? $data['legal_disclaimer'] : null;
$this->container['list_price'] = isset($data['list_price']) ? $data['list_price'] : null;
$this->container['manufacturer'] = isset($data['manufacturer']) ? $data['manufacturer'] : null;
$this->container['manufacturer_maximum_age'] = isset($data['manufacturer_maximum_age']) ? $data['manufacturer_maximum_age'] : null;
$this->container['manufacturer_minimum_age'] = isset($data['manufacturer_minimum_age']) ? $data['manufacturer_minimum_age'] : null;
$this->container['manufacturer_parts_warranty_description'] = isset($data['manufacturer_parts_warranty_description']) ? $data['manufacturer_parts_warranty_description'] : null;
$this->container['material_type'] = isset($data['material_type']) ? $data['material_type'] : null;
$this->container['maximum_resolution'] = isset($data['maximum_resolution']) ? $data['maximum_resolution'] : null;
$this->container['media_type'] = isset($data['media_type']) ? $data['media_type'] : null;
$this->container['metal_stamp'] = isset($data['metal_stamp']) ? $data['metal_stamp'] : null;
$this->container['metal_type'] = isset($data['metal_type']) ? $data['metal_type'] : null;
$this->container['model'] = isset($data['model']) ? $data['model'] : null;
$this->container['number_of_discs'] = isset($data['number_of_discs']) ? $data['number_of_discs'] : null;
$this->container['number_of_issues'] = isset($data['number_of_issues']) ? $data['number_of_issues'] : null;
$this->container['number_of_items'] = isset($data['number_of_items']) ? $data['number_of_items'] : null;
$this->container['number_of_pages'] = isset($data['number_of_pages']) ? $data['number_of_pages'] : null;
$this->container['number_of_tracks'] = isset($data['number_of_tracks']) ? $data['number_of_tracks'] : null;
$this->container['operating_system'] = isset($data['operating_system']) ? $data['operating_system'] : null;
$this->container['optical_zoom'] = isset($data['optical_zoom']) ? $data['optical_zoom'] : null;
$this->container['package_dimensions'] = isset($data['package_dimensions']) ? $data['package_dimensions'] : null;
$this->container['package_quantity'] = isset($data['package_quantity']) ? $data['package_quantity'] : null;
$this->container['part_number'] = isset($data['part_number']) ? $data['part_number'] : null;
$this->container['pegi_rating'] = isset($data['pegi_rating']) ? $data['pegi_rating'] : null;
$this->container['platform'] = isset($data['platform']) ? $data['platform'] : null;
$this->container['processor_count'] = isset($data['processor_count']) ? $data['processor_count'] : null;
$this->container['product_group'] = isset($data['product_group']) ? $data['product_group'] : null;
$this->container['product_type_name'] = isset($data['product_type_name']) ? $data['product_type_name'] : null;
$this->container['product_type_subcategory'] = isset($data['product_type_subcategory']) ? $data['product_type_subcategory'] : null;
$this->container['publication_date'] = isset($data['publication_date']) ? $data['publication_date'] : null;
$this->container['publisher'] = isset($data['publisher']) ? $data['publisher'] : null;
$this->container['region_code'] = isset($data['region_code']) ? $data['region_code'] : null;
$this->container['release_date'] = isset($data['release_date']) ? $data['release_date'] : null;
$this->container['ring_size'] = isset($data['ring_size']) ? $data['ring_size'] : null;
$this->container['running_time'] = isset($data['running_time']) ? $data['running_time'] : null;
$this->container['shaft_material'] = isset($data['shaft_material']) ? $data['shaft_material'] : null;
$this->container['scent'] = isset($data['scent']) ? $data['scent'] : null;
$this->container['season_sequence'] = isset($data['season_sequence']) ? $data['season_sequence'] : null;
$this->container['seikodo_product_code'] = isset($data['seikodo_product_code']) ? $data['seikodo_product_code'] : null;
$this->container['size'] = isset($data['size']) ? $data['size'] : null;
$this->container['size_per_pearl'] = isset($data['size_per_pearl']) ? $data['size_per_pearl'] : null;
$this->container['small_image'] = isset($data['small_image']) ? $data['small_image'] : null;
$this->container['studio'] = isset($data['studio']) ? $data['studio'] : null;
$this->container['subscription_length'] = isset($data['subscription_length']) ? $data['subscription_length'] : null;
$this->container['system_memory_size'] = isset($data['system_memory_size']) ? $data['system_memory_size'] : null;
$this->container['system_memory_type'] = isset($data['system_memory_type']) ? $data['system_memory_type'] : null;
$this->container['theatrical_release_date'] = isset($data['theatrical_release_date']) ? $data['theatrical_release_date'] : null;
$this->container['title'] = isset($data['title']) ? $data['title'] : null;
$this->container['total_diamond_weight'] = isset($data['total_diamond_weight']) ? $data['total_diamond_weight'] : null;
$this->container['total_gem_weight'] = isset($data['total_gem_weight']) ? $data['total_gem_weight'] : null;
$this->container['warranty'] = isset($data['warranty']) ? $data['warranty'] : null;
$this->container['weee_tax_value'] = isset($data['weee_tax_value']) ? $data['weee_tax_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 actor.
*
* @return string[]
*/
public function getActor()
{
return $this->container['actor'];
}
/**
* Sets actor.
*
* @param string[] $actor the actor attributes of the item
*
* @return $this
*/
public function setActor($actor)
{
$this->container['actor'] = $actor;
return $this;
}
/**
* Gets artist.
*
* @return string[]
*/
public function getArtist()
{
return $this->container['artist'];
}
/**
* Sets artist.
*
* @param string[] $artist the artist attributes of the item
*
* @return $this
*/
public function setArtist($artist)
{
$this->container['artist'] = $artist;
return $this;
}
/**
* Gets aspect_ratio.
*
* @return string
*/
public function getAspectRatio()
{
return $this->container['aspect_ratio'];
}
/**
* Sets aspect_ratio.
*
* @param string $aspect_ratio the aspect ratio attribute of the item
*
* @return $this
*/
public function setAspectRatio($aspect_ratio)
{
$this->container['aspect_ratio'] = $aspect_ratio;
return $this;
}
/**
* Gets audience_rating.
*
* @return string
*/
public function getAudienceRating()
{
return $this->container['audience_rating'];
}
/**
* Sets audience_rating.
*
* @param string $audience_rating the audience rating attribute of the item
*
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | true |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Catalog/SalesRankList.php | lib/Models/Catalog/SalesRankList.php | <?php
/**
* SalesRankList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SalesRankList Class Doc Comment.
*
* @description A list of sales rank information for the item by category.
*
* @author Stefan Neuhaus / ClouSale
*/
class SalesRankList extends Categories implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SalesRankList';
/**
* 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 SalesRankType::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/Catalog/NumberOfOfferListingsList.php | lib/Models/Catalog/NumberOfOfferListingsList.php | <?php
/**
* NumberOfOfferListingsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Catalog Items.
*
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NumberOfOfferListingsList Class Doc Comment.
*
* @description The number of active offer listings for the item that was submitted. The listing count is returned by condition, one for each listing condition value that is returned. Possible listing condition values are: Any, New, Used, Collectible, Refurbished, or Club.
*
* @author Stefan Neuhaus / ClouSale
*/
class NumberOfOfferListingsList extends Categories implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NumberOfOfferListingsList';
/**
* 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 OfferListingCountType::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/Solicitations/GetSolicitationActionsForOrderResponse.php | lib/Models/Solicitations/GetSolicitationActionsForOrderResponse.php | <?php
/**
* GetSolicitationActionsForOrderResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetSolicitationActionsForOrderResponse Class Doc Comment.
*
* @description The response schema for the getSolicitationActionsForOrder operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetSolicitationActionsForOrderResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetSolicitationActionsForOrderResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'_links' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponseLinks',
'_embedded' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponseEmbedded',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'_links' => null,
'_embedded' => 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 = [
'_links' => '_links',
'_embedded' => '_embedded',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'_links' => 'setLinks',
'_embedded' => 'setEmbedded',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'_links' => 'getLinks',
'_embedded' => 'getEmbedded',
'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['_links'] = isset($data['_links']) ? $data['_links'] : null;
$this->container['_embedded'] = isset($data['_embedded']) ? $data['_embedded'] : 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 _links.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponseLinks
*/
public function getLinks()
{
return $this->container['_links'];
}
/**
* Sets _links.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponseLinks $_links _links
*
* @return $this
*/
public function setLinks($_links)
{
$this->container['_links'] = $_links;
return $this;
}
/**
* Gets _embedded.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponseEmbedded
*/
public function getEmbedded()
{
return $this->container['_embedded'];
}
/**
* Sets _embedded.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponseEmbedded $_embedded _embedded
*
* @return $this
*/
public function setEmbedded($_embedded)
{
$this->container['_embedded'] = $_embedded;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\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/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php | lib/Models/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php | <?php
/**
* CreateProductReviewAndSellerFeedbackSolicitationResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CreateProductReviewAndSellerFeedbackSolicitationResponse Class Doc Comment.
*
* @description The response schema for the createProductReviewAndSellerFeedbackSolicitation operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class CreateProductReviewAndSellerFeedbackSolicitationResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CreateProductReviewAndSellerFeedbackSolicitationResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\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\Solicitations\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\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/Solicitations/ErrorList.php | lib/Models/Solicitations/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
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/Solicitations/SolicitationsAction.php | lib/Models/Solicitations/SolicitationsAction.php | <?php
/**
* SolicitationsAction.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SolicitationsAction Class Doc Comment.
*
* @description A simple object containing the name of the template.
*
* @author Stefan Neuhaus / ClouSale
*/
class SolicitationsAction implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SolicitationsAction';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'name' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'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 = [
'name' => 'name', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'name' => 'setName', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'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['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['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 name.
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name.
*
* @param string $name name
*
* @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/Solicitations/LinkObject.php | lib/Models/Solicitations/LinkObject.php | <?php
/**
* LinkObject.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LinkObject Class Doc Comment.
*
* @description A Link object.
*
* @author Stefan Neuhaus / ClouSale
*/
class LinkObject implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LinkObject';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'href' => 'string',
'name' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'href' => 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 = [
'href' => 'href',
'name' => 'name', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'href' => 'setHref',
'name' => 'setName', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'href' => 'getHref',
'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['href'] = isset($data['href']) ? $data['href'] : 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['href']) {
$invalidProperties[] = "'href' 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 href.
*
* @return string
*/
public function getHref()
{
return $this->container['href'];
}
/**
* Sets href.
*
* @param string $href a URI for this object
*
* @return $this
*/
public function setHref($href)
{
$this->container['href'] = $href;
return $this;
}
/**
* Gets name.
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name.
*
* @param string $name an identifier for this object
*
* @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/Solicitations/Schema.php | lib/Models/Solicitations/Schema.php | <?php
/**
* Schema.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Schema Class Doc Comment.
*
* @description A JSON schema document describing the expected payload of the action. This object can be validated against <a href=http://json-schema.org/draft-04/schema>http://json-schema.org/draft-04/schema</a>.
*
* @author Stefan Neuhaus / ClouSale
*/
class Schema implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Schema';
/**
* 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/Solicitations/GetSolicitationActionResponseEmbedded.php | lib/Models/Solicitations/GetSolicitationActionResponseEmbedded.php | <?php
/**
* GetSolicitationActionResponseEmbedded.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetSolicitationActionResponseEmbedded Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetSolicitationActionResponseEmbedded implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetSolicitationActionResponse__embedded';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'schema' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSchemaResponse', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'schema' => 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 = [
'schema' => 'schema', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'schema' => 'setSchema', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'schema' => 'getSchema', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['schema'] = isset($data['schema']) ? $data['schema'] : 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 schema.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSchemaResponse
*/
public function getSchema()
{
return $this->container['schema'];
}
/**
* Sets schema.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSchemaResponse $schema schema
*
* @return $this
*/
public function setSchema($schema)
{
$this->container['schema'] = $schema;
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/Solicitations/GetSolicitationActionResponseLinks.php | lib/Models/Solicitations/GetSolicitationActionResponseLinks.php | <?php
/**
* GetSolicitationActionResponseLinks.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetSolicitationActionResponseLinks Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetSolicitationActionResponseLinks implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetSolicitationActionResponse__links';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'self' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject',
'schema' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'self' => null,
'schema' => 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 = [
'self' => 'self',
'schema' => 'schema', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'self' => 'setSelf',
'schema' => 'setSchema', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'self' => 'getSelf',
'schema' => 'getSchema', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['self'] = isset($data['self']) ? $data['self'] : null;
$this->container['schema'] = isset($data['schema']) ? $data['schema'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['self']) {
$invalidProperties[] = "'self' can't be null";
}
if (null === $this->container['schema']) {
$invalidProperties[] = "'schema' 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 self.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject
*/
public function getSelf()
{
return $this->container['self'];
}
/**
* Sets self.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject $self self
*
* @return $this
*/
public function setSelf($self)
{
$this->container['self'] = $self;
return $this;
}
/**
* Gets schema.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject
*/
public function getSchema()
{
return $this->container['schema'];
}
/**
* Sets schema.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject $schema schema
*
* @return $this
*/
public function setSchema($schema)
{
$this->container['schema'] = $schema;
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/Solicitations/GetSchemaResponseLinks.php | lib/Models/Solicitations/GetSchemaResponseLinks.php | <?php
/**
* GetSchemaResponseLinks.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetSchemaResponseLinks Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetSchemaResponseLinks implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetSchemaResponse__links';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'self' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'self' => 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 = [
'self' => 'self', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'self' => 'setSelf', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'self' => 'getSelf', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['self'] = isset($data['self']) ? $data['self'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['self']) {
$invalidProperties[] = "'self' 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 self.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject
*/
public function getSelf()
{
return $this->container['self'];
}
/**
* Sets self.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject $self self
*
* @return $this
*/
public function setSelf($self)
{
$this->container['self'] = $self;
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/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php | lib/Models/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php | <?php
/**
* GetSolicitationActionsForOrderResponseEmbedded.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetSolicitationActionsForOrderResponseEmbedded Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetSolicitationActionsForOrderResponseEmbedded implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetSolicitationActionsForOrderResponse__embedded';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'actions' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponse[]', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'actions' => 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 = [
'actions' => 'actions', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'actions' => 'setActions', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'actions' => 'getActions', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['actions'] = isset($data['actions']) ? $data['actions'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['actions']) {
$invalidProperties[] = "'actions' 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 actions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponse[]
*/
public function getActions()
{
return $this->container['actions'];
}
/**
* Sets actions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponse[] $actions actions
*
* @return $this
*/
public function setActions($actions)
{
$this->container['actions'] = $actions;
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/Solicitations/Error.php | lib/Models/Solicitations/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
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/Solicitations/GetSolicitationActionsForOrderResponseLinks.php | lib/Models/Solicitations/GetSolicitationActionsForOrderResponseLinks.php | <?php
/**
* GetSolicitationActionsForOrderResponseLinks.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetSolicitationActionsForOrderResponseLinks Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetSolicitationActionsForOrderResponseLinks implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetSolicitationActionsForOrderResponse__links';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'self' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject',
'actions' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject[]', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'self' => null,
'actions' => 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 = [
'self' => 'self',
'actions' => 'actions', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'self' => 'setSelf',
'actions' => 'setActions', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'self' => 'getSelf',
'actions' => 'getActions', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['self'] = isset($data['self']) ? $data['self'] : null;
$this->container['actions'] = isset($data['actions']) ? $data['actions'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['self']) {
$invalidProperties[] = "'self' can't be null";
}
if (null === $this->container['actions']) {
$invalidProperties[] = "'actions' 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 self.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject
*/
public function getSelf()
{
return $this->container['self'];
}
/**
* Sets self.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject $self self
*
* @return $this
*/
public function setSelf($self)
{
$this->container['self'] = $self;
return $this;
}
/**
* Gets actions.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject[]
*/
public function getActions()
{
return $this->container['actions'];
}
/**
* Sets actions.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\LinkObject[] $actions eligible actions for the specified amazonOrderId
*
* @return $this
*/
public function setActions($actions)
{
$this->container['actions'] = $actions;
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/Solicitations/GetSolicitationActionResponse.php | lib/Models/Solicitations/GetSolicitationActionResponse.php | <?php
/**
* GetSolicitationActionResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetSolicitationActionResponse Class Doc Comment.
*
* @description Describes a solicitation action that can be taken for an order. Provides a JSON Hypertext Application Language (HAL) link to the JSON schema document that describes the expected input.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetSolicitationActionResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetSolicitationActionResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'_links' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponseLinks',
'_embedded' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponseEmbedded',
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\SolicitationsAction',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'_links' => null,
'_embedded' => null,
'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 = [
'_links' => '_links',
'_embedded' => '_embedded',
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'_links' => 'setLinks',
'_embedded' => 'setEmbedded',
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'_links' => 'getLinks',
'_embedded' => 'getEmbedded',
'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['_links'] = isset($data['_links']) ? $data['_links'] : null;
$this->container['_embedded'] = isset($data['_embedded']) ? $data['_embedded'] : 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 _links.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponseLinks
*/
public function getLinks()
{
return $this->container['_links'];
}
/**
* Sets _links.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponseLinks $_links _links
*
* @return $this
*/
public function setLinks($_links)
{
$this->container['_links'] = $_links;
return $this;
}
/**
* Gets _embedded.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponseEmbedded
*/
public function getEmbedded()
{
return $this->container['_embedded'];
}
/**
* Sets _embedded.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionResponseEmbedded $_embedded _embedded
*
* @return $this
*/
public function setEmbedded($_embedded)
{
$this->container['_embedded'] = $_embedded;
return $this;
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\SolicitationsAction
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\SolicitationsAction $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\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/Solicitations/GetSchemaResponse.php | lib/Models/Solicitations/GetSchemaResponse.php | <?php
/**
* GetSchemaResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Solicitations.
*
* With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the <a href=https://tools.ietf.org/html/draft-kelly-json-hal-08>JSON Hypertext Application Language</a> (HAL) standard.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetSchemaResponse Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetSchemaResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetSchemaResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'_links' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSchemaResponseLinks',
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\Schema',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\ErrorList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'_links' => null,
'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 = [
'_links' => '_links',
'payload' => 'payload',
'errors' => 'errors', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'_links' => 'setLinks',
'payload' => 'setPayload',
'errors' => 'setErrors', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'_links' => 'getLinks',
'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['_links'] = isset($data['_links']) ? $data['_links'] : 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 _links.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSchemaResponseLinks
*/
public function getLinks()
{
return $this->container['_links'];
}
/**
* Sets _links.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSchemaResponseLinks $_links _links
*
* @return $this
*/
public function setLinks($_links)
{
$this->container['_links'] = $_links;
return $this;
}
/**
* Gets payload.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\Schema
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\Schema $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\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/FbaInboundEligibility/ErrorList.php | lib/Models/FbaInboundEligibility/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Inbound Eligibilty.
*
* With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon's fulfillment centers.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility;
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/FbaInboundEligibility/GetItemEligibilityPreviewResponse.php | lib/Models/FbaInboundEligibility/GetItemEligibilityPreviewResponse.php | <?php
/**
* GetItemEligibilityPreviewResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Inbound Eligibilty.
*
* With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon's fulfillment centers.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetItemEligibilityPreviewResponse Class Doc Comment.
*
* @description The response schema for the getItemEligibilityPreview operation.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetItemEligibilityPreviewResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetItemEligibilityPreviewResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ItemEligibilityPreview',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\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\FbaInboundEligibility\ItemEligibilityPreview
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ItemEligibilityPreview $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\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/FbaInboundEligibility/ItemEligibilityPreview.php | lib/Models/FbaInboundEligibility/ItemEligibilityPreview.php | <?php
/**
* ItemEligibilityPreview.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Inbound Eligibilty.
*
* With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon's fulfillment centers.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ItemEligibilityPreview Class Doc Comment.
*
* @description The response object which contains the ASIN, marketplaceId if required, eligibility program, the eligibility status (boolean), and a list of ineligibility reason codes.
*
* @author Stefan Neuhaus / ClouSale
*/
class ItemEligibilityPreview implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ItemEligibilityPreview';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'asin' => 'string',
'marketplace_id' => 'string',
'program' => 'string',
'is_eligible_for_program' => 'bool',
'ineligibility_reason_list' => 'string[]', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'asin' => null,
'marketplace_id' => null,
'program' => null,
'is_eligible_for_program' => null,
'ineligibility_reason_list' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'asin' => 'asin',
'marketplace_id' => 'marketplaceId',
'program' => 'program',
'is_eligible_for_program' => 'isEligibleForProgram',
'ineligibility_reason_list' => 'ineligibilityReasonList', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'asin' => 'setAsin',
'marketplace_id' => 'setMarketplaceId',
'program' => 'setProgram',
'is_eligible_for_program' => 'setIsEligibleForProgram',
'ineligibility_reason_list' => 'setIneligibilityReasonList', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'asin' => 'getAsin',
'marketplace_id' => 'getMarketplaceId',
'program' => 'getProgram',
'is_eligible_for_program' => 'getIsEligibleForProgram',
'ineligibility_reason_list' => 'getIneligibilityReasonList', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of 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 PROGRAM_INBOUND = 'INBOUND';
const PROGRAM_COMMINGLING = 'COMMINGLING';
const INELIGIBILITY_REASON_LIST_FBA_INB_0004 = 'FBA_INB_0004';
const INELIGIBILITY_REASON_LIST_FBA_INB_0006 = 'FBA_INB_0006';
const INELIGIBILITY_REASON_LIST_FBA_INB_0007 = 'FBA_INB_0007';
const INELIGIBILITY_REASON_LIST_FBA_INB_0008 = 'FBA_INB_0008';
const INELIGIBILITY_REASON_LIST_FBA_INB_0009 = 'FBA_INB_0009';
const INELIGIBILITY_REASON_LIST_FBA_INB_0010 = 'FBA_INB_0010';
const INELIGIBILITY_REASON_LIST_FBA_INB_0011 = 'FBA_INB_0011';
const INELIGIBILITY_REASON_LIST_FBA_INB_0012 = 'FBA_INB_0012';
const INELIGIBILITY_REASON_LIST_FBA_INB_0013 = 'FBA_INB_0013';
const INELIGIBILITY_REASON_LIST_FBA_INB_0014 = 'FBA_INB_0014';
const INELIGIBILITY_REASON_LIST_FBA_INB_0015 = 'FBA_INB_0015';
const INELIGIBILITY_REASON_LIST_FBA_INB_0016 = 'FBA_INB_0016';
const INELIGIBILITY_REASON_LIST_FBA_INB_0017 = 'FBA_INB_0017';
const INELIGIBILITY_REASON_LIST_FBA_INB_0018 = 'FBA_INB_0018';
const INELIGIBILITY_REASON_LIST_FBA_INB_0019 = 'FBA_INB_0019';
const INELIGIBILITY_REASON_LIST_FBA_INB_0034 = 'FBA_INB_0034';
const INELIGIBILITY_REASON_LIST_FBA_INB_0035 = 'FBA_INB_0035';
const INELIGIBILITY_REASON_LIST_FBA_INB_0036 = 'FBA_INB_0036';
const INELIGIBILITY_REASON_LIST_FBA_INB_0037 = 'FBA_INB_0037';
const INELIGIBILITY_REASON_LIST_FBA_INB_0038 = 'FBA_INB_0038';
const INELIGIBILITY_REASON_LIST_FBA_INB_0050 = 'FBA_INB_0050';
const INELIGIBILITY_REASON_LIST_FBA_INB_0051 = 'FBA_INB_0051';
const INELIGIBILITY_REASON_LIST_FBA_INB_0053 = 'FBA_INB_0053';
const INELIGIBILITY_REASON_LIST_FBA_INB_0055 = 'FBA_INB_0055';
const INELIGIBILITY_REASON_LIST_FBA_INB_0056 = 'FBA_INB_0056';
const INELIGIBILITY_REASON_LIST_FBA_INB_0059 = 'FBA_INB_0059';
const INELIGIBILITY_REASON_LIST_FBA_INB_0065 = 'FBA_INB_0065';
const INELIGIBILITY_REASON_LIST_FBA_INB_0066 = 'FBA_INB_0066';
const INELIGIBILITY_REASON_LIST_FBA_INB_0067 = 'FBA_INB_0067';
const INELIGIBILITY_REASON_LIST_FBA_INB_0068 = 'FBA_INB_0068';
const INELIGIBILITY_REASON_LIST_FBA_INB_0095 = 'FBA_INB_0095';
const INELIGIBILITY_REASON_LIST_FBA_INB_0097 = 'FBA_INB_0097';
const INELIGIBILITY_REASON_LIST_FBA_INB_0098 = 'FBA_INB_0098';
const INELIGIBILITY_REASON_LIST_FBA_INB_0099 = 'FBA_INB_0099';
const INELIGIBILITY_REASON_LIST_FBA_INB_0100 = 'FBA_INB_0100';
const INELIGIBILITY_REASON_LIST_FBA_INB_0103 = 'FBA_INB_0103';
const INELIGIBILITY_REASON_LIST_FBA_INB_0104 = 'FBA_INB_0104';
const INELIGIBILITY_REASON_LIST_UNKNOWN_INB_ERROR_CODE = 'UNKNOWN_INB_ERROR_CODE';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getProgramAllowableValues()
{
return [
self::PROGRAM_INBOUND,
self::PROGRAM_COMMINGLING, ];
}
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getIneligibilityReasonListAllowableValues()
{
return [
self::INELIGIBILITY_REASON_LIST_FBA_INB_0004,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0006,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0007,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0008,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0009,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0010,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0011,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0012,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0013,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0014,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0015,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0016,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0017,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0018,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0019,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0034,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0035,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0036,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0037,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0038,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0050,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0051,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0053,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0055,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0056,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0059,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0065,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0066,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0067,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0068,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0095,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0097,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0098,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0099,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0100,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0103,
self::INELIGIBILITY_REASON_LIST_FBA_INB_0104,
self::INELIGIBILITY_REASON_LIST_UNKNOWN_INB_ERROR_CODE, ];
}
/**
* Associative array for storing property values.
*
* @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['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['program'] = isset($data['program']) ? $data['program'] : null;
$this->container['is_eligible_for_program'] = isset($data['is_eligible_for_program']) ? $data['is_eligible_for_program'] : null;
$this->container['ineligibility_reason_list'] = isset($data['ineligibility_reason_list']) ? $data['ineligibility_reason_list'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['asin']) {
$invalidProperties[] = "'asin' can't be null";
}
if (null === $this->container['program']) {
$invalidProperties[] = "'program' can't be null";
}
$allowedValues = $this->getProgramAllowableValues();
if (!is_null($this->container['program']) && !in_array($this->container['program'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'program', must be one of '%s'",
implode("', '", $allowedValues)
);
}
if (null === $this->container['is_eligible_for_program']) {
$invalidProperties[] = "'is_eligible_for_program' 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 ASIN for which eligibility was determined
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id the marketplace for which eligibility was determined
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets program.
*
* @return string
*/
public function getProgram()
{
return $this->container['program'];
}
/**
* Sets program.
*
* @param string $program the program for which eligibility was determined
*
* @return $this
*/
public function setProgram($program)
{
$allowedValues = $this->getProgramAllowableValues();
if (!in_array($program, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'program', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['program'] = $program;
return $this;
}
/**
* Gets is_eligible_for_program.
*
* @return bool
*/
public function getIsEligibleForProgram()
{
return $this->container['is_eligible_for_program'];
}
/**
* Sets is_eligible_for_program.
*
* @param bool $is_eligible_for_program indicates if the item is eligible for the program
*
* @return $this
*/
public function setIsEligibleForProgram($is_eligible_for_program)
{
$this->container['is_eligible_for_program'] = $is_eligible_for_program;
return $this;
}
/**
* Gets ineligibility_reason_list.
*
* @return string[]
*/
public function getIneligibilityReasonList()
{
return $this->container['ineligibility_reason_list'];
}
/**
* Sets ineligibility_reason_list.
*
* @param string[] $ineligibility_reason_list potential Ineligibility Reason Codes
*
* @return $this
*/
public function setIneligibilityReasonList($ineligibility_reason_list)
{
$allowedValues = $this->getIneligibilityReasonListAllowableValues();
if (!is_null($ineligibility_reason_list) && array_diff($ineligibility_reason_list, $allowedValues)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'ineligibility_reason_list', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['ineligibility_reason_list'] = $ineligibility_reason_list;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FbaInboundEligibility/Error.php | lib/Models/FbaInboundEligibility/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for FBA Inbound Eligibilty.
*
* With the FBA Inbound Eligibility API, you can build applications that let sellers get eligibility previews for items before shipping them to Amazon's fulfillment centers. With this API you can find out if an item is eligible for inbound shipment to Amazon's fulfillment centers in a specific marketplace. You can also find out if an item is eligible for using the manufacturer barcode for FBA inventory tracking. Sellers can use this information to inform their decisions about which items to ship Amazon's fulfillment centers.
*
* OpenAPI spec version: v1
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility;
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";
}
return $invalidProperties;
}
/**
* Validate all the properties in 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/ProductPricing/SellerSKUIdentifier.php | lib/Models/ProductPricing/SellerSKUIdentifier.php | <?php
/**
* SellerSKUIdentifier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerSKUIdentifier Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerSKUIdentifier implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerSKUIdentifier';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => 'string',
'seller_id' => 'string',
'seller_sku' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'seller_id' => null,
'seller_sku' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_id' => 'MarketplaceId',
'seller_id' => 'SellerId',
'seller_sku' => 'SellerSKU', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'seller_id' => 'setSellerId',
'seller_sku' => 'setSellerSku', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'seller_id' => 'getSellerId',
'seller_sku' => 'getSellerSku', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['seller_id'] = isset($data['seller_id']) ? $data['seller_id'] : null;
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['marketplace_id']) {
$invalidProperties[] = "'marketplace_id' can't be null";
}
if (null === $this->container['seller_id']) {
$invalidProperties[] = "'seller_id' can't be null";
}
if (null === $this->container['seller_sku']) {
$invalidProperties[] = "'seller_sku' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id a marketplace identifier
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets seller_id.
*
* @return string
*/
public function getSellerId()
{
return $this->container['seller_id'];
}
/**
* Sets seller_id.
*
* @param string $seller_id the seller identifier submitted for the operation
*
* @return $this
*/
public function setSellerId($seller_id)
{
$this->container['seller_id'] = $seller_id;
return $this;
}
/**
* Gets seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku the seller stock keeping unit (SKU) of the item
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/AttributeSetList.php | lib/Models/ProductPricing/AttributeSetList.php | <?php
/**
* AttributeSetList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* AttributeSetList Class Doc Comment.
*
* @description A list of product attributes if they are applicable to the product that is returned.
*
* @author Stefan Neuhaus / ClouSale
*/
class AttributeSetList implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'AttributeSetList';
/**
* 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/ProductPricing/PriceType.php | lib/Models/ProductPricing/PriceType.php | <?php
/**
* PriceType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PriceType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class PriceType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PriceType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'landed_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'listing_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'shipping' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'points' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'landed_price' => null,
'listing_price' => null,
'shipping' => null,
'points' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'landed_price' => 'LandedPrice',
'listing_price' => 'ListingPrice',
'shipping' => 'Shipping',
'points' => 'Points', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'landed_price' => 'setLandedPrice',
'listing_price' => 'setListingPrice',
'shipping' => 'setShipping',
'points' => 'setPoints', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'landed_price' => 'getLandedPrice',
'listing_price' => 'getListingPrice',
'shipping' => 'getShipping',
'points' => 'getPoints', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['landed_price'] = isset($data['landed_price']) ? $data['landed_price'] : null;
$this->container['listing_price'] = isset($data['listing_price']) ? $data['listing_price'] : null;
$this->container['shipping'] = isset($data['shipping']) ? $data['shipping'] : null;
$this->container['points'] = isset($data['points']) ? $data['points'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['listing_price']) {
$invalidProperties[] = "'listing_price' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets landed_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getLandedPrice()
{
return $this->container['landed_price'];
}
/**
* Sets landed_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $landed_price landed_price
*
* @return $this
*/
public function setLandedPrice($landed_price)
{
$this->container['landed_price'] = $landed_price;
return $this;
}
/**
* Gets listing_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getListingPrice()
{
return $this->container['listing_price'];
}
/**
* Sets listing_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $listing_price listing_price
*
* @return $this
*/
public function setListingPrice($listing_price)
{
$this->container['listing_price'] = $listing_price;
return $this;
}
/**
* Gets shipping.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getShipping()
{
return $this->container['shipping'];
}
/**
* Sets shipping.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $shipping shipping
*
* @return $this
*/
public function setShipping($shipping)
{
$this->container['shipping'] = $shipping;
return $this;
}
/**
* Gets points.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points
*/
public function getPoints()
{
return $this->container['points'];
}
/**
* Sets points.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points $points points
*
* @return $this
*/
public function setPoints($points)
{
$this->container['points'] = $points;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/PriceList.php | lib/Models/ProductPricing/PriceList.php | <?php
/**
* PriceList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* PriceList Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class PriceList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'PriceList';
/**
* 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 PriceType::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/ProductPricing/ErrorList.php | lib/Models/ProductPricing/ErrorList.php | <?php
/**
* ErrorList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
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/ProductPricing/MoneyType.php | lib/Models/ProductPricing/MoneyType.php | <?php
/**
* MoneyType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* MoneyType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class MoneyType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'MoneyType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'currency_code' => 'string',
'amount' => 'float', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'currency_code' => null,
'amount' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'currency_code' => 'CurrencyCode',
'amount' => 'Amount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'currency_code' => 'setCurrencyCode',
'amount' => 'setAmount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'currency_code' => 'getCurrencyCode',
'amount' => 'getAmount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['currency_code'] = isset($data['currency_code']) ? $data['currency_code'] : null;
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets currency_code.
*
* @return string
*/
public function getCurrencyCode()
{
return $this->container['currency_code'];
}
/**
* Sets currency_code.
*
* @param string $currency_code the currency code in ISO 4217 format
*
* @return $this
*/
public function setCurrencyCode($currency_code)
{
$this->container['currency_code'] = $currency_code;
return $this;
}
/**
* Gets amount.
*
* @return float
*/
public function getAmount()
{
return $this->container['amount'];
}
/**
* Sets amount.
*
* @param float $amount the monetary value
*
* @return $this
*/
public function setAmount($amount)
{
$this->container['amount'] = $amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/LowestPrices.php | lib/Models/ProductPricing/LowestPrices.php | <?php
/**
* LowestPrices.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LowestPrices Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class LowestPrices implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LowestPrices';
/**
* 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/ProductPricing/SalesRankType.php | lib/Models/ProductPricing/SalesRankType.php | <?php
/**
* SalesRankType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SalesRankType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class SalesRankType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SalesRankType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'product_category_id' => 'string',
'rank' => 'int', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'product_category_id' => null,
'rank' => 'int32', ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'product_category_id' => 'ProductCategoryId',
'rank' => 'Rank', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'product_category_id' => 'setProductCategoryId',
'rank' => 'setRank', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'product_category_id' => 'getProductCategoryId',
'rank' => 'getRank', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['product_category_id'] = isset($data['product_category_id']) ? $data['product_category_id'] : null;
$this->container['rank'] = isset($data['rank']) ? $data['rank'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['product_category_id']) {
$invalidProperties[] = "'product_category_id' can't be null";
}
if (null === $this->container['rank']) {
$invalidProperties[] = "'rank' 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 product_category_id.
*
* @return string
*/
public function getProductCategoryId()
{
return $this->container['product_category_id'];
}
/**
* Sets product_category_id.
*
* @param string $product_category_id identifies the item category from which the sales rank is taken
*
* @return $this
*/
public function setProductCategoryId($product_category_id)
{
$this->container['product_category_id'] = $product_category_id;
return $this;
}
/**
* Gets rank.
*
* @return int
*/
public function getRank()
{
return $this->container['rank'];
}
/**
* Sets rank.
*
* @param int $rank the sales rank of the item within the item category
*
* @return $this
*/
public function setRank($rank)
{
$this->container['rank'] = $rank;
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/ProductPricing/RelationshipList.php | lib/Models/ProductPricing/RelationshipList.php | <?php
/**
* RelationshipList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* RelationshipList Class Doc Comment.
*
* @description A list that contains product variation information, if applicable.
*
* @author Stefan Neuhaus / ClouSale
*/
class RelationshipList implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'RelationshipList';
/**
* 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/ProductPricing/Points.php | lib/Models/ProductPricing/Points.php | <?php
/**
* Points.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Points Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class Points implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Points';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'points_number' => 'int',
'points_monetary_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'points_number' => 'int32',
'points_monetary_value' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'points_number' => 'PointsNumber',
'points_monetary_value' => 'PointsMonetaryValue', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'points_number' => 'setPointsNumber',
'points_monetary_value' => 'setPointsMonetaryValue', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'points_number' => 'getPointsNumber',
'points_monetary_value' => 'getPointsMonetaryValue', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['points_number'] = isset($data['points_number']) ? $data['points_number'] : null;
$this->container['points_monetary_value'] = isset($data['points_monetary_value']) ? $data['points_monetary_value'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets points_number.
*
* @return int
*/
public function getPointsNumber()
{
return $this->container['points_number'];
}
/**
* Sets points_number.
*
* @param int $points_number the number of points
*
* @return $this
*/
public function setPointsNumber($points_number)
{
$this->container['points_number'] = $points_number;
return $this;
}
/**
* Gets points_monetary_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getPointsMonetaryValue()
{
return $this->container['points_monetary_value'];
}
/**
* Sets points_monetary_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $points_monetary_value points_monetary_value
*
* @return $this
*/
public function setPointsMonetaryValue($points_monetary_value)
{
$this->container['points_monetary_value'] = $points_monetary_value;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/OfferType.php | lib/Models/ProductPricing/OfferType.php | <?php
/**
* OfferType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OfferType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class OfferType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OfferType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'buying_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\PriceType',
'regular_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'fulfillment_channel' => 'string',
'item_condition' => 'string',
'item_sub_condition' => 'string',
'seller_sku' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'buying_price' => null,
'regular_price' => null,
'fulfillment_channel' => null,
'item_condition' => null,
'item_sub_condition' => null,
'seller_sku' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'buying_price' => 'BuyingPrice',
'regular_price' => 'RegularPrice',
'fulfillment_channel' => 'FulfillmentChannel',
'item_condition' => 'ItemCondition',
'item_sub_condition' => 'ItemSubCondition',
'seller_sku' => 'SellerSKU', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'buying_price' => 'setBuyingPrice',
'regular_price' => 'setRegularPrice',
'fulfillment_channel' => 'setFulfillmentChannel',
'item_condition' => 'setItemCondition',
'item_sub_condition' => 'setItemSubCondition',
'seller_sku' => 'setSellerSku', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'buying_price' => 'getBuyingPrice',
'regular_price' => 'getRegularPrice',
'fulfillment_channel' => 'getFulfillmentChannel',
'item_condition' => 'getItemCondition',
'item_sub_condition' => 'getItemSubCondition',
'seller_sku' => 'getSellerSku', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['buying_price'] = isset($data['buying_price']) ? $data['buying_price'] : null;
$this->container['regular_price'] = isset($data['regular_price']) ? $data['regular_price'] : null;
$this->container['fulfillment_channel'] = isset($data['fulfillment_channel']) ? $data['fulfillment_channel'] : null;
$this->container['item_condition'] = isset($data['item_condition']) ? $data['item_condition'] : null;
$this->container['item_sub_condition'] = isset($data['item_sub_condition']) ? $data['item_sub_condition'] : null;
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['buying_price']) {
$invalidProperties[] = "'buying_price' can't be null";
}
if (null === $this->container['regular_price']) {
$invalidProperties[] = "'regular_price' can't be null";
}
if (null === $this->container['fulfillment_channel']) {
$invalidProperties[] = "'fulfillment_channel' can't be null";
}
if (null === $this->container['item_condition']) {
$invalidProperties[] = "'item_condition' can't be null";
}
if (null === $this->container['item_sub_condition']) {
$invalidProperties[] = "'item_sub_condition' can't be null";
}
if (null === $this->container['seller_sku']) {
$invalidProperties[] = "'seller_sku' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets buying_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\PriceType
*/
public function getBuyingPrice()
{
return $this->container['buying_price'];
}
/**
* Sets buying_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\PriceType $buying_price buying_price
*
* @return $this
*/
public function setBuyingPrice($buying_price)
{
$this->container['buying_price'] = $buying_price;
return $this;
}
/**
* Gets regular_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getRegularPrice()
{
return $this->container['regular_price'];
}
/**
* Sets regular_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $regular_price regular_price
*
* @return $this
*/
public function setRegularPrice($regular_price)
{
$this->container['regular_price'] = $regular_price;
return $this;
}
/**
* Gets fulfillment_channel.
*
* @return string
*/
public function getFulfillmentChannel()
{
return $this->container['fulfillment_channel'];
}
/**
* Sets fulfillment_channel.
*
* @param string $fulfillment_channel The fulfillment channel for the offer listing. Possible values: * Amazon - Fulfilled by Amazon. * Merchant - Fulfilled by the seller.
*
* @return $this
*/
public function setFulfillmentChannel($fulfillment_channel)
{
$this->container['fulfillment_channel'] = $fulfillment_channel;
return $this;
}
/**
* Gets item_condition.
*
* @return string
*/
public function getItemCondition()
{
return $this->container['item_condition'];
}
/**
* Sets item_condition.
*
* @param string $item_condition The item condition for the offer listing. Possible values: New, Used, Collectible, Refurbished, or Club.
*
* @return $this
*/
public function setItemCondition($item_condition)
{
$this->container['item_condition'] = $item_condition;
return $this;
}
/**
* Gets item_sub_condition.
*
* @return string
*/
public function getItemSubCondition()
{
return $this->container['item_sub_condition'];
}
/**
* Sets item_sub_condition.
*
* @param string $item_sub_condition The item subcondition for the offer listing. Possible values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other.
*
* @return $this
*/
public function setItemSubCondition($item_sub_condition)
{
$this->container['item_sub_condition'] = $item_sub_condition;
return $this;
}
/**
* Gets seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku the seller stock keeping unit (SKU) of the item
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/BuyBoxPriceType.php | lib/Models/ProductPricing/BuyBoxPriceType.php | <?php
/**
* BuyBoxPriceType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* BuyBoxPriceType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class BuyBoxPriceType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'BuyBoxPriceType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'condition' => 'string',
'landed_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'listing_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'shipping' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'points' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'condition' => null,
'landed_price' => null,
'listing_price' => null,
'shipping' => null,
'points' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'condition' => 'condition',
'landed_price' => 'LandedPrice',
'listing_price' => 'ListingPrice',
'shipping' => 'Shipping',
'points' => 'Points', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'condition' => 'setCondition',
'landed_price' => 'setLandedPrice',
'listing_price' => 'setListingPrice',
'shipping' => 'setShipping',
'points' => 'setPoints', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'condition' => 'getCondition',
'landed_price' => 'getLandedPrice',
'listing_price' => 'getListingPrice',
'shipping' => 'getShipping',
'points' => 'getPoints', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
$this->container['landed_price'] = isset($data['landed_price']) ? $data['landed_price'] : null;
$this->container['listing_price'] = isset($data['listing_price']) ? $data['listing_price'] : null;
$this->container['shipping'] = isset($data['shipping']) ? $data['shipping'] : null;
$this->container['points'] = isset($data['points']) ? $data['points'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['condition']) {
$invalidProperties[] = "'condition' can't be null";
}
if (null === $this->container['landed_price']) {
$invalidProperties[] = "'landed_price' can't be null";
}
if (null === $this->container['listing_price']) {
$invalidProperties[] = "'listing_price' can't be null";
}
if (null === $this->container['shipping']) {
$invalidProperties[] = "'shipping' 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 condition.
*
* @return string
*/
public function getCondition()
{
return $this->container['condition'];
}
/**
* Sets condition.
*
* @param string $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club.
*
* @return $this
*/
public function setCondition($condition)
{
$this->container['condition'] = $condition;
return $this;
}
/**
* Gets landed_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getLandedPrice()
{
return $this->container['landed_price'];
}
/**
* Sets landed_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $landed_price landed_price
*
* @return $this
*/
public function setLandedPrice($landed_price)
{
$this->container['landed_price'] = $landed_price;
return $this;
}
/**
* Gets listing_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getListingPrice()
{
return $this->container['listing_price'];
}
/**
* Sets listing_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $listing_price listing_price
*
* @return $this
*/
public function setListingPrice($listing_price)
{
$this->container['listing_price'] = $listing_price;
return $this;
}
/**
* Gets shipping.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getShipping()
{
return $this->container['shipping'];
}
/**
* Sets shipping.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $shipping shipping
*
* @return $this
*/
public function setShipping($shipping)
{
$this->container['shipping'] = $shipping;
return $this;
}
/**
* Gets points.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points
*/
public function getPoints()
{
return $this->container['points'];
}
/**
* Sets points.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points $points points
*
* @return $this
*/
public function setPoints($points)
{
$this->container['points'] = $points;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/ShipsFromType.php | lib/Models/ProductPricing/ShipsFromType.php | <?php
/**
* ShipsFromType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ShipsFromType Class Doc Comment.
*
* @description The state and country from where the item is shipped.
*
* @author Stefan Neuhaus / ClouSale
*/
class ShipsFromType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ShipsFromType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'state' => 'string',
'country' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'state' => null,
'country' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'state' => 'State',
'country' => 'Country', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'state' => 'setState',
'country' => 'setCountry', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'state' => 'getState',
'country' => 'getCountry', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['state'] = isset($data['state']) ? $data['state'] : null;
$this->container['country'] = isset($data['country']) ? $data['country'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets state.
*
* @return string
*/
public function getState()
{
return $this->container['state'];
}
/**
* Sets state.
*
* @param string $state the state from where the item is shipped
*
* @return $this
*/
public function setState($state)
{
$this->container['state'] = $state;
return $this;
}
/**
* Gets country.
*
* @return string
*/
public function getCountry()
{
return $this->container['country'];
}
/**
* Sets country.
*
* @param string $country the country from where the item is shipped
*
* @return $this
*/
public function setCountry($country)
{
$this->container['country'] = $country;
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/ProductPricing/Product.php | lib/Models/ProductPricing/Product.php | <?php
/**
* Product.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Product Class Doc Comment.
*
* @description An item.
*
* @author Stefan Neuhaus / ClouSale
*/
class Product implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Product';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'identifiers' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\IdentifierType',
'attribute_sets' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\AttributeSetList',
'relationships' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\RelationshipList',
'competitive_pricing' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\CompetitivePricingType',
'sales_rankings' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SalesRankList',
'offers' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\OffersList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'identifiers' => null,
'attribute_sets' => null,
'relationships' => null,
'competitive_pricing' => null,
'sales_rankings' => null,
'offers' => 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 = [
'identifiers' => 'Identifiers',
'attribute_sets' => 'AttributeSets',
'relationships' => 'Relationships',
'competitive_pricing' => 'CompetitivePricing',
'sales_rankings' => 'SalesRankings',
'offers' => 'Offers', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'identifiers' => 'setIdentifiers',
'attribute_sets' => 'setAttributeSets',
'relationships' => 'setRelationships',
'competitive_pricing' => 'setCompetitivePricing',
'sales_rankings' => 'setSalesRankings',
'offers' => 'setOffers', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'identifiers' => 'getIdentifiers',
'attribute_sets' => 'getAttributeSets',
'relationships' => 'getRelationships',
'competitive_pricing' => 'getCompetitivePricing',
'sales_rankings' => 'getSalesRankings',
'offers' => 'getOffers', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['identifiers'] = isset($data['identifiers']) ? $data['identifiers'] : null;
$this->container['attribute_sets'] = isset($data['attribute_sets']) ? $data['attribute_sets'] : null;
$this->container['relationships'] = isset($data['relationships']) ? $data['relationships'] : null;
$this->container['competitive_pricing'] = isset($data['competitive_pricing']) ? $data['competitive_pricing'] : null;
$this->container['sales_rankings'] = isset($data['sales_rankings']) ? $data['sales_rankings'] : null;
$this->container['offers'] = isset($data['offers']) ? $data['offers'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['identifiers']) {
$invalidProperties[] = "'identifiers' 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 identifiers.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\IdentifierType
*/
public function getIdentifiers()
{
return $this->container['identifiers'];
}
/**
* Sets identifiers.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\IdentifierType $identifiers identifiers
*
* @return $this
*/
public function setIdentifiers($identifiers)
{
$this->container['identifiers'] = $identifiers;
return $this;
}
/**
* Gets attribute_sets.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\AttributeSetList
*/
public function getAttributeSets()
{
return $this->container['attribute_sets'];
}
/**
* Sets attribute_sets.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\AttributeSetList $attribute_sets attribute_sets
*
* @return $this
*/
public function setAttributeSets($attribute_sets)
{
$this->container['attribute_sets'] = $attribute_sets;
return $this;
}
/**
* Gets relationships.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\RelationshipList
*/
public function getRelationships()
{
return $this->container['relationships'];
}
/**
* Sets relationships.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\RelationshipList $relationships relationships
*
* @return $this
*/
public function setRelationships($relationships)
{
$this->container['relationships'] = $relationships;
return $this;
}
/**
* Gets competitive_pricing.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\CompetitivePricingType
*/
public function getCompetitivePricing()
{
return $this->container['competitive_pricing'];
}
/**
* Sets competitive_pricing.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\CompetitivePricingType $competitive_pricing competitive_pricing
*
* @return $this
*/
public function setCompetitivePricing($competitive_pricing)
{
$this->container['competitive_pricing'] = $competitive_pricing;
return $this;
}
/**
* Gets sales_rankings.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SalesRankList
*/
public function getSalesRankings()
{
return $this->container['sales_rankings'];
}
/**
* Sets sales_rankings.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SalesRankList $sales_rankings sales_rankings
*
* @return $this
*/
public function setSalesRankings($sales_rankings)
{
$this->container['sales_rankings'] = $sales_rankings;
return $this;
}
/**
* Gets offers.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\OffersList
*/
public function getOffers()
{
return $this->container['offers'];
}
/**
* Sets offers.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\OffersList $offers offers
*
* @return $this
*/
public function setOffers($offers)
{
$this->container['offers'] = $offers;
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/ProductPricing/BuyBoxPrices.php | lib/Models/ProductPricing/BuyBoxPrices.php | <?php
/**
* BuyBoxPrices.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* BuyBoxPrices Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class BuyBoxPrices implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'BuyBoxPrices';
/**
* 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/ProductPricing/ConditionType.php | lib/Models/ProductPricing/ConditionType.php | <?php
/**
* ConditionType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
/**
* ConditionType Class Doc Comment.
*
* @description Indicates the condition of the item. Possible values: New, Used, Collectible, Refurbished, Club.
*
* @author Stefan Neuhaus / ClouSale
*/
class ConditionType
{
/**
* Possible values of this enum.
*/
const _NEW = 'New';
const USED = 'Used';
const COLLECTIBLE = 'Collectible';
const REFURBISHED = 'Refurbished';
const CLUB = 'Club';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::_NEW,
self::USED,
self::COLLECTIBLE,
self::REFURBISHED,
self::CLUB, ];
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/NumberOfOffers.php | lib/Models/ProductPricing/NumberOfOffers.php | <?php
/**
* NumberOfOffers.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NumberOfOffers Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class NumberOfOffers implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NumberOfOffers';
/**
* 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/ProductPricing/ItemIdentifier.php | lib/Models/ProductPricing/ItemIdentifier.php | <?php
/**
* ItemIdentifier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ItemIdentifier Class Doc Comment.
*
* @description Information that identifies an item.
*
* @author Stefan Neuhaus / ClouSale
*/
class ItemIdentifier implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ItemIdentifier';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => 'string',
'asin' => 'string',
'seller_sku' => 'string',
'item_condition' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ConditionType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'asin' => null,
'seller_sku' => null,
'item_condition' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_id' => 'MarketplaceId',
'asin' => 'ASIN',
'seller_sku' => 'SellerSKU',
'item_condition' => 'ItemCondition', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'asin' => 'setAsin',
'seller_sku' => 'setSellerSku',
'item_condition' => 'setItemCondition', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'asin' => 'getAsin',
'seller_sku' => 'getSellerSku',
'item_condition' => 'getItemCondition', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['item_condition'] = isset($data['item_condition']) ? $data['item_condition'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['marketplace_id']) {
$invalidProperties[] = "'marketplace_id' can't be null";
}
if (null === $this->container['item_condition']) {
$invalidProperties[] = "'item_condition' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id A marketplace identifier. Specifies the marketplace from which prices are returned.
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Gets seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku the seller stock keeping unit (SKU) of the item
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets item_condition.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ConditionType
*/
public function getItemCondition()
{
return $this->container['item_condition'];
}
/**
* Sets item_condition.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ConditionType $item_condition item_condition
*
* @return $this
*/
public function setItemCondition($item_condition)
{
$this->container['item_condition'] = $item_condition;
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/ProductPricing/CompetitivePriceList.php | lib/Models/ProductPricing/CompetitivePriceList.php | <?php
/**
* CompetitivePriceList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CompetitivePriceList Class Doc Comment.
*
* @description A list of competitive pricing information.
*
* @author Stefan Neuhaus / ClouSale
*/
class CompetitivePriceList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompetitivePriceList';
/**
* 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 CompetitivePriceType::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/ProductPricing/GetOffersResponse.php | lib/Models/ProductPricing/GetOffersResponse.php | <?php
/**
* GetOffersResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetOffersResponse Class Doc Comment.
*
* @description The response schema for the getListingOffers and getItemOffers operations.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetOffersResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetOffersResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResult',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\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\ProductPricing\GetOffersResult
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResult $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\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/ProductPricing/BuyBoxEligibleOffers.php | lib/Models/ProductPricing/BuyBoxEligibleOffers.php | <?php
/**
* BuyBoxEligibleOffers.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* BuyBoxEligibleOffers Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class BuyBoxEligibleOffers implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'BuyBoxEligibleOffers';
/**
* 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/ProductPricing/FulfillmentChannelType.php | lib/Models/ProductPricing/FulfillmentChannelType.php | <?php
/**
* FulfillmentChannelType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
/**
* FulfillmentChannelType Class Doc Comment.
*
* @description Indicates whether the item is fulfilled by Amazon or by the seller (merchant).
*
* @author Stefan Neuhaus / ClouSale
*/
class FulfillmentChannelType
{
/**
* Possible values of this enum.
*/
const AMAZON = 'Amazon';
const MERCHANT = 'Merchant';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::AMAZON,
self::MERCHANT, ];
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/OfferCountType.php | lib/Models/ProductPricing/OfferCountType.php | <?php
/**
* OfferCountType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OfferCountType Class Doc Comment.
*
* @description The total number of offers for the specified condition and fulfillment channel.
*
* @author Stefan Neuhaus / ClouSale
*/
class OfferCountType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OfferCountType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'condition' => 'string',
'fulfillment_channel' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\FulfillmentChannelType',
'offer_count' => 'int', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'condition' => null,
'fulfillment_channel' => null,
'offer_count' => 'int32', ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'condition' => 'condition',
'fulfillment_channel' => 'fulfillmentChannel',
'offer_count' => 'OfferCount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'condition' => 'setCondition',
'fulfillment_channel' => 'setFulfillmentChannel',
'offer_count' => 'setOfferCount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'condition' => 'getCondition',
'fulfillment_channel' => 'getFulfillmentChannel',
'offer_count' => 'getOfferCount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
$this->container['fulfillment_channel'] = isset($data['fulfillment_channel']) ? $data['fulfillment_channel'] : null;
$this->container['offer_count'] = isset($data['offer_count']) ? $data['offer_count'] : 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 condition.
*
* @return string
*/
public function getCondition()
{
return $this->container['condition'];
}
/**
* Sets condition.
*
* @param string $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club.
*
* @return $this
*/
public function setCondition($condition)
{
$this->container['condition'] = $condition;
return $this;
}
/**
* Gets fulfillment_channel.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\FulfillmentChannelType
*/
public function getFulfillmentChannel()
{
return $this->container['fulfillment_channel'];
}
/**
* Sets fulfillment_channel.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\FulfillmentChannelType $fulfillment_channel fulfillment_channel
*
* @return $this
*/
public function setFulfillmentChannel($fulfillment_channel)
{
$this->container['fulfillment_channel'] = $fulfillment_channel;
return $this;
}
/**
* Gets offer_count.
*
* @return int
*/
public function getOfferCount()
{
return $this->container['offer_count'];
}
/**
* Sets offer_count.
*
* @param int $offer_count the number of offers in a fulfillment channel that meet a specific condition
*
* @return $this
*/
public function setOfferCount($offer_count)
{
$this->container['offer_count'] = $offer_count;
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/ProductPricing/OfferDetailList.php | lib/Models/ProductPricing/OfferDetailList.php | <?php
/**
* OfferDetailList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OfferDetailList Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class OfferDetailList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OfferDetailList';
/**
* 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 OfferDetail::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/ProductPricing/OfferDetail.php | lib/Models/ProductPricing/OfferDetail.php | <?php
/**
* OfferDetail.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OfferDetail Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class OfferDetail implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OfferDetail';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'my_offer' => 'bool',
'sub_condition' => 'string',
'seller_feedback_rating' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SellerFeedbackType',
'shipping_time' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\DetailedShippingTimeType',
'listing_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'points' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points',
'shipping' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'ships_from' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ShipsFromType',
'is_fulfilled_by_amazon' => 'bool',
'is_buy_box_winner' => 'bool',
'is_featured_merchant' => 'bool', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'my_offer' => null,
'sub_condition' => null,
'seller_feedback_rating' => null,
'shipping_time' => null,
'listing_price' => null,
'points' => null,
'shipping' => null,
'ships_from' => null,
'is_fulfilled_by_amazon' => null,
'is_buy_box_winner' => null,
'is_featured_merchant' => 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 = [
'my_offer' => 'MyOffer',
'sub_condition' => 'SubCondition',
'seller_feedback_rating' => 'SellerFeedbackRating',
'shipping_time' => 'ShippingTime',
'listing_price' => 'ListingPrice',
'points' => 'Points',
'shipping' => 'Shipping',
'ships_from' => 'ShipsFrom',
'is_fulfilled_by_amazon' => 'IsFulfilledByAmazon',
'is_buy_box_winner' => 'IsBuyBoxWinner',
'is_featured_merchant' => 'IsFeaturedMerchant', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'my_offer' => 'setMyOffer',
'sub_condition' => 'setSubCondition',
'seller_feedback_rating' => 'setSellerFeedbackRating',
'shipping_time' => 'setShippingTime',
'listing_price' => 'setListingPrice',
'points' => 'setPoints',
'shipping' => 'setShipping',
'ships_from' => 'setShipsFrom',
'is_fulfilled_by_amazon' => 'setIsFulfilledByAmazon',
'is_buy_box_winner' => 'setIsBuyBoxWinner',
'is_featured_merchant' => 'setIsFeaturedMerchant', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'my_offer' => 'getMyOffer',
'sub_condition' => 'getSubCondition',
'seller_feedback_rating' => 'getSellerFeedbackRating',
'shipping_time' => 'getShippingTime',
'listing_price' => 'getListingPrice',
'points' => 'getPoints',
'shipping' => 'getShipping',
'ships_from' => 'getShipsFrom',
'is_fulfilled_by_amazon' => 'getIsFulfilledByAmazon',
'is_buy_box_winner' => 'getIsBuyBoxWinner',
'is_featured_merchant' => 'getIsFeaturedMerchant', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['my_offer'] = isset($data['my_offer']) ? $data['my_offer'] : null;
$this->container['sub_condition'] = isset($data['sub_condition']) ? $data['sub_condition'] : null;
$this->container['seller_feedback_rating'] = isset($data['seller_feedback_rating']) ? $data['seller_feedback_rating'] : null;
$this->container['shipping_time'] = isset($data['shipping_time']) ? $data['shipping_time'] : null;
$this->container['listing_price'] = isset($data['listing_price']) ? $data['listing_price'] : null;
$this->container['points'] = isset($data['points']) ? $data['points'] : null;
$this->container['shipping'] = isset($data['shipping']) ? $data['shipping'] : null;
$this->container['ships_from'] = isset($data['ships_from']) ? $data['ships_from'] : null;
$this->container['is_fulfilled_by_amazon'] = isset($data['is_fulfilled_by_amazon']) ? $data['is_fulfilled_by_amazon'] : null;
$this->container['is_buy_box_winner'] = isset($data['is_buy_box_winner']) ? $data['is_buy_box_winner'] : null;
$this->container['is_featured_merchant'] = isset($data['is_featured_merchant']) ? $data['is_featured_merchant'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['sub_condition']) {
$invalidProperties[] = "'sub_condition' can't be null";
}
if (null === $this->container['shipping_time']) {
$invalidProperties[] = "'shipping_time' can't be null";
}
if (null === $this->container['listing_price']) {
$invalidProperties[] = "'listing_price' can't be null";
}
if (null === $this->container['shipping']) {
$invalidProperties[] = "'shipping' can't be null";
}
if (null === $this->container['is_fulfilled_by_amazon']) {
$invalidProperties[] = "'is_fulfilled_by_amazon' 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 my_offer.
*
* @return bool
*/
public function getMyOffer()
{
return $this->container['my_offer'];
}
/**
* Sets my_offer.
*
* @param bool $my_offer when true, this is the seller's offer
*
* @return $this
*/
public function setMyOffer($my_offer)
{
$this->container['my_offer'] = $my_offer;
return $this;
}
/**
* Gets sub_condition.
*
* @return string
*/
public function getSubCondition()
{
return $this->container['sub_condition'];
}
/**
* Sets sub_condition.
*
* @param string $sub_condition The subcondition of the item. Subcondition values: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other.
*
* @return $this
*/
public function setSubCondition($sub_condition)
{
$this->container['sub_condition'] = $sub_condition;
return $this;
}
/**
* Gets seller_feedback_rating.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SellerFeedbackType
*/
public function getSellerFeedbackRating()
{
return $this->container['seller_feedback_rating'];
}
/**
* Sets seller_feedback_rating.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SellerFeedbackType $seller_feedback_rating seller_feedback_rating
*
* @return $this
*/
public function setSellerFeedbackRating($seller_feedback_rating)
{
$this->container['seller_feedback_rating'] = $seller_feedback_rating;
return $this;
}
/**
* Gets shipping_time.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\DetailedShippingTimeType
*/
public function getShippingTime()
{
return $this->container['shipping_time'];
}
/**
* Sets shipping_time.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\DetailedShippingTimeType $shipping_time shipping_time
*
* @return $this
*/
public function setShippingTime($shipping_time)
{
$this->container['shipping_time'] = $shipping_time;
return $this;
}
/**
* Gets listing_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getListingPrice()
{
return $this->container['listing_price'];
}
/**
* Sets listing_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $listing_price listing_price
*
* @return $this
*/
public function setListingPrice($listing_price)
{
$this->container['listing_price'] = $listing_price;
return $this;
}
/**
* Gets points.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points
*/
public function getPoints()
{
return $this->container['points'];
}
/**
* Sets points.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points $points points
*
* @return $this
*/
public function setPoints($points)
{
$this->container['points'] = $points;
return $this;
}
/**
* Gets shipping.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getShipping()
{
return $this->container['shipping'];
}
/**
* Sets shipping.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $shipping shipping
*
* @return $this
*/
public function setShipping($shipping)
{
$this->container['shipping'] = $shipping;
return $this;
}
/**
* Gets ships_from.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ShipsFromType
*/
public function getShipsFrom()
{
return $this->container['ships_from'];
}
/**
* Sets ships_from.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ShipsFromType $ships_from ships_from
*
* @return $this
*/
public function setShipsFrom($ships_from)
{
$this->container['ships_from'] = $ships_from;
return $this;
}
/**
* Gets is_fulfilled_by_amazon.
*
* @return bool
*/
public function getIsFulfilledByAmazon()
{
return $this->container['is_fulfilled_by_amazon'];
}
/**
* Sets is_fulfilled_by_amazon.
*
* @param bool $is_fulfilled_by_amazon when true, the offer is fulfilled by Amazon
*
* @return $this
*/
public function setIsFulfilledByAmazon($is_fulfilled_by_amazon)
{
$this->container['is_fulfilled_by_amazon'] = $is_fulfilled_by_amazon;
return $this;
}
/**
* Gets is_buy_box_winner.
*
* @return bool
*/
public function getIsBuyBoxWinner()
{
return $this->container['is_buy_box_winner'];
}
/**
* Sets is_buy_box_winner.
*
* @param bool $is_buy_box_winner When true, the offer is currently in the Buy Box. There can be up to two Buy Box winners at any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime.
*
* @return $this
*/
public function setIsBuyBoxWinner($is_buy_box_winner)
{
$this->container['is_buy_box_winner'] = $is_buy_box_winner;
return $this;
}
/**
* Gets is_featured_merchant.
*
* @return bool
*/
public function getIsFeaturedMerchant()
{
return $this->container['is_featured_merchant'];
}
/**
* Sets is_featured_merchant.
*
* @param bool $is_featured_merchant when true, the seller of the item is eligible to win the Buy Box
*
* @return $this
*/
public function setIsFeaturedMerchant($is_featured_merchant)
{
$this->container['is_featured_merchant'] = $is_featured_merchant;
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/ProductPricing/IdentifierType.php | lib/Models/ProductPricing/IdentifierType.php | <?php
/**
* IdentifierType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* IdentifierType Class Doc Comment.
*
* @description Specifies the identifiers used to uniquely identify an item.
*
* @author Stefan Neuhaus / ClouSale
*/
class IdentifierType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'IdentifierType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_asin' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ASINIdentifier',
'sku_identifier' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SellerSKUIdentifier', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_asin' => null,
'sku_identifier' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_asin' => 'MarketplaceASIN',
'sku_identifier' => 'SKUIdentifier', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_asin' => 'setMarketplaceAsin',
'sku_identifier' => 'setSkuIdentifier', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_asin' => 'getMarketplaceAsin',
'sku_identifier' => 'getSkuIdentifier', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_asin'] = isset($data['marketplace_asin']) ? $data['marketplace_asin'] : null;
$this->container['sku_identifier'] = isset($data['sku_identifier']) ? $data['sku_identifier'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['marketplace_asin']) {
$invalidProperties[] = "'marketplace_asin' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_asin.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ASINIdentifier
*/
public function getMarketplaceAsin()
{
return $this->container['marketplace_asin'];
}
/**
* Sets marketplace_asin.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ASINIdentifier $marketplace_asin marketplace_asin
*
* @return $this
*/
public function setMarketplaceAsin($marketplace_asin)
{
$this->container['marketplace_asin'] = $marketplace_asin;
return $this;
}
/**
* Gets sku_identifier.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SellerSKUIdentifier
*/
public function getSkuIdentifier()
{
return $this->container['sku_identifier'];
}
/**
* Sets sku_identifier.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\SellerSKUIdentifier $sku_identifier sku_identifier
*
* @return $this
*/
public function setSkuIdentifier($sku_identifier)
{
$this->container['sku_identifier'] = $sku_identifier;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/DetailedShippingTimeType.php | lib/Models/ProductPricing/DetailedShippingTimeType.php | <?php
/**
* DetailedShippingTimeType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* DetailedShippingTimeType Class Doc Comment.
*
* @description The time range in which an item will likely be shipped once an order has been placed.
*
* @author Stefan Neuhaus / ClouSale
*/
class DetailedShippingTimeType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'DetailedShippingTimeType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'minimum_hours' => 'int',
'maximum_hours' => 'int',
'available_date' => 'float',
'availability_type' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'minimum_hours' => 'int64',
'maximum_hours' => 'int64',
'available_date' => null,
'availability_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 = [
'minimum_hours' => 'minimumHours',
'maximum_hours' => 'maximumHours',
'available_date' => 'availableDate',
'availability_type' => 'availabilityType', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'minimum_hours' => 'setMinimumHours',
'maximum_hours' => 'setMaximumHours',
'available_date' => 'setAvailableDate',
'availability_type' => 'setAvailabilityType', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'minimum_hours' => 'getMinimumHours',
'maximum_hours' => 'getMaximumHours',
'available_date' => 'getAvailableDate',
'availability_type' => 'getAvailabilityType', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of 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 AVAILABILITY_TYPE_NOW = 'NOW';
const AVAILABILITY_TYPE_FUTURE_WITHOUT_DATE = 'FUTURE_WITHOUT_DATE';
const AVAILABILITY_TYPE_FUTURE_WITH_DATE = 'FUTURE_WITH_DATE';
/**
* Gets allowable values of the enum.
*
* @return string[]
*/
public function getAvailabilityTypeAllowableValues()
{
return [
self::AVAILABILITY_TYPE_NOW,
self::AVAILABILITY_TYPE_FUTURE_WITHOUT_DATE,
self::AVAILABILITY_TYPE_FUTURE_WITH_DATE, ];
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['minimum_hours'] = isset($data['minimum_hours']) ? $data['minimum_hours'] : null;
$this->container['maximum_hours'] = isset($data['maximum_hours']) ? $data['maximum_hours'] : null;
$this->container['available_date'] = isset($data['available_date']) ? $data['available_date'] : null;
$this->container['availability_type'] = isset($data['availability_type']) ? $data['availability_type'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
$allowedValues = $this->getAvailabilityTypeAllowableValues();
if (!is_null($this->container['availability_type']) && !in_array($this->container['availability_type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value for 'availability_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 minimum_hours.
*
* @return int
*/
public function getMinimumHours()
{
return $this->container['minimum_hours'];
}
/**
* Sets minimum_hours.
*
* @param int $minimum_hours the minimum time, in hours, that the item will likely be shipped after the order has been placed
*
* @return $this
*/
public function setMinimumHours($minimum_hours)
{
$this->container['minimum_hours'] = $minimum_hours;
return $this;
}
/**
* Gets maximum_hours.
*
* @return int
*/
public function getMaximumHours()
{
return $this->container['maximum_hours'];
}
/**
* Sets maximum_hours.
*
* @param int $maximum_hours the maximum time, in hours, that the item will likely be shipped after the order has been placed
*
* @return $this
*/
public function setMaximumHours($maximum_hours)
{
$this->container['maximum_hours'] = $maximum_hours;
return $this;
}
/**
* Gets available_date.
*
* @return float
*/
public function getAvailableDate()
{
return $this->container['available_date'];
}
/**
* Sets available_date.
*
* @param float $available_date The date when the item will be available for shipping. Only displayed for items that are not currently available for shipping.
*
* @return $this
*/
public function setAvailableDate($available_date)
{
$this->container['available_date'] = $available_date;
return $this;
}
/**
* Gets availability_type.
*
* @return string
*/
public function getAvailabilityType()
{
return $this->container['availability_type'];
}
/**
* Sets availability_type.
*
* @param string $availability_type Indicates whether the item is available for shipping now, or on a known or an unknown date in the future. If known, the availableDate property indicates the date that the item will be available for shipping. Possible values: NOW, FUTURE_WITHOUT_DATE, FUTURE_WITH_DATE.
*
* @return $this
*/
public function setAvailabilityType($availability_type)
{
$allowedValues = $this->getAvailabilityTypeAllowableValues();
if (!is_null($availability_type) && !in_array($availability_type, $allowedValues, true)) {
throw new \InvalidArgumentException(sprintf("Invalid value for 'availability_type', must be one of '%s'", implode("', '", $allowedValues)));
}
$this->container['availability_type'] = $availability_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/ProductPricing/Error.php | lib/Models/ProductPricing/Error.php | <?php
/**
* Error.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Error Class Doc Comment.
*
* @description Error response returned when the request is unsuccessful.
*
* @author Stefan Neuhaus / ClouSale
*/
class Error implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Error';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'details' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'details' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'details' => 'details', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'details' => 'setDetails', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'details' => 'getDetails', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['details'] = isset($data['details']) ? $data['details'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['code']) {
$invalidProperties[] = "'code' can't be null";
}
if (null === $this->container['message']) {
$invalidProperties[] = "'message' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets code.
*
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code.
*
* @param string $code an error code that identifies the type of error that occurred
*
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message.
*
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message.
*
* @param string $message a message that describes the error condition in a human-readable form
*
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets details.
*
* @return string
*/
public function getDetails()
{
return $this->container['details'];
}
/**
* Sets details.
*
* @param string $details additional information that can help the caller understand or fix the issue
*
* @return $this
*/
public function setDetails($details)
{
$this->container['details'] = $details;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/GetPricingResponse.php | lib/Models/ProductPricing/GetPricingResponse.php | <?php
/**
* GetPricingResponse.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetPricingResponse Class Doc Comment.
*
* @description The response schema for the getPricing and getCompetitivePricing operations.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetPricingResponse implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetPricingResponse';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\PriceList',
'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\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\ProductPricing\PriceList
*/
public function getPayload()
{
return $this->container['payload'];
}
/**
* Sets payload.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\PriceList $payload payload
*
* @return $this
*/
public function setPayload($payload)
{
$this->container['payload'] = $payload;
return $this;
}
/**
* Gets errors.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ErrorList
*/
public function getErrors()
{
return $this->container['errors'];
}
/**
* Sets errors.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\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/ProductPricing/OfferListingCountType.php | lib/Models/ProductPricing/OfferListingCountType.php | <?php
/**
* OfferListingCountType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OfferListingCountType Class Doc Comment.
*
* @description The number of offer listings with the specified condition.
*
* @author Stefan Neuhaus / ClouSale
*/
class OfferListingCountType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OfferListingCountType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'count' => 'int',
'condition' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'count' => 'int32',
'condition' => 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 = [
'count' => 'Count',
'condition' => 'condition', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'count' => 'setCount',
'condition' => 'setCondition', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'count' => 'getCount',
'condition' => 'getCondition', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['count'] = isset($data['count']) ? $data['count'] : null;
$this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['count']) {
$invalidProperties[] = "'count' can't be null";
}
if (null === $this->container['condition']) {
$invalidProperties[] = "'condition' 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 count.
*
* @return int
*/
public function getCount()
{
return $this->container['count'];
}
/**
* Sets count.
*
* @param int $count the number of offer listings
*
* @return $this
*/
public function setCount($count)
{
$this->container['count'] = $count;
return $this;
}
/**
* Gets condition.
*
* @return string
*/
public function getCondition()
{
return $this->container['condition'];
}
/**
* Sets condition.
*
* @param string $condition the condition of the item
*
* @return $this
*/
public function setCondition($condition)
{
$this->container['condition'] = $condition;
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/ProductPricing/Price.php | lib/Models/ProductPricing/Price.php | <?php
/**
* Price.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Price Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class Price implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Price';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'seller_sku' => 'string',
'asin' => 'string',
'product' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Product', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'seller_sku' => null,
'asin' => null,
'product' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'seller_sku' => 'SellerSKU',
'asin' => 'ASIN',
'product' => 'Product', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'seller_sku' => 'setSellerSku',
'asin' => 'setAsin',
'product' => 'setProduct', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'seller_sku' => 'getSellerSku',
'asin' => 'getAsin',
'product' => 'getProduct', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['product'] = isset($data['product']) ? $data['product'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['status']) {
$invalidProperties[] = "'status' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets status.
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status.
*
* @param string $status the status of the operation
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets seller_sku.
*
* @return string
*/
public function getSellerSku()
{
return $this->container['seller_sku'];
}
/**
* Sets seller_sku.
*
* @param string $seller_sku the seller stock keeping unit (SKU) of the item
*
* @return $this
*/
public function setSellerSku($seller_sku)
{
$this->container['seller_sku'] = $seller_sku;
return $this;
}
/**
* Gets 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 product.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Product
*/
public function getProduct()
{
return $this->container['product'];
}
/**
* Sets product.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Product $product product
*
* @return $this
*/
public function setProduct($product)
{
$this->container['product'] = $product;
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/ProductPricing/OffersList.php | lib/Models/ProductPricing/OffersList.php | <?php
/**
* OffersList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* OffersList Class Doc Comment.
*
* @description A list of offers.
*
* @author Stefan Neuhaus / ClouSale
*/
class OffersList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'OffersList';
/**
* 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 OfferType::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/ProductPricing/SellerFeedbackType.php | lib/Models/ProductPricing/SellerFeedbackType.php | <?php
/**
* SellerFeedbackType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SellerFeedbackType Class Doc Comment.
*
* @description Information about the seller's feedback, including the percentage of positive feedback, and the total number of ratings received.
*
* @author Stefan Neuhaus / ClouSale
*/
class SellerFeedbackType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SellerFeedbackType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'seller_positive_feedback_rating' => 'double',
'feedback_count' => 'int', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'seller_positive_feedback_rating' => 'double',
'feedback_count' => 'int64', ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return 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_positive_feedback_rating' => 'SellerPositiveFeedbackRating',
'feedback_count' => 'FeedbackCount', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'seller_positive_feedback_rating' => 'setSellerPositiveFeedbackRating',
'feedback_count' => 'setFeedbackCount', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'seller_positive_feedback_rating' => 'getSellerPositiveFeedbackRating',
'feedback_count' => 'getFeedbackCount', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @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_positive_feedback_rating'] = isset($data['seller_positive_feedback_rating']) ? $data['seller_positive_feedback_rating'] : null;
$this->container['feedback_count'] = isset($data['feedback_count']) ? $data['feedback_count'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['feedback_count']) {
$invalidProperties[] = "'feedback_count' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets seller_positive_feedback_rating.
*
* @return float
*/
public function getSellerPositiveFeedbackRating()
{
return $this->container['seller_positive_feedback_rating'];
}
/**
* Sets seller_positive_feedback_rating.
*
* @param float $seller_positive_feedback_rating the percentage of positive feedback for the seller in the past 365 days
*
* @return $this
*/
public function setSellerPositiveFeedbackRating($seller_positive_feedback_rating)
{
$this->container['seller_positive_feedback_rating'] = $seller_positive_feedback_rating;
return $this;
}
/**
* Gets feedback_count.
*
* @return int
*/
public function getFeedbackCount()
{
return $this->container['feedback_count'];
}
/**
* Sets feedback_count.
*
* @param int $feedback_count the number of ratings received about the seller
*
* @return $this
*/
public function setFeedbackCount($feedback_count)
{
$this->container['feedback_count'] = $feedback_count;
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/ProductPricing/CompetitivePriceType.php | lib/Models/ProductPricing/CompetitivePriceType.php | <?php
/**
* CompetitivePriceType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CompetitivePriceType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class CompetitivePriceType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompetitivePriceType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'competitive_price_id' => 'string',
'price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\PriceType',
'condition' => 'string',
'subcondition' => 'string',
'belongs_to_requester' => 'bool', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'competitive_price_id' => null,
'price' => null,
'condition' => null,
'subcondition' => null,
'belongs_to_requester' => 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 = [
'competitive_price_id' => 'CompetitivePriceId',
'price' => 'Price',
'condition' => 'condition',
'subcondition' => 'subcondition',
'belongs_to_requester' => 'belongsToRequester', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'competitive_price_id' => 'setCompetitivePriceId',
'price' => 'setPrice',
'condition' => 'setCondition',
'subcondition' => 'setSubcondition',
'belongs_to_requester' => 'setBelongsToRequester', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'competitive_price_id' => 'getCompetitivePriceId',
'price' => 'getPrice',
'condition' => 'getCondition',
'subcondition' => 'getSubcondition',
'belongs_to_requester' => 'getBelongsToRequester', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['competitive_price_id'] = isset($data['competitive_price_id']) ? $data['competitive_price_id'] : null;
$this->container['price'] = isset($data['price']) ? $data['price'] : null;
$this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
$this->container['subcondition'] = isset($data['subcondition']) ? $data['subcondition'] : null;
$this->container['belongs_to_requester'] = isset($data['belongs_to_requester']) ? $data['belongs_to_requester'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['competitive_price_id']) {
$invalidProperties[] = "'competitive_price_id' can't be null";
}
if (null === $this->container['price']) {
$invalidProperties[] = "'price' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets competitive_price_id.
*
* @return string
*/
public function getCompetitivePriceId()
{
return $this->container['competitive_price_id'];
}
/**
* Sets competitive_price_id.
*
* @param string $competitive_price_id The pricing model for each price that is returned. Possible values: * 1 - New Buy Box Price. * 2 - Used Buy Box Price.
*
* @return $this
*/
public function setCompetitivePriceId($competitive_price_id)
{
$this->container['competitive_price_id'] = $competitive_price_id;
return $this;
}
/**
* Gets price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\PriceType
*/
public function getPrice()
{
return $this->container['price'];
}
/**
* Sets price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\PriceType $price price
*
* @return $this
*/
public function setPrice($price)
{
$this->container['price'] = $price;
return $this;
}
/**
* Gets condition.
*
* @return string
*/
public function getCondition()
{
return $this->container['condition'];
}
/**
* Sets condition.
*
* @param string $condition Indicates the condition of the item whose pricing information is returned. Possible values are: New, Used, Collectible, Refurbished, or Club.
*
* @return $this
*/
public function setCondition($condition)
{
$this->container['condition'] = $condition;
return $this;
}
/**
* Gets subcondition.
*
* @return string
*/
public function getSubcondition()
{
return $this->container['subcondition'];
}
/**
* Sets subcondition.
*
* @param string $subcondition Indicates the subcondition of the item whose pricing information is returned. Possible values are: New, Mint, Very Good, Good, Acceptable, Poor, Club, OEM, Warranty, Refurbished Warranty, Refurbished, Open Box, or Other.
*
* @return $this
*/
public function setSubcondition($subcondition)
{
$this->container['subcondition'] = $subcondition;
return $this;
}
/**
* Gets belongs_to_requester.
*
* @return bool
*/
public function getBelongsToRequester()
{
return $this->container['belongs_to_requester'];
}
/**
* Sets belongs_to_requester.
*
* @param bool $belongs_to_requester Indicates whether or not the pricing information is for an offer listing that belongs to the requester. The requester is the seller associated with the SellerId that was submitted with the request. Possible values are: true and false.
*
* @return $this
*/
public function setBelongsToRequester($belongs_to_requester)
{
$this->container['belongs_to_requester'] = $belongs_to_requester;
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/ProductPricing/ASINIdentifier.php | lib/Models/ProductPricing/ASINIdentifier.php | <?php
/**
* ASINIdentifier.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* ASINIdentifier Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class ASINIdentifier implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ASINIdentifier';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => 'string',
'asin' => 'string', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'asin' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_id' => 'MarketplaceId',
'asin' => 'ASIN', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'asin' => 'setAsin', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'asin' => 'getAsin', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['marketplace_id']) {
$invalidProperties[] = "'marketplace_id' can't be null";
}
if (null === $this->container['asin']) {
$invalidProperties[] = "'asin' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id a marketplace identifier
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets asin.
*
* @return string
*/
public function getAsin()
{
return $this->container['asin'];
}
/**
* Sets asin.
*
* @param string $asin the Amazon Standard Identification Number (ASIN) of the item
*
* @return $this
*/
public function setAsin($asin)
{
$this->container['asin'] = $asin;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
clousale/amazon-sp-api-php | https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/ProductPricing/Summary.php | lib/Models/ProductPricing/Summary.php | <?php
/**
* Summary.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* Summary Class Doc Comment.
*
* @description Contains price information about the product, including the LowestPrices and BuyBoxPrices, the ListPrice, the SuggestedLowerPricePlusShipping, and NumberOfOffers and NumberOfBuyBoxEligibleOffers.
*
* @author Stefan Neuhaus / ClouSale
*/
class Summary implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'Summary';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'total_offer_count' => 'int',
'number_of_offers' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\NumberOfOffers',
'lowest_prices' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\LowestPrices',
'buy_box_prices' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\BuyBoxPrices',
'list_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'suggested_lower_price_plus_shipping' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'buy_box_eligible_offers' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\BuyBoxEligibleOffers',
'offers_available_time' => '\DateTime', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'total_offer_count' => 'int32',
'number_of_offers' => null,
'lowest_prices' => null,
'buy_box_prices' => null,
'list_price' => null,
'suggested_lower_price_plus_shipping' => null,
'buy_box_eligible_offers' => null,
'offers_available_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 = [
'total_offer_count' => 'TotalOfferCount',
'number_of_offers' => 'NumberOfOffers',
'lowest_prices' => 'LowestPrices',
'buy_box_prices' => 'BuyBoxPrices',
'list_price' => 'ListPrice',
'suggested_lower_price_plus_shipping' => 'SuggestedLowerPricePlusShipping',
'buy_box_eligible_offers' => 'BuyBoxEligibleOffers',
'offers_available_time' => 'OffersAvailableTime', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'total_offer_count' => 'setTotalOfferCount',
'number_of_offers' => 'setNumberOfOffers',
'lowest_prices' => 'setLowestPrices',
'buy_box_prices' => 'setBuyBoxPrices',
'list_price' => 'setListPrice',
'suggested_lower_price_plus_shipping' => 'setSuggestedLowerPricePlusShipping',
'buy_box_eligible_offers' => 'setBuyBoxEligibleOffers',
'offers_available_time' => 'setOffersAvailableTime', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'total_offer_count' => 'getTotalOfferCount',
'number_of_offers' => 'getNumberOfOffers',
'lowest_prices' => 'getLowestPrices',
'buy_box_prices' => 'getBuyBoxPrices',
'list_price' => 'getListPrice',
'suggested_lower_price_plus_shipping' => 'getSuggestedLowerPricePlusShipping',
'buy_box_eligible_offers' => 'getBuyBoxEligibleOffers',
'offers_available_time' => 'getOffersAvailableTime', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @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_offer_count'] = isset($data['total_offer_count']) ? $data['total_offer_count'] : null;
$this->container['number_of_offers'] = isset($data['number_of_offers']) ? $data['number_of_offers'] : null;
$this->container['lowest_prices'] = isset($data['lowest_prices']) ? $data['lowest_prices'] : null;
$this->container['buy_box_prices'] = isset($data['buy_box_prices']) ? $data['buy_box_prices'] : null;
$this->container['list_price'] = isset($data['list_price']) ? $data['list_price'] : null;
$this->container['suggested_lower_price_plus_shipping'] = isset($data['suggested_lower_price_plus_shipping']) ? $data['suggested_lower_price_plus_shipping'] : null;
$this->container['buy_box_eligible_offers'] = isset($data['buy_box_eligible_offers']) ? $data['buy_box_eligible_offers'] : null;
$this->container['offers_available_time'] = isset($data['offers_available_time']) ? $data['offers_available_time'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['total_offer_count']) {
$invalidProperties[] = "'total_offer_count' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets total_offer_count.
*
* @return int
*/
public function getTotalOfferCount()
{
return $this->container['total_offer_count'];
}
/**
* Sets total_offer_count.
*
* @param int $total_offer_count the number of unique offers contained in NumberOfOffers
*
* @return $this
*/
public function setTotalOfferCount($total_offer_count)
{
$this->container['total_offer_count'] = $total_offer_count;
return $this;
}
/**
* Gets number_of_offers.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\NumberOfOffers
*/
public function getNumberOfOffers()
{
return $this->container['number_of_offers'];
}
/**
* Sets number_of_offers.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\NumberOfOffers $number_of_offers number_of_offers
*
* @return $this
*/
public function setNumberOfOffers($number_of_offers)
{
$this->container['number_of_offers'] = $number_of_offers;
return $this;
}
/**
* Gets lowest_prices.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\LowestPrices
*/
public function getLowestPrices()
{
return $this->container['lowest_prices'];
}
/**
* Sets lowest_prices.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\LowestPrices $lowest_prices lowest_prices
*
* @return $this
*/
public function setLowestPrices($lowest_prices)
{
$this->container['lowest_prices'] = $lowest_prices;
return $this;
}
/**
* Gets buy_box_prices.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\BuyBoxPrices
*/
public function getBuyBoxPrices()
{
return $this->container['buy_box_prices'];
}
/**
* Sets buy_box_prices.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\BuyBoxPrices $buy_box_prices buy_box_prices
*
* @return $this
*/
public function setBuyBoxPrices($buy_box_prices)
{
$this->container['buy_box_prices'] = $buy_box_prices;
return $this;
}
/**
* Gets list_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getListPrice()
{
return $this->container['list_price'];
}
/**
* Sets list_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $list_price list_price
*
* @return $this
*/
public function setListPrice($list_price)
{
$this->container['list_price'] = $list_price;
return $this;
}
/**
* Gets suggested_lower_price_plus_shipping.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getSuggestedLowerPricePlusShipping()
{
return $this->container['suggested_lower_price_plus_shipping'];
}
/**
* Sets suggested_lower_price_plus_shipping.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $suggested_lower_price_plus_shipping suggested_lower_price_plus_shipping
*
* @return $this
*/
public function setSuggestedLowerPricePlusShipping($suggested_lower_price_plus_shipping)
{
$this->container['suggested_lower_price_plus_shipping'] = $suggested_lower_price_plus_shipping;
return $this;
}
/**
* Gets buy_box_eligible_offers.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\BuyBoxEligibleOffers
*/
public function getBuyBoxEligibleOffers()
{
return $this->container['buy_box_eligible_offers'];
}
/**
* Sets buy_box_eligible_offers.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\BuyBoxEligibleOffers $buy_box_eligible_offers buy_box_eligible_offers
*
* @return $this
*/
public function setBuyBoxEligibleOffers($buy_box_eligible_offers)
{
$this->container['buy_box_eligible_offers'] = $buy_box_eligible_offers;
return $this;
}
/**
* Gets offers_available_time.
*
* @return \DateTime
*/
public function getOffersAvailableTime()
{
return $this->container['offers_available_time'];
}
/**
* Sets offers_available_time.
*
* @param \DateTime $offers_available_time when the status is ActiveButTooSoonForProcessing, this is the time when the offers will be available for processing
*
* @return $this
*/
public function setOffersAvailableTime($offers_available_time)
{
$this->container['offers_available_time'] = $offers_available_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/ProductPricing/SalesRankList.php | lib/Models/ProductPricing/SalesRankList.php | <?php
/**
* SalesRankList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* SalesRankList Class Doc Comment.
*
* @description A list of sales rank information for the item, by category.
*
* @author Stefan Neuhaus / ClouSale
*/
class SalesRankList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'SalesRankList';
/**
* 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 SalesRankType::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/ProductPricing/GetOffersResult.php | lib/Models/ProductPricing/GetOffersResult.php | <?php
/**
* GetOffersResult.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* GetOffersResult Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class GetOffersResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetOffersResult';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'marketplace_id' => 'string',
'asin' => 'string',
'sku' => 'string',
'item_condition' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ConditionType',
'status' => 'string',
'identifier' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ItemIdentifier',
'summary' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Summary',
'offers' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\OfferDetailList', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'marketplace_id' => null,
'asin' => null,
'sku' => null,
'item_condition' => null,
'status' => null,
'identifier' => null,
'summary' => null,
'offers' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'marketplace_id' => 'MarketplaceID',
'asin' => 'ASIN',
'sku' => 'SKU',
'item_condition' => 'ItemCondition',
'status' => 'status',
'identifier' => 'Identifier',
'summary' => 'Summary',
'offers' => 'Offers', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'marketplace_id' => 'setMarketplaceId',
'asin' => 'setAsin',
'sku' => 'setSku',
'item_condition' => 'setItemCondition',
'status' => 'setStatus',
'identifier' => 'setIdentifier',
'summary' => 'setSummary',
'offers' => 'setOffers', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'marketplace_id' => 'getMarketplaceId',
'asin' => 'getAsin',
'sku' => 'getSku',
'item_condition' => 'getItemCondition',
'status' => 'getStatus',
'identifier' => 'getIdentifier',
'summary' => 'getSummary',
'offers' => 'getOffers', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null;
$this->container['asin'] = isset($data['asin']) ? $data['asin'] : null;
$this->container['sku'] = isset($data['sku']) ? $data['sku'] : null;
$this->container['item_condition'] = isset($data['item_condition']) ? $data['item_condition'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['identifier'] = isset($data['identifier']) ? $data['identifier'] : null;
$this->container['summary'] = isset($data['summary']) ? $data['summary'] : null;
$this->container['offers'] = isset($data['offers']) ? $data['offers'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['marketplace_id']) {
$invalidProperties[] = "'marketplace_id' can't be null";
}
if (null === $this->container['item_condition']) {
$invalidProperties[] = "'item_condition' can't be null";
}
if (null === $this->container['status']) {
$invalidProperties[] = "'status' can't be null";
}
if (null === $this->container['identifier']) {
$invalidProperties[] = "'identifier' can't be null";
}
if (null === $this->container['summary']) {
$invalidProperties[] = "'summary' can't be null";
}
if (null === $this->container['offers']) {
$invalidProperties[] = "'offers' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets marketplace_id.
*
* @return string
*/
public function getMarketplaceId()
{
return $this->container['marketplace_id'];
}
/**
* Sets marketplace_id.
*
* @param string $marketplace_id a marketplace identifier
*
* @return $this
*/
public function setMarketplaceId($marketplace_id)
{
$this->container['marketplace_id'] = $marketplace_id;
return $this;
}
/**
* Gets 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 sku.
*
* @return string
*/
public function getSku()
{
return $this->container['sku'];
}
/**
* Sets sku.
*
* @param string $sku the stock keeping unit (SKU) of the item
*
* @return $this
*/
public function setSku($sku)
{
$this->container['sku'] = $sku;
return $this;
}
/**
* Gets item_condition.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ConditionType
*/
public function getItemCondition()
{
return $this->container['item_condition'];
}
/**
* Sets item_condition.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ConditionType $item_condition item_condition
*
* @return $this
*/
public function setItemCondition($item_condition)
{
$this->container['item_condition'] = $item_condition;
return $this;
}
/**
* Gets status.
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status.
*
* @param string $status the status of the operation
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets identifier.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ItemIdentifier
*/
public function getIdentifier()
{
return $this->container['identifier'];
}
/**
* Sets identifier.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\ItemIdentifier $identifier identifier
*
* @return $this
*/
public function setIdentifier($identifier)
{
$this->container['identifier'] = $identifier;
return $this;
}
/**
* Gets summary.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Summary
*/
public function getSummary()
{
return $this->container['summary'];
}
/**
* Sets summary.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Summary $summary summary
*
* @return $this
*/
public function setSummary($summary)
{
$this->container['summary'] = $summary;
return $this;
}
/**
* Gets offers.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\OfferDetailList
*/
public function getOffers()
{
return $this->container['offers'];
}
/**
* Sets offers.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\OfferDetailList $offers offers
*
* @return $this
*/
public function setOffers($offers)
{
$this->container['offers'] = $offers;
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/ProductPricing/CompetitivePricingType.php | lib/Models/ProductPricing/CompetitivePricingType.php | <?php
/**
* CompetitivePricingType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* CompetitivePricingType Class Doc Comment.
*
* @description Competitive pricing information for the item.
*
* @author Stefan Neuhaus / ClouSale
*/
class CompetitivePricingType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompetitivePricingType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'competitive_prices' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\CompetitivePriceList',
'number_of_offer_listings' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\NumberOfOfferListingsList',
'trade_in_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'competitive_prices' => null,
'number_of_offer_listings' => null,
'trade_in_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 = [
'competitive_prices' => 'CompetitivePrices',
'number_of_offer_listings' => 'NumberOfOfferListings',
'trade_in_value' => 'TradeInValue', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'competitive_prices' => 'setCompetitivePrices',
'number_of_offer_listings' => 'setNumberOfOfferListings',
'trade_in_value' => 'setTradeInValue', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'competitive_prices' => 'getCompetitivePrices',
'number_of_offer_listings' => 'getNumberOfOfferListings',
'trade_in_value' => 'getTradeInValue', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['competitive_prices'] = isset($data['competitive_prices']) ? $data['competitive_prices'] : null;
$this->container['number_of_offer_listings'] = isset($data['number_of_offer_listings']) ? $data['number_of_offer_listings'] : null;
$this->container['trade_in_value'] = isset($data['trade_in_value']) ? $data['trade_in_value'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['competitive_prices']) {
$invalidProperties[] = "'competitive_prices' can't be null";
}
if (null === $this->container['number_of_offer_listings']) {
$invalidProperties[] = "'number_of_offer_listings' can't be null";
}
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed.
*
* @return bool True if all properties are valid
*/
public function valid()
{
return 0 === count($this->listInvalidProperties());
}
/**
* Gets competitive_prices.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\CompetitivePriceList
*/
public function getCompetitivePrices()
{
return $this->container['competitive_prices'];
}
/**
* Sets competitive_prices.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\CompetitivePriceList $competitive_prices competitive_prices
*
* @return $this
*/
public function setCompetitivePrices($competitive_prices)
{
$this->container['competitive_prices'] = $competitive_prices;
return $this;
}
/**
* Gets number_of_offer_listings.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\NumberOfOfferListingsList
*/
public function getNumberOfOfferListings()
{
return $this->container['number_of_offer_listings'];
}
/**
* Sets number_of_offer_listings.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\NumberOfOfferListingsList $number_of_offer_listings number_of_offer_listings
*
* @return $this
*/
public function setNumberOfOfferListings($number_of_offer_listings)
{
$this->container['number_of_offer_listings'] = $number_of_offer_listings;
return $this;
}
/**
* Gets trade_in_value.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getTradeInValue()
{
return $this->container['trade_in_value'];
}
/**
* Sets trade_in_value.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $trade_in_value trade_in_value
*
* @return $this
*/
public function setTradeInValue($trade_in_value)
{
$this->container['trade_in_value'] = $trade_in_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/ProductPricing/NumberOfOfferListingsList.php | lib/Models/ProductPricing/NumberOfOfferListingsList.php | <?php
/**
* NumberOfOfferListingsList.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\IterableType;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* NumberOfOfferListingsList Class Doc Comment.
*
* @description The number of active offer listings for the item that was submitted. The listing count is returned by condition, one for each listing condition value that is returned.
*
* @author Stefan Neuhaus / ClouSale
*/
class NumberOfOfferListingsList implements ModelInterface, ArrayAccess, IterableType
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'NumberOfOfferListingsList';
/**
* 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 NumberOfOffers::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/ProductPricing/LowestPriceType.php | lib/Models/ProductPricing/LowestPriceType.php | <?php
/**
* LowestPriceType.
*
* PHP version 5
*
* @author Stefan Neuhaus / ClouSale
*/
/**
* Selling Partner API for Pricing.
*
* The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
*
* OpenAPI spec version: v0
*/
namespace ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing;
use ArrayAccess;
use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface;
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
/**
* LowestPriceType Class Doc Comment.
*
* @author Stefan Neuhaus / ClouSale
*/
class LowestPriceType implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'LowestPriceType';
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerTypes = [
'condition' => 'string',
'fulfillment_channel' => 'string',
'landed_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'listing_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'shipping' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType',
'points' => '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points', ];
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @var string[]
*/
protected static $swaggerFormats = [
'condition' => null,
'fulfillment_channel' => null,
'landed_price' => null,
'listing_price' => null,
'shipping' => null,
'points' => null, ];
/**
* Array of property to type mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization.
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @var string[]
*/
protected static $attributeMap = [
'condition' => 'condition',
'fulfillment_channel' => 'fulfillmentChannel',
'landed_price' => 'LandedPrice',
'listing_price' => 'ListingPrice',
'shipping' => 'Shipping',
'points' => 'Points', ];
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @var string[]
*/
protected static $setters = [
'condition' => 'setCondition',
'fulfillment_channel' => 'setFulfillmentChannel',
'landed_price' => 'setLandedPrice',
'listing_price' => 'setListingPrice',
'shipping' => 'setShipping',
'points' => 'setPoints', ];
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @var string[]
*/
protected static $getters = [
'condition' => 'getCondition',
'fulfillment_channel' => 'getFulfillmentChannel',
'landed_price' => 'getLandedPrice',
'listing_price' => 'getListingPrice',
'shipping' => 'getShipping',
'points' => 'getPoints', ];
/**
* Array of attributes where the key is the local name,
* and the value is the original name.
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses).
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests).
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values.
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor.
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['condition'] = isset($data['condition']) ? $data['condition'] : null;
$this->container['fulfillment_channel'] = isset($data['fulfillment_channel']) ? $data['fulfillment_channel'] : null;
$this->container['landed_price'] = isset($data['landed_price']) ? $data['landed_price'] : null;
$this->container['listing_price'] = isset($data['listing_price']) ? $data['listing_price'] : null;
$this->container['shipping'] = isset($data['shipping']) ? $data['shipping'] : null;
$this->container['points'] = isset($data['points']) ? $data['points'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
if (null === $this->container['condition']) {
$invalidProperties[] = "'condition' can't be null";
}
if (null === $this->container['fulfillment_channel']) {
$invalidProperties[] = "'fulfillment_channel' can't be null";
}
if (null === $this->container['landed_price']) {
$invalidProperties[] = "'landed_price' can't be null";
}
if (null === $this->container['listing_price']) {
$invalidProperties[] = "'listing_price' can't be null";
}
if (null === $this->container['shipping']) {
$invalidProperties[] = "'shipping' 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 condition.
*
* @return string
*/
public function getCondition()
{
return $this->container['condition'];
}
/**
* Sets condition.
*
* @param string $condition Indicates the condition of the item. For example: New, Used, Collectible, Refurbished, or Club.
*
* @return $this
*/
public function setCondition($condition)
{
$this->container['condition'] = $condition;
return $this;
}
/**
* Gets fulfillment_channel.
*
* @return string
*/
public function getFulfillmentChannel()
{
return $this->container['fulfillment_channel'];
}
/**
* Sets fulfillment_channel.
*
* @param string $fulfillment_channel indicates whether the item is fulfilled by Amazon or by the seller
*
* @return $this
*/
public function setFulfillmentChannel($fulfillment_channel)
{
$this->container['fulfillment_channel'] = $fulfillment_channel;
return $this;
}
/**
* Gets landed_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getLandedPrice()
{
return $this->container['landed_price'];
}
/**
* Sets landed_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $landed_price landed_price
*
* @return $this
*/
public function setLandedPrice($landed_price)
{
$this->container['landed_price'] = $landed_price;
return $this;
}
/**
* Gets listing_price.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getListingPrice()
{
return $this->container['listing_price'];
}
/**
* Sets listing_price.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $listing_price listing_price
*
* @return $this
*/
public function setListingPrice($listing_price)
{
$this->container['listing_price'] = $listing_price;
return $this;
}
/**
* Gets shipping.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType
*/
public function getShipping()
{
return $this->container['shipping'];
}
/**
* Sets shipping.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\MoneyType $shipping shipping
*
* @return $this
*/
public function setShipping($shipping)
{
$this->container['shipping'] = $shipping;
return $this;
}
/**
* Gets points.
*
* @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points
*/
public function getPoints()
{
return $this->container['points'];
}
/**
* Sets points.
*
* @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\Points $points points
*
* @return $this
*/
public function setPoints($points)
{
$this->container['points'] = $points;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param int $offset Offset
*
* @return bool
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param int $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param int $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param int $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object.
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}
| php | MIT | 3d04a42cf19c01693b52b3902bdb8090687f317c | 2026-01-05T04:43:57.707350Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php declare(strict_types=1);
$header = <<<'EOF'
This file is part of FOAL.
(c) Sebastian Bergmann <sebastian@phpunit.de>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->files()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests/unit')
;
$config = new PhpCsFixer\Config;
$config->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'align_multiline_comment' => true,
'array_indentation' => true,
'array_push' => true,
'array_syntax' => ['syntax' => 'short'],
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => [
'operators' => [
'*=' => 'align_single_space_minimal',
'+=' => 'align_single_space_minimal',
'-=' => 'align_single_space_minimal',
'/=' => 'align_single_space_minimal',
'=' => 'align_single_space_minimal',
'=>' => 'align_single_space_minimal',
],
],
'blank_line_after_namespace' => true,
'blank_line_before_statement' => [
'statements' => [
'break',
'case',
'continue',
'declare',
'default',
'do',
'exit',
'for',
'foreach',
'goto',
'if',
'include',
'include_once',
'phpdoc',
'require',
'require_once',
'return',
'switch',
'throw',
'try',
'while',
'yield',
'yield_from',
],
],
'blank_lines_before_namespace' => [
'max_line_breaks' => 1,
'min_line_breaks' => 0,
],
'braces_position' => [
'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
'anonymous_functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
],
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => [
'const' => 'none',
'method' => 'one',
'property' => 'only_if_meta'
]
],
'class_definition' => true,
'clean_namespace' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'combine_nested_dirname' => true,
'compact_nullable_type_declaration' => true,
'concat_space' => ['spacing' => 'one'],
'constant_case' => true,
'control_structure_braces' => true,
'control_structure_continuation_position' => true,
'declare_equal_normalize' => ['space' => 'none'],
'declare_parentheses' => true,
'declare_strict_types' => true,
'dir_constant' => true,
'echo_tag_syntax' => true,
'elseif' => true,
'encoding' => true,
'ereg_to_preg' => true,
'explicit_indirect_variable' => true,
'explicit_string_variable' => true,
'fopen_flag_order' => true,
'full_opening_tag' => true,
'fully_qualified_strict_types' => ['import_symbols' => true],
'function_declaration' => true,
'function_to_constant' => true,
'get_class_to_class_keyword' => true,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'header_comment' => ['header' => $header, 'separate' => 'none'],
'heredoc_to_nowdoc' => true,
'implode_call' => true,
'include' => true,
'increment_style' => [
'style' => 'post',
],
'indentation_type' => true,
'integer_literal_case' => true,
'is_null' => true,
'lambda_not_used_import' => true,
'line_ending' => true,
'list_syntax' => ['syntax' => 'short'],
'logical_operators' => true,
'lowercase_cast' => true,
'lowercase_keywords' => true,
'lowercase_static_reference' => true,
'magic_constant_casing' => true,
'magic_method_casing' => true,
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
],
'method_chaining_indentation' => true,
'modernize_strpos' => true,
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
'multiline_whitespace_before_semicolons' => true,
'native_constant_invocation' => false,
'native_function_casing' => false,
'native_function_invocation' => [
'include' => [
'@internal',
],
],
'native_type_declaration_casing' => true,
'new_with_parentheses' => [
'anonymous_class' => false,
'named_class' => false,
],
'no_alias_functions' => true,
'no_alias_language_construct_call' => true,
'no_alternative_syntax' => true,
'no_binary_string' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_break_comment' => true,
'no_closing_tag' => true,
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_extra_blank_lines' => true,
'no_homoglyph_names' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_mixed_echo_print' => ['use' => 'print'],
'no_multiline_whitespace_around_double_arrow' => true,
'no_multiple_statements_per_line' => true,
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
'no_short_bool_cast' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_space_around_double_colon' => true,
'no_spaces_after_function_name' => true,
'no_spaces_around_offset' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
],
'no_trailing_comma_in_singleline' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_whitespace_in_string' => true,
'no_unneeded_braces' => true,
'no_unneeded_control_parentheses' => true,
'no_unneeded_final_method' => true,
'no_unneeded_import_alias' => true,
'no_unreachable_default_argument_value' => true,
'no_unset_cast' => true,
'no_unset_on_property' => true,
'no_unused_imports' => true,
'no_useless_concat_operator' => true,
'no_useless_else' => true,
'no_useless_nullsafe_operator' => true,
'no_useless_return' => true,
'no_useless_sprintf' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'non_printable_character' => true,
'normalize_index_brace' => true,
'nullable_type_declaration_for_default_null_value' => true,
'object_operator_without_whitespace' => true,
'octal_notation' => true,
'operator_linebreak' => [
'only_booleans' => true,
'position' => 'end',
],
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public_static',
'property_protected_static',
'property_private_static',
'property_public',
'property_protected',
'property_private',
'method_public_static',
'construct',
'destruct',
'magic',
'phpunit',
'method_public',
'method_protected',
'method_private',
'method_protected_static',
'method_private_static',
],
],
'ordered_imports' => [
'imports_order' => [
'const',
'function',
'class',
]
],
'ordered_interfaces' => [
'direction' => 'ascend',
'order' => 'alpha',
],
'ordered_traits' => true,
'ordered_types' => true,
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_test_case_static_method_calls' => [
'call_type' => 'this',
],
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_align' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => true,
'phpdoc_no_access' => true,
'phpdoc_no_alias_tag' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_order_by_value' => [
'annotations' => [
'covers',
'dataProvider',
'throws',
'uses',
],
],
'phpdoc_param_order' => true,
'phpdoc_return_self_reference' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_tag_casing' => true,
'phpdoc_tag_type' => true,
'phpdoc_to_comment' => false,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types' => ['groups' => ['simple', 'meta']],
'phpdoc_types_order' => true,
'phpdoc_var_annotation_correct_order' => true,
'phpdoc_var_without_name' => true,
'pow_to_exponentiation' => true,
'protected_to_private' => true,
'return_assignment' => true,
'return_type_declaration' => ['space_before' => 'none'],
'self_accessor' => true,
'self_static_accessor' => true,
'semicolon_after_instruction' => true,
'set_type_to_cast' => true,
'short_scalar_cast' => true,
'simple_to_complex_string_variable' => true,
'simplified_null_return' => false,
'single_blank_line_at_eof' => true,
'single_class_element_per_statement' => true,
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'single_line_comment_spacing' => true,
'single_quote' => true,
'single_space_around_construct' => true,
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => true,
'spaces_inside_parentheses' => [
'space' => 'none',
],
'standardize_increment' => true,
'standardize_not_equals' => true,
'statement_indentation' => true,
'static_lambda' => true,
'strict_param' => true,
'string_length_to_empty'=> true,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
'switch_continue_to_break' => true,
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline' => [
'elements' => [
'arguments',
'arrays',
'match',
]
],
'trim_array_spaces' => true,
'type_declaration_spaces' => [
'elements' => [
'function',
],
],
'types_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
'elements' => [
'const',
'method',
'property',
],
],
'void_return' => true,
'whitespace_after_comma_in_array' => true,
]);
$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache/' . sha1(@trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'))));
return $config;
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/TextRenderer.php | src/TextRenderer.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function array_flip;
use function array_key_exists;
use function rtrim;
use function sprintf;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final readonly class TextRenderer implements Renderer
{
public function render(File $file): string
{
$buffer = $file->path() . PHP_EOL;
$sourceLines = $file->sourceLines();
$eliminatedLines = array_flip($file->linesEliminatedByOptimizer());
$line = 0;
foreach ($sourceLines as $sourceLine) {
$line++;
$buffer .= sprintf(
'%s %-6d %s' . PHP_EOL,
array_key_exists($line, $eliminatedLines) ? '-' : ' ',
$line,
rtrim($sourceLine),
);
}
return $buffer;
}
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/Analyser.php | src/Analyser.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function array_diff;
use function array_values;
use function assert;
use function file;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final readonly class Analyser
{
private Disassembler $disassembler;
public function __construct(Disassembler $disassembler)
{
$this->disassembler = $disassembler;
}
/**
* @param non-empty-list<non-empty-string> $files
*/
public function analyse(array $files): FileCollection
{
$result = [];
foreach ($files as $file) {
$sourceLines = file($file);
assert($sourceLines !== false);
$result[] = new File(
$file,
$sourceLines,
$this->linesEliminatedByOptimizer($file),
);
}
return FileCollection::from(...$result);
}
/**
* @param non-empty-string $file
*
* @return list<int>
*/
private function linesEliminatedByOptimizer(string $file): array
{
return array_values(
array_diff(
$this->disassembler->linesWithOpcodesBeforeOptimization($file),
$this->disassembler->linesWithOpcodesAfterOptimization($file),
),
);
}
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/Renderer.php | src/Renderer.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
/**
* @internal This interface is not covered by the backward compatibility promise for FOAL
*/
interface Renderer
{
public function render(File $file): string;
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/file/FileCollection.php | src/file/FileCollection.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function array_values;
use function count;
use Countable;
use IteratorAggregate;
/**
* @template-implements IteratorAggregate<int, File>
*
* @immutable
*
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final readonly class FileCollection implements Countable, IteratorAggregate
{
/**
* @var list<File>
*/
private array $files;
public static function from(File ...$files): self
{
return new self(array_values($files));
}
/**
* @param list<File> $files
*/
private function __construct(array $files)
{
$this->files = $files;
}
/**
* @return list<File>
*/
public function asArray(): array
{
return $this->files;
}
public function getIterator(): FileCollectionIterator
{
return new FileCollectionIterator($this);
}
public function count(): int
{
return count($this->files);
}
public function isEmpty(): bool
{
return empty($this->files);
}
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/file/File.php | src/file/File.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final readonly class File
{
/**
* @var non-empty-string
*/
private string $path;
/**
* @var list<string>
*/
private array $sourceLines;
/**
* @var list<int>
*/
private array $linesEliminatedByOptimizer;
/**
* @param non-empty-string $path
* @param list<string> $sourceLines
* @param list<int> $linesEliminatedByOptimizer
*/
public function __construct(string $path, array $sourceLines, array $linesEliminatedByOptimizer)
{
$this->path = $path;
$this->sourceLines = $sourceLines;
$this->linesEliminatedByOptimizer = $linesEliminatedByOptimizer;
}
/**
* @return non-empty-string
*/
public function path(): string
{
return $this->path;
}
/**
* @return list<string>
*/
public function sourceLines(): array
{
return $this->sourceLines;
}
/**
* @return list<int>
*/
public function linesEliminatedByOptimizer(): array
{
return $this->linesEliminatedByOptimizer;
}
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/file/FileCollectionIterator.php | src/file/FileCollectionIterator.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use Iterator;
/**
* @template-implements Iterator<int, File>
*
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final class FileCollectionIterator implements Iterator
{
/**
* @var list<File>
*/
private readonly array $files;
private int $position = 0;
public function __construct(FileCollection $collection)
{
$this->files = $collection->asArray();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
return isset($this->files[$this->position]);
}
public function key(): int
{
return $this->position;
}
public function current(): File
{
return $this->files[$this->position];
}
public function next(): void
{
$this->position++;
}
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/exception/ProcessException.php | src/exception/ProcessException.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use RuntimeException;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final class ProcessException extends RuntimeException implements Exception
{
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/exception/VldNotLoadedException.php | src/exception/VldNotLoadedException.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use RuntimeException;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final class VldNotLoadedException extends RuntimeException implements Exception
{
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/exception/OpcacheNotLoadedException.php | src/exception/OpcacheNotLoadedException.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use RuntimeException;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final class OpcacheNotLoadedException extends RuntimeException implements Exception
{
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/exception/Exception.php | src/exception/Exception.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
/**
* @internal This interface is not covered by the backward compatibility promise for FOAL
*/
interface Exception
{
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/exception/ConfigurationBuilderException.php | src/exception/ConfigurationBuilderException.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL\CLI;
use RuntimeException;
use SebastianBergmann\FOAL\Exception;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final class ConfigurationBuilderException extends RuntimeException implements Exception
{
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/exception/PathsNotConfiguredException.php | src/exception/PathsNotConfiguredException.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL\CLI;
use RuntimeException;
use SebastianBergmann\FOAL\Exception;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final class PathsNotConfiguredException extends RuntimeException implements Exception
{
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
sebastianbergmann/foal | https://github.com/sebastianbergmann/foal/blob/5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8/src/bytecode/VldDisassembler.php | src/bytecode/VldDisassembler.php | <?php declare(strict_types=1);
/*
* This file is part of FOAL.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\FOAL;
use function assert;
use function exec;
use function extension_loaded;
use function file_get_contents;
use function implode;
use function is_string;
/**
* @internal This class is not covered by the backward compatibility promise for FOAL
*/
final readonly class VldDisassembler implements Disassembler
{
private const string VLD_OPTIONS_COMMON = '-d vld.active=1 -d vld.execute=0 -d vld.verbosity=0';
private const string VLD_OPTIONS_BYTECODE = self::VLD_OPTIONS_COMMON . ' -d vld.format=1 -d vld.col_sep=\';\'';
private const string VLD_OPTIONS_PATHS = self::VLD_OPTIONS_COMMON . ' -d vld.save_paths=1 -d vld.save_dir=/tmp';
private const string OPCACHE_OPTIONS_ENABLE = '-d opcache.enable=1 -d opcache.enable_cli=1 -d opcache.optimization_level=-1';
private const string OPCACHE_OPTIONS_DISABLE = '-d opcache.enable=0 -d opcache.enable_cli=0';
private VldParser $parser;
/**
* @throws OpcacheNotLoadedException
* @throws VldNotLoadedException
*/
public function __construct(VldParser $parser)
{
$this->ensureOpCacheIsAvailable();
$this->ensureVldIsAvailable();
$this->parser = $parser;
}
/**
* @param non-empty-string $file
*
* @return list<int>
*/
public function linesWithOpcodesBeforeOptimization(string $file): array
{
return $this->parser->linesWithOpcodes(
$this->execute(
PHP_BINARY . ' ' . self::OPCACHE_OPTIONS_DISABLE . ' ' . self::VLD_OPTIONS_BYTECODE . ' ' . $file,
),
);
}
/**
* @param non-empty-string $file
*
* @return list<int>
*/
public function linesWithOpcodesAfterOptimization(string $file): array
{
return $this->parser->linesWithOpcodes(
$this->execute(
PHP_BINARY . ' ' . self::OPCACHE_OPTIONS_ENABLE . ' ' . self::VLD_OPTIONS_BYTECODE . ' ' . $file,
),
);
}
/**
* @param non-empty-string $file
*
* @return non-empty-string
*/
public function pathsBeforeOptimization(string $file): string
{
$this->execute(
PHP_BINARY . ' ' . self::OPCACHE_OPTIONS_DISABLE . ' ' . self::VLD_OPTIONS_PATHS . ' ' . $file,
);
$buffer = file_get_contents('/tmp/paths.dot');
assert(is_string($buffer) && $buffer !== '');
return $buffer;
}
/**
* @param non-empty-string $file
*
* @return non-empty-string
*/
public function pathsAfterOptimization(string $file): string
{
$this->execute(
PHP_BINARY . ' ' . self::OPCACHE_OPTIONS_ENABLE . ' ' . self::VLD_OPTIONS_PATHS . ' ' . $file,
);
$buffer = file_get_contents('/tmp/paths.dot');
assert(is_string($buffer) && $buffer !== '');
return $buffer;
}
/**
* @throws OpcacheNotLoadedException
*/
private function ensureOpCacheIsAvailable(): void
{
if (!extension_loaded('Zend OPcache')) {
// @codeCoverageIgnoreStart
throw new OpcacheNotLoadedException;
// @codeCoverageIgnoreEnd
}
}
/**
* @throws VldNotLoadedException
*/
private function ensureVldIsAvailable(): void
{
if (!extension_loaded('vld')) {
// @codeCoverageIgnoreStart
throw new VldNotLoadedException;
// @codeCoverageIgnoreEnd
}
}
/**
* @return list<string>
*/
private function execute(string $command): array
{
exec($command . ' 2>&1', $output, $returnValue);
if ($returnValue !== 0) {
// @codeCoverageIgnoreStart
throw new ProcessException(implode("\r\n", $output));
// @codeCoverageIgnoreEnd
}
return $output;
}
}
| php | BSD-3-Clause | 5bc5ed43be2b5e36a411bad5fbbe7ef8a881efd8 | 2026-01-05T04:43:58.906971Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.