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/FulfillmentOutbound/FeatureSettings.php
lib/Models/FulfillmentOutbound/FeatureSettings.php
<?php /** * FeatureSettings. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FeatureSettings Class Doc Comment. * * @description Settings to apply to an order that includes the specified fulfillment feature. * * @author Stefan Neuhaus / ClouSale */ class FeatureSettings implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FeatureSettings'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'feature_name' => 'string', 'feature_fulfillment_policy' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'feature_name' => null, 'feature_fulfillment_policy' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'feature_name' => 'featureName', 'feature_fulfillment_policy' => 'featureFulfillmentPolicy', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'feature_name' => 'setFeatureName', 'feature_fulfillment_policy' => 'setFeatureFulfillmentPolicy', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'feature_name' => 'getFeatureName', 'feature_fulfillment_policy' => 'getFeatureFulfillmentPolicy', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 FEATURE_FULFILLMENT_POLICY_REQUIRED = 'Required'; const FEATURE_FULFILLMENT_POLICY_NOT_REQUIRED = 'NotRequired'; /** * Gets allowable values of the enum. * * @return string[] */ public function getFeatureFulfillmentPolicyAllowableValues() { return [ self::FEATURE_FULFILLMENT_POLICY_REQUIRED, self::FEATURE_FULFILLMENT_POLICY_NOT_REQUIRED, ]; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['feature_name'] = isset($data['feature_name']) ? $data['feature_name'] : null; $this->container['feature_fulfillment_policy'] = isset($data['feature_fulfillment_policy']) ? $data['feature_fulfillment_policy'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getFeatureFulfillmentPolicyAllowableValues(); if (!is_null($this->container['feature_fulfillment_policy']) && !in_array($this->container['feature_fulfillment_policy'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'feature_fulfillment_policy', 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 feature_name. * * @return string */ public function getFeatureName() { return $this->container['feature_name']; } /** * Sets feature_name. * * @param string $feature_name the name of the feature * * @return $this */ public function setFeatureName($feature_name) { $this->container['feature_name'] = $feature_name; return $this; } /** * Gets feature_fulfillment_policy. * * @return string */ public function getFeatureFulfillmentPolicy() { return $this->container['feature_fulfillment_policy']; } /** * Sets feature_fulfillment_policy. * * @param string $feature_fulfillment_policy specifies the policy to use when fulfilling an order * * @return $this */ public function setFeatureFulfillmentPolicy($feature_fulfillment_policy) { $allowedValues = $this->getFeatureFulfillmentPolicyAllowableValues(); if (!is_null($feature_fulfillment_policy) && !in_array($feature_fulfillment_policy, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'feature_fulfillment_policy', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['feature_fulfillment_policy'] = $feature_fulfillment_policy; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipment.php
lib/Models/FulfillmentOutbound/FulfillmentPreviewShipment.php
<?php /** * FulfillmentPreviewShipment. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentPreviewShipment Class Doc Comment. * * @description Delivery and item information for a shipment in a fulfillment order preview. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewShipment implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentPreviewShipment'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'earliest_ship_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'latest_ship_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'earliest_arrival_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'latest_arrival_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'shipping_notes' => 'string[]', 'fulfillment_preview_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPreviewItemList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'earliest_ship_date' => null, 'latest_ship_date' => null, 'earliest_arrival_date' => null, 'latest_arrival_date' => null, 'shipping_notes' => null, 'fulfillment_preview_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 = [ 'earliest_ship_date' => 'earliestShipDate', 'latest_ship_date' => 'latestShipDate', 'earliest_arrival_date' => 'earliestArrivalDate', 'latest_arrival_date' => 'latestArrivalDate', 'shipping_notes' => 'shippingNotes', 'fulfillment_preview_items' => 'fulfillmentPreviewItems', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'earliest_ship_date' => 'setEarliestShipDate', 'latest_ship_date' => 'setLatestShipDate', 'earliest_arrival_date' => 'setEarliestArrivalDate', 'latest_arrival_date' => 'setLatestArrivalDate', 'shipping_notes' => 'setShippingNotes', 'fulfillment_preview_items' => 'setFulfillmentPreviewItems', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'earliest_ship_date' => 'getEarliestShipDate', 'latest_ship_date' => 'getLatestShipDate', 'earliest_arrival_date' => 'getEarliestArrivalDate', 'latest_arrival_date' => 'getLatestArrivalDate', 'shipping_notes' => 'getShippingNotes', 'fulfillment_preview_items' => 'getFulfillmentPreviewItems', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['earliest_ship_date'] = isset($data['earliest_ship_date']) ? $data['earliest_ship_date'] : null; $this->container['latest_ship_date'] = isset($data['latest_ship_date']) ? $data['latest_ship_date'] : null; $this->container['earliest_arrival_date'] = isset($data['earliest_arrival_date']) ? $data['earliest_arrival_date'] : null; $this->container['latest_arrival_date'] = isset($data['latest_arrival_date']) ? $data['latest_arrival_date'] : null; $this->container['shipping_notes'] = isset($data['shipping_notes']) ? $data['shipping_notes'] : null; $this->container['fulfillment_preview_items'] = isset($data['fulfillment_preview_items']) ? $data['fulfillment_preview_items'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['fulfillment_preview_items']) { $invalidProperties[] = "'fulfillment_preview_items' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets earliest_ship_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getEarliestShipDate() { return $this->container['earliest_ship_date']; } /** * Sets earliest_ship_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $earliest_ship_date earliest_ship_date * * @return $this */ public function setEarliestShipDate($earliest_ship_date) { $this->container['earliest_ship_date'] = $earliest_ship_date; return $this; } /** * Gets latest_ship_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getLatestShipDate() { return $this->container['latest_ship_date']; } /** * Sets latest_ship_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $latest_ship_date latest_ship_date * * @return $this */ public function setLatestShipDate($latest_ship_date) { $this->container['latest_ship_date'] = $latest_ship_date; return $this; } /** * Gets earliest_arrival_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getEarliestArrivalDate() { return $this->container['earliest_arrival_date']; } /** * Sets earliest_arrival_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $earliest_arrival_date earliest_arrival_date * * @return $this */ public function setEarliestArrivalDate($earliest_arrival_date) { $this->container['earliest_arrival_date'] = $earliest_arrival_date; return $this; } /** * Gets latest_arrival_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getLatestArrivalDate() { return $this->container['latest_arrival_date']; } /** * Sets latest_arrival_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $latest_arrival_date latest_arrival_date * * @return $this */ public function setLatestArrivalDate($latest_arrival_date) { $this->container['latest_arrival_date'] = $latest_arrival_date; return $this; } /** * Gets shipping_notes. * * @return string[] */ public function getShippingNotes() { return $this->container['shipping_notes']; } /** * Sets shipping_notes. * * @param string[] $shipping_notes provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed * * @return $this */ public function setShippingNotes($shipping_notes) { $this->container['shipping_notes'] = $shipping_notes; return $this; } /** * Gets fulfillment_preview_items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPreviewItemList */ public function getFulfillmentPreviewItems() { return $this->container['fulfillment_preview_items']; } /** * Sets fulfillment_preview_items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPreviewItemList $fulfillment_preview_items fulfillment_preview_items * * @return $this */ public function setFulfillmentPreviewItems($fulfillment_preview_items) { $this->container['fulfillment_preview_items'] = $fulfillment_preview_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/FulfillmentOutbound/FulfillmentPreview.php
lib/Models/FulfillmentOutbound/FulfillmentPreview.php
<?php /** * FulfillmentPreview. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentPreview Class Doc Comment. * * @description Information about a fulfillment order preview, including delivery and fee information based on shipping method. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreview implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentPreview'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'shipping_speed_category' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory', 'scheduled_delivery_info' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ScheduledDeliveryInfo', 'is_fulfillable' => 'bool', 'is_cod_capable' => 'bool', 'estimated_shipping_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Weight', 'estimated_fees' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeeList', 'fulfillment_preview_shipments' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPreviewShipmentList', 'unfulfillable_preview_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\UnfulfillablePreviewItemList', 'order_unfulfillable_reasons' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\StringList', 'marketplace_id' => 'string', 'feature_constraints' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'shipping_speed_category' => null, 'scheduled_delivery_info' => null, 'is_fulfillable' => null, 'is_cod_capable' => null, 'estimated_shipping_weight' => null, 'estimated_fees' => null, 'fulfillment_preview_shipments' => null, 'unfulfillable_preview_items' => null, 'order_unfulfillable_reasons' => null, 'marketplace_id' => null, 'feature_constraints' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'shipping_speed_category' => 'shippingSpeedCategory', 'scheduled_delivery_info' => 'scheduledDeliveryInfo', 'is_fulfillable' => 'isFulfillable', 'is_cod_capable' => 'isCODCapable', 'estimated_shipping_weight' => 'estimatedShippingWeight', 'estimated_fees' => 'estimatedFees', 'fulfillment_preview_shipments' => 'fulfillmentPreviewShipments', 'unfulfillable_preview_items' => 'unfulfillablePreviewItems', 'order_unfulfillable_reasons' => 'orderUnfulfillableReasons', 'marketplace_id' => 'marketplaceId', 'feature_constraints' => 'featureConstraints', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'shipping_speed_category' => 'setShippingSpeedCategory', 'scheduled_delivery_info' => 'setScheduledDeliveryInfo', 'is_fulfillable' => 'setIsFulfillable', 'is_cod_capable' => 'setIsCodCapable', 'estimated_shipping_weight' => 'setEstimatedShippingWeight', 'estimated_fees' => 'setEstimatedFees', 'fulfillment_preview_shipments' => 'setFulfillmentPreviewShipments', 'unfulfillable_preview_items' => 'setUnfulfillablePreviewItems', 'order_unfulfillable_reasons' => 'setOrderUnfulfillableReasons', 'marketplace_id' => 'setMarketplaceId', 'feature_constraints' => 'setFeatureConstraints', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'shipping_speed_category' => 'getShippingSpeedCategory', 'scheduled_delivery_info' => 'getScheduledDeliveryInfo', 'is_fulfillable' => 'getIsFulfillable', 'is_cod_capable' => 'getIsCodCapable', 'estimated_shipping_weight' => 'getEstimatedShippingWeight', 'estimated_fees' => 'getEstimatedFees', 'fulfillment_preview_shipments' => 'getFulfillmentPreviewShipments', 'unfulfillable_preview_items' => 'getUnfulfillablePreviewItems', 'order_unfulfillable_reasons' => 'getOrderUnfulfillableReasons', 'marketplace_id' => 'getMarketplaceId', 'feature_constraints' => 'getFeatureConstraints', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['shipping_speed_category'] = isset($data['shipping_speed_category']) ? $data['shipping_speed_category'] : null; $this->container['scheduled_delivery_info'] = isset($data['scheduled_delivery_info']) ? $data['scheduled_delivery_info'] : null; $this->container['is_fulfillable'] = isset($data['is_fulfillable']) ? $data['is_fulfillable'] : null; $this->container['is_cod_capable'] = isset($data['is_cod_capable']) ? $data['is_cod_capable'] : null; $this->container['estimated_shipping_weight'] = isset($data['estimated_shipping_weight']) ? $data['estimated_shipping_weight'] : null; $this->container['estimated_fees'] = isset($data['estimated_fees']) ? $data['estimated_fees'] : null; $this->container['fulfillment_preview_shipments'] = isset($data['fulfillment_preview_shipments']) ? $data['fulfillment_preview_shipments'] : null; $this->container['unfulfillable_preview_items'] = isset($data['unfulfillable_preview_items']) ? $data['unfulfillable_preview_items'] : null; $this->container['order_unfulfillable_reasons'] = isset($data['order_unfulfillable_reasons']) ? $data['order_unfulfillable_reasons'] : null; $this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null; $this->container['feature_constraints'] = isset($data['feature_constraints']) ? $data['feature_constraints'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['shipping_speed_category']) { $invalidProperties[] = "'shipping_speed_category' can't be null"; } if (null === $this->container['is_fulfillable']) { $invalidProperties[] = "'is_fulfillable' can't be null"; } if (null === $this->container['is_cod_capable']) { $invalidProperties[] = "'is_cod_capable' can't be null"; } if (null === $this->container['marketplace_id']) { $invalidProperties[] = "'marketplace_id' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets shipping_speed_category. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory */ public function getShippingSpeedCategory() { return $this->container['shipping_speed_category']; } /** * Sets shipping_speed_category. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory $shipping_speed_category shipping_speed_category * * @return $this */ public function setShippingSpeedCategory($shipping_speed_category) { $this->container['shipping_speed_category'] = $shipping_speed_category; return $this; } /** * Gets scheduled_delivery_info. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ScheduledDeliveryInfo */ public function getScheduledDeliveryInfo() { return $this->container['scheduled_delivery_info']; } /** * Sets scheduled_delivery_info. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ScheduledDeliveryInfo $scheduled_delivery_info scheduled_delivery_info * * @return $this */ public function setScheduledDeliveryInfo($scheduled_delivery_info) { $this->container['scheduled_delivery_info'] = $scheduled_delivery_info; return $this; } /** * Gets is_fulfillable. * * @return bool */ public function getIsFulfillable() { return $this->container['is_fulfillable']; } /** * Sets is_fulfillable. * * @param bool $is_fulfillable when true, this fulfillment order preview is fulfillable * * @return $this */ public function setIsFulfillable($is_fulfillable) { $this->container['is_fulfillable'] = $is_fulfillable; return $this; } /** * Gets is_cod_capable. * * @return bool */ public function getIsCodCapable() { return $this->container['is_cod_capable']; } /** * Sets is_cod_capable. * * @param bool $is_cod_capable when true, this fulfillment order preview is for COD (Cash On Delivery) * * @return $this */ public function setIsCodCapable($is_cod_capable) { $this->container['is_cod_capable'] = $is_cod_capable; return $this; } /** * Gets estimated_shipping_weight. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Weight */ public function getEstimatedShippingWeight() { return $this->container['estimated_shipping_weight']; } /** * Sets estimated_shipping_weight. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Weight $estimated_shipping_weight estimated_shipping_weight * * @return $this */ public function setEstimatedShippingWeight($estimated_shipping_weight) { $this->container['estimated_shipping_weight'] = $estimated_shipping_weight; return $this; } /** * Gets estimated_fees. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeeList */ public function getEstimatedFees() { return $this->container['estimated_fees']; } /** * Sets estimated_fees. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeeList $estimated_fees estimated_fees * * @return $this */ public function setEstimatedFees($estimated_fees) { $this->container['estimated_fees'] = $estimated_fees; return $this; } /** * Gets fulfillment_preview_shipments. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPreviewShipmentList */ public function getFulfillmentPreviewShipments() { return $this->container['fulfillment_preview_shipments']; } /** * Sets fulfillment_preview_shipments. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPreviewShipmentList $fulfillment_preview_shipments fulfillment_preview_shipments * * @return $this */ public function setFulfillmentPreviewShipments($fulfillment_preview_shipments) { $this->container['fulfillment_preview_shipments'] = $fulfillment_preview_shipments; return $this; } /** * Gets unfulfillable_preview_items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\UnfulfillablePreviewItemList */ public function getUnfulfillablePreviewItems() { return $this->container['unfulfillable_preview_items']; } /** * Sets unfulfillable_preview_items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\UnfulfillablePreviewItemList $unfulfillable_preview_items unfulfillable_preview_items * * @return $this */ public function setUnfulfillablePreviewItems($unfulfillable_preview_items) { $this->container['unfulfillable_preview_items'] = $unfulfillable_preview_items; return $this; } /** * Gets order_unfulfillable_reasons. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\StringList */ public function getOrderUnfulfillableReasons() { return $this->container['order_unfulfillable_reasons']; } /** * Sets order_unfulfillable_reasons. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\StringList $order_unfulfillable_reasons order_unfulfillable_reasons * * @return $this */ public function setOrderUnfulfillableReasons($order_unfulfillable_reasons) { $this->container['order_unfulfillable_reasons'] = $order_unfulfillable_reasons; return $this; } /** * Gets marketplace_id. * * @return string */ public function getMarketplaceId() { return $this->container['marketplace_id']; } /** * Sets marketplace_id. * * @param string $marketplace_id the marketplace the fulfillment order is placed against * * @return $this */ public function setMarketplaceId($marketplace_id) { $this->container['marketplace_id'] = $marketplace_id; return $this; } /** * Gets feature_constraints. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[] */ public function getFeatureConstraints() { return $this->container['feature_constraints']; } /** * Sets feature_constraints. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[] $feature_constraints a list of features and their fulfillment policies to apply to the order * * @return $this */ public function setFeatureConstraints($feature_constraints) { $this->container['feature_constraints'] = $feature_constraints; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/AdditionalLocationInfo.php
lib/Models/FulfillmentOutbound/AdditionalLocationInfo.php
<?php /** * AdditionalLocationInfo. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * AdditionalLocationInfo Class Doc Comment. * * @description Additional location information. * * @author Stefan Neuhaus / ClouSale */ class AdditionalLocationInfo { /** * Possible values of this enum. */ const AS_INSTRUCTED = 'AS_INSTRUCTED'; const CARPORT = 'CARPORT'; const CUSTOMER_PICKUP = 'CUSTOMER_PICKUP'; const DECK = 'DECK'; const DOOR_PERSON = 'DOOR_PERSON'; const FRONT_DESK = 'FRONT_DESK'; const FRONT_DOOR = 'FRONT_DOOR'; const GARAGE = 'GARAGE'; const GUARD = 'GUARD'; const MAIL_ROOM = 'MAIL_ROOM'; const MAIL_SLOT = 'MAIL_SLOT'; const MAILBOX = 'MAILBOX'; const MC_BOY = 'MC_BOY'; const MC_GIRL = 'MC_GIRL'; const MC_MAN = 'MC_MAN'; const MC_WOMAN = 'MC_WOMAN'; const NEIGHBOR = 'NEIGHBOR'; const OFFICE = 'OFFICE'; const OUTBUILDING = 'OUTBUILDING'; const PATIO = 'PATIO'; const PORCH = 'PORCH'; const REAR_DOOR = 'REAR_DOOR'; const RECEPTIONIST = 'RECEPTIONIST'; const RECEIVER = 'RECEIVER'; const SECURE_LOCATION = 'SECURE_LOCATION'; const SIDE_DOOR = 'SIDE_DOOR'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::AS_INSTRUCTED, self::CARPORT, self::CUSTOMER_PICKUP, self::DECK, self::DOOR_PERSON, self::FRONT_DESK, self::FRONT_DOOR, self::GARAGE, self::GUARD, self::MAIL_ROOM, self::MAIL_SLOT, self::MAILBOX, self::MC_BOY, self::MC_GIRL, self::MC_MAN, self::MC_WOMAN, self::NEIGHBOR, self::OFFICE, self::OUTBUILDING, self::PATIO, self::PORCH, self::REAR_DOOR, self::RECEPTIONIST, self::RECEIVER, self::SECURE_LOCATION, self::SIDE_DOOR, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentOrderItem.php
lib/Models/FulfillmentOutbound/FulfillmentOrderItem.php
<?php /** * FulfillmentOrderItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentOrderItem Class Doc Comment. * * @description Item information for a fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentOrderItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentOrderItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_sku' => 'string', 'seller_fulfillment_order_item_id' => 'string', 'quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity', 'gift_message' => 'string', 'displayable_comment' => 'string', 'fulfillment_network_sku' => 'string', 'order_item_disposition' => 'string', 'cancelled_quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity', 'unfulfillable_quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity', 'estimated_ship_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'estimated_arrival_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'per_unit_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'per_unit_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'per_unit_declared_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_sku' => null, 'seller_fulfillment_order_item_id' => null, 'quantity' => null, 'gift_message' => null, 'displayable_comment' => null, 'fulfillment_network_sku' => null, 'order_item_disposition' => null, 'cancelled_quantity' => null, 'unfulfillable_quantity' => null, 'estimated_ship_date' => null, 'estimated_arrival_date' => null, 'per_unit_price' => null, 'per_unit_tax' => null, 'per_unit_declared_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 = [ 'seller_sku' => 'sellerSku', 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', 'quantity' => 'quantity', 'gift_message' => 'giftMessage', 'displayable_comment' => 'displayableComment', 'fulfillment_network_sku' => 'fulfillmentNetworkSku', 'order_item_disposition' => 'orderItemDisposition', 'cancelled_quantity' => 'cancelledQuantity', 'unfulfillable_quantity' => 'unfulfillableQuantity', 'estimated_ship_date' => 'estimatedShipDate', 'estimated_arrival_date' => 'estimatedArrivalDate', 'per_unit_price' => 'perUnitPrice', 'per_unit_tax' => 'perUnitTax', 'per_unit_declared_value' => 'perUnitDeclaredValue', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_sku' => 'setSellerSku', 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', 'quantity' => 'setQuantity', 'gift_message' => 'setGiftMessage', 'displayable_comment' => 'setDisplayableComment', 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', 'order_item_disposition' => 'setOrderItemDisposition', 'cancelled_quantity' => 'setCancelledQuantity', 'unfulfillable_quantity' => 'setUnfulfillableQuantity', 'estimated_ship_date' => 'setEstimatedShipDate', 'estimated_arrival_date' => 'setEstimatedArrivalDate', 'per_unit_price' => 'setPerUnitPrice', 'per_unit_tax' => 'setPerUnitTax', 'per_unit_declared_value' => 'setPerUnitDeclaredValue', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_sku' => 'getSellerSku', 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', 'quantity' => 'getQuantity', 'gift_message' => 'getGiftMessage', 'displayable_comment' => 'getDisplayableComment', 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', 'order_item_disposition' => 'getOrderItemDisposition', 'cancelled_quantity' => 'getCancelledQuantity', 'unfulfillable_quantity' => 'getUnfulfillableQuantity', 'estimated_ship_date' => 'getEstimatedShipDate', 'estimated_arrival_date' => 'getEstimatedArrivalDate', 'per_unit_price' => 'getPerUnitPrice', 'per_unit_tax' => 'getPerUnitTax', 'per_unit_declared_value' => 'getPerUnitDeclaredValue', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null; $this->container['seller_fulfillment_order_item_id'] = isset($data['seller_fulfillment_order_item_id']) ? $data['seller_fulfillment_order_item_id'] : null; $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; $this->container['gift_message'] = isset($data['gift_message']) ? $data['gift_message'] : null; $this->container['displayable_comment'] = isset($data['displayable_comment']) ? $data['displayable_comment'] : null; $this->container['fulfillment_network_sku'] = isset($data['fulfillment_network_sku']) ? $data['fulfillment_network_sku'] : null; $this->container['order_item_disposition'] = isset($data['order_item_disposition']) ? $data['order_item_disposition'] : null; $this->container['cancelled_quantity'] = isset($data['cancelled_quantity']) ? $data['cancelled_quantity'] : null; $this->container['unfulfillable_quantity'] = isset($data['unfulfillable_quantity']) ? $data['unfulfillable_quantity'] : null; $this->container['estimated_ship_date'] = isset($data['estimated_ship_date']) ? $data['estimated_ship_date'] : null; $this->container['estimated_arrival_date'] = isset($data['estimated_arrival_date']) ? $data['estimated_arrival_date'] : null; $this->container['per_unit_price'] = isset($data['per_unit_price']) ? $data['per_unit_price'] : null; $this->container['per_unit_tax'] = isset($data['per_unit_tax']) ? $data['per_unit_tax'] : null; $this->container['per_unit_declared_value'] = isset($data['per_unit_declared_value']) ? $data['per_unit_declared_value'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_sku']) { $invalidProperties[] = "'seller_sku' can't be null"; } if (null === $this->container['seller_fulfillment_order_item_id']) { $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; } if (null === $this->container['quantity']) { $invalidProperties[] = "'quantity' can't be null"; } if (null === $this->container['cancelled_quantity']) { $invalidProperties[] = "'cancelled_quantity' can't be null"; } if (null === $this->container['unfulfillable_quantity']) { $invalidProperties[] = "'unfulfillable_quantity' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_sku. * * @return string */ public function getSellerSku() { return $this->container['seller_sku']; } /** * Sets seller_sku. * * @param string $seller_sku the seller SKU of the item * * @return $this */ public function setSellerSku($seller_sku) { $this->container['seller_sku'] = $seller_sku; return $this; } /** * Gets seller_fulfillment_order_item_id. * * @return string */ public function getSellerFulfillmentOrderItemId() { return $this->container['seller_fulfillment_order_item_id']; } /** * Sets seller_fulfillment_order_item_id. * * @param string $seller_fulfillment_order_item_id a fulfillment order item identifier submitted with a call to the createFulfillmentOrder operation * * @return $this */ public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) { $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; return $this; } /** * Gets quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity */ public function getQuantity() { return $this->container['quantity']; } /** * Sets quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity $quantity quantity * * @return $this */ public function setQuantity($quantity) { $this->container['quantity'] = $quantity; return $this; } /** * Gets gift_message. * * @return string */ public function getGiftMessage() { return $this->container['gift_message']; } /** * Sets gift_message. * * @param string $gift_message a message to the gift recipient, if applicable * * @return $this */ public function setGiftMessage($gift_message) { $this->container['gift_message'] = $gift_message; return $this; } /** * Gets displayable_comment. * * @return string */ public function getDisplayableComment() { return $this->container['displayable_comment']; } /** * Sets displayable_comment. * * @param string $displayable_comment item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip * * @return $this */ public function setDisplayableComment($displayable_comment) { $this->container['displayable_comment'] = $displayable_comment; return $this; } /** * Gets fulfillment_network_sku. * * @return string */ public function getFulfillmentNetworkSku() { return $this->container['fulfillment_network_sku']; } /** * Sets fulfillment_network_sku. * * @param string $fulfillment_network_sku amazon's fulfillment network SKU of the item * * @return $this */ public function setFulfillmentNetworkSku($fulfillment_network_sku) { $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; return $this; } /** * Gets order_item_disposition. * * @return string */ public function getOrderItemDisposition() { return $this->container['order_item_disposition']; } /** * Sets order_item_disposition. * * @param string $order_item_disposition indicates whether the item is sellable or unsellable * * @return $this */ public function setOrderItemDisposition($order_item_disposition) { $this->container['order_item_disposition'] = $order_item_disposition; return $this; } /** * Gets cancelled_quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity */ public function getCancelledQuantity() { return $this->container['cancelled_quantity']; } /** * Sets cancelled_quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity $cancelled_quantity cancelled_quantity * * @return $this */ public function setCancelledQuantity($cancelled_quantity) { $this->container['cancelled_quantity'] = $cancelled_quantity; return $this; } /** * Gets unfulfillable_quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity */ public function getUnfulfillableQuantity() { return $this->container['unfulfillable_quantity']; } /** * Sets unfulfillable_quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity $unfulfillable_quantity unfulfillable_quantity * * @return $this */ public function setUnfulfillableQuantity($unfulfillable_quantity) { $this->container['unfulfillable_quantity'] = $unfulfillable_quantity; return $this; } /** * Gets estimated_ship_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getEstimatedShipDate() { return $this->container['estimated_ship_date']; } /** * Sets estimated_ship_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $estimated_ship_date estimated_ship_date * * @return $this */ public function setEstimatedShipDate($estimated_ship_date) { $this->container['estimated_ship_date'] = $estimated_ship_date; return $this; } /** * Gets estimated_arrival_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getEstimatedArrivalDate() { return $this->container['estimated_arrival_date']; } /** * Sets estimated_arrival_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $estimated_arrival_date estimated_arrival_date * * @return $this */ public function setEstimatedArrivalDate($estimated_arrival_date) { $this->container['estimated_arrival_date'] = $estimated_arrival_date; return $this; } /** * Gets per_unit_price. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitPrice() { return $this->container['per_unit_price']; } /** * Sets per_unit_price. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_price per_unit_price * * @return $this */ public function setPerUnitPrice($per_unit_price) { $this->container['per_unit_price'] = $per_unit_price; return $this; } /** * Gets per_unit_tax. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitTax() { return $this->container['per_unit_tax']; } /** * Sets per_unit_tax. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_tax per_unit_tax * * @return $this */ public function setPerUnitTax($per_unit_tax) { $this->container['per_unit_tax'] = $per_unit_tax; return $this; } /** * Gets per_unit_declared_value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitDeclaredValue() { return $this->container['per_unit_declared_value']; } /** * Sets per_unit_declared_value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_declared_value per_unit_declared_value * * @return $this */ public function setPerUnitDeclaredValue($per_unit_declared_value) { $this->container['per_unit_declared_value'] = $per_unit_declared_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/FulfillmentOutbound/CreateFulfillmentOrderRequest.php
lib/Models/FulfillmentOutbound/CreateFulfillmentOrderRequest.php
<?php /** * CreateFulfillmentOrderRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateFulfillmentOrderRequest Class Doc Comment. * * @description The request body schema for the createFulfillmentOrder operation. * * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentOrderRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateFulfillmentOrderRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'marketplace_id' => 'string', 'seller_fulfillment_order_id' => 'string', 'displayable_order_id' => 'string', 'displayable_order_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'displayable_order_comment' => 'string', 'shipping_speed_category' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory', 'delivery_window' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\DeliveryWindow', 'destination_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address', 'fulfillment_action' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentAction', 'fulfillment_policy' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPolicy', 'cod_settings' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CODSettings', 'ship_from_country_code' => 'string', 'notification_emails' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\NotificationEmailList', 'feature_constraints' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[]', 'items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentOrderItemList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'marketplace_id' => null, 'seller_fulfillment_order_id' => null, 'displayable_order_id' => null, 'displayable_order_date' => null, 'displayable_order_comment' => null, 'shipping_speed_category' => null, 'delivery_window' => null, 'destination_address' => null, 'fulfillment_action' => null, 'fulfillment_policy' => null, 'cod_settings' => null, 'ship_from_country_code' => null, 'notification_emails' => null, 'feature_constraints' => null, 'items' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'marketplace_id' => 'marketplaceId', 'seller_fulfillment_order_id' => 'sellerFulfillmentOrderId', 'displayable_order_id' => 'displayableOrderId', 'displayable_order_date' => 'displayableOrderDate', 'displayable_order_comment' => 'displayableOrderComment', 'shipping_speed_category' => 'shippingSpeedCategory', 'delivery_window' => 'deliveryWindow', 'destination_address' => 'destinationAddress', 'fulfillment_action' => 'fulfillmentAction', 'fulfillment_policy' => 'fulfillmentPolicy', 'cod_settings' => 'codSettings', 'ship_from_country_code' => 'shipFromCountryCode', 'notification_emails' => 'notificationEmails', 'feature_constraints' => 'featureConstraints', 'items' => 'items', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'marketplace_id' => 'setMarketplaceId', 'seller_fulfillment_order_id' => 'setSellerFulfillmentOrderId', 'displayable_order_id' => 'setDisplayableOrderId', 'displayable_order_date' => 'setDisplayableOrderDate', 'displayable_order_comment' => 'setDisplayableOrderComment', 'shipping_speed_category' => 'setShippingSpeedCategory', 'delivery_window' => 'setDeliveryWindow', 'destination_address' => 'setDestinationAddress', 'fulfillment_action' => 'setFulfillmentAction', 'fulfillment_policy' => 'setFulfillmentPolicy', 'cod_settings' => 'setCodSettings', 'ship_from_country_code' => 'setShipFromCountryCode', 'notification_emails' => 'setNotificationEmails', 'feature_constraints' => 'setFeatureConstraints', 'items' => 'setItems', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'marketplace_id' => 'getMarketplaceId', 'seller_fulfillment_order_id' => 'getSellerFulfillmentOrderId', 'displayable_order_id' => 'getDisplayableOrderId', 'displayable_order_date' => 'getDisplayableOrderDate', 'displayable_order_comment' => 'getDisplayableOrderComment', 'shipping_speed_category' => 'getShippingSpeedCategory', 'delivery_window' => 'getDeliveryWindow', 'destination_address' => 'getDestinationAddress', 'fulfillment_action' => 'getFulfillmentAction', 'fulfillment_policy' => 'getFulfillmentPolicy', 'cod_settings' => 'getCodSettings', 'ship_from_country_code' => 'getShipFromCountryCode', 'notification_emails' => 'getNotificationEmails', 'feature_constraints' => 'getFeatureConstraints', 'items' => 'getItems', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null; $this->container['seller_fulfillment_order_id'] = isset($data['seller_fulfillment_order_id']) ? $data['seller_fulfillment_order_id'] : null; $this->container['displayable_order_id'] = isset($data['displayable_order_id']) ? $data['displayable_order_id'] : null; $this->container['displayable_order_date'] = isset($data['displayable_order_date']) ? $data['displayable_order_date'] : null; $this->container['displayable_order_comment'] = isset($data['displayable_order_comment']) ? $data['displayable_order_comment'] : null; $this->container['shipping_speed_category'] = isset($data['shipping_speed_category']) ? $data['shipping_speed_category'] : null; $this->container['delivery_window'] = isset($data['delivery_window']) ? $data['delivery_window'] : null; $this->container['destination_address'] = isset($data['destination_address']) ? $data['destination_address'] : null; $this->container['fulfillment_action'] = isset($data['fulfillment_action']) ? $data['fulfillment_action'] : null; $this->container['fulfillment_policy'] = isset($data['fulfillment_policy']) ? $data['fulfillment_policy'] : null; $this->container['cod_settings'] = isset($data['cod_settings']) ? $data['cod_settings'] : null; $this->container['ship_from_country_code'] = isset($data['ship_from_country_code']) ? $data['ship_from_country_code'] : null; $this->container['notification_emails'] = isset($data['notification_emails']) ? $data['notification_emails'] : null; $this->container['feature_constraints'] = isset($data['feature_constraints']) ? $data['feature_constraints'] : null; $this->container['items'] = isset($data['items']) ? $data['items'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_fulfillment_order_id']) { $invalidProperties[] = "'seller_fulfillment_order_id' can't be null"; } if (null === $this->container['displayable_order_id']) { $invalidProperties[] = "'displayable_order_id' can't be null"; } if (null === $this->container['displayable_order_date']) { $invalidProperties[] = "'displayable_order_date' can't be null"; } if (null === $this->container['displayable_order_comment']) { $invalidProperties[] = "'displayable_order_comment' can't be null"; } if (null === $this->container['shipping_speed_category']) { $invalidProperties[] = "'shipping_speed_category' can't be null"; } if (null === $this->container['destination_address']) { $invalidProperties[] = "'destination_address' can't be null"; } if (null === $this->container['items']) { $invalidProperties[] = "'items' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets marketplace_id. * * @return string */ public function getMarketplaceId() { return $this->container['marketplace_id']; } /** * Sets marketplace_id. * * @param string $marketplace_id the marketplace the fulfillment order is placed against * * @return $this */ public function setMarketplaceId($marketplace_id) { $this->container['marketplace_id'] = $marketplace_id; return $this; } /** * Gets seller_fulfillment_order_id. * * @return string */ public function getSellerFulfillmentOrderId() { return $this->container['seller_fulfillment_order_id']; } /** * Sets seller_fulfillment_order_id. * * @param string $seller_fulfillment_order_id A fulfillment order identifier that the seller creates to track their fulfillment order. The SellerFulfillmentOrderId must be unique for each fulfillment order that a seller creates. If the seller's system already creates unique order identifiers, then these might be good values for them to use. * * @return $this */ public function setSellerFulfillmentOrderId($seller_fulfillment_order_id) { $this->container['seller_fulfillment_order_id'] = $seller_fulfillment_order_id; return $this; } /** * Gets displayable_order_id. * * @return string */ public function getDisplayableOrderId() { return $this->container['displayable_order_id']; } /** * Sets displayable_order_id. * * @param string $displayable_order_id A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. The value must be an alpha-numeric or ISO 8859-1 compliant string from one to 40 characters in length. Cannot contain two spaces in a row. Leading and trailing white space is removed. * * @return $this */ public function setDisplayableOrderId($displayable_order_id) { $this->container['displayable_order_id'] = $displayable_order_id; return $this; } /** * Gets displayable_order_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getDisplayableOrderDate() { return $this->container['displayable_order_date']; } /** * Sets displayable_order_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $displayable_order_date displayable_order_date * * @return $this */ public function setDisplayableOrderDate($displayable_order_date) { $this->container['displayable_order_date'] = $displayable_order_date; return $this; } /** * Gets displayable_order_comment. * * @return string */ public function getDisplayableOrderComment() { return $this->container['displayable_order_comment']; } /** * Sets displayable_order_comment. * * @param string $displayable_order_comment order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip * * @return $this */ public function setDisplayableOrderComment($displayable_order_comment) { $this->container['displayable_order_comment'] = $displayable_order_comment; return $this; } /** * Gets shipping_speed_category. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory */ public function getShippingSpeedCategory() { return $this->container['shipping_speed_category']; } /** * Sets shipping_speed_category. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory $shipping_speed_category shipping_speed_category * * @return $this */ public function setShippingSpeedCategory($shipping_speed_category) { $this->container['shipping_speed_category'] = $shipping_speed_category; return $this; } /** * Gets delivery_window. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\DeliveryWindow */ public function getDeliveryWindow() { return $this->container['delivery_window']; } /** * Sets delivery_window. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\DeliveryWindow $delivery_window delivery_window * * @return $this */ public function setDeliveryWindow($delivery_window) { $this->container['delivery_window'] = $delivery_window; return $this; } /** * Gets destination_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address */ public function getDestinationAddress() { return $this->container['destination_address']; } /** * Sets destination_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address $destination_address destination_address * * @return $this */ public function setDestinationAddress($destination_address) { $this->container['destination_address'] = $destination_address; return $this; } /** * Gets fulfillment_action. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentAction */ public function getFulfillmentAction() { return $this->container['fulfillment_action']; } /** * Sets fulfillment_action. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentAction $fulfillment_action fulfillment_action * * @return $this */ public function setFulfillmentAction($fulfillment_action) { $this->container['fulfillment_action'] = $fulfillment_action; return $this; } /** * Gets fulfillment_policy. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPolicy */ public function getFulfillmentPolicy() { return $this->container['fulfillment_policy']; } /** * Sets fulfillment_policy. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPolicy $fulfillment_policy fulfillment_policy * * @return $this */ public function setFulfillmentPolicy($fulfillment_policy) { $this->container['fulfillment_policy'] = $fulfillment_policy; return $this; } /** * Gets cod_settings. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CODSettings */ public function getCodSettings() { return $this->container['cod_settings']; } /** * Sets cod_settings. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CODSettings $cod_settings cod_settings * * @return $this */ public function setCodSettings($cod_settings) { $this->container['cod_settings'] = $cod_settings; return $this; } /** * Gets ship_from_country_code. * * @return string */ public function getShipFromCountryCode() { return $this->container['ship_from_country_code']; } /** * Sets ship_from_country_code. * * @param string $ship_from_country_code The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format. * * @return $this */ public function setShipFromCountryCode($ship_from_country_code) { $this->container['ship_from_country_code'] = $ship_from_country_code; return $this; } /** * Gets notification_emails. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\NotificationEmailList */ public function getNotificationEmails() { return $this->container['notification_emails']; } /** * Sets notification_emails. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\NotificationEmailList $notification_emails notification_emails * * @return $this */ public function setNotificationEmails($notification_emails) { $this->container['notification_emails'] = $notification_emails; return $this; } /** * Gets feature_constraints. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[] */ public function getFeatureConstraints() { return $this->container['feature_constraints']; } /** * Sets feature_constraints. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[] $feature_constraints a list of features and their fulfillment policies to apply to the order * * @return $this */ public function setFeatureConstraints($feature_constraints) { $this->container['feature_constraints'] = $feature_constraints; return $this; } /** * Gets items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentOrderItemList */ public function getItems() { return $this->container['items']; } /** * Sets items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentOrderItemList $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/FulfillmentOutbound/Weight.php
lib/Models/FulfillmentOutbound/Weight.php
<?php /** * Weight. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Weight Class Doc Comment. * * @description The weight. * * @author Stefan Neuhaus / ClouSale */ class Weight implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Weight'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'unit' => 'string', 'value' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'unit' => null, 'value' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'unit' => 'unit', 'value' => 'value', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'unit' => 'setUnit', 'value' => 'setValue', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'unit' => 'getUnit', 'value' => 'getValue', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } const UNIT_KG = 'KG'; const UNIT_LB = 'LB'; /** * Gets allowable values of the enum. * * @return string[] */ public function getUnitAllowableValues() { return [ self::UNIT_KG, self::UNIT_LB, ]; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['unit'] = isset($data['unit']) ? $data['unit'] : null; $this->container['value'] = isset($data['value']) ? $data['value'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['unit']) { $invalidProperties[] = "'unit' can't be null"; } $allowedValues = $this->getUnitAllowableValues(); if (!is_null($this->container['unit']) && !in_array($this->container['unit'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'unit', must be one of '%s'", implode("', '", $allowedValues) ); } if (null === $this->container['value']) { $invalidProperties[] = "'value' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets unit. * * @return string */ public function getUnit() { return $this->container['unit']; } /** * Sets unit. * * @param string $unit the unit of weight * * @return $this */ public function setUnit($unit) { $allowedValues = $this->getUnitAllowableValues(); if (!in_array($unit, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'unit', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['unit'] = $unit; return $this; } /** * Gets value. * * @return string */ public function getValue() { return $this->container['value']; } /** * Sets value. * * @param string $value the weight value * * @return $this */ public function setValue($value) { $this->container['value'] = $value; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentAction.php
lib/Models/FulfillmentOutbound/FulfillmentAction.php
<?php /** * FulfillmentAction. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * FulfillmentAction Class Doc Comment. * * @description Specifies whether the fulfillment order should ship now or have an order hold put on it. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentAction { /** * Possible values of this enum. */ const SHIP = 'Ship'; const HOLD = 'Hold'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::SHIP, self::HOLD, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php
lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php
<?php /** * UpdateFulfillmentOrderResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * UpdateFulfillmentOrderResponse Class Doc Comment. * * @description The response schema for the updateFulfillmentOrder operation. * * @author Stefan Neuhaus / ClouSale */ class UpdateFulfillmentOrderResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'UpdateFulfillmentOrderResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/InvalidReturnItem.php
lib/Models/FulfillmentOutbound/InvalidReturnItem.php
<?php /** * InvalidReturnItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * InvalidReturnItem Class Doc Comment. * * @description An item that is invalid for return. * * @author Stefan Neuhaus / ClouSale */ class InvalidReturnItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'InvalidReturnItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_return_item_id' => 'string', 'seller_fulfillment_order_item_id' => 'string', 'invalid_item_reason' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidItemReason', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_return_item_id' => null, 'seller_fulfillment_order_item_id' => null, 'invalid_item_reason' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'seller_return_item_id' => 'sellerReturnItemId', 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', 'invalid_item_reason' => 'invalidItemReason', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_return_item_id' => 'setSellerReturnItemId', 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', 'invalid_item_reason' => 'setInvalidItemReason', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_return_item_id' => 'getSellerReturnItemId', 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', 'invalid_item_reason' => 'getInvalidItemReason', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @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_return_item_id'] = isset($data['seller_return_item_id']) ? $data['seller_return_item_id'] : null; $this->container['seller_fulfillment_order_item_id'] = isset($data['seller_fulfillment_order_item_id']) ? $data['seller_fulfillment_order_item_id'] : null; $this->container['invalid_item_reason'] = isset($data['invalid_item_reason']) ? $data['invalid_item_reason'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_return_item_id']) { $invalidProperties[] = "'seller_return_item_id' can't be null"; } if (null === $this->container['seller_fulfillment_order_item_id']) { $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; } if (null === $this->container['invalid_item_reason']) { $invalidProperties[] = "'invalid_item_reason' 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_return_item_id. * * @return string */ public function getSellerReturnItemId() { return $this->container['seller_return_item_id']; } /** * Sets seller_return_item_id. * * @param string $seller_return_item_id an identifier assigned by the seller to the return item * * @return $this */ public function setSellerReturnItemId($seller_return_item_id) { $this->container['seller_return_item_id'] = $seller_return_item_id; return $this; } /** * Gets seller_fulfillment_order_item_id. * * @return string */ public function getSellerFulfillmentOrderItemId() { return $this->container['seller_fulfillment_order_item_id']; } /** * Sets seller_fulfillment_order_item_id. * * @param string $seller_fulfillment_order_item_id the identifier assigned to the item by the seller when the fulfillment order was created * * @return $this */ public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) { $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; return $this; } /** * Gets invalid_item_reason. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidItemReason */ public function getInvalidItemReason() { return $this->container['invalid_item_reason']; } /** * Sets invalid_item_reason. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidItemReason $invalid_item_reason invalid_item_reason * * @return $this */ public function setInvalidItemReason($invalid_item_reason) { $this->container['invalid_item_reason'] = $invalid_item_reason; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/ShippingSpeedCategoryList.php
lib/Models/FulfillmentOutbound/ShippingSpeedCategoryList.php
<?php /** * ShippingSpeedCategoryList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ShippingSpeedCategoryList Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class ShippingSpeedCategoryList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ShippingSpeedCategoryList'; /** * 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 ShippingSpeedCategory::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/FulfillmentOutbound/CreateFulfillmentOrderItem.php
lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItem.php
<?php /** * CreateFulfillmentOrderItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateFulfillmentOrderItem Class Doc Comment. * * @description Item information for creating a fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentOrderItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateFulfillmentOrderItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_sku' => 'string', 'seller_fulfillment_order_item_id' => 'string', 'quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity', 'gift_message' => 'string', 'displayable_comment' => 'string', 'fulfillment_network_sku' => 'string', 'per_unit_declared_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'per_unit_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'per_unit_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_sku' => null, 'seller_fulfillment_order_item_id' => null, 'quantity' => null, 'gift_message' => null, 'displayable_comment' => null, 'fulfillment_network_sku' => null, 'per_unit_declared_value' => null, 'per_unit_price' => null, 'per_unit_tax' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'seller_sku' => 'sellerSku', 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', 'quantity' => 'quantity', 'gift_message' => 'giftMessage', 'displayable_comment' => 'displayableComment', 'fulfillment_network_sku' => 'fulfillmentNetworkSku', 'per_unit_declared_value' => 'perUnitDeclaredValue', 'per_unit_price' => 'perUnitPrice', 'per_unit_tax' => 'perUnitTax', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_sku' => 'setSellerSku', 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', 'quantity' => 'setQuantity', 'gift_message' => 'setGiftMessage', 'displayable_comment' => 'setDisplayableComment', 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', 'per_unit_declared_value' => 'setPerUnitDeclaredValue', 'per_unit_price' => 'setPerUnitPrice', 'per_unit_tax' => 'setPerUnitTax', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_sku' => 'getSellerSku', 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', 'quantity' => 'getQuantity', 'gift_message' => 'getGiftMessage', 'displayable_comment' => 'getDisplayableComment', 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', 'per_unit_declared_value' => 'getPerUnitDeclaredValue', 'per_unit_price' => 'getPerUnitPrice', 'per_unit_tax' => 'getPerUnitTax', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null; $this->container['seller_fulfillment_order_item_id'] = isset($data['seller_fulfillment_order_item_id']) ? $data['seller_fulfillment_order_item_id'] : null; $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; $this->container['gift_message'] = isset($data['gift_message']) ? $data['gift_message'] : null; $this->container['displayable_comment'] = isset($data['displayable_comment']) ? $data['displayable_comment'] : null; $this->container['fulfillment_network_sku'] = isset($data['fulfillment_network_sku']) ? $data['fulfillment_network_sku'] : null; $this->container['per_unit_declared_value'] = isset($data['per_unit_declared_value']) ? $data['per_unit_declared_value'] : null; $this->container['per_unit_price'] = isset($data['per_unit_price']) ? $data['per_unit_price'] : null; $this->container['per_unit_tax'] = isset($data['per_unit_tax']) ? $data['per_unit_tax'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_sku']) { $invalidProperties[] = "'seller_sku' can't be null"; } if (null === $this->container['seller_fulfillment_order_item_id']) { $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; } if (null === $this->container['quantity']) { $invalidProperties[] = "'quantity' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_sku. * * @return string */ public function getSellerSku() { return $this->container['seller_sku']; } /** * Sets seller_sku. * * @param string $seller_sku the seller SKU of the item * * @return $this */ public function setSellerSku($seller_sku) { $this->container['seller_sku'] = $seller_sku; return $this; } /** * Gets seller_fulfillment_order_item_id. * * @return string */ public function getSellerFulfillmentOrderItemId() { return $this->container['seller_fulfillment_order_item_id']; } /** * Sets seller_fulfillment_order_item_id. * * @param string $seller_fulfillment_order_item_id A fulfillment order item identifier that the seller creates to track fulfillment order items. Used to disambiguate multiple fulfillment items that have the same SellerSKU. For example, the seller might assign different SellerFulfillmentOrderItemId values to two items in a fulfillment order that share the same SellerSKU but have different GiftMessage values. * * @return $this */ public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) { $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; return $this; } /** * Gets quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity */ public function getQuantity() { return $this->container['quantity']; } /** * Sets quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity $quantity quantity * * @return $this */ public function setQuantity($quantity) { $this->container['quantity'] = $quantity; return $this; } /** * Gets gift_message. * * @return string */ public function getGiftMessage() { return $this->container['gift_message']; } /** * Sets gift_message. * * @param string $gift_message a message to the gift recipient, if applicable * * @return $this */ public function setGiftMessage($gift_message) { $this->container['gift_message'] = $gift_message; return $this; } /** * Gets displayable_comment. * * @return string */ public function getDisplayableComment() { return $this->container['displayable_comment']; } /** * Sets displayable_comment. * * @param string $displayable_comment item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip * * @return $this */ public function setDisplayableComment($displayable_comment) { $this->container['displayable_comment'] = $displayable_comment; return $this; } /** * Gets fulfillment_network_sku. * * @return string */ public function getFulfillmentNetworkSku() { return $this->container['fulfillment_network_sku']; } /** * Sets fulfillment_network_sku. * * @param string $fulfillment_network_sku amazon's fulfillment network SKU of the item * * @return $this */ public function setFulfillmentNetworkSku($fulfillment_network_sku) { $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; return $this; } /** * Gets per_unit_declared_value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitDeclaredValue() { return $this->container['per_unit_declared_value']; } /** * Sets per_unit_declared_value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_declared_value per_unit_declared_value * * @return $this */ public function setPerUnitDeclaredValue($per_unit_declared_value) { $this->container['per_unit_declared_value'] = $per_unit_declared_value; return $this; } /** * Gets per_unit_price. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitPrice() { return $this->container['per_unit_price']; } /** * Sets per_unit_price. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_price per_unit_price * * @return $this */ public function setPerUnitPrice($per_unit_price) { $this->container['per_unit_price'] = $per_unit_price; return $this; } /** * Gets per_unit_tax. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitTax() { return $this->container['per_unit_tax']; } /** * Sets per_unit_tax. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_tax per_unit_tax * * @return $this */ public function setPerUnitTax($per_unit_tax) { $this->container['per_unit_tax'] = $per_unit_tax; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/ReturnItemList.php
lib/Models/FulfillmentOutbound/ReturnItemList.php
<?php /** * ReturnItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ReturnItemList Class Doc Comment. * * @description An array of items that Amazon accepted for return. Returns empty if no items were accepted for return. * * @author Stefan Neuhaus / ClouSale */ class ReturnItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ReturnItemList'; /** * 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 ReturnItem::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/FulfillmentOutbound/CurrentStatus.php
lib/Models/FulfillmentOutbound/CurrentStatus.php
<?php /** * CurrentStatus. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * CurrentStatus Class Doc Comment. * * @description The current delivery status of the package. * * @author Stefan Neuhaus / ClouSale */ class CurrentStatus { /** * Possible values of this enum. */ const IN_TRANSIT = 'IN_TRANSIT'; const DELIVERED = 'DELIVERED'; const RETURNING = 'RETURNING'; const RETURNED = 'RETURNED'; const UNDELIVERABLE = 'UNDELIVERABLE'; const DELAYED = 'DELAYED'; const AVAILABLE_FOR_PICKUP = 'AVAILABLE_FOR_PICKUP'; const CUSTOMER_ACTION = 'CUSTOMER_ACTION'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::IN_TRANSIT, self::DELIVERED, self::RETURNING, self::RETURNED, self::UNDELIVERABLE, self::DELAYED, self::AVAILABLE_FOR_PICKUP, self::CUSTOMER_ACTION, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/DeliveryWindowList.php
lib/Models/FulfillmentOutbound/DeliveryWindowList.php
<?php /** * DeliveryWindowList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DeliveryWindowList Class Doc Comment. * * @description An array of delivery windows. * * @author Stefan Neuhaus / ClouSale */ class DeliveryWindowList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DeliveryWindowList'; /** * 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 DeliveryWindow::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/FulfillmentOutbound/GetFeatureSkuResponse.php
lib/Models/FulfillmentOutbound/GetFeatureSkuResponse.php
<?php /** * GetFeatureSkuResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFeatureSkuResponse Class Doc Comment. * * @description The response schema for the getFeatureSKU operation. * * @author Stefan Neuhaus / ClouSale */ class GetFeatureSkuResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFeatureSkuResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeatureSkuResult', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\GetFeatureSkuResult */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeatureSkuResult $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/FulfillmentPolicy.php
lib/Models/FulfillmentOutbound/FulfillmentPolicy.php
<?php /** * FulfillmentPolicy. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * FulfillmentPolicy Class Doc Comment. * * @description The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentPolicy { /** * Possible values of this enum. */ const FILL_OR_KILL = 'FillOrKill'; const FILL_ALL = 'FillAll'; const FILL_ALL_AVAILABLE = 'FillAllAvailable'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::FILL_OR_KILL, self::FILL_ALL, self::FILL_ALL_AVAILABLE, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItemList.php
lib/Models/FulfillmentOutbound/UnfulfillablePreviewItemList.php
<?php /** * UnfulfillablePreviewItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * UnfulfillablePreviewItemList Class Doc Comment. * * @description An array of unfulfillable preview item information. * * @author Stefan Neuhaus / ClouSale */ class UnfulfillablePreviewItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'UnfulfillablePreviewItemList'; /** * 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 UnfulfillablePreviewItem::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/FulfillmentOutbound/ScheduledDeliveryInfo.php
lib/Models/FulfillmentOutbound/ScheduledDeliveryInfo.php
<?php /** * ScheduledDeliveryInfo. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ScheduledDeliveryInfo Class Doc Comment. * * @description Delivery information for a scheduled delivery. * * @author Stefan Neuhaus / ClouSale */ class ScheduledDeliveryInfo implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ScheduledDeliveryInfo'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'delivery_time_zone' => 'string', 'delivery_windows' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\DeliveryWindowList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'delivery_time_zone' => null, 'delivery_windows' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'delivery_time_zone' => 'deliveryTimeZone', 'delivery_windows' => 'deliveryWindows', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'delivery_time_zone' => 'setDeliveryTimeZone', 'delivery_windows' => 'setDeliveryWindows', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'delivery_time_zone' => 'getDeliveryTimeZone', 'delivery_windows' => 'getDeliveryWindows', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['delivery_time_zone'] = isset($data['delivery_time_zone']) ? $data['delivery_time_zone'] : null; $this->container['delivery_windows'] = isset($data['delivery_windows']) ? $data['delivery_windows'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['delivery_time_zone']) { $invalidProperties[] = "'delivery_time_zone' can't be null"; } if (null === $this->container['delivery_windows']) { $invalidProperties[] = "'delivery_windows' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets delivery_time_zone. * * @return string */ public function getDeliveryTimeZone() { return $this->container['delivery_time_zone']; } /** * Sets delivery_time_zone. * * @param string $delivery_time_zone The time zone of the destination address for the fulfillment order preview. Must be an IANA time zone name. Example: Asia/Tokyo. * * @return $this */ public function setDeliveryTimeZone($delivery_time_zone) { $this->container['delivery_time_zone'] = $delivery_time_zone; return $this; } /** * Gets delivery_windows. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\DeliveryWindowList */ public function getDeliveryWindows() { return $this->container['delivery_windows']; } /** * Sets delivery_windows. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\DeliveryWindowList $delivery_windows delivery_windows * * @return $this */ public function setDeliveryWindows($delivery_windows) { $this->container['delivery_windows'] = $delivery_windows; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/CancelFulfillmentOrderResponse.php
lib/Models/FulfillmentOutbound/CancelFulfillmentOrderResponse.php
<?php /** * CancelFulfillmentOrderResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CancelFulfillmentOrderResponse Class Doc Comment. * * @description The response schema for the cancelFulfillmentOrder operation. * * @author Stefan Neuhaus / ClouSale */ class CancelFulfillmentOrderResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CancelFulfillmentOrderResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/FulfillmentOrderItemList.php
lib/Models/FulfillmentOutbound/FulfillmentOrderItemList.php
<?php /** * FulfillmentOrderItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentOrderItemList Class Doc Comment. * * @description An array of fulfillment order item information. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentOrderItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentOrderItemList'; /** * 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 FulfillmentOrderItem::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/FulfillmentOutbound/GetFulfillmentPreviewResponse.php
lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResponse.php
<?php /** * GetFulfillmentPreviewResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFulfillmentPreviewResponse Class Doc Comment. * * @description The response schema for the getFulfillmentPreview operation. * * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFulfillmentPreviewResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewResult', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\GetFulfillmentPreviewResult */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewResult $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/FulfillmentShipmentList.php
lib/Models/FulfillmentOutbound/FulfillmentShipmentList.php
<?php /** * FulfillmentShipmentList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentShipmentList Class Doc Comment. * * @description An array of fulfillment shipment information. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentShipmentList'; /** * 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 FulfillmentShipment::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/FulfillmentOutbound/CreateFulfillmentReturnResponse.php
lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResponse.php
<?php /** * CreateFulfillmentReturnResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateFulfillmentReturnResponse Class Doc Comment. * * @description The response schema for the createFulfillmentReturn operation. * * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentReturnResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateFulfillmentReturnResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnResult', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\CreateFulfillmentReturnResult */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnResult $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/FulfillmentShipment.php
lib/Models/FulfillmentOutbound/FulfillmentShipment.php
<?php /** * FulfillmentShipment. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentShipment Class Doc Comment. * * @description Delivery and item information for a shipment in a fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipment implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentShipment'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'amazon_shipment_id' => 'string', 'fulfillment_center_id' => 'string', 'fulfillment_shipment_status' => 'string', 'shipping_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'estimated_arrival_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'shipping_notes' => 'string[]', 'fulfillment_shipment_item' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentItemList', 'fulfillment_shipment_package' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentPackageList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'amazon_shipment_id' => null, 'fulfillment_center_id' => null, 'fulfillment_shipment_status' => null, 'shipping_date' => null, 'estimated_arrival_date' => null, 'shipping_notes' => null, 'fulfillment_shipment_item' => null, 'fulfillment_shipment_package' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'amazon_shipment_id' => 'amazonShipmentId', 'fulfillment_center_id' => 'fulfillmentCenterId', 'fulfillment_shipment_status' => 'fulfillmentShipmentStatus', 'shipping_date' => 'shippingDate', 'estimated_arrival_date' => 'estimatedArrivalDate', 'shipping_notes' => 'shippingNotes', 'fulfillment_shipment_item' => 'fulfillmentShipmentItem', 'fulfillment_shipment_package' => 'fulfillmentShipmentPackage', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'amazon_shipment_id' => 'setAmazonShipmentId', 'fulfillment_center_id' => 'setFulfillmentCenterId', 'fulfillment_shipment_status' => 'setFulfillmentShipmentStatus', 'shipping_date' => 'setShippingDate', 'estimated_arrival_date' => 'setEstimatedArrivalDate', 'shipping_notes' => 'setShippingNotes', 'fulfillment_shipment_item' => 'setFulfillmentShipmentItem', 'fulfillment_shipment_package' => 'setFulfillmentShipmentPackage', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'amazon_shipment_id' => 'getAmazonShipmentId', 'fulfillment_center_id' => 'getFulfillmentCenterId', 'fulfillment_shipment_status' => 'getFulfillmentShipmentStatus', 'shipping_date' => 'getShippingDate', 'estimated_arrival_date' => 'getEstimatedArrivalDate', 'shipping_notes' => 'getShippingNotes', 'fulfillment_shipment_item' => 'getFulfillmentShipmentItem', 'fulfillment_shipment_package' => 'getFulfillmentShipmentPackage', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 FULFILLMENT_SHIPMENT_STATUS_PENDING = 'PENDING'; const FULFILLMENT_SHIPMENT_STATUS_SHIPPED = 'SHIPPED'; const FULFILLMENT_SHIPMENT_STATUS_CANCELLED_BY_FULFILLER = 'CANCELLED_BY_FULFILLER'; const FULFILLMENT_SHIPMENT_STATUS_CANCELLED_BY_SELLER = 'CANCELLED_BY_SELLER'; /** * Gets allowable values of the enum. * * @return string[] */ public function getFulfillmentShipmentStatusAllowableValues() { return [ self::FULFILLMENT_SHIPMENT_STATUS_PENDING, self::FULFILLMENT_SHIPMENT_STATUS_SHIPPED, self::FULFILLMENT_SHIPMENT_STATUS_CANCELLED_BY_FULFILLER, self::FULFILLMENT_SHIPMENT_STATUS_CANCELLED_BY_SELLER, ]; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['amazon_shipment_id'] = isset($data['amazon_shipment_id']) ? $data['amazon_shipment_id'] : null; $this->container['fulfillment_center_id'] = isset($data['fulfillment_center_id']) ? $data['fulfillment_center_id'] : null; $this->container['fulfillment_shipment_status'] = isset($data['fulfillment_shipment_status']) ? $data['fulfillment_shipment_status'] : null; $this->container['shipping_date'] = isset($data['shipping_date']) ? $data['shipping_date'] : null; $this->container['estimated_arrival_date'] = isset($data['estimated_arrival_date']) ? $data['estimated_arrival_date'] : null; $this->container['shipping_notes'] = isset($data['shipping_notes']) ? $data['shipping_notes'] : null; $this->container['fulfillment_shipment_item'] = isset($data['fulfillment_shipment_item']) ? $data['fulfillment_shipment_item'] : null; $this->container['fulfillment_shipment_package'] = isset($data['fulfillment_shipment_package']) ? $data['fulfillment_shipment_package'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['amazon_shipment_id']) { $invalidProperties[] = "'amazon_shipment_id' can't be null"; } if (null === $this->container['fulfillment_center_id']) { $invalidProperties[] = "'fulfillment_center_id' can't be null"; } if (null === $this->container['fulfillment_shipment_status']) { $invalidProperties[] = "'fulfillment_shipment_status' can't be null"; } $allowedValues = $this->getFulfillmentShipmentStatusAllowableValues(); if (!is_null($this->container['fulfillment_shipment_status']) && !in_array($this->container['fulfillment_shipment_status'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'fulfillment_shipment_status', must be one of '%s'", implode("', '", $allowedValues) ); } if (null === $this->container['fulfillment_shipment_item']) { $invalidProperties[] = "'fulfillment_shipment_item' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets amazon_shipment_id. * * @return string */ public function getAmazonShipmentId() { return $this->container['amazon_shipment_id']; } /** * Sets amazon_shipment_id. * * @param string $amazon_shipment_id a shipment identifier assigned by Amazon * * @return $this */ public function setAmazonShipmentId($amazon_shipment_id) { $this->container['amazon_shipment_id'] = $amazon_shipment_id; return $this; } /** * Gets fulfillment_center_id. * * @return string */ public function getFulfillmentCenterId() { return $this->container['fulfillment_center_id']; } /** * Sets fulfillment_center_id. * * @param string $fulfillment_center_id an identifier for the fulfillment center that the shipment will be sent from * * @return $this */ public function setFulfillmentCenterId($fulfillment_center_id) { $this->container['fulfillment_center_id'] = $fulfillment_center_id; return $this; } /** * Gets fulfillment_shipment_status. * * @return string */ public function getFulfillmentShipmentStatus() { return $this->container['fulfillment_shipment_status']; } /** * Sets fulfillment_shipment_status. * * @param string $fulfillment_shipment_status the current status of the shipment * * @return $this */ public function setFulfillmentShipmentStatus($fulfillment_shipment_status) { $allowedValues = $this->getFulfillmentShipmentStatusAllowableValues(); if (!in_array($fulfillment_shipment_status, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'fulfillment_shipment_status', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['fulfillment_shipment_status'] = $fulfillment_shipment_status; return $this; } /** * Gets shipping_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getShippingDate() { return $this->container['shipping_date']; } /** * Sets shipping_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $shipping_date shipping_date * * @return $this */ public function setShippingDate($shipping_date) { $this->container['shipping_date'] = $shipping_date; return $this; } /** * Gets estimated_arrival_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getEstimatedArrivalDate() { return $this->container['estimated_arrival_date']; } /** * Sets estimated_arrival_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $estimated_arrival_date estimated_arrival_date * * @return $this */ public function setEstimatedArrivalDate($estimated_arrival_date) { $this->container['estimated_arrival_date'] = $estimated_arrival_date; return $this; } /** * Gets shipping_notes. * * @return string[] */ public function getShippingNotes() { return $this->container['shipping_notes']; } /** * Sets shipping_notes. * * @param string[] $shipping_notes Provides additional insight into shipment timeline. Primairly used to communicate that actual delivery dates aren't available. * * @return $this */ public function setShippingNotes($shipping_notes) { $this->container['shipping_notes'] = $shipping_notes; return $this; } /** * Gets fulfillment_shipment_item. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentItemList */ public function getFulfillmentShipmentItem() { return $this->container['fulfillment_shipment_item']; } /** * Sets fulfillment_shipment_item. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentItemList $fulfillment_shipment_item fulfillment_shipment_item * * @return $this */ public function setFulfillmentShipmentItem($fulfillment_shipment_item) { $this->container['fulfillment_shipment_item'] = $fulfillment_shipment_item; return $this; } /** * Gets fulfillment_shipment_package. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentPackageList */ public function getFulfillmentShipmentPackage() { return $this->container['fulfillment_shipment_package']; } /** * Sets fulfillment_shipment_package. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentPackageList $fulfillment_shipment_package fulfillment_shipment_package * * @return $this */ public function setFulfillmentShipmentPackage($fulfillment_shipment_package) { $this->container['fulfillment_shipment_package'] = $fulfillment_shipment_package; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/GetFeatureInventoryResult.php
lib/Models/FulfillmentOutbound/GetFeatureInventoryResult.php
<?php /** * GetFeatureInventoryResult. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFeatureInventoryResult Class Doc Comment. * * @description The payload for the getEligibileInventory operation. * * @author Stefan Neuhaus / ClouSale */ class GetFeatureInventoryResult implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFeatureInventoryResult'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'marketplace_id' => 'string', 'feature_name' => 'string', 'next_token' => 'string', 'feature_skus' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSku[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'marketplace_id' => null, 'feature_name' => null, 'next_token' => null, 'feature_skus' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return 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', 'feature_name' => 'featureName', 'next_token' => 'nextToken', 'feature_skus' => 'featureSkus', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'marketplace_id' => 'setMarketplaceId', 'feature_name' => 'setFeatureName', 'next_token' => 'setNextToken', 'feature_skus' => 'setFeatureSkus', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'marketplace_id' => 'getMarketplaceId', 'feature_name' => 'getFeatureName', 'next_token' => 'getNextToken', 'feature_skus' => 'getFeatureSkus', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @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['feature_name'] = isset($data['feature_name']) ? $data['feature_name'] : null; $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; $this->container['feature_skus'] = isset($data['feature_skus']) ? $data['feature_skus'] : 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['feature_name']) { $invalidProperties[] = "'feature_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 marketplace_id. * * @return string */ public function getMarketplaceId() { return $this->container['marketplace_id']; } /** * Sets marketplace_id. * * @param string $marketplace_id the requested marketplace * * @return $this */ public function setMarketplaceId($marketplace_id) { $this->container['marketplace_id'] = $marketplace_id; return $this; } /** * Gets feature_name. * * @return string */ public function getFeatureName() { return $this->container['feature_name']; } /** * Sets feature_name. * * @param string $feature_name the name of the feature * * @return $this */ public function setFeatureName($feature_name) { $this->container['feature_name'] = $feature_name; return $this; } /** * Gets next_token. * * @return string */ public function getNextToken() { return $this->container['next_token']; } /** * Sets next_token. * * @param string $next_token when present and not empty, pass this string token in the next request to return the next response page * * @return $this */ public function setNextToken($next_token) { $this->container['next_token'] = $next_token; return $this; } /** * Gets feature_skus. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSku[] */ public function getFeatureSkus() { return $this->container['feature_skus']; } /** * Sets feature_skus. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSku[] $feature_skus an array of SKUs eligible for this feature and the quantity available * * @return $this */ public function setFeatureSkus($feature_skus) { $this->container['feature_skus'] = $feature_skus; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentReturnItemStatus.php
lib/Models/FulfillmentOutbound/FulfillmentReturnItemStatus.php
<?php /** * FulfillmentReturnItemStatus. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * FulfillmentReturnItemStatus Class Doc Comment. * * @description Indicates if the return item has been processed by a fulfillment center. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentReturnItemStatus { /** * Possible values of this enum. */ const _NEW = 'New'; const PROCESSED = 'Processed'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::_NEW, self::PROCESSED, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipmentList.php
lib/Models/FulfillmentOutbound/FulfillmentPreviewShipmentList.php
<?php /** * FulfillmentPreviewShipmentList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentPreviewShipmentList Class Doc Comment. * * @description An array of fulfillment preview shipment information. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewShipmentList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentPreviewShipmentList'; /** * 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 FulfillmentPreviewShipment::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/FulfillmentOutbound/CreateReturnItemList.php
lib/Models/FulfillmentOutbound/CreateReturnItemList.php
<?php /** * CreateReturnItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateReturnItemList Class Doc Comment. * * @description An array of items to be returned. * * @author Stefan Neuhaus / ClouSale */ class CreateReturnItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateReturnItemList'; /** * 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 CreateReturnItem::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/FulfillmentOutbound/TrackingEvent.php
lib/Models/FulfillmentOutbound/TrackingEvent.php
<?php /** * TrackingEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TrackingEvent Class Doc Comment. * * @description Information for tracking package deliveries. * * @author Stefan Neuhaus / ClouSale */ class TrackingEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TrackingEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'event_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'event_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\TrackingAddress', 'event_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\EventCode', 'event_description' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'event_date' => null, 'event_address' => null, 'event_code' => null, 'event_description' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'event_date' => 'eventDate', 'event_address' => 'eventAddress', 'event_code' => 'eventCode', 'event_description' => 'eventDescription', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'event_date' => 'setEventDate', 'event_address' => 'setEventAddress', 'event_code' => 'setEventCode', 'event_description' => 'setEventDescription', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'event_date' => 'getEventDate', 'event_address' => 'getEventAddress', 'event_code' => 'getEventCode', 'event_description' => 'getEventDescription', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['event_date'] = isset($data['event_date']) ? $data['event_date'] : null; $this->container['event_address'] = isset($data['event_address']) ? $data['event_address'] : null; $this->container['event_code'] = isset($data['event_code']) ? $data['event_code'] : null; $this->container['event_description'] = isset($data['event_description']) ? $data['event_description'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['event_date']) { $invalidProperties[] = "'event_date' can't be null"; } if (null === $this->container['event_address']) { $invalidProperties[] = "'event_address' can't be null"; } if (null === $this->container['event_code']) { $invalidProperties[] = "'event_code' can't be null"; } if (null === $this->container['event_description']) { $invalidProperties[] = "'event_description' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets event_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getEventDate() { return $this->container['event_date']; } /** * Sets event_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $event_date event_date * * @return $this */ public function setEventDate($event_date) { $this->container['event_date'] = $event_date; return $this; } /** * Gets event_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\TrackingAddress */ public function getEventAddress() { return $this->container['event_address']; } /** * Sets event_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\TrackingAddress $event_address event_address * * @return $this */ public function setEventAddress($event_address) { $this->container['event_address'] = $event_address; return $this; } /** * Gets event_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\EventCode */ public function getEventCode() { return $this->container['event_code']; } /** * Sets event_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\EventCode $event_code event_code * * @return $this */ public function setEventCode($event_code) { $this->container['event_code'] = $event_code; return $this; } /** * Gets event_description. * * @return string */ public function getEventDescription() { return $this->container['event_description']; } /** * Sets event_description. * * @param string $event_description a description for the corresponding event code * * @return $this */ public function setEventDescription($event_description) { $this->container['event_description'] = $event_description; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/GetFeaturesResponse.php
lib/Models/FulfillmentOutbound/GetFeaturesResponse.php
<?php /** * GetFeaturesResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFeaturesResponse Class Doc Comment. * * @description The response schema for the getFeatures operation. * * @author Stefan Neuhaus / ClouSale */ class GetFeaturesResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFeaturesResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeaturesResult', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\GetFeaturesResult */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeaturesResult $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/FulfillmentPreviewItem.php
lib/Models/FulfillmentOutbound/FulfillmentPreviewItem.php
<?php /** * FulfillmentPreviewItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentPreviewItem Class Doc Comment. * * @description Item information for a shipment in a fulfillment order preview. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentPreviewItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_sku' => 'string', 'quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity', 'seller_fulfillment_order_item_id' => 'string', 'estimated_shipping_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Weight', 'shipping_weight_calculation_method' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_sku' => null, 'quantity' => null, 'seller_fulfillment_order_item_id' => null, 'estimated_shipping_weight' => null, 'shipping_weight_calculation_method' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'seller_sku' => 'sellerSku', 'quantity' => 'quantity', 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', 'estimated_shipping_weight' => 'estimatedShippingWeight', 'shipping_weight_calculation_method' => 'shippingWeightCalculationMethod', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_sku' => 'setSellerSku', 'quantity' => 'setQuantity', 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', 'estimated_shipping_weight' => 'setEstimatedShippingWeight', 'shipping_weight_calculation_method' => 'setShippingWeightCalculationMethod', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_sku' => 'getSellerSku', 'quantity' => 'getQuantity', 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', 'estimated_shipping_weight' => 'getEstimatedShippingWeight', 'shipping_weight_calculation_method' => 'getShippingWeightCalculationMethod', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of 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 SHIPPING_WEIGHT_CALCULATION_METHOD_PACKAGE = 'Package'; const SHIPPING_WEIGHT_CALCULATION_METHOD_DIMENSIONAL = 'Dimensional'; /** * Gets allowable values of the enum. * * @return string[] */ public function getShippingWeightCalculationMethodAllowableValues() { return [ self::SHIPPING_WEIGHT_CALCULATION_METHOD_PACKAGE, self::SHIPPING_WEIGHT_CALCULATION_METHOD_DIMENSIONAL, ]; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null; $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; $this->container['seller_fulfillment_order_item_id'] = isset($data['seller_fulfillment_order_item_id']) ? $data['seller_fulfillment_order_item_id'] : null; $this->container['estimated_shipping_weight'] = isset($data['estimated_shipping_weight']) ? $data['estimated_shipping_weight'] : null; $this->container['shipping_weight_calculation_method'] = isset($data['shipping_weight_calculation_method']) ? $data['shipping_weight_calculation_method'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_sku']) { $invalidProperties[] = "'seller_sku' can't be null"; } if (null === $this->container['quantity']) { $invalidProperties[] = "'quantity' can't be null"; } if (null === $this->container['seller_fulfillment_order_item_id']) { $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; } $allowedValues = $this->getShippingWeightCalculationMethodAllowableValues(); if (!is_null($this->container['shipping_weight_calculation_method']) && !in_array($this->container['shipping_weight_calculation_method'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'shipping_weight_calculation_method', 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 seller_sku. * * @return string */ public function getSellerSku() { return $this->container['seller_sku']; } /** * Sets seller_sku. * * @param string $seller_sku the seller SKU of the item * * @return $this */ public function setSellerSku($seller_sku) { $this->container['seller_sku'] = $seller_sku; return $this; } /** * Gets quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity */ public function getQuantity() { return $this->container['quantity']; } /** * Sets quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity $quantity quantity * * @return $this */ public function setQuantity($quantity) { $this->container['quantity'] = $quantity; return $this; } /** * Gets seller_fulfillment_order_item_id. * * @return string */ public function getSellerFulfillmentOrderItemId() { return $this->container['seller_fulfillment_order_item_id']; } /** * Sets seller_fulfillment_order_item_id. * * @param string $seller_fulfillment_order_item_id a fulfillment order item identifier that the seller created with a call to the createFulfillmentOrder operation * * @return $this */ public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) { $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; return $this; } /** * Gets estimated_shipping_weight. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Weight */ public function getEstimatedShippingWeight() { return $this->container['estimated_shipping_weight']; } /** * Sets estimated_shipping_weight. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Weight $estimated_shipping_weight estimated_shipping_weight * * @return $this */ public function setEstimatedShippingWeight($estimated_shipping_weight) { $this->container['estimated_shipping_weight'] = $estimated_shipping_weight; return $this; } /** * Gets shipping_weight_calculation_method. * * @return string */ public function getShippingWeightCalculationMethod() { return $this->container['shipping_weight_calculation_method']; } /** * Sets shipping_weight_calculation_method. * * @param string $shipping_weight_calculation_method the method used to calculate the estimated shipping weight * * @return $this */ public function setShippingWeightCalculationMethod($shipping_weight_calculation_method) { $allowedValues = $this->getShippingWeightCalculationMethodAllowableValues(); if (!is_null($shipping_weight_calculation_method) && !in_array($shipping_weight_calculation_method, $allowedValues, true)) { throw new \InvalidArgumentException(sprintf("Invalid value for 'shipping_weight_calculation_method', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['shipping_weight_calculation_method'] = $shipping_weight_calculation_method; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php
lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php
<?php /** * ListAllFulfillmentOrdersResult. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ListAllFulfillmentOrdersResult Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class ListAllFulfillmentOrdersResult implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ListAllFulfillmentOrdersResult'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'next_token' => 'string', 'fulfillment_orders' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrder[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'next_token' => null, 'fulfillment_orders' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'next_token' => 'nextToken', 'fulfillment_orders' => 'fulfillmentOrders', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'next_token' => 'setNextToken', 'fulfillment_orders' => 'setFulfillmentOrders', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'next_token' => 'getNextToken', 'fulfillment_orders' => 'getFulfillmentOrders', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; $this->container['fulfillment_orders'] = isset($data['fulfillment_orders']) ? $data['fulfillment_orders'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets next_token. * * @return string */ public function getNextToken() { return $this->container['next_token']; } /** * Sets next_token. * * @param string $next_token when present and not empty, pass this string token in the next request to return the next response page * * @return $this */ public function setNextToken($next_token) { $this->container['next_token'] = $next_token; return $this; } /** * Gets fulfillment_orders. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrder[] */ public function getFulfillmentOrders() { return $this->container['fulfillment_orders']; } /** * Sets fulfillment_orders. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrder[] $fulfillment_orders an array of fulfillment order information * * @return $this */ public function setFulfillmentOrders($fulfillment_orders) { $this->container['fulfillment_orders'] = $fulfillment_orders; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackageList.php
lib/Models/FulfillmentOutbound/FulfillmentShipmentPackageList.php
<?php /** * FulfillmentShipmentPackageList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentShipmentPackageList Class Doc Comment. * * @description An array of fulfillment shipment package information. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentPackageList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentShipmentPackageList'; /** * 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 FulfillmentShipmentPackage::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/FulfillmentOutbound/ShippingSpeedCategory.php
lib/Models/FulfillmentOutbound/ShippingSpeedCategory.php
<?php /** * ShippingSpeedCategory. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * ShippingSpeedCategory Class Doc Comment. * * @description The shipping method used for the fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class ShippingSpeedCategory { /** * Possible values of this enum. */ const STANDARD = 'Standard'; const EXPEDITED = 'Expedited'; const PRIORITY = 'Priority'; const SCHEDULED_DELIVERY = 'ScheduledDelivery'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::STANDARD, self::EXPEDITED, self::PRIORITY, self::SCHEDULED_DELIVERY, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/ReturnAuthorization.php
lib/Models/FulfillmentOutbound/ReturnAuthorization.php
<?php /** * ReturnAuthorization. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ReturnAuthorization Class Doc Comment. * * @description Return authorization information for items accepted for return. * * @author Stefan Neuhaus / ClouSale */ class ReturnAuthorization implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ReturnAuthorization'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'return_authorization_id' => 'string', 'fulfillment_center_id' => 'string', 'return_to_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address', 'amazon_rma_id' => 'string', 'rma_page_url' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'return_authorization_id' => null, 'fulfillment_center_id' => null, 'return_to_address' => null, 'amazon_rma_id' => null, 'rma_page_url' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'return_authorization_id' => 'returnAuthorizationId', 'fulfillment_center_id' => 'fulfillmentCenterId', 'return_to_address' => 'returnToAddress', 'amazon_rma_id' => 'amazonRmaId', 'rma_page_url' => 'rmaPageURL', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'return_authorization_id' => 'setReturnAuthorizationId', 'fulfillment_center_id' => 'setFulfillmentCenterId', 'return_to_address' => 'setReturnToAddress', 'amazon_rma_id' => 'setAmazonRmaId', 'rma_page_url' => 'setRmaPageUrl', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'return_authorization_id' => 'getReturnAuthorizationId', 'fulfillment_center_id' => 'getFulfillmentCenterId', 'return_to_address' => 'getReturnToAddress', 'amazon_rma_id' => 'getAmazonRmaId', 'rma_page_url' => 'getRmaPageUrl', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['return_authorization_id'] = isset($data['return_authorization_id']) ? $data['return_authorization_id'] : null; $this->container['fulfillment_center_id'] = isset($data['fulfillment_center_id']) ? $data['fulfillment_center_id'] : null; $this->container['return_to_address'] = isset($data['return_to_address']) ? $data['return_to_address'] : null; $this->container['amazon_rma_id'] = isset($data['amazon_rma_id']) ? $data['amazon_rma_id'] : null; $this->container['rma_page_url'] = isset($data['rma_page_url']) ? $data['rma_page_url'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['return_authorization_id']) { $invalidProperties[] = "'return_authorization_id' can't be null"; } if (null === $this->container['fulfillment_center_id']) { $invalidProperties[] = "'fulfillment_center_id' can't be null"; } if (null === $this->container['return_to_address']) { $invalidProperties[] = "'return_to_address' can't be null"; } if (null === $this->container['amazon_rma_id']) { $invalidProperties[] = "'amazon_rma_id' can't be null"; } if (null === $this->container['rma_page_url']) { $invalidProperties[] = "'rma_page_url' 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 return_authorization_id. * * @return string */ public function getReturnAuthorizationId() { return $this->container['return_authorization_id']; } /** * Sets return_authorization_id. * * @param string $return_authorization_id An identifier for the return authorization. This identifier associates return items with the return authorization used to return them. * * @return $this */ public function setReturnAuthorizationId($return_authorization_id) { $this->container['return_authorization_id'] = $return_authorization_id; return $this; } /** * Gets fulfillment_center_id. * * @return string */ public function getFulfillmentCenterId() { return $this->container['fulfillment_center_id']; } /** * Sets fulfillment_center_id. * * @param string $fulfillment_center_id an identifier for the Amazon fulfillment center that the return items should be sent to * * @return $this */ public function setFulfillmentCenterId($fulfillment_center_id) { $this->container['fulfillment_center_id'] = $fulfillment_center_id; return $this; } /** * Gets return_to_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address */ public function getReturnToAddress() { return $this->container['return_to_address']; } /** * Sets return_to_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address $return_to_address return_to_address * * @return $this */ public function setReturnToAddress($return_to_address) { $this->container['return_to_address'] = $return_to_address; return $this; } /** * Gets amazon_rma_id. * * @return string */ public function getAmazonRmaId() { return $this->container['amazon_rma_id']; } /** * Sets amazon_rma_id. * * @param string $amazon_rma_id the return merchandise authorization (RMA) that Amazon needs to process the return * * @return $this */ public function setAmazonRmaId($amazon_rma_id) { $this->container['amazon_rma_id'] = $amazon_rma_id; return $this; } /** * Gets rma_page_url. * * @return string */ public function getRmaPageUrl() { return $this->container['rma_page_url']; } /** * Sets rma_page_url. * * @param string $rma_page_url A URL for a web page that contains the return authorization barcode and the mailing label. This does not include pre-paid shipping. * * @return $this */ public function setRmaPageUrl($rma_page_url) { $this->container['rma_page_url'] = $rma_page_url; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php
lib/Models/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php
<?php /** * GetPackageTrackingDetailsResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetPackageTrackingDetailsResponse Class Doc Comment. * * @description The response schema for the getPackageTrackingDetails operation. * * @author Stefan Neuhaus / ClouSale */ class GetPackageTrackingDetailsResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetPackageTrackingDetailsResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\PackageTrackingDetails', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\PackageTrackingDetails */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\PackageTrackingDetails $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/CreateFulfillmentOrderItemList.php
lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItemList.php
<?php /** * CreateFulfillmentOrderItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateFulfillmentOrderItemList Class Doc Comment. * * @description An array of item information for creating a fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentOrderItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateFulfillmentOrderItemList'; /** * 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 CreateFulfillmentOrderItem::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/FulfillmentOutbound/GetFulfillmentPreviewRequest.php
lib/Models/FulfillmentOutbound/GetFulfillmentPreviewRequest.php
<?php /** * GetFulfillmentPreviewRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFulfillmentPreviewRequest Class Doc Comment. * * @description The request body schema for the getFulfillmentPreview operation. * * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFulfillmentPreviewRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'marketplace_id' => 'string', 'address' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address', 'items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewItemList', 'shipping_speed_categories' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategoryList', 'include_cod_fulfillment_preview' => 'bool', 'include_delivery_windows' => 'bool', 'feature_constraints' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'marketplace_id' => null, 'address' => null, 'items' => null, 'shipping_speed_categories' => null, 'include_cod_fulfillment_preview' => null, 'include_delivery_windows' => null, 'feature_constraints' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return 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', 'address' => 'address', 'items' => 'items', 'shipping_speed_categories' => 'shippingSpeedCategories', 'include_cod_fulfillment_preview' => 'includeCODFulfillmentPreview', 'include_delivery_windows' => 'includeDeliveryWindows', 'feature_constraints' => 'featureConstraints', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'marketplace_id' => 'setMarketplaceId', 'address' => 'setAddress', 'items' => 'setItems', 'shipping_speed_categories' => 'setShippingSpeedCategories', 'include_cod_fulfillment_preview' => 'setIncludeCodFulfillmentPreview', 'include_delivery_windows' => 'setIncludeDeliveryWindows', 'feature_constraints' => 'setFeatureConstraints', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'marketplace_id' => 'getMarketplaceId', 'address' => 'getAddress', 'items' => 'getItems', 'shipping_speed_categories' => 'getShippingSpeedCategories', 'include_cod_fulfillment_preview' => 'getIncludeCodFulfillmentPreview', 'include_delivery_windows' => 'getIncludeDeliveryWindows', 'feature_constraints' => 'getFeatureConstraints', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @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['address'] = isset($data['address']) ? $data['address'] : null; $this->container['items'] = isset($data['items']) ? $data['items'] : null; $this->container['shipping_speed_categories'] = isset($data['shipping_speed_categories']) ? $data['shipping_speed_categories'] : null; $this->container['include_cod_fulfillment_preview'] = isset($data['include_cod_fulfillment_preview']) ? $data['include_cod_fulfillment_preview'] : null; $this->container['include_delivery_windows'] = isset($data['include_delivery_windows']) ? $data['include_delivery_windows'] : null; $this->container['feature_constraints'] = isset($data['feature_constraints']) ? $data['feature_constraints'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['address']) { $invalidProperties[] = "'address' can't be null"; } if (null === $this->container['items']) { $invalidProperties[] = "'items' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets marketplace_id. * * @return string */ public function getMarketplaceId() { return $this->container['marketplace_id']; } /** * Sets marketplace_id. * * @param string $marketplace_id the marketplace the fulfillment order is placed against * * @return $this */ public function setMarketplaceId($marketplace_id) { $this->container['marketplace_id'] = $marketplace_id; return $this; } /** * Gets address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address */ public function getAddress() { return $this->container['address']; } /** * Sets address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address $address address * * @return $this */ public function setAddress($address) { $this->container['address'] = $address; return $this; } /** * Gets items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewItemList */ public function getItems() { return $this->container['items']; } /** * Sets items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewItemList $items items * * @return $this */ public function setItems($items) { $this->container['items'] = $items; return $this; } /** * Gets shipping_speed_categories. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategoryList */ public function getShippingSpeedCategories() { return $this->container['shipping_speed_categories']; } /** * Sets shipping_speed_categories. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategoryList $shipping_speed_categories shipping_speed_categories * * @return $this */ public function setShippingSpeedCategories($shipping_speed_categories) { $this->container['shipping_speed_categories'] = $shipping_speed_categories; return $this; } /** * Gets include_cod_fulfillment_preview. * * @return bool */ public function getIncludeCodFulfillmentPreview() { return $this->container['include_cod_fulfillment_preview']; } /** * Sets include_cod_fulfillment_preview. * * @param bool $include_cod_fulfillment_preview Specifies whether to return fulfillment order previews that are for COD (Cash On Delivery). Possible values: * true - Returns all fulfillment order previews (both for COD and not for COD). * false - Returns only fulfillment order previews that are not for COD. * * @return $this */ public function setIncludeCodFulfillmentPreview($include_cod_fulfillment_preview) { $this->container['include_cod_fulfillment_preview'] = $include_cod_fulfillment_preview; return $this; } /** * Gets include_delivery_windows. * * @return bool */ public function getIncludeDeliveryWindows() { return $this->container['include_delivery_windows']; } /** * Sets include_delivery_windows. * * @param bool $include_delivery_windows Specifies whether to return the ScheduledDeliveryInfo response object, which contains the available delivery windows for a Scheduled Delivery. The ScheduledDeliveryInfo response object can only be returned for fulfillment order previews with ShippingSpeedCategories = ScheduledDelivery. * * @return $this */ public function setIncludeDeliveryWindows($include_delivery_windows) { $this->container['include_delivery_windows'] = $include_delivery_windows; return $this; } /** * Gets feature_constraints. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[] */ public function getFeatureConstraints() { return $this->container['feature_constraints']; } /** * Sets feature_constraints. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[] $feature_constraints a list of features and their fulfillment policies to apply to the order * * @return $this */ public function setFeatureConstraints($feature_constraints) { $this->container['feature_constraints'] = $feature_constraints; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/StringList.php
lib/Models/FulfillmentOutbound/StringList.php
<?php /** * StringList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * StringList Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class StringList implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'StringList'; /** * 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/FulfillmentOutbound/GetFulfillmentOrderResult.php
lib/Models/FulfillmentOutbound/GetFulfillmentOrderResult.php
<?php /** * GetFulfillmentOrderResult. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFulfillmentOrderResult Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentOrderResult implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFulfillmentOrderResult'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'fulfillment_order' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrder', 'fulfillment_order_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrderItemList', 'fulfillment_shipments' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentList', 'return_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemList', 'return_authorizations' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnAuthorizationList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'fulfillment_order' => null, 'fulfillment_order_items' => null, 'fulfillment_shipments' => null, 'return_items' => null, 'return_authorizations' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'fulfillment_order' => 'fulfillmentOrder', 'fulfillment_order_items' => 'fulfillmentOrderItems', 'fulfillment_shipments' => 'fulfillmentShipments', 'return_items' => 'returnItems', 'return_authorizations' => 'returnAuthorizations', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'fulfillment_order' => 'setFulfillmentOrder', 'fulfillment_order_items' => 'setFulfillmentOrderItems', 'fulfillment_shipments' => 'setFulfillmentShipments', 'return_items' => 'setReturnItems', 'return_authorizations' => 'setReturnAuthorizations', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'fulfillment_order' => 'getFulfillmentOrder', 'fulfillment_order_items' => 'getFulfillmentOrderItems', 'fulfillment_shipments' => 'getFulfillmentShipments', 'return_items' => 'getReturnItems', 'return_authorizations' => 'getReturnAuthorizations', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['fulfillment_order'] = isset($data['fulfillment_order']) ? $data['fulfillment_order'] : null; $this->container['fulfillment_order_items'] = isset($data['fulfillment_order_items']) ? $data['fulfillment_order_items'] : null; $this->container['fulfillment_shipments'] = isset($data['fulfillment_shipments']) ? $data['fulfillment_shipments'] : null; $this->container['return_items'] = isset($data['return_items']) ? $data['return_items'] : null; $this->container['return_authorizations'] = isset($data['return_authorizations']) ? $data['return_authorizations'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['fulfillment_order']) { $invalidProperties[] = "'fulfillment_order' can't be null"; } if (null === $this->container['fulfillment_order_items']) { $invalidProperties[] = "'fulfillment_order_items' can't be null"; } if (null === $this->container['return_items']) { $invalidProperties[] = "'return_items' can't be null"; } if (null === $this->container['return_authorizations']) { $invalidProperties[] = "'return_authorizations' 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 fulfillment_order. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrder */ public function getFulfillmentOrder() { return $this->container['fulfillment_order']; } /** * Sets fulfillment_order. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrder $fulfillment_order fulfillment_order * * @return $this */ public function setFulfillmentOrder($fulfillment_order) { $this->container['fulfillment_order'] = $fulfillment_order; return $this; } /** * Gets fulfillment_order_items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrderItemList */ public function getFulfillmentOrderItems() { return $this->container['fulfillment_order_items']; } /** * Sets fulfillment_order_items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentOrderItemList $fulfillment_order_items fulfillment_order_items * * @return $this */ public function setFulfillmentOrderItems($fulfillment_order_items) { $this->container['fulfillment_order_items'] = $fulfillment_order_items; return $this; } /** * Gets fulfillment_shipments. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentList */ public function getFulfillmentShipments() { return $this->container['fulfillment_shipments']; } /** * Sets fulfillment_shipments. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentShipmentList $fulfillment_shipments fulfillment_shipments * * @return $this */ public function setFulfillmentShipments($fulfillment_shipments) { $this->container['fulfillment_shipments'] = $fulfillment_shipments; return $this; } /** * Gets return_items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemList */ public function getReturnItems() { return $this->container['return_items']; } /** * Sets return_items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemList $return_items return_items * * @return $this */ public function setReturnItems($return_items) { $this->container['return_items'] = $return_items; return $this; } /** * Gets return_authorizations. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnAuthorizationList */ public function getReturnAuthorizations() { return $this->container['return_authorizations']; } /** * Sets return_authorizations. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnAuthorizationList $return_authorizations return_authorizations * * @return $this */ public function setReturnAuthorizations($return_authorizations) { $this->container['return_authorizations'] = $return_authorizations; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/Error.php
lib/Models/FulfillmentOutbound/Error.php
<?php /** * Error. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; 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 * * @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/FulfillmentOutbound/CreateReturnItem.php
lib/Models/FulfillmentOutbound/CreateReturnItem.php
<?php /** * CreateReturnItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateReturnItem Class Doc Comment. * * @description An item that Amazon accepted for return. * * @author Stefan Neuhaus / ClouSale */ class CreateReturnItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateReturnItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_return_item_id' => 'string', 'seller_fulfillment_order_item_id' => 'string', 'amazon_shipment_id' => 'string', 'return_reason_code' => 'string', 'return_comment' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_return_item_id' => null, 'seller_fulfillment_order_item_id' => null, 'amazon_shipment_id' => null, 'return_reason_code' => null, 'return_comment' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return 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_return_item_id' => 'sellerReturnItemId', 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', 'amazon_shipment_id' => 'amazonShipmentId', 'return_reason_code' => 'returnReasonCode', 'return_comment' => 'returnComment', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_return_item_id' => 'setSellerReturnItemId', 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', 'amazon_shipment_id' => 'setAmazonShipmentId', 'return_reason_code' => 'setReturnReasonCode', 'return_comment' => 'setReturnComment', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_return_item_id' => 'getSellerReturnItemId', 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', 'amazon_shipment_id' => 'getAmazonShipmentId', 'return_reason_code' => 'getReturnReasonCode', 'return_comment' => 'getReturnComment', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @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_return_item_id'] = isset($data['seller_return_item_id']) ? $data['seller_return_item_id'] : null; $this->container['seller_fulfillment_order_item_id'] = isset($data['seller_fulfillment_order_item_id']) ? $data['seller_fulfillment_order_item_id'] : null; $this->container['amazon_shipment_id'] = isset($data['amazon_shipment_id']) ? $data['amazon_shipment_id'] : null; $this->container['return_reason_code'] = isset($data['return_reason_code']) ? $data['return_reason_code'] : null; $this->container['return_comment'] = isset($data['return_comment']) ? $data['return_comment'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_return_item_id']) { $invalidProperties[] = "'seller_return_item_id' can't be null"; } if (null === $this->container['seller_fulfillment_order_item_id']) { $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; } if (null === $this->container['amazon_shipment_id']) { $invalidProperties[] = "'amazon_shipment_id' can't be null"; } if (null === $this->container['return_reason_code']) { $invalidProperties[] = "'return_reason_code' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_return_item_id. * * @return string */ public function getSellerReturnItemId() { return $this->container['seller_return_item_id']; } /** * Sets seller_return_item_id. * * @param string $seller_return_item_id an identifier assigned by the seller to the return item * * @return $this */ public function setSellerReturnItemId($seller_return_item_id) { $this->container['seller_return_item_id'] = $seller_return_item_id; return $this; } /** * Gets seller_fulfillment_order_item_id. * * @return string */ public function getSellerFulfillmentOrderItemId() { return $this->container['seller_fulfillment_order_item_id']; } /** * Sets seller_fulfillment_order_item_id. * * @param string $seller_fulfillment_order_item_id the identifier assigned to the item by the seller when the fulfillment order was created * * @return $this */ public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) { $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; return $this; } /** * Gets amazon_shipment_id. * * @return string */ public function getAmazonShipmentId() { return $this->container['amazon_shipment_id']; } /** * Sets amazon_shipment_id. * * @param string $amazon_shipment_id the identifier for the shipment that is associated with the return item * * @return $this */ public function setAmazonShipmentId($amazon_shipment_id) { $this->container['amazon_shipment_id'] = $amazon_shipment_id; return $this; } /** * Gets return_reason_code. * * @return string */ public function getReturnReasonCode() { return $this->container['return_reason_code']; } /** * Sets return_reason_code. * * @param string $return_reason_code the return reason code assigned to the return item by the seller * * @return $this */ public function setReturnReasonCode($return_reason_code) { $this->container['return_reason_code'] = $return_reason_code; return $this; } /** * Gets return_comment. * * @return string */ public function getReturnComment() { return $this->container['return_comment']; } /** * Sets return_comment. * * @param string $return_comment an optional comment about the return item * * @return $this */ public function setReturnComment($return_comment) { $this->container['return_comment'] = $return_comment; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentOrderStatus.php
lib/Models/FulfillmentOutbound/FulfillmentOrderStatus.php
<?php /** * FulfillmentOrderStatus. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * FulfillmentOrderStatus Class Doc Comment. * * @description The current status of the fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentOrderStatus { /** * Possible values of this enum. */ const _NEW = 'New'; const RECEIVED = 'Received'; const PLANNING = 'Planning'; const PROCESSING = 'Processing'; const CANCELLED = 'Cancelled'; const COMPLETE = 'Complete'; const COMPLETE_PARTIALLED = 'CompletePartialled'; const UNFULFILLABLE = 'Unfulfillable'; const INVALID = 'Invalid'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::_NEW, self::RECEIVED, self::PLANNING, self::PROCESSING, self::CANCELLED, self::COMPLETE, self::COMPLETE_PARTIALLED, self::UNFULFILLABLE, self::INVALID, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResult.php
lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResult.php
<?php /** * CreateFulfillmentReturnResult. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateFulfillmentReturnResult Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentReturnResult implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateFulfillmentReturnResult'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'return_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemList', 'invalid_return_items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidReturnItemList', 'return_authorizations' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnAuthorizationList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'return_items' => null, 'invalid_return_items' => null, 'return_authorizations' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'return_items' => 'returnItems', 'invalid_return_items' => 'invalidReturnItems', 'return_authorizations' => 'returnAuthorizations', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'return_items' => 'setReturnItems', 'invalid_return_items' => 'setInvalidReturnItems', 'return_authorizations' => 'setReturnAuthorizations', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'return_items' => 'getReturnItems', 'invalid_return_items' => 'getInvalidReturnItems', 'return_authorizations' => 'getReturnAuthorizations', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['return_items'] = isset($data['return_items']) ? $data['return_items'] : null; $this->container['invalid_return_items'] = isset($data['invalid_return_items']) ? $data['invalid_return_items'] : null; $this->container['return_authorizations'] = isset($data['return_authorizations']) ? $data['return_authorizations'] : 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 return_items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemList */ public function getReturnItems() { return $this->container['return_items']; } /** * Sets return_items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemList $return_items return_items * * @return $this */ public function setReturnItems($return_items) { $this->container['return_items'] = $return_items; return $this; } /** * Gets invalid_return_items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidReturnItemList */ public function getInvalidReturnItems() { return $this->container['invalid_return_items']; } /** * Sets invalid_return_items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidReturnItemList $invalid_return_items invalid_return_items * * @return $this */ public function setInvalidReturnItems($invalid_return_items) { $this->container['invalid_return_items'] = $invalid_return_items; return $this; } /** * Gets return_authorizations. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnAuthorizationList */ public function getReturnAuthorizations() { return $this->container['return_authorizations']; } /** * Sets return_authorizations. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnAuthorizationList $return_authorizations return_authorizations * * @return $this */ public function setReturnAuthorizations($return_authorizations) { $this->container['return_authorizations'] = $return_authorizations; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/Timestamp.php
lib/Models/FulfillmentOutbound/Timestamp.php
<?php /** * Timestamp. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Timestamp Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class Timestamp implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Timestamp'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/ReturnItem.php
lib/Models/FulfillmentOutbound/ReturnItem.php
<?php /** * ReturnItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ReturnItem Class Doc Comment. * * @description An item that Amazon accepted for return. * * @author Stefan Neuhaus / ClouSale */ class ReturnItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ReturnItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_return_item_id' => 'string', 'seller_fulfillment_order_item_id' => 'string', 'amazon_shipment_id' => 'string', 'seller_return_reason_code' => 'string', 'return_comment' => 'string', 'amazon_return_reason_code' => 'string', 'status' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentReturnItemStatus', 'status_changed_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'return_authorization_id' => 'string', 'return_received_condition' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemDisposition', 'fulfillment_center_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_return_item_id' => null, 'seller_fulfillment_order_item_id' => null, 'amazon_shipment_id' => null, 'seller_return_reason_code' => null, 'return_comment' => null, 'amazon_return_reason_code' => null, 'status' => null, 'status_changed_date' => null, 'return_authorization_id' => null, 'return_received_condition' => null, 'fulfillment_center_id' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'seller_return_item_id' => 'sellerReturnItemId', 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', 'amazon_shipment_id' => 'amazonShipmentId', 'seller_return_reason_code' => 'sellerReturnReasonCode', 'return_comment' => 'returnComment', 'amazon_return_reason_code' => 'amazonReturnReasonCode', 'status' => 'status', 'status_changed_date' => 'statusChangedDate', 'return_authorization_id' => 'returnAuthorizationId', 'return_received_condition' => 'returnReceivedCondition', 'fulfillment_center_id' => 'fulfillmentCenterId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_return_item_id' => 'setSellerReturnItemId', 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', 'amazon_shipment_id' => 'setAmazonShipmentId', 'seller_return_reason_code' => 'setSellerReturnReasonCode', 'return_comment' => 'setReturnComment', 'amazon_return_reason_code' => 'setAmazonReturnReasonCode', 'status' => 'setStatus', 'status_changed_date' => 'setStatusChangedDate', 'return_authorization_id' => 'setReturnAuthorizationId', 'return_received_condition' => 'setReturnReceivedCondition', 'fulfillment_center_id' => 'setFulfillmentCenterId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_return_item_id' => 'getSellerReturnItemId', 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', 'amazon_shipment_id' => 'getAmazonShipmentId', 'seller_return_reason_code' => 'getSellerReturnReasonCode', 'return_comment' => 'getReturnComment', 'amazon_return_reason_code' => 'getAmazonReturnReasonCode', 'status' => 'getStatus', 'status_changed_date' => 'getStatusChangedDate', 'return_authorization_id' => 'getReturnAuthorizationId', 'return_received_condition' => 'getReturnReceivedCondition', 'fulfillment_center_id' => 'getFulfillmentCenterId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @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_return_item_id'] = isset($data['seller_return_item_id']) ? $data['seller_return_item_id'] : null; $this->container['seller_fulfillment_order_item_id'] = isset($data['seller_fulfillment_order_item_id']) ? $data['seller_fulfillment_order_item_id'] : null; $this->container['amazon_shipment_id'] = isset($data['amazon_shipment_id']) ? $data['amazon_shipment_id'] : null; $this->container['seller_return_reason_code'] = isset($data['seller_return_reason_code']) ? $data['seller_return_reason_code'] : null; $this->container['return_comment'] = isset($data['return_comment']) ? $data['return_comment'] : null; $this->container['amazon_return_reason_code'] = isset($data['amazon_return_reason_code']) ? $data['amazon_return_reason_code'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; $this->container['status_changed_date'] = isset($data['status_changed_date']) ? $data['status_changed_date'] : null; $this->container['return_authorization_id'] = isset($data['return_authorization_id']) ? $data['return_authorization_id'] : null; $this->container['return_received_condition'] = isset($data['return_received_condition']) ? $data['return_received_condition'] : null; $this->container['fulfillment_center_id'] = isset($data['fulfillment_center_id']) ? $data['fulfillment_center_id'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_return_item_id']) { $invalidProperties[] = "'seller_return_item_id' can't be null"; } if (null === $this->container['seller_fulfillment_order_item_id']) { $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; } if (null === $this->container['amazon_shipment_id']) { $invalidProperties[] = "'amazon_shipment_id' can't be null"; } if (null === $this->container['seller_return_reason_code']) { $invalidProperties[] = "'seller_return_reason_code' can't be null"; } if (null === $this->container['status']) { $invalidProperties[] = "'status' can't be null"; } if (null === $this->container['status_changed_date']) { $invalidProperties[] = "'status_changed_date' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_return_item_id. * * @return string */ public function getSellerReturnItemId() { return $this->container['seller_return_item_id']; } /** * Sets seller_return_item_id. * * @param string $seller_return_item_id an identifier assigned by the seller to the return item * * @return $this */ public function setSellerReturnItemId($seller_return_item_id) { $this->container['seller_return_item_id'] = $seller_return_item_id; return $this; } /** * Gets seller_fulfillment_order_item_id. * * @return string */ public function getSellerFulfillmentOrderItemId() { return $this->container['seller_fulfillment_order_item_id']; } /** * Sets seller_fulfillment_order_item_id. * * @param string $seller_fulfillment_order_item_id the identifier assigned to the item by the seller when the fulfillment order was created * * @return $this */ public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) { $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; return $this; } /** * Gets amazon_shipment_id. * * @return string */ public function getAmazonShipmentId() { return $this->container['amazon_shipment_id']; } /** * Sets amazon_shipment_id. * * @param string $amazon_shipment_id the identifier for the shipment that is associated with the return item * * @return $this */ public function setAmazonShipmentId($amazon_shipment_id) { $this->container['amazon_shipment_id'] = $amazon_shipment_id; return $this; } /** * Gets seller_return_reason_code. * * @return string */ public function getSellerReturnReasonCode() { return $this->container['seller_return_reason_code']; } /** * Sets seller_return_reason_code. * * @param string $seller_return_reason_code the return reason code assigned to the return item by the seller * * @return $this */ public function setSellerReturnReasonCode($seller_return_reason_code) { $this->container['seller_return_reason_code'] = $seller_return_reason_code; return $this; } /** * Gets return_comment. * * @return string */ public function getReturnComment() { return $this->container['return_comment']; } /** * Sets return_comment. * * @param string $return_comment an optional comment about the return item * * @return $this */ public function setReturnComment($return_comment) { $this->container['return_comment'] = $return_comment; return $this; } /** * Gets amazon_return_reason_code. * * @return string */ public function getAmazonReturnReasonCode() { return $this->container['amazon_return_reason_code']; } /** * Sets amazon_return_reason_code. * * @param string $amazon_return_reason_code the return reason code that the Amazon fulfillment center assigned to the return item * * @return $this */ public function setAmazonReturnReasonCode($amazon_return_reason_code) { $this->container['amazon_return_reason_code'] = $amazon_return_reason_code; return $this; } /** * Gets status. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentReturnItemStatus */ public function getStatus() { return $this->container['status']; } /** * Sets status. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentReturnItemStatus $status status * * @return $this */ public function setStatus($status) { $this->container['status'] = $status; return $this; } /** * Gets status_changed_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getStatusChangedDate() { return $this->container['status_changed_date']; } /** * Sets status_changed_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $status_changed_date status_changed_date * * @return $this */ public function setStatusChangedDate($status_changed_date) { $this->container['status_changed_date'] = $status_changed_date; return $this; } /** * Gets return_authorization_id. * * @return string */ public function getReturnAuthorizationId() { return $this->container['return_authorization_id']; } /** * Sets return_authorization_id. * * @param string $return_authorization_id Identifies the return authorization used to return this item. See ReturnAuthorization. * * @return $this */ public function setReturnAuthorizationId($return_authorization_id) { $this->container['return_authorization_id'] = $return_authorization_id; return $this; } /** * Gets return_received_condition. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemDisposition */ public function getReturnReceivedCondition() { return $this->container['return_received_condition']; } /** * Sets return_received_condition. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ReturnItemDisposition $return_received_condition return_received_condition * * @return $this */ public function setReturnReceivedCondition($return_received_condition) { $this->container['return_received_condition'] = $return_received_condition; return $this; } /** * Gets fulfillment_center_id. * * @return string */ public function getFulfillmentCenterId() { return $this->container['fulfillment_center_id']; } /** * Sets fulfillment_center_id. * * @param string $fulfillment_center_id the identifier for the Amazon fulfillment center that processed the return item * * @return $this */ public function setFulfillmentCenterId($fulfillment_center_id) { $this->container['fulfillment_center_id'] = $fulfillment_center_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php
lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php
<?php /** * UpdateFulfillmentOrderRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * UpdateFulfillmentOrderRequest Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class UpdateFulfillmentOrderRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'UpdateFulfillmentOrderRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'marketplace_id' => 'string', 'displayable_order_id' => 'string', 'displayable_order_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', 'displayable_order_comment' => 'string', 'shipping_speed_category' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory', 'destination_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address', 'fulfillment_action' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentAction', 'fulfillment_policy' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPolicy', 'ship_from_country_code' => 'string', 'notification_emails' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\NotificationEmailList', 'feature_constraints' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[]', 'items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\UpdateFulfillmentOrderItemList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'marketplace_id' => null, 'displayable_order_id' => null, 'displayable_order_date' => null, 'displayable_order_comment' => null, 'shipping_speed_category' => null, 'destination_address' => null, 'fulfillment_action' => null, 'fulfillment_policy' => null, 'ship_from_country_code' => null, 'notification_emails' => null, 'feature_constraints' => null, 'items' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'marketplace_id' => 'marketplaceId', 'displayable_order_id' => 'displayableOrderId', 'displayable_order_date' => 'displayableOrderDate', 'displayable_order_comment' => 'displayableOrderComment', 'shipping_speed_category' => 'shippingSpeedCategory', 'destination_address' => 'destinationAddress', 'fulfillment_action' => 'fulfillmentAction', 'fulfillment_policy' => 'fulfillmentPolicy', 'ship_from_country_code' => 'shipFromCountryCode', 'notification_emails' => 'notificationEmails', 'feature_constraints' => 'featureConstraints', 'items' => 'items', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'marketplace_id' => 'setMarketplaceId', 'displayable_order_id' => 'setDisplayableOrderId', 'displayable_order_date' => 'setDisplayableOrderDate', 'displayable_order_comment' => 'setDisplayableOrderComment', 'shipping_speed_category' => 'setShippingSpeedCategory', 'destination_address' => 'setDestinationAddress', 'fulfillment_action' => 'setFulfillmentAction', 'fulfillment_policy' => 'setFulfillmentPolicy', 'ship_from_country_code' => 'setShipFromCountryCode', 'notification_emails' => 'setNotificationEmails', 'feature_constraints' => 'setFeatureConstraints', 'items' => 'setItems', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'marketplace_id' => 'getMarketplaceId', 'displayable_order_id' => 'getDisplayableOrderId', 'displayable_order_date' => 'getDisplayableOrderDate', 'displayable_order_comment' => 'getDisplayableOrderComment', 'shipping_speed_category' => 'getShippingSpeedCategory', 'destination_address' => 'getDestinationAddress', 'fulfillment_action' => 'getFulfillmentAction', 'fulfillment_policy' => 'getFulfillmentPolicy', 'ship_from_country_code' => 'getShipFromCountryCode', 'notification_emails' => 'getNotificationEmails', 'feature_constraints' => 'getFeatureConstraints', 'items' => 'getItems', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['marketplace_id'] = isset($data['marketplace_id']) ? $data['marketplace_id'] : null; $this->container['displayable_order_id'] = isset($data['displayable_order_id']) ? $data['displayable_order_id'] : null; $this->container['displayable_order_date'] = isset($data['displayable_order_date']) ? $data['displayable_order_date'] : null; $this->container['displayable_order_comment'] = isset($data['displayable_order_comment']) ? $data['displayable_order_comment'] : null; $this->container['shipping_speed_category'] = isset($data['shipping_speed_category']) ? $data['shipping_speed_category'] : null; $this->container['destination_address'] = isset($data['destination_address']) ? $data['destination_address'] : null; $this->container['fulfillment_action'] = isset($data['fulfillment_action']) ? $data['fulfillment_action'] : null; $this->container['fulfillment_policy'] = isset($data['fulfillment_policy']) ? $data['fulfillment_policy'] : null; $this->container['ship_from_country_code'] = isset($data['ship_from_country_code']) ? $data['ship_from_country_code'] : null; $this->container['notification_emails'] = isset($data['notification_emails']) ? $data['notification_emails'] : null; $this->container['feature_constraints'] = isset($data['feature_constraints']) ? $data['feature_constraints'] : 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 marketplace_id. * * @return string */ public function getMarketplaceId() { return $this->container['marketplace_id']; } /** * Sets marketplace_id. * * @param string $marketplace_id the marketplace the fulfillment order is placed against * * @return $this */ public function setMarketplaceId($marketplace_id) { $this->container['marketplace_id'] = $marketplace_id; return $this; } /** * Gets displayable_order_id. * * @return string */ public function getDisplayableOrderId() { return $this->container['displayable_order_id']; } /** * Sets displayable_order_id. * * @param string $displayable_order_id A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of DisplayableOrderId should match the order identifier that the seller provides to the recipient. The seller can use the SellerFulfillmentOrderId for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier. * * @return $this */ public function setDisplayableOrderId($displayable_order_id) { $this->container['displayable_order_id'] = $displayable_order_id; return $this; } /** * Gets displayable_order_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getDisplayableOrderDate() { return $this->container['displayable_order_date']; } /** * Sets displayable_order_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $displayable_order_date displayable_order_date * * @return $this */ public function setDisplayableOrderDate($displayable_order_date) { $this->container['displayable_order_date'] = $displayable_order_date; return $this; } /** * Gets displayable_order_comment. * * @return string */ public function getDisplayableOrderComment() { return $this->container['displayable_order_comment']; } /** * Sets displayable_order_comment. * * @param string $displayable_order_comment order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip * * @return $this */ public function setDisplayableOrderComment($displayable_order_comment) { $this->container['displayable_order_comment'] = $displayable_order_comment; return $this; } /** * Gets shipping_speed_category. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory */ public function getShippingSpeedCategory() { return $this->container['shipping_speed_category']; } /** * Sets shipping_speed_category. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ShippingSpeedCategory $shipping_speed_category shipping_speed_category * * @return $this */ public function setShippingSpeedCategory($shipping_speed_category) { $this->container['shipping_speed_category'] = $shipping_speed_category; return $this; } /** * Gets destination_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address */ public function getDestinationAddress() { return $this->container['destination_address']; } /** * Sets destination_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Address $destination_address destination_address * * @return $this */ public function setDestinationAddress($destination_address) { $this->container['destination_address'] = $destination_address; return $this; } /** * Gets fulfillment_action. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentAction */ public function getFulfillmentAction() { return $this->container['fulfillment_action']; } /** * Sets fulfillment_action. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentAction $fulfillment_action fulfillment_action * * @return $this */ public function setFulfillmentAction($fulfillment_action) { $this->container['fulfillment_action'] = $fulfillment_action; return $this; } /** * Gets fulfillment_policy. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPolicy */ public function getFulfillmentPolicy() { return $this->container['fulfillment_policy']; } /** * Sets fulfillment_policy. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FulfillmentPolicy $fulfillment_policy fulfillment_policy * * @return $this */ public function setFulfillmentPolicy($fulfillment_policy) { $this->container['fulfillment_policy'] = $fulfillment_policy; return $this; } /** * Gets ship_from_country_code. * * @return string */ public function getShipFromCountryCode() { return $this->container['ship_from_country_code']; } /** * Sets ship_from_country_code. * * @param string $ship_from_country_code The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format. * * @return $this */ public function setShipFromCountryCode($ship_from_country_code) { $this->container['ship_from_country_code'] = $ship_from_country_code; return $this; } /** * Gets notification_emails. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\NotificationEmailList */ public function getNotificationEmails() { return $this->container['notification_emails']; } /** * Sets notification_emails. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\NotificationEmailList $notification_emails notification_emails * * @return $this */ public function setNotificationEmails($notification_emails) { $this->container['notification_emails'] = $notification_emails; return $this; } /** * Gets feature_constraints. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[] */ public function getFeatureConstraints() { return $this->container['feature_constraints']; } /** * Sets feature_constraints. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSettings[] $feature_constraints a list of features and their fulfillment policies to apply to the order * * @return $this */ public function setFeatureConstraints($feature_constraints) { $this->container['feature_constraints'] = $feature_constraints; return $this; } /** * Gets items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\UpdateFulfillmentOrderItemList */ public function getItems() { return $this->container['items']; } /** * Sets items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\UpdateFulfillmentOrderItemList $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/FulfillmentOutbound/GetFeatureSkuResult.php
lib/Models/FulfillmentOutbound/GetFeatureSkuResult.php
<?php /** * GetFeatureSkuResult. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFeatureSkuResult Class Doc Comment. * * @description The payload for the getFeatureSKU operation. * * @author Stefan Neuhaus / ClouSale */ class GetFeatureSkuResult implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFeatureSkuResult'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'marketplace_id' => 'string', 'feature_name' => 'string', 'is_eligible' => 'bool', 'ineligible_reasons' => 'string[]', 'sku_info' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSku', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'marketplace_id' => null, 'feature_name' => null, 'is_eligible' => null, 'ineligible_reasons' => null, 'sku_info' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return 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', 'feature_name' => 'featureName', 'is_eligible' => 'isEligible', 'ineligible_reasons' => 'ineligibleReasons', 'sku_info' => 'skuInfo', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'marketplace_id' => 'setMarketplaceId', 'feature_name' => 'setFeatureName', 'is_eligible' => 'setIsEligible', 'ineligible_reasons' => 'setIneligibleReasons', 'sku_info' => 'setSkuInfo', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'marketplace_id' => 'getMarketplaceId', 'feature_name' => 'getFeatureName', 'is_eligible' => 'getIsEligible', 'ineligible_reasons' => 'getIneligibleReasons', 'sku_info' => 'getSkuInfo', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @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['feature_name'] = isset($data['feature_name']) ? $data['feature_name'] : null; $this->container['is_eligible'] = isset($data['is_eligible']) ? $data['is_eligible'] : null; $this->container['ineligible_reasons'] = isset($data['ineligible_reasons']) ? $data['ineligible_reasons'] : null; $this->container['sku_info'] = isset($data['sku_info']) ? $data['sku_info'] : 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['feature_name']) { $invalidProperties[] = "'feature_name' can't be null"; } if (null === $this->container['is_eligible']) { $invalidProperties[] = "'is_eligible' 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 the requested marketplace * * @return $this */ public function setMarketplaceId($marketplace_id) { $this->container['marketplace_id'] = $marketplace_id; return $this; } /** * Gets feature_name. * * @return string */ public function getFeatureName() { return $this->container['feature_name']; } /** * Sets feature_name. * * @param string $feature_name the name of the feature * * @return $this */ public function setFeatureName($feature_name) { $this->container['feature_name'] = $feature_name; return $this; } /** * Gets is_eligible. * * @return bool */ public function getIsEligible() { return $this->container['is_eligible']; } /** * Sets is_eligible. * * @param bool $is_eligible when true, the seller SKU is eligible for the requested feature * * @return $this */ public function setIsEligible($is_eligible) { $this->container['is_eligible'] = $is_eligible; return $this; } /** * Gets ineligible_reasons. * * @return string[] */ public function getIneligibleReasons() { return $this->container['ineligible_reasons']; } /** * Sets ineligible_reasons. * * @param string[] $ineligible_reasons A list of one or more reasons that the seller SKU is ineligibile for the feature. Possible values: * MERCHANT_NOT_ENROLLED - The merchant isn't enrolled for the feature. * SKU_NOT_ELIGIBLE - The SKU doesn't reside in a warehouse that supports the feature. * INVALID_SKU - There is an issue with the SKU provided. * * @return $this */ public function setIneligibleReasons($ineligible_reasons) { $this->container['ineligible_reasons'] = $ineligible_reasons; return $this; } /** * Gets sku_info. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSku */ public function getSkuInfo() { return $this->container['sku_info']; } /** * Sets sku_info. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\FeatureSku $sku_info sku_info * * @return $this */ public function setSkuInfo($sku_info) { $this->container['sku_info'] = $sku_info; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackage.php
lib/Models/FulfillmentOutbound/FulfillmentShipmentPackage.php
<?php /** * FulfillmentShipmentPackage. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentShipmentPackage Class Doc Comment. * * @description Package information for a shipment in a fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentPackage implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentShipmentPackage'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'package_number' => 'int', 'carrier_code' => 'string', 'tracking_number' => 'string', 'estimated_arrival_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'package_number' => 'int32', 'carrier_code' => null, 'tracking_number' => null, 'estimated_arrival_date' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'package_number' => 'packageNumber', 'carrier_code' => 'carrierCode', 'tracking_number' => 'trackingNumber', 'estimated_arrival_date' => 'estimatedArrivalDate', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'package_number' => 'setPackageNumber', 'carrier_code' => 'setCarrierCode', 'tracking_number' => 'setTrackingNumber', 'estimated_arrival_date' => 'setEstimatedArrivalDate', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'package_number' => 'getPackageNumber', 'carrier_code' => 'getCarrierCode', 'tracking_number' => 'getTrackingNumber', 'estimated_arrival_date' => 'getEstimatedArrivalDate', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['package_number'] = isset($data['package_number']) ? $data['package_number'] : null; $this->container['carrier_code'] = isset($data['carrier_code']) ? $data['carrier_code'] : null; $this->container['tracking_number'] = isset($data['tracking_number']) ? $data['tracking_number'] : null; $this->container['estimated_arrival_date'] = isset($data['estimated_arrival_date']) ? $data['estimated_arrival_date'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['package_number']) { $invalidProperties[] = "'package_number' can't be null"; } if (null === $this->container['carrier_code']) { $invalidProperties[] = "'carrier_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 package_number. * * @return int */ public function getPackageNumber() { return $this->container['package_number']; } /** * Sets package_number. * * @param int $package_number identifies a package in a shipment * * @return $this */ public function setPackageNumber($package_number) { $this->container['package_number'] = $package_number; return $this; } /** * Gets carrier_code. * * @return string */ public function getCarrierCode() { return $this->container['carrier_code']; } /** * Sets carrier_code. * * @param string $carrier_code identifies the carrier who will deliver the shipment to the recipient * * @return $this */ public function setCarrierCode($carrier_code) { $this->container['carrier_code'] = $carrier_code; return $this; } /** * Gets tracking_number. * * @return string */ public function getTrackingNumber() { return $this->container['tracking_number']; } /** * Sets tracking_number. * * @param string $tracking_number the tracking number, if provided, can be used to obtain tracking and delivery information * * @return $this */ public function setTrackingNumber($tracking_number) { $this->container['tracking_number'] = $tracking_number; return $this; } /** * Gets estimated_arrival_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp */ public function getEstimatedArrivalDate() { return $this->container['estimated_arrival_date']; } /** * Sets estimated_arrival_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Timestamp $estimated_arrival_date estimated_arrival_date * * @return $this */ public function setEstimatedArrivalDate($estimated_arrival_date) { $this->container['estimated_arrival_date'] = $estimated_arrival_date; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/InvalidItemReason.php
lib/Models/FulfillmentOutbound/InvalidItemReason.php
<?php /** * InvalidItemReason. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * InvalidItemReason Class Doc Comment. * * @description The reason that the item is invalid for return. * * @author Stefan Neuhaus / ClouSale */ class InvalidItemReason implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'InvalidItemReason'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'invalid_item_reason_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidItemReasonCode', 'description' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'invalid_item_reason_code' => null, 'description' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'invalid_item_reason_code' => 'invalidItemReasonCode', 'description' => 'description', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'invalid_item_reason_code' => 'setInvalidItemReasonCode', 'description' => 'setDescription', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'invalid_item_reason_code' => 'getInvalidItemReasonCode', 'description' => 'getDescription', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['invalid_item_reason_code'] = isset($data['invalid_item_reason_code']) ? $data['invalid_item_reason_code'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['invalid_item_reason_code']) { $invalidProperties[] = "'invalid_item_reason_code' can't be null"; } if (null === $this->container['description']) { $invalidProperties[] = "'description' 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 invalid_item_reason_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidItemReasonCode */ public function getInvalidItemReasonCode() { return $this->container['invalid_item_reason_code']; } /** * Sets invalid_item_reason_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\InvalidItemReasonCode $invalid_item_reason_code invalid_item_reason_code * * @return $this */ public function setInvalidItemReasonCode($invalid_item_reason_code) { $this->container['invalid_item_reason_code'] = $invalid_item_reason_code; return $this; } /** * Gets description. * * @return string */ public function getDescription() { return $this->container['description']; } /** * Sets description. * * @param string $description a human readable description of the invalid item reason code * * @return $this */ public function setDescription($description) { $this->container['description'] = $description; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItemList.php
lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItemList.php
<?php /** * GetFulfillmentPreviewItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFulfillmentPreviewItemList Class Doc Comment. * * @description An array of fulfillment preview item information. * * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFulfillmentPreviewItemList'; /** * 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 GetFulfillmentPreviewItem::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/FulfillmentOutbound/Feature.php
lib/Models/FulfillmentOutbound/Feature.php
<?php /** * Feature. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Feature Class Doc Comment. * * @description A Multi-Channel Fulfillment feature. * * @author Stefan Neuhaus / ClouSale */ class Feature implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Feature'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'feature_name' => 'string', 'feature_description' => 'string', 'seller_eligible' => 'bool', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'feature_name' => null, 'feature_description' => null, 'seller_eligible' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'feature_name' => 'featureName', 'feature_description' => 'featureDescription', 'seller_eligible' => 'sellerEligible', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'feature_name' => 'setFeatureName', 'feature_description' => 'setFeatureDescription', 'seller_eligible' => 'setSellerEligible', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'feature_name' => 'getFeatureName', 'feature_description' => 'getFeatureDescription', 'seller_eligible' => 'getSellerEligible', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['feature_name'] = isset($data['feature_name']) ? $data['feature_name'] : null; $this->container['feature_description'] = isset($data['feature_description']) ? $data['feature_description'] : null; $this->container['seller_eligible'] = isset($data['seller_eligible']) ? $data['seller_eligible'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['feature_name']) { $invalidProperties[] = "'feature_name' can't be null"; } if (null === $this->container['feature_description']) { $invalidProperties[] = "'feature_description' 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 feature_name. * * @return string */ public function getFeatureName() { return $this->container['feature_name']; } /** * Sets feature_name. * * @param string $feature_name the feature name * * @return $this */ public function setFeatureName($feature_name) { $this->container['feature_name'] = $feature_name; return $this; } /** * Gets feature_description. * * @return string */ public function getFeatureDescription() { return $this->container['feature_description']; } /** * Sets feature_description. * * @param string $feature_description the feature description * * @return $this */ public function setFeatureDescription($feature_description) { $this->container['feature_description'] = $feature_description; return $this; } /** * Gets seller_eligible. * * @return bool */ public function getSellerEligible() { return $this->container['seller_eligible']; } /** * Sets seller_eligible. * * @param bool $seller_eligible when true, indicates that the seller is eligible to use the feature * * @return $this */ public function setSellerEligible($seller_eligible) { $this->container['seller_eligible'] = $seller_eligible; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItem.php
lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItem.php
<?php /** * GetFulfillmentPreviewItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * GetFulfillmentPreviewItem Class Doc Comment. * * @description Item information for a fulfillment order preview. * * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'GetFulfillmentPreviewItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_sku' => 'string', 'quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity', 'per_unit_declared_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'seller_fulfillment_order_item_id' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_sku' => null, 'quantity' => null, 'per_unit_declared_value' => null, 'seller_fulfillment_order_item_id' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'seller_sku' => 'sellerSku', 'quantity' => 'quantity', 'per_unit_declared_value' => 'perUnitDeclaredValue', 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_sku' => 'setSellerSku', 'quantity' => 'setQuantity', 'per_unit_declared_value' => 'setPerUnitDeclaredValue', 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_sku' => 'getSellerSku', 'quantity' => 'getQuantity', 'per_unit_declared_value' => 'getPerUnitDeclaredValue', 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null; $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; $this->container['per_unit_declared_value'] = isset($data['per_unit_declared_value']) ? $data['per_unit_declared_value'] : null; $this->container['seller_fulfillment_order_item_id'] = isset($data['seller_fulfillment_order_item_id']) ? $data['seller_fulfillment_order_item_id'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_sku']) { $invalidProperties[] = "'seller_sku' can't be null"; } if (null === $this->container['quantity']) { $invalidProperties[] = "'quantity' can't be null"; } if (null === $this->container['seller_fulfillment_order_item_id']) { $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_sku. * * @return string */ public function getSellerSku() { return $this->container['seller_sku']; } /** * Sets seller_sku. * * @param string $seller_sku the seller SKU of the item * * @return $this */ public function setSellerSku($seller_sku) { $this->container['seller_sku'] = $seller_sku; return $this; } /** * Gets quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity */ public function getQuantity() { return $this->container['quantity']; } /** * Sets quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity $quantity quantity * * @return $this */ public function setQuantity($quantity) { $this->container['quantity'] = $quantity; return $this; } /** * Gets per_unit_declared_value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitDeclaredValue() { return $this->container['per_unit_declared_value']; } /** * Sets per_unit_declared_value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_declared_value per_unit_declared_value * * @return $this */ public function setPerUnitDeclaredValue($per_unit_declared_value) { $this->container['per_unit_declared_value'] = $per_unit_declared_value; return $this; } /** * Gets seller_fulfillment_order_item_id. * * @return string */ public function getSellerFulfillmentOrderItemId() { return $this->container['seller_fulfillment_order_item_id']; } /** * Sets seller_fulfillment_order_item_id. * * @param string $seller_fulfillment_order_item_id a fulfillment order item identifier that the seller creates to track items in the fulfillment preview * * @return $this */ public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) { $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FeeList.php
lib/Models/FulfillmentOutbound/FeeList.php
<?php /** * FeeList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FeeList Class Doc Comment. * * @description An array of fee type and cost pairs. * * @author Stefan Neuhaus / ClouSale */ class FeeList implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FeeList'; /** * 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/FulfillmentOutbound/UpdateFulfillmentOrderItem.php
lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItem.php
<?php /** * UpdateFulfillmentOrderItem. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * UpdateFulfillmentOrderItem Class Doc Comment. * * @description Item information for updating a fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class UpdateFulfillmentOrderItem implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'UpdateFulfillmentOrderItem'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_sku' => 'string', 'seller_fulfillment_order_item_id' => 'string', 'quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity', 'gift_message' => 'string', 'displayable_comment' => 'string', 'fulfillment_network_sku' => 'string', 'order_item_disposition' => 'string', 'per_unit_declared_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'per_unit_price' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'per_unit_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_sku' => null, 'seller_fulfillment_order_item_id' => null, 'quantity' => null, 'gift_message' => null, 'displayable_comment' => null, 'fulfillment_network_sku' => null, 'order_item_disposition' => null, 'per_unit_declared_value' => null, 'per_unit_price' => null, 'per_unit_tax' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'seller_sku' => 'sellerSku', 'seller_fulfillment_order_item_id' => 'sellerFulfillmentOrderItemId', 'quantity' => 'quantity', 'gift_message' => 'giftMessage', 'displayable_comment' => 'displayableComment', 'fulfillment_network_sku' => 'fulfillmentNetworkSku', 'order_item_disposition' => 'orderItemDisposition', 'per_unit_declared_value' => 'perUnitDeclaredValue', 'per_unit_price' => 'perUnitPrice', 'per_unit_tax' => 'perUnitTax', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_sku' => 'setSellerSku', 'seller_fulfillment_order_item_id' => 'setSellerFulfillmentOrderItemId', 'quantity' => 'setQuantity', 'gift_message' => 'setGiftMessage', 'displayable_comment' => 'setDisplayableComment', 'fulfillment_network_sku' => 'setFulfillmentNetworkSku', 'order_item_disposition' => 'setOrderItemDisposition', 'per_unit_declared_value' => 'setPerUnitDeclaredValue', 'per_unit_price' => 'setPerUnitPrice', 'per_unit_tax' => 'setPerUnitTax', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_sku' => 'getSellerSku', 'seller_fulfillment_order_item_id' => 'getSellerFulfillmentOrderItemId', 'quantity' => 'getQuantity', 'gift_message' => 'getGiftMessage', 'displayable_comment' => 'getDisplayableComment', 'fulfillment_network_sku' => 'getFulfillmentNetworkSku', 'order_item_disposition' => 'getOrderItemDisposition', 'per_unit_declared_value' => 'getPerUnitDeclaredValue', 'per_unit_price' => 'getPerUnitPrice', 'per_unit_tax' => 'getPerUnitTax', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null; $this->container['seller_fulfillment_order_item_id'] = isset($data['seller_fulfillment_order_item_id']) ? $data['seller_fulfillment_order_item_id'] : null; $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; $this->container['gift_message'] = isset($data['gift_message']) ? $data['gift_message'] : null; $this->container['displayable_comment'] = isset($data['displayable_comment']) ? $data['displayable_comment'] : null; $this->container['fulfillment_network_sku'] = isset($data['fulfillment_network_sku']) ? $data['fulfillment_network_sku'] : null; $this->container['order_item_disposition'] = isset($data['order_item_disposition']) ? $data['order_item_disposition'] : null; $this->container['per_unit_declared_value'] = isset($data['per_unit_declared_value']) ? $data['per_unit_declared_value'] : null; $this->container['per_unit_price'] = isset($data['per_unit_price']) ? $data['per_unit_price'] : null; $this->container['per_unit_tax'] = isset($data['per_unit_tax']) ? $data['per_unit_tax'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['seller_fulfillment_order_item_id']) { $invalidProperties[] = "'seller_fulfillment_order_item_id' can't be null"; } if (null === $this->container['quantity']) { $invalidProperties[] = "'quantity' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_sku. * * @return string */ public function getSellerSku() { return $this->container['seller_sku']; } /** * Sets seller_sku. * * @param string $seller_sku the seller SKU of the item * * @return $this */ public function setSellerSku($seller_sku) { $this->container['seller_sku'] = $seller_sku; return $this; } /** * Gets seller_fulfillment_order_item_id. * * @return string */ public function getSellerFulfillmentOrderItemId() { return $this->container['seller_fulfillment_order_item_id']; } /** * Sets seller_fulfillment_order_item_id. * * @param string $seller_fulfillment_order_item_id Identifies the fulfillment order item to update. Created with a previous call to the createFulfillmentOrder operation. * * @return $this */ public function setSellerFulfillmentOrderItemId($seller_fulfillment_order_item_id) { $this->container['seller_fulfillment_order_item_id'] = $seller_fulfillment_order_item_id; return $this; } /** * Gets quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity */ public function getQuantity() { return $this->container['quantity']; } /** * Sets quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Quantity $quantity quantity * * @return $this */ public function setQuantity($quantity) { $this->container['quantity'] = $quantity; return $this; } /** * Gets gift_message. * * @return string */ public function getGiftMessage() { return $this->container['gift_message']; } /** * Sets gift_message. * * @param string $gift_message a message to the gift recipient, if applicable * * @return $this */ public function setGiftMessage($gift_message) { $this->container['gift_message'] = $gift_message; return $this; } /** * Gets displayable_comment. * * @return string */ public function getDisplayableComment() { return $this->container['displayable_comment']; } /** * Sets displayable_comment. * * @param string $displayable_comment item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip * * @return $this */ public function setDisplayableComment($displayable_comment) { $this->container['displayable_comment'] = $displayable_comment; return $this; } /** * Gets fulfillment_network_sku. * * @return string */ public function getFulfillmentNetworkSku() { return $this->container['fulfillment_network_sku']; } /** * Sets fulfillment_network_sku. * * @param string $fulfillment_network_sku amazon's fulfillment network SKU of the item * * @return $this */ public function setFulfillmentNetworkSku($fulfillment_network_sku) { $this->container['fulfillment_network_sku'] = $fulfillment_network_sku; return $this; } /** * Gets order_item_disposition. * * @return string */ public function getOrderItemDisposition() { return $this->container['order_item_disposition']; } /** * Sets order_item_disposition. * * @param string $order_item_disposition indicates whether the item is sellable or unsellable * * @return $this */ public function setOrderItemDisposition($order_item_disposition) { $this->container['order_item_disposition'] = $order_item_disposition; return $this; } /** * Gets per_unit_declared_value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitDeclaredValue() { return $this->container['per_unit_declared_value']; } /** * Sets per_unit_declared_value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_declared_value per_unit_declared_value * * @return $this */ public function setPerUnitDeclaredValue($per_unit_declared_value) { $this->container['per_unit_declared_value'] = $per_unit_declared_value; return $this; } /** * Gets per_unit_price. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitPrice() { return $this->container['per_unit_price']; } /** * Sets per_unit_price. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_price per_unit_price * * @return $this */ public function setPerUnitPrice($per_unit_price) { $this->container['per_unit_price'] = $per_unit_price; return $this; } /** * Gets per_unit_tax. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getPerUnitTax() { return $this->container['per_unit_tax']; } /** * Sets per_unit_tax. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $per_unit_tax per_unit_tax * * @return $this */ public function setPerUnitTax($per_unit_tax) { $this->container['per_unit_tax'] = $per_unit_tax; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php
lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php
<?php /** * ListAllFulfillmentOrdersResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ListAllFulfillmentOrdersResponse Class Doc Comment. * * @description The response schema for the listAllFulfillmentOrders operation. * * @author Stefan Neuhaus / ClouSale */ class ListAllFulfillmentOrdersResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ListAllFulfillmentOrdersResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ListAllFulfillmentOrdersResult', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\ListAllFulfillmentOrdersResult */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ListAllFulfillmentOrdersResult $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/CreateFulfillmentReturnRequest.php
lib/Models/FulfillmentOutbound/CreateFulfillmentReturnRequest.php
<?php /** * CreateFulfillmentReturnRequest. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateFulfillmentReturnRequest Class Doc Comment. * * @description The createFulfillmentReturn operation creates a fulfillment return for items that were fulfilled using the createFulfillmentOrder operation. For calls to createFulfillmentReturn, you must include ReturnReasonCode values returned by a previous call to the listReturnReasonCodes operation. * * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentReturnRequest implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateFulfillmentReturnRequest'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'items' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateReturnItemList', ]; /** * 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 = []; if (null === $this->container['items']) { $invalidProperties[] = "'items' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets items. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateReturnItemList */ public function getItems() { return $this->container['items']; } /** * Sets items. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateReturnItemList $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/FulfillmentOutbound/ReasonCodeDetails.php
lib/Models/FulfillmentOutbound/ReasonCodeDetails.php
<?php /** * ReasonCodeDetails. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ReasonCodeDetails Class Doc Comment. * * @description A return reason code, a description, and an optional description translation. * * @author Stefan Neuhaus / ClouSale */ class ReasonCodeDetails implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ReasonCodeDetails'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'return_reason_code' => 'string', 'description' => 'string', 'translated_description' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'return_reason_code' => null, 'description' => null, 'translated_description' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'return_reason_code' => 'returnReasonCode', 'description' => 'description', 'translated_description' => 'translatedDescription', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'return_reason_code' => 'setReturnReasonCode', 'description' => 'setDescription', 'translated_description' => 'setTranslatedDescription', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'return_reason_code' => 'getReturnReasonCode', 'description' => 'getDescription', 'translated_description' => 'getTranslatedDescription', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['return_reason_code'] = isset($data['return_reason_code']) ? $data['return_reason_code'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['translated_description'] = isset($data['translated_description']) ? $data['translated_description'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['return_reason_code']) { $invalidProperties[] = "'return_reason_code' can't be null"; } if (null === $this->container['description']) { $invalidProperties[] = "'description' 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 return_reason_code. * * @return string */ public function getReturnReasonCode() { return $this->container['return_reason_code']; } /** * Sets return_reason_code. * * @param string $return_reason_code a code that indicates a valid return reason * * @return $this */ public function setReturnReasonCode($return_reason_code) { $this->container['return_reason_code'] = $return_reason_code; return $this; } /** * Gets description. * * @return string */ public function getDescription() { return $this->container['description']; } /** * Sets description. * * @param string $description a human readable description of the return reason code * * @return $this */ public function setDescription($description) { $this->container['description'] = $description; return $this; } /** * Gets translated_description. * * @return string */ public function getTranslatedDescription() { return $this->container['translated_description']; } /** * Sets translated_description. * * @param string $translated_description A translation of the description. The translation is in the language specified in the Language request parameter. * * @return $this */ public function setTranslatedDescription($translated_description) { $this->container['translated_description'] = $translated_description; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FeatureSku.php
lib/Models/FulfillmentOutbound/FeatureSku.php
<?php /** * FeatureSku. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FeatureSku Class Doc Comment. * * @description Information about an SKU, including the count available, identifiers, and a list of overlapping SKUs that share the same inventory pool. * * @author Stefan Neuhaus / ClouSale */ class FeatureSku implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FeatureSku'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_sku' => 'string', 'fn_sku' => 'string', 'asin' => 'string', 'sku_count' => 'float', 'overlapping_skus' => 'string[]', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_sku' => null, 'fn_sku' => null, 'asin' => null, 'sku_count' => null, 'overlapping_skus' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'seller_sku' => 'sellerSku', 'fn_sku' => 'fnSku', 'asin' => 'asin', 'sku_count' => 'skuCount', 'overlapping_skus' => 'overlappingSkus', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_sku' => 'setSellerSku', 'fn_sku' => 'setFnSku', 'asin' => 'setAsin', 'sku_count' => 'setSkuCount', 'overlapping_skus' => 'setOverlappingSkus', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_sku' => 'getSellerSku', 'fn_sku' => 'getFnSku', 'asin' => 'getAsin', 'sku_count' => 'getSkuCount', 'overlapping_skus' => 'getOverlappingSkus', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['seller_sku'] = isset($data['seller_sku']) ? $data['seller_sku'] : null; $this->container['fn_sku'] = isset($data['fn_sku']) ? $data['fn_sku'] : null; $this->container['asin'] = isset($data['asin']) ? $data['asin'] : null; $this->container['sku_count'] = isset($data['sku_count']) ? $data['sku_count'] : null; $this->container['overlapping_skus'] = isset($data['overlapping_skus']) ? $data['overlapping_skus'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_sku. * * @return string */ public function getSellerSku() { return $this->container['seller_sku']; } /** * Sets seller_sku. * * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. * * @return $this */ public function setSellerSku($seller_sku) { $this->container['seller_sku'] = $seller_sku; return $this; } /** * Gets fn_sku. * * @return string */ public function getFnSku() { return $this->container['fn_sku']; } /** * Sets fn_sku. * * @param string $fn_sku the unique SKU used by Amazon's fulfillment network * * @return $this */ public function setFnSku($fn_sku) { $this->container['fn_sku'] = $fn_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 sku_count. * * @return float */ public function getSkuCount() { return $this->container['sku_count']; } /** * Sets sku_count. * * @param float $sku_count the number of SKUs available for this service * * @return $this */ public function setSkuCount($sku_count) { $this->container['sku_count'] = $sku_count; return $this; } /** * Gets overlapping_skus. * * @return string[] */ public function getOverlappingSkus() { return $this->container['overlapping_skus']; } /** * Sets overlapping_skus. * * @param string[] $overlapping_skus other seller SKUs that are shared across the same inventory * * @return $this */ public function setOverlappingSkus($overlapping_skus) { $this->container['overlapping_skus'] = $overlapping_skus; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/TrackingEventList.php
lib/Models/FulfillmentOutbound/TrackingEventList.php
<?php /** * TrackingEventList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TrackingEventList Class Doc Comment. * * @description An array of tracking event information. * * @author Stefan Neuhaus / ClouSale */ class TrackingEventList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TrackingEventList'; /** * 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 TrackingEvent::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/FulfillmentOutbound/CreateFulfillmentOrderResponse.php
lib/Models/FulfillmentOutbound/CreateFulfillmentOrderResponse.php
<?php /** * CreateFulfillmentOrderResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CreateFulfillmentOrderResponse Class Doc Comment. * * @description The response schema for the createFulfillmentOrder operation. * * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentOrderResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CreateFulfillmentOrderResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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\FulfillmentOutbound\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\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/FulfillmentOutbound/FulfillmentPreviewList.php
lib/Models/FulfillmentOutbound/FulfillmentPreviewList.php
<?php /** * FulfillmentPreviewList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentPreviewList Class Doc Comment. * * @description An array of fulfillment preview information. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentPreviewList'; /** * 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 FulfillmentPreview::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/FulfillmentOutbound/ReasonCodeDetailsList.php
lib/Models/FulfillmentOutbound/ReasonCodeDetailsList.php
<?php /** * ReasonCodeDetailsList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ReasonCodeDetailsList Class Doc Comment. * * @description An array of return reason code details. * * @author Stefan Neuhaus / ClouSale */ class ReasonCodeDetailsList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ReasonCodeDetailsList'; /** * 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 ReasonCodeDetails::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/FulfillmentOutbound/FulfillmentPreviewItemList.php
lib/Models/FulfillmentOutbound/FulfillmentPreviewItemList.php
<?php /** * FulfillmentPreviewItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentPreviewItemList Class Doc Comment. * * @description An array of fulfillment preview item information. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentPreviewItemList'; /** * 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 FulfillmentPreviewItem::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/FulfillmentOutbound/TrackingAddress.php
lib/Models/FulfillmentOutbound/TrackingAddress.php
<?php /** * TrackingAddress. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TrackingAddress Class Doc Comment. * * @description Address information for tracking the package. * * @author Stefan Neuhaus / ClouSale */ class TrackingAddress implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TrackingAddress'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'city' => 'string', 'state' => 'string', 'country' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'city' => null, '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 = [ 'city' => 'city', 'state' => 'state', 'country' => 'country', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'city' => 'setCity', 'state' => 'setState', 'country' => 'setCountry', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'city' => 'getCity', '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['city'] = isset($data['city']) ? $data['city'] : 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 = []; if (null === $this->container['city']) { $invalidProperties[] = "'city' can't be null"; } if (null === $this->container['state']) { $invalidProperties[] = "'state' can't be null"; } if (null === $this->container['country']) { $invalidProperties[] = "'country' 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 city. * * @return string */ public function getCity() { return $this->container['city']; } /** * Sets city. * * @param string $city the city * * @return $this */ public function setCity($city) { $this->container['city'] = $city; return $this; } /** * Gets state. * * @return string */ public function getState() { return $this->container['state']; } /** * Sets state. * * @param string $state the state * * @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 * * @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/FulfillmentOutbound/CODSettings.php
lib/Models/FulfillmentOutbound/CODSettings.php
<?php /** * CODSettings. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CODSettings Class Doc Comment. * * @description The COD (Cash On Delivery) charges that you associate with a COD fulfillment order. * * @author Stefan Neuhaus / ClouSale */ class CODSettings implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CODSettings'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'is_cod_required' => 'bool', 'cod_charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'cod_charge_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'shipping_charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', 'shipping_charge_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'is_cod_required' => null, 'cod_charge' => null, 'cod_charge_tax' => null, 'shipping_charge' => null, 'shipping_charge_tax' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'is_cod_required' => 'isCodRequired', 'cod_charge' => 'codCharge', 'cod_charge_tax' => 'codChargeTax', 'shipping_charge' => 'shippingCharge', 'shipping_charge_tax' => 'shippingChargeTax', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'is_cod_required' => 'setIsCodRequired', 'cod_charge' => 'setCodCharge', 'cod_charge_tax' => 'setCodChargeTax', 'shipping_charge' => 'setShippingCharge', 'shipping_charge_tax' => 'setShippingChargeTax', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'is_cod_required' => 'getIsCodRequired', 'cod_charge' => 'getCodCharge', 'cod_charge_tax' => 'getCodChargeTax', 'shipping_charge' => 'getShippingCharge', 'shipping_charge_tax' => 'getShippingChargeTax', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['is_cod_required'] = isset($data['is_cod_required']) ? $data['is_cod_required'] : null; $this->container['cod_charge'] = isset($data['cod_charge']) ? $data['cod_charge'] : null; $this->container['cod_charge_tax'] = isset($data['cod_charge_tax']) ? $data['cod_charge_tax'] : null; $this->container['shipping_charge'] = isset($data['shipping_charge']) ? $data['shipping_charge'] : null; $this->container['shipping_charge_tax'] = isset($data['shipping_charge_tax']) ? $data['shipping_charge_tax'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (null === $this->container['is_cod_required']) { $invalidProperties[] = "'is_cod_required' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets is_cod_required. * * @return bool */ public function getIsCodRequired() { return $this->container['is_cod_required']; } /** * Sets is_cod_required. * * @param bool $is_cod_required when true, this fulfillment order requires a COD (Cash On Delivery) payment * * @return $this */ public function setIsCodRequired($is_cod_required) { $this->container['is_cod_required'] = $is_cod_required; return $this; } /** * Gets cod_charge. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getCodCharge() { return $this->container['cod_charge']; } /** * Sets cod_charge. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $cod_charge cod_charge * * @return $this */ public function setCodCharge($cod_charge) { $this->container['cod_charge'] = $cod_charge; return $this; } /** * Gets cod_charge_tax. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getCodChargeTax() { return $this->container['cod_charge_tax']; } /** * Sets cod_charge_tax. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $cod_charge_tax cod_charge_tax * * @return $this */ public function setCodChargeTax($cod_charge_tax) { $this->container['cod_charge_tax'] = $cod_charge_tax; return $this; } /** * Gets shipping_charge. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getShippingCharge() { return $this->container['shipping_charge']; } /** * Sets shipping_charge. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $shipping_charge shipping_charge * * @return $this */ public function setShippingCharge($shipping_charge) { $this->container['shipping_charge'] = $shipping_charge; return $this; } /** * Gets shipping_charge_tax. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money */ public function getShippingChargeTax() { return $this->container['shipping_charge_tax']; } /** * Sets shipping_charge_tax. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\Money $shipping_charge_tax shipping_charge_tax * * @return $this */ public function setShippingChargeTax($shipping_charge_tax) { $this->container['shipping_charge_tax'] = $shipping_charge_tax; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/FulfillmentShipmentItemList.php
lib/Models/FulfillmentOutbound/FulfillmentShipmentItemList.php
<?php /** * FulfillmentShipmentItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FulfillmentShipmentItemList Class Doc Comment. * * @description An array of fulfillment shipment item information. * * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FulfillmentShipmentItemList'; /** * 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 FulfillmentShipmentItem::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/FulfillmentOutbound/EventCode.php
lib/Models/FulfillmentOutbound/EventCode.php
<?php /** * EventCode. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * EventCode Class Doc Comment. * * @description The event code for the delivery event. * * @author Stefan Neuhaus / ClouSale */ class EventCode { /** * Possible values of this enum. */ const _101 = 'EVENT_101'; const _102 = 'EVENT_102'; const _201 = 'EVENT_201'; const _202 = 'EVENT_202'; const _203 = 'EVENT_203'; const _204 = 'EVENT_204'; const _205 = 'EVENT_205'; const _206 = 'EVENT_206'; const _301 = 'EVENT_301'; const _302 = 'EVENT_302'; const _304 = 'EVENT_304'; const _306 = 'EVENT_306'; const _307 = 'EVENT_307'; const _308 = 'EVENT_308'; const _309 = 'EVENT_309'; const _401 = 'EVENT_401'; const _402 = 'EVENT_402'; const _403 = 'EVENT_403'; const _404 = 'EVENT_404'; const _405 = 'EVENT_405'; const _406 = 'EVENT_406'; const _407 = 'EVENT_407'; const _408 = 'EVENT_408'; const _409 = 'EVENT_409'; const _411 = 'EVENT_411'; const _412 = 'EVENT_412'; const _413 = 'EVENT_413'; const _414 = 'EVENT_414'; const _415 = 'EVENT_415'; const _416 = 'EVENT_416'; const _417 = 'EVENT_417'; const _418 = 'EVENT_418'; const _419 = 'EVENT_419'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::_101, self::_102, self::_201, self::_202, self::_203, self::_204, self::_205, self::_206, self::_301, self::_302, self::_304, self::_306, self::_307, self::_308, self::_309, self::_401, self::_402, self::_403, self::_404, self::_405, self::_406, self::_407, self::_408, self::_409, self::_411, self::_412, self::_413, self::_414, self::_415, self::_416, self::_417, self::_418, self::_419, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/FulfillmentOutbound/ReturnAuthorizationList.php
lib/Models/FulfillmentOutbound/ReturnAuthorizationList.php
<?php /** * ReturnAuthorizationList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ReturnAuthorizationList Class Doc Comment. * * @description An array of return authorization information. * * @author Stefan Neuhaus / ClouSale */ class ReturnAuthorizationList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ReturnAuthorizationList'; /** * 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 ReturnAuthorization::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/FulfillmentOutbound/InvalidItemReasonCode.php
lib/Models/FulfillmentOutbound/InvalidItemReasonCode.php
<?php /** * InvalidItemReasonCode. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner APIs for Fulfillment Outbound. * * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; /** * InvalidItemReasonCode Class Doc Comment. * * @description A code for why the item is invalid for return. * * @author Stefan Neuhaus / ClouSale */ class InvalidItemReasonCode { /** * Possible values of this enum. */ const INVALID_VALUES = 'InvalidValues'; const DUPLICATE_REQUEST = 'DuplicateRequest'; const NO_COMPLETED_SHIP_ITEMS = 'NoCompletedShipItems'; const NO_RETURNABLE_QUANTITY = 'NoReturnableQuantity'; /** * Gets allowable values of the enum. * * @return string[] */ public static function getAllowableEnumValues() { return [ self::INVALID_VALUES, self::DUPLICATE_REQUEST, self::NO_COMPLETED_SHIP_ITEMS, self::NO_RETURNABLE_QUANTITY, ]; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/TrialShipmentEvent.php
lib/Models/Finances/TrialShipmentEvent.php
<?php /** * TrialShipmentEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TrialShipmentEvent Class Doc Comment. * * @description An event related to a trial shipment. * * @author Stefan Neuhaus / ClouSale */ class TrialShipmentEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TrialShipmentEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'amazon_order_id' => 'string', 'financial_event_group_id' => 'string', 'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'sku' => 'string', 'fee_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'amazon_order_id' => null, 'financial_event_group_id' => null, 'posted_date' => null, 'sku' => null, 'fee_list' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'amazon_order_id' => 'AmazonOrderId', 'financial_event_group_id' => 'FinancialEventGroupId', 'posted_date' => 'PostedDate', 'sku' => 'SKU', 'fee_list' => 'FeeList', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'amazon_order_id' => 'setAmazonOrderId', 'financial_event_group_id' => 'setFinancialEventGroupId', 'posted_date' => 'setPostedDate', 'sku' => 'setSku', 'fee_list' => 'setFeeList', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'amazon_order_id' => 'getAmazonOrderId', 'financial_event_group_id' => 'getFinancialEventGroupId', 'posted_date' => 'getPostedDate', 'sku' => 'getSku', 'fee_list' => 'getFeeList', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null; $this->container['financial_event_group_id'] = isset($data['financial_event_group_id']) ? $data['financial_event_group_id'] : null; $this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null; $this->container['sku'] = isset($data['sku']) ? $data['sku'] : null; $this->container['fee_list'] = isset($data['fee_list']) ? $data['fee_list'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets amazon_order_id. * * @return string */ public function getAmazonOrderId() { return $this->container['amazon_order_id']; } /** * Sets amazon_order_id. * * @param string $amazon_order_id an Amazon-defined identifier for an order * * @return $this */ public function setAmazonOrderId($amazon_order_id) { $this->container['amazon_order_id'] = $amazon_order_id; return $this; } /** * Gets financial_event_group_id. * * @return string */ public function getFinancialEventGroupId() { return $this->container['financial_event_group_id']; } /** * Sets financial_event_group_id. * * @param string $financial_event_group_id the identifier of the financial event group * * @return $this */ public function setFinancialEventGroupId($financial_event_group_id) { $this->container['financial_event_group_id'] = $financial_event_group_id; return $this; } /** * Gets posted_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getPostedDate() { return $this->container['posted_date']; } /** * Sets posted_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date * * @return $this */ public function setPostedDate($posted_date) { $this->container['posted_date'] = $posted_date; return $this; } /** * Gets sku. * * @return string */ public function getSku() { return $this->container['sku']; } /** * Sets sku. * * @param string $sku The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API. * * @return $this */ public function setSku($sku) { $this->container['sku'] = $sku; return $this; } /** * Gets fee_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList */ public function getFeeList() { return $this->container['fee_list']; } /** * Sets fee_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $fee_list fee_list * * @return $this */ public function setFeeList($fee_list) { $this->container['fee_list'] = $fee_list; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/CouponPaymentEvent.php
lib/Models/Finances/CouponPaymentEvent.php
<?php /** * CouponPaymentEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CouponPaymentEvent Class Doc Comment. * * @description An event related to coupon payments. * * @author Stefan Neuhaus / ClouSale */ class CouponPaymentEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CouponPaymentEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'coupon_id' => 'string', 'seller_coupon_description' => 'string', 'clip_or_redemption_count' => 'int', 'payment_event_id' => 'string', 'fee_component' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponent', 'charge_component' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent', 'total_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'posted_date' => null, 'coupon_id' => null, 'seller_coupon_description' => null, 'clip_or_redemption_count' => 'int64', 'payment_event_id' => null, 'fee_component' => null, 'charge_component' => null, 'total_amount' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'posted_date' => 'PostedDate', 'coupon_id' => 'CouponId', 'seller_coupon_description' => 'SellerCouponDescription', 'clip_or_redemption_count' => 'ClipOrRedemptionCount', 'payment_event_id' => 'PaymentEventId', 'fee_component' => 'FeeComponent', 'charge_component' => 'ChargeComponent', 'total_amount' => 'TotalAmount', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'posted_date' => 'setPostedDate', 'coupon_id' => 'setCouponId', 'seller_coupon_description' => 'setSellerCouponDescription', 'clip_or_redemption_count' => 'setClipOrRedemptionCount', 'payment_event_id' => 'setPaymentEventId', 'fee_component' => 'setFeeComponent', 'charge_component' => 'setChargeComponent', 'total_amount' => 'setTotalAmount', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'posted_date' => 'getPostedDate', 'coupon_id' => 'getCouponId', 'seller_coupon_description' => 'getSellerCouponDescription', 'clip_or_redemption_count' => 'getClipOrRedemptionCount', 'payment_event_id' => 'getPaymentEventId', 'fee_component' => 'getFeeComponent', 'charge_component' => 'getChargeComponent', 'total_amount' => 'getTotalAmount', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null; $this->container['coupon_id'] = isset($data['coupon_id']) ? $data['coupon_id'] : null; $this->container['seller_coupon_description'] = isset($data['seller_coupon_description']) ? $data['seller_coupon_description'] : null; $this->container['clip_or_redemption_count'] = isset($data['clip_or_redemption_count']) ? $data['clip_or_redemption_count'] : null; $this->container['payment_event_id'] = isset($data['payment_event_id']) ? $data['payment_event_id'] : null; $this->container['fee_component'] = isset($data['fee_component']) ? $data['fee_component'] : null; $this->container['charge_component'] = isset($data['charge_component']) ? $data['charge_component'] : null; $this->container['total_amount'] = isset($data['total_amount']) ? $data['total_amount'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets posted_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getPostedDate() { return $this->container['posted_date']; } /** * Sets posted_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date * * @return $this */ public function setPostedDate($posted_date) { $this->container['posted_date'] = $posted_date; return $this; } /** * Gets coupon_id. * * @return string */ public function getCouponId() { return $this->container['coupon_id']; } /** * Sets coupon_id. * * @param string $coupon_id a coupon identifier * * @return $this */ public function setCouponId($coupon_id) { $this->container['coupon_id'] = $coupon_id; return $this; } /** * Gets seller_coupon_description. * * @return string */ public function getSellerCouponDescription() { return $this->container['seller_coupon_description']; } /** * Sets seller_coupon_description. * * @param string $seller_coupon_description the description provided by the seller when they created the coupon * * @return $this */ public function setSellerCouponDescription($seller_coupon_description) { $this->container['seller_coupon_description'] = $seller_coupon_description; return $this; } /** * Gets clip_or_redemption_count. * * @return int */ public function getClipOrRedemptionCount() { return $this->container['clip_or_redemption_count']; } /** * Sets clip_or_redemption_count. * * @param int $clip_or_redemption_count the number of coupon clips or redemptions * * @return $this */ public function setClipOrRedemptionCount($clip_or_redemption_count) { $this->container['clip_or_redemption_count'] = $clip_or_redemption_count; return $this; } /** * Gets payment_event_id. * * @return string */ public function getPaymentEventId() { return $this->container['payment_event_id']; } /** * Sets payment_event_id. * * @param string $payment_event_id a payment event identifier * * @return $this */ public function setPaymentEventId($payment_event_id) { $this->container['payment_event_id'] = $payment_event_id; return $this; } /** * Gets fee_component. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponent */ public function getFeeComponent() { return $this->container['fee_component']; } /** * Sets fee_component. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponent $fee_component fee_component * * @return $this */ public function setFeeComponent($fee_component) { $this->container['fee_component'] = $fee_component; return $this; } /** * Gets charge_component. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent */ public function getChargeComponent() { return $this->container['charge_component']; } /** * Sets charge_component. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent $charge_component charge_component * * @return $this */ public function setChargeComponent($charge_component) { $this->container['charge_component'] = $charge_component; return $this; } /** * Gets total_amount. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getTotalAmount() { return $this->container['total_amount']; } /** * Sets total_amount. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $total_amount total_amount * * @return $this */ public function setTotalAmount($total_amount) { $this->container['total_amount'] = $total_amount; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/RentalTransactionEventList.php
lib/Models/Finances/RentalTransactionEventList.php
<?php /** * RentalTransactionEventList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * RentalTransactionEventList Class Doc Comment. * * @description A list of rental transaction event information. * * @author Stefan Neuhaus / ClouSale */ class RentalTransactionEventList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'RentalTransactionEventList'; /** * 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 RentalTransactionEvent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/TaxWithheldComponentList.php
lib/Models/Finances/TaxWithheldComponentList.php
<?php /** * TaxWithheldComponentList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TaxWithheldComponentList Class Doc Comment. * * @description A list of information about taxes withheld. * * @author Stefan Neuhaus / ClouSale */ class TaxWithheldComponentList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TaxWithheldComponentList'; /** * 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 TaxWithheldComponent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/DebtRecoveryEvent.php
lib/Models/Finances/DebtRecoveryEvent.php
<?php /** * DebtRecoveryEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DebtRecoveryEvent Class Doc Comment. * * @description A debt payment or debt adjustment. * * @author Stefan Neuhaus / ClouSale */ class DebtRecoveryEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DebtRecoveryEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'debt_recovery_type' => 'string', 'recovery_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'over_payment_credit' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'debt_recovery_item_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\DebtRecoveryItemList', 'charge_instrument_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeInstrumentList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'debt_recovery_type' => null, 'recovery_amount' => null, 'over_payment_credit' => null, 'debt_recovery_item_list' => null, 'charge_instrument_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 = [ 'debt_recovery_type' => 'DebtRecoveryType', 'recovery_amount' => 'RecoveryAmount', 'over_payment_credit' => 'OverPaymentCredit', 'debt_recovery_item_list' => 'DebtRecoveryItemList', 'charge_instrument_list' => 'ChargeInstrumentList', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'debt_recovery_type' => 'setDebtRecoveryType', 'recovery_amount' => 'setRecoveryAmount', 'over_payment_credit' => 'setOverPaymentCredit', 'debt_recovery_item_list' => 'setDebtRecoveryItemList', 'charge_instrument_list' => 'setChargeInstrumentList', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'debt_recovery_type' => 'getDebtRecoveryType', 'recovery_amount' => 'getRecoveryAmount', 'over_payment_credit' => 'getOverPaymentCredit', 'debt_recovery_item_list' => 'getDebtRecoveryItemList', 'charge_instrument_list' => 'getChargeInstrumentList', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['debt_recovery_type'] = isset($data['debt_recovery_type']) ? $data['debt_recovery_type'] : null; $this->container['recovery_amount'] = isset($data['recovery_amount']) ? $data['recovery_amount'] : null; $this->container['over_payment_credit'] = isset($data['over_payment_credit']) ? $data['over_payment_credit'] : null; $this->container['debt_recovery_item_list'] = isset($data['debt_recovery_item_list']) ? $data['debt_recovery_item_list'] : null; $this->container['charge_instrument_list'] = isset($data['charge_instrument_list']) ? $data['charge_instrument_list'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets debt_recovery_type. * * @return string */ public function getDebtRecoveryType() { return $this->container['debt_recovery_type']; } /** * Sets debt_recovery_type. * * @param string $debt_recovery_type The debt recovery type. Possible values: * DebtPayment * DebtPaymentFailure *DebtAdjustment * * @return $this */ public function setDebtRecoveryType($debt_recovery_type) { $this->container['debt_recovery_type'] = $debt_recovery_type; return $this; } /** * Gets recovery_amount. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getRecoveryAmount() { return $this->container['recovery_amount']; } /** * Sets recovery_amount. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $recovery_amount recovery_amount * * @return $this */ public function setRecoveryAmount($recovery_amount) { $this->container['recovery_amount'] = $recovery_amount; return $this; } /** * Gets over_payment_credit. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getOverPaymentCredit() { return $this->container['over_payment_credit']; } /** * Sets over_payment_credit. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $over_payment_credit over_payment_credit * * @return $this */ public function setOverPaymentCredit($over_payment_credit) { $this->container['over_payment_credit'] = $over_payment_credit; return $this; } /** * Gets debt_recovery_item_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DebtRecoveryItemList */ public function getDebtRecoveryItemList() { return $this->container['debt_recovery_item_list']; } /** * Sets debt_recovery_item_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DebtRecoveryItemList $debt_recovery_item_list debt_recovery_item_list * * @return $this */ public function setDebtRecoveryItemList($debt_recovery_item_list) { $this->container['debt_recovery_item_list'] = $debt_recovery_item_list; return $this; } /** * Gets charge_instrument_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeInstrumentList */ public function getChargeInstrumentList() { return $this->container['charge_instrument_list']; } /** * Sets charge_instrument_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeInstrumentList $charge_instrument_list charge_instrument_list * * @return $this */ public function setChargeInstrumentList($charge_instrument_list) { $this->container['charge_instrument_list'] = $charge_instrument_list; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/AdjustmentEvent.php
lib/Models/Finances/AdjustmentEvent.php
<?php /** * AdjustmentEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AdjustmentEvent Class Doc Comment. * * @description An adjustment to the seller&#x27;s account. * * @author Stefan Neuhaus / ClouSale */ class AdjustmentEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AdjustmentEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'adjustment_type' => 'string', 'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'adjustment_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'adjustment_item_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\AdjustmentItemList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'adjustment_type' => null, 'posted_date' => null, 'adjustment_amount' => null, 'adjustment_item_list' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'adjustment_type' => 'AdjustmentType', 'posted_date' => 'PostedDate', 'adjustment_amount' => 'AdjustmentAmount', 'adjustment_item_list' => 'AdjustmentItemList', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'adjustment_type' => 'setAdjustmentType', 'posted_date' => 'setPostedDate', 'adjustment_amount' => 'setAdjustmentAmount', 'adjustment_item_list' => 'setAdjustmentItemList', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'adjustment_type' => 'getAdjustmentType', 'posted_date' => 'getPostedDate', 'adjustment_amount' => 'getAdjustmentAmount', 'adjustment_item_list' => 'getAdjustmentItemList', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['adjustment_type'] = isset($data['adjustment_type']) ? $data['adjustment_type'] : null; $this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null; $this->container['adjustment_amount'] = isset($data['adjustment_amount']) ? $data['adjustment_amount'] : null; $this->container['adjustment_item_list'] = isset($data['adjustment_item_list']) ? $data['adjustment_item_list'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets adjustment_type. * * @return string */ public function getAdjustmentType() { return $this->container['adjustment_type']; } /** * Sets adjustment_type. * * @param string $adjustment_type The type of adjustment. Possible values: * FBAInventoryReimbursement - An FBA inventory reimbursement to a seller's account. This occurs if a seller's inventory is damaged. * ReserveEvent - A reserve event that is generated at the time of a settlement period closing. This occurs when some money from a seller's account is held back. * PostageBilling - The amount paid by a seller for shipping labels. * PostageRefund - The reimbursement of shipping labels purchased for orders that were canceled or refunded. * LostOrDamagedReimbursement - An Amazon Easy Ship reimbursement to a seller's account for a package that we lost or damaged. * CanceledButPickedUpReimbursement - An Amazon Easy Ship reimbursement to a seller's account. This occurs when a package is picked up and the order is subsequently canceled. This value is used only in the India marketplace. * ReimbursementClawback - An Amazon Easy Ship reimbursement clawback from a seller's account. This occurs when a prior reimbursement is reversed. This value is used only in the India marketplace. * SellerRewards - An award credited to a seller's account for their participation in an offer in the Seller Rewards program. Applies only to the India marketplace. * * @return $this */ public function setAdjustmentType($adjustment_type) { $this->container['adjustment_type'] = $adjustment_type; return $this; } /** * Gets posted_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getPostedDate() { return $this->container['posted_date']; } /** * Sets posted_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date * * @return $this */ public function setPostedDate($posted_date) { $this->container['posted_date'] = $posted_date; return $this; } /** * Gets adjustment_amount. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getAdjustmentAmount() { return $this->container['adjustment_amount']; } /** * Sets adjustment_amount. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $adjustment_amount adjustment_amount * * @return $this */ public function setAdjustmentAmount($adjustment_amount) { $this->container['adjustment_amount'] = $adjustment_amount; return $this; } /** * Gets adjustment_item_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\AdjustmentItemList */ public function getAdjustmentItemList() { return $this->container['adjustment_item_list']; } /** * Sets adjustment_item_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\AdjustmentItemList $adjustment_item_list adjustment_item_list * * @return $this */ public function setAdjustmentItemList($adjustment_item_list) { $this->container['adjustment_item_list'] = $adjustment_item_list; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/AdjustmentItemList.php
lib/Models/Finances/AdjustmentItemList.php
<?php /** * AdjustmentItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * AdjustmentItemList Class Doc Comment. * * @description A list of information about items in an adjustment to the seller&#x27;s account. * * @author Stefan Neuhaus / ClouSale */ class AdjustmentItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'AdjustmentItemList'; /** * 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 AdjustmentItem::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/DebtRecoveryItemList.php
lib/Models/Finances/DebtRecoveryItemList.php
<?php /** * DebtRecoveryItemList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DebtRecoveryItemList Class Doc Comment. * * @description A list of debt recovery item information. * * @author Stefan Neuhaus / ClouSale */ class DebtRecoveryItemList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DebtRecoveryItemList'; /** * 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 DebtRecoveryItem::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/FBALiquidationEventList.php
lib/Models/Finances/FBALiquidationEventList.php
<?php /** * FBALiquidationEventList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FBALiquidationEventList Class Doc Comment. * * @description A list of FBA inventory liquidation payment events. * * @author Stefan Neuhaus / ClouSale */ class FBALiquidationEventList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FBALiquidationEventList'; /** * 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 FBALiquidationEvent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/TrialShipmentEventList.php
lib/Models/Finances/TrialShipmentEventList.php
<?php /** * TrialShipmentEventList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TrialShipmentEventList Class Doc Comment. * * @description A list of information about trial shipment financial events. * * @author Stefan Neuhaus / ClouSale */ class TrialShipmentEventList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TrialShipmentEventList'; /** * 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 TrialShipmentEvent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/PayWithAmazonEvent.php
lib/Models/Finances/PayWithAmazonEvent.php
<?php /** * PayWithAmazonEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * PayWithAmazonEvent Class Doc Comment. * * @description An event related to the seller&#x27;s Pay with Amazon account. * * @author Stefan Neuhaus / ClouSale */ class PayWithAmazonEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'PayWithAmazonEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'seller_order_id' => 'string', 'transaction_posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'business_object_type' => 'string', 'sales_channel' => 'string', 'charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent', 'fee_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList', 'payment_amount_type' => 'string', 'amount_description' => 'string', 'fulfillment_channel' => 'string', 'store_name' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'seller_order_id' => null, 'transaction_posted_date' => null, 'business_object_type' => null, 'sales_channel' => null, 'charge' => null, 'fee_list' => null, 'payment_amount_type' => null, 'amount_description' => null, 'fulfillment_channel' => null, 'store_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 = [ 'seller_order_id' => 'SellerOrderId', 'transaction_posted_date' => 'TransactionPostedDate', 'business_object_type' => 'BusinessObjectType', 'sales_channel' => 'SalesChannel', 'charge' => 'Charge', 'fee_list' => 'FeeList', 'payment_amount_type' => 'PaymentAmountType', 'amount_description' => 'AmountDescription', 'fulfillment_channel' => 'FulfillmentChannel', 'store_name' => 'StoreName', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'seller_order_id' => 'setSellerOrderId', 'transaction_posted_date' => 'setTransactionPostedDate', 'business_object_type' => 'setBusinessObjectType', 'sales_channel' => 'setSalesChannel', 'charge' => 'setCharge', 'fee_list' => 'setFeeList', 'payment_amount_type' => 'setPaymentAmountType', 'amount_description' => 'setAmountDescription', 'fulfillment_channel' => 'setFulfillmentChannel', 'store_name' => 'setStoreName', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'seller_order_id' => 'getSellerOrderId', 'transaction_posted_date' => 'getTransactionPostedDate', 'business_object_type' => 'getBusinessObjectType', 'sales_channel' => 'getSalesChannel', 'charge' => 'getCharge', 'fee_list' => 'getFeeList', 'payment_amount_type' => 'getPaymentAmountType', 'amount_description' => 'getAmountDescription', 'fulfillment_channel' => 'getFulfillmentChannel', 'store_name' => 'getStoreName', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @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_order_id'] = isset($data['seller_order_id']) ? $data['seller_order_id'] : null; $this->container['transaction_posted_date'] = isset($data['transaction_posted_date']) ? $data['transaction_posted_date'] : null; $this->container['business_object_type'] = isset($data['business_object_type']) ? $data['business_object_type'] : null; $this->container['sales_channel'] = isset($data['sales_channel']) ? $data['sales_channel'] : null; $this->container['charge'] = isset($data['charge']) ? $data['charge'] : null; $this->container['fee_list'] = isset($data['fee_list']) ? $data['fee_list'] : null; $this->container['payment_amount_type'] = isset($data['payment_amount_type']) ? $data['payment_amount_type'] : null; $this->container['amount_description'] = isset($data['amount_description']) ? $data['amount_description'] : null; $this->container['fulfillment_channel'] = isset($data['fulfillment_channel']) ? $data['fulfillment_channel'] : null; $this->container['store_name'] = isset($data['store_name']) ? $data['store_name'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets seller_order_id. * * @return string */ public function getSellerOrderId() { return $this->container['seller_order_id']; } /** * Sets seller_order_id. * * @param string $seller_order_id an order identifier that is specified by the seller * * @return $this */ public function setSellerOrderId($seller_order_id) { $this->container['seller_order_id'] = $seller_order_id; return $this; } /** * Gets transaction_posted_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getTransactionPostedDate() { return $this->container['transaction_posted_date']; } /** * Sets transaction_posted_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $transaction_posted_date transaction_posted_date * * @return $this */ public function setTransactionPostedDate($transaction_posted_date) { $this->container['transaction_posted_date'] = $transaction_posted_date; return $this; } /** * Gets business_object_type. * * @return string */ public function getBusinessObjectType() { return $this->container['business_object_type']; } /** * Sets business_object_type. * * @param string $business_object_type the type of business object * * @return $this */ public function setBusinessObjectType($business_object_type) { $this->container['business_object_type'] = $business_object_type; return $this; } /** * Gets sales_channel. * * @return string */ public function getSalesChannel() { return $this->container['sales_channel']; } /** * Sets sales_channel. * * @param string $sales_channel the sales channel for the transaction * * @return $this */ public function setSalesChannel($sales_channel) { $this->container['sales_channel'] = $sales_channel; return $this; } /** * Gets charge. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent */ public function getCharge() { return $this->container['charge']; } /** * Sets charge. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponent $charge charge * * @return $this */ public function setCharge($charge) { $this->container['charge'] = $charge; return $this; } /** * Gets fee_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList */ public function getFeeList() { return $this->container['fee_list']; } /** * Sets fee_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $fee_list fee_list * * @return $this */ public function setFeeList($fee_list) { $this->container['fee_list'] = $fee_list; return $this; } /** * Gets payment_amount_type. * * @return string */ public function getPaymentAmountType() { return $this->container['payment_amount_type']; } /** * Sets payment_amount_type. * * @param string $payment_amount_type The type of payment. Possible values: * Sales * * @return $this */ public function setPaymentAmountType($payment_amount_type) { $this->container['payment_amount_type'] = $payment_amount_type; return $this; } /** * Gets amount_description. * * @return string */ public function getAmountDescription() { return $this->container['amount_description']; } /** * Sets amount_description. * * @param string $amount_description a short description of this payment event * * @return $this */ public function setAmountDescription($amount_description) { $this->container['amount_description'] = $amount_description; 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. Possible values: * AFN - Amazon Fulfillment Network (Fulfillment by Amazon) * MFN - Merchant Fulfillment Network (self-fulfilled) * * @return $this */ public function setFulfillmentChannel($fulfillment_channel) { $this->container['fulfillment_channel'] = $fulfillment_channel; return $this; } /** * Gets store_name. * * @return string */ public function getStoreName() { return $this->container['store_name']; } /** * Sets store_name. * * @param string $store_name the store name where the event occurred * * @return $this */ public function setStoreName($store_name) { $this->container['store_name'] = $store_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/Finances/RentalTransactionEvent.php
lib/Models/Finances/RentalTransactionEvent.php
<?php /** * RentalTransactionEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * RentalTransactionEvent Class Doc Comment. * * @description An event related to a rental transaction. * * @author Stefan Neuhaus / ClouSale */ class RentalTransactionEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'RentalTransactionEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'amazon_order_id' => 'string', 'rental_event_type' => 'string', 'extension_length' => 'int', 'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'rental_charge_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList', 'rental_fee_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList', 'marketplace_name' => 'string', 'rental_initial_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'rental_reimbursement' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'rental_tax_withheld_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'amazon_order_id' => null, 'rental_event_type' => null, 'extension_length' => 'int32', 'posted_date' => null, 'rental_charge_list' => null, 'rental_fee_list' => null, 'marketplace_name' => null, 'rental_initial_value' => null, 'rental_reimbursement' => null, 'rental_tax_withheld_list' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'amazon_order_id' => 'AmazonOrderId', 'rental_event_type' => 'RentalEventType', 'extension_length' => 'ExtensionLength', 'posted_date' => 'PostedDate', 'rental_charge_list' => 'RentalChargeList', 'rental_fee_list' => 'RentalFeeList', 'marketplace_name' => 'MarketplaceName', 'rental_initial_value' => 'RentalInitialValue', 'rental_reimbursement' => 'RentalReimbursement', 'rental_tax_withheld_list' => 'RentalTaxWithheldList', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'amazon_order_id' => 'setAmazonOrderId', 'rental_event_type' => 'setRentalEventType', 'extension_length' => 'setExtensionLength', 'posted_date' => 'setPostedDate', 'rental_charge_list' => 'setRentalChargeList', 'rental_fee_list' => 'setRentalFeeList', 'marketplace_name' => 'setMarketplaceName', 'rental_initial_value' => 'setRentalInitialValue', 'rental_reimbursement' => 'setRentalReimbursement', 'rental_tax_withheld_list' => 'setRentalTaxWithheldList', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'amazon_order_id' => 'getAmazonOrderId', 'rental_event_type' => 'getRentalEventType', 'extension_length' => 'getExtensionLength', 'posted_date' => 'getPostedDate', 'rental_charge_list' => 'getRentalChargeList', 'rental_fee_list' => 'getRentalFeeList', 'marketplace_name' => 'getMarketplaceName', 'rental_initial_value' => 'getRentalInitialValue', 'rental_reimbursement' => 'getRentalReimbursement', 'rental_tax_withheld_list' => 'getRentalTaxWithheldList', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null; $this->container['rental_event_type'] = isset($data['rental_event_type']) ? $data['rental_event_type'] : null; $this->container['extension_length'] = isset($data['extension_length']) ? $data['extension_length'] : null; $this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null; $this->container['rental_charge_list'] = isset($data['rental_charge_list']) ? $data['rental_charge_list'] : null; $this->container['rental_fee_list'] = isset($data['rental_fee_list']) ? $data['rental_fee_list'] : null; $this->container['marketplace_name'] = isset($data['marketplace_name']) ? $data['marketplace_name'] : null; $this->container['rental_initial_value'] = isset($data['rental_initial_value']) ? $data['rental_initial_value'] : null; $this->container['rental_reimbursement'] = isset($data['rental_reimbursement']) ? $data['rental_reimbursement'] : null; $this->container['rental_tax_withheld_list'] = isset($data['rental_tax_withheld_list']) ? $data['rental_tax_withheld_list'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets amazon_order_id. * * @return string */ public function getAmazonOrderId() { return $this->container['amazon_order_id']; } /** * Sets amazon_order_id. * * @param string $amazon_order_id an Amazon-defined identifier for an order * * @return $this */ public function setAmazonOrderId($amazon_order_id) { $this->container['amazon_order_id'] = $amazon_order_id; return $this; } /** * Gets rental_event_type. * * @return string */ public function getRentalEventType() { return $this->container['rental_event_type']; } /** * Sets rental_event_type. * * @param string $rental_event_type The type of rental event. Possible values: * RentalCustomerPayment-Buyout - Transaction type that represents when the customer wants to buy out a rented item. * RentalCustomerPayment-Extension - Transaction type that represents when the customer wants to extend the rental period. * RentalCustomerRefund-Buyout - Transaction type that represents when the customer requests a refund for the buyout of the rented item. * RentalCustomerRefund-Extension - Transaction type that represents when the customer requests a refund over the extension on the rented item. * RentalHandlingFee - Transaction type that represents the fee that Amazon charges sellers who rent through Amazon. * RentalChargeFailureReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a failed charge. * RentalLostItemReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a lost item. * * @return $this */ public function setRentalEventType($rental_event_type) { $this->container['rental_event_type'] = $rental_event_type; return $this; } /** * Gets extension_length. * * @return int */ public function getExtensionLength() { return $this->container['extension_length']; } /** * Sets extension_length. * * @param int $extension_length The number of days that the buyer extended an already rented item. This value is only returned for RentalCustomerPayment-Extension and RentalCustomerRefund-Extension events. * * @return $this */ public function setExtensionLength($extension_length) { $this->container['extension_length'] = $extension_length; return $this; } /** * Gets posted_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getPostedDate() { return $this->container['posted_date']; } /** * Sets posted_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date * * @return $this */ public function setPostedDate($posted_date) { $this->container['posted_date'] = $posted_date; return $this; } /** * Gets rental_charge_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList */ public function getRentalChargeList() { return $this->container['rental_charge_list']; } /** * Sets rental_charge_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList $rental_charge_list rental_charge_list * * @return $this */ public function setRentalChargeList($rental_charge_list) { $this->container['rental_charge_list'] = $rental_charge_list; return $this; } /** * Gets rental_fee_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList */ public function getRentalFeeList() { return $this->container['rental_fee_list']; } /** * Sets rental_fee_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FeeComponentList $rental_fee_list rental_fee_list * * @return $this */ public function setRentalFeeList($rental_fee_list) { $this->container['rental_fee_list'] = $rental_fee_list; return $this; } /** * Gets marketplace_name. * * @return string */ public function getMarketplaceName() { return $this->container['marketplace_name']; } /** * Sets marketplace_name. * * @param string $marketplace_name the name of the marketplace * * @return $this */ public function setMarketplaceName($marketplace_name) { $this->container['marketplace_name'] = $marketplace_name; return $this; } /** * Gets rental_initial_value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getRentalInitialValue() { return $this->container['rental_initial_value']; } /** * Sets rental_initial_value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $rental_initial_value rental_initial_value * * @return $this */ public function setRentalInitialValue($rental_initial_value) { $this->container['rental_initial_value'] = $rental_initial_value; return $this; } /** * Gets rental_reimbursement. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getRentalReimbursement() { return $this->container['rental_reimbursement']; } /** * Sets rental_reimbursement. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $rental_reimbursement rental_reimbursement * * @return $this */ public function setRentalReimbursement($rental_reimbursement) { $this->container['rental_reimbursement'] = $rental_reimbursement; return $this; } /** * Gets rental_tax_withheld_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList */ public function getRentalTaxWithheldList() { return $this->container['rental_tax_withheld_list']; } /** * Sets rental_tax_withheld_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList $rental_tax_withheld_list rental_tax_withheld_list * * @return $this */ public function setRentalTaxWithheldList($rental_tax_withheld_list) { $this->container['rental_tax_withheld_list'] = $rental_tax_withheld_list; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ErrorList.php
lib/Models/Finances/ErrorList.php
<?php /** * ErrorList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * 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/Finances/RetrochargeEvent.php
lib/Models/Finances/RetrochargeEvent.php
<?php /** * RetrochargeEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * RetrochargeEvent Class Doc Comment. * * @description A retrocharge or retrocharge reversal. * * @author Stefan Neuhaus / ClouSale */ class RetrochargeEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'RetrochargeEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'retrocharge_event_type' => 'string', 'amazon_order_id' => 'string', 'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'base_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'shipping_tax' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'marketplace_name' => 'string', 'retrocharge_tax_withheld_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'retrocharge_event_type' => null, 'amazon_order_id' => null, 'posted_date' => null, 'base_tax' => null, 'shipping_tax' => null, 'marketplace_name' => null, 'retrocharge_tax_withheld_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 = [ 'retrocharge_event_type' => 'RetrochargeEventType', 'amazon_order_id' => 'AmazonOrderId', 'posted_date' => 'PostedDate', 'base_tax' => 'BaseTax', 'shipping_tax' => 'ShippingTax', 'marketplace_name' => 'MarketplaceName', 'retrocharge_tax_withheld_list' => 'RetrochargeTaxWithheldList', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'retrocharge_event_type' => 'setRetrochargeEventType', 'amazon_order_id' => 'setAmazonOrderId', 'posted_date' => 'setPostedDate', 'base_tax' => 'setBaseTax', 'shipping_tax' => 'setShippingTax', 'marketplace_name' => 'setMarketplaceName', 'retrocharge_tax_withheld_list' => 'setRetrochargeTaxWithheldList', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'retrocharge_event_type' => 'getRetrochargeEventType', 'amazon_order_id' => 'getAmazonOrderId', 'posted_date' => 'getPostedDate', 'base_tax' => 'getBaseTax', 'shipping_tax' => 'getShippingTax', 'marketplace_name' => 'getMarketplaceName', 'retrocharge_tax_withheld_list' => 'getRetrochargeTaxWithheldList', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['retrocharge_event_type'] = isset($data['retrocharge_event_type']) ? $data['retrocharge_event_type'] : null; $this->container['amazon_order_id'] = isset($data['amazon_order_id']) ? $data['amazon_order_id'] : null; $this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null; $this->container['base_tax'] = isset($data['base_tax']) ? $data['base_tax'] : null; $this->container['shipping_tax'] = isset($data['shipping_tax']) ? $data['shipping_tax'] : null; $this->container['marketplace_name'] = isset($data['marketplace_name']) ? $data['marketplace_name'] : null; $this->container['retrocharge_tax_withheld_list'] = isset($data['retrocharge_tax_withheld_list']) ? $data['retrocharge_tax_withheld_list'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets retrocharge_event_type. * * @return string */ public function getRetrochargeEventType() { return $this->container['retrocharge_event_type']; } /** * Sets retrocharge_event_type. * * @param string $retrocharge_event_type The type of event. Possible values: * Retrocharge * RetrochargeReversal * * @return $this */ public function setRetrochargeEventType($retrocharge_event_type) { $this->container['retrocharge_event_type'] = $retrocharge_event_type; return $this; } /** * Gets amazon_order_id. * * @return string */ public function getAmazonOrderId() { return $this->container['amazon_order_id']; } /** * Sets amazon_order_id. * * @param string $amazon_order_id an Amazon-defined identifier for an order * * @return $this */ public function setAmazonOrderId($amazon_order_id) { $this->container['amazon_order_id'] = $amazon_order_id; return $this; } /** * Gets posted_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getPostedDate() { return $this->container['posted_date']; } /** * Sets posted_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date * * @return $this */ public function setPostedDate($posted_date) { $this->container['posted_date'] = $posted_date; return $this; } /** * Gets base_tax. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getBaseTax() { return $this->container['base_tax']; } /** * Sets base_tax. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $base_tax base_tax * * @return $this */ public function setBaseTax($base_tax) { $this->container['base_tax'] = $base_tax; return $this; } /** * Gets shipping_tax. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getShippingTax() { return $this->container['shipping_tax']; } /** * Sets shipping_tax. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $shipping_tax shipping_tax * * @return $this */ public function setShippingTax($shipping_tax) { $this->container['shipping_tax'] = $shipping_tax; return $this; } /** * Gets marketplace_name. * * @return string */ public function getMarketplaceName() { return $this->container['marketplace_name']; } /** * Sets marketplace_name. * * @param string $marketplace_name the name of the marketplace where the retrocharge event occurred * * @return $this */ public function setMarketplaceName($marketplace_name) { $this->container['marketplace_name'] = $marketplace_name; return $this; } /** * Gets retrocharge_tax_withheld_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList */ public function getRetrochargeTaxWithheldList() { return $this->container['retrocharge_tax_withheld_list']; } /** * Sets retrocharge_tax_withheld_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\TaxWithheldComponentList $retrocharge_tax_withheld_list retrocharge_tax_withheld_list * * @return $this */ public function setRetrochargeTaxWithheldList($retrocharge_tax_withheld_list) { $this->container['retrocharge_tax_withheld_list'] = $retrocharge_tax_withheld_list; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/TaxWithheldComponent.php
lib/Models/Finances/TaxWithheldComponent.php
<?php /** * TaxWithheldComponent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * TaxWithheldComponent Class Doc Comment. * * @description Information about the taxes withheld. * * @author Stefan Neuhaus / ClouSale */ class TaxWithheldComponent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'TaxWithheldComponent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'tax_collection_model' => 'string', 'taxes_withheld' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'tax_collection_model' => null, 'taxes_withheld' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'tax_collection_model' => 'TaxCollectionModel', 'taxes_withheld' => 'TaxesWithheld', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'tax_collection_model' => 'setTaxCollectionModel', 'taxes_withheld' => 'setTaxesWithheld', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'tax_collection_model' => 'getTaxCollectionModel', 'taxes_withheld' => 'getTaxesWithheld', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['tax_collection_model'] = isset($data['tax_collection_model']) ? $data['tax_collection_model'] : null; $this->container['taxes_withheld'] = isset($data['taxes_withheld']) ? $data['taxes_withheld'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets tax_collection_model. * * @return string */ public function getTaxCollectionModel() { return $this->container['tax_collection_model']; } /** * Sets tax_collection_model. * * @param string $tax_collection_model The tax collection model applied to the item. Possible values: * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller. * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon. * * @return $this */ public function setTaxCollectionModel($tax_collection_model) { $this->container['tax_collection_model'] = $tax_collection_model; return $this; } /** * Gets taxes_withheld. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList */ public function getTaxesWithheld() { return $this->container['taxes_withheld']; } /** * Sets taxes_withheld. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ChargeComponentList $taxes_withheld taxes_withheld * * @return $this */ public function setTaxesWithheld($taxes_withheld) { $this->container['taxes_withheld'] = $taxes_withheld; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/LoanServicingEventList.php
lib/Models/Finances/LoanServicingEventList.php
<?php /** * LoanServicingEventList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * LoanServicingEventList Class Doc Comment. * * @description A list of loan servicing events. * * @author Stefan Neuhaus / ClouSale */ class LoanServicingEventList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'LoanServicingEventList'; /** * 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 LoanServicingEvent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ListFinancialEventsResponse.php
lib/Models/Finances/ListFinancialEventsResponse.php
<?php /** * ListFinancialEventsResponse. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ListFinancialEventsResponse Class Doc Comment. * * @description The response schema for the listFinancialEvents operation. * * @author Stefan Neuhaus / ClouSale */ class ListFinancialEventsResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ListFinancialEventsResponse'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'payload' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ListFinancialEventsPayload', 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\ErrorList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'payload' => null, 'errors' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', 'errors' => 'errors', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'errors' => 'setErrors', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['payload'] = isset($data['payload']) ? $data['payload'] : null; $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ListFinancialEventsPayload */ public function getPayload() { return $this->container['payload']; } /** * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ListFinancialEventsPayload $payload payload * * @return $this */ public function setPayload($payload) { $this->container['payload'] = $payload; return $this; } /** * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ErrorList */ public function getErrors() { return $this->container['errors']; } /** * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\ErrorList $errors errors * * @return $this */ public function setErrors($errors) { $this->container['errors'] = $errors; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SAFETReimbursementEventList.php
lib/Models/Finances/SAFETReimbursementEventList.php
<?php /** * SAFETReimbursementEventList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * SAFETReimbursementEventList Class Doc Comment. * * @description A list of SAFETReimbursementEvents. * * @author Stefan Neuhaus / ClouSale */ class SAFETReimbursementEventList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'SAFETReimbursementEventList'; /** * 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 SAFETReimbursementEvent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/FinancialEventGroupList.php
lib/Models/Finances/FinancialEventGroupList.php
<?php /** * FinancialEventGroupList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FinancialEventGroupList Class Doc Comment. * * @description A list of financial event group information. * * @author Stefan Neuhaus / ClouSale */ class FinancialEventGroupList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FinancialEventGroupList'; /** * 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 FinancialEventGroup::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/NetworkComminglingTransactionEventList.php
lib/Models/Finances/NetworkComminglingTransactionEventList.php
<?php /** * NetworkComminglingTransactionEventList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * NetworkComminglingTransactionEventList Class Doc Comment. * * @description A list of network commingling transaction events. * * @author Stefan Neuhaus / ClouSale */ class NetworkComminglingTransactionEventList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'NetworkComminglingTransactionEventList'; /** * 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 NetworkComminglingTransactionEvent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/CouponPaymentEventList.php
lib/Models/Finances/CouponPaymentEventList.php
<?php /** * CouponPaymentEventList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * CouponPaymentEventList Class Doc Comment. * * @description A list of coupon payment event information. * * @author Stefan Neuhaus / ClouSale */ class CouponPaymentEventList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'CouponPaymentEventList'; /** * 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 CouponPaymentEvent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/DirectPaymentList.php
lib/Models/Finances/DirectPaymentList.php
<?php /** * DirectPaymentList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * DirectPaymentList Class Doc Comment. * * @description A list of direct payment information. * * @author Stefan Neuhaus / ClouSale */ class DirectPaymentList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'DirectPaymentList'; /** * 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 DirectPayment::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ChargeComponentList.php
lib/Models/Finances/ChargeComponentList.php
<?php /** * ChargeComponentList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ChargeComponentList Class Doc Comment. * * @description A list of charge information on the seller&#x27;s account. * * @author Stefan Neuhaus / ClouSale */ class ChargeComponentList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ChargeComponentList'; /** * 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 ChargeComponent::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ListFinancialEventGroupsPayload.php
lib/Models/Finances/ListFinancialEventGroupsPayload.php
<?php /** * ListFinancialEventGroupsPayload. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ListFinancialEventGroupsPayload Class Doc Comment. * * @description The payload for the listFinancialEventGroups operation. * * @author Stefan Neuhaus / ClouSale */ class ListFinancialEventGroupsPayload implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ListFinancialEventGroupsPayload'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'next_token' => 'string', 'financial_event_group_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\FinancialEventGroupList', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'next_token' => null, 'financial_event_group_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 = [ 'next_token' => 'NextToken', 'financial_event_group_list' => 'FinancialEventGroupList', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'next_token' => 'setNextToken', 'financial_event_group_list' => 'setFinancialEventGroupList', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'next_token' => 'getNextToken', 'financial_event_group_list' => 'getFinancialEventGroupList', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['next_token'] = isset($data['next_token']) ? $data['next_token'] : null; $this->container['financial_event_group_list'] = isset($data['financial_event_group_list']) ? $data['financial_event_group_list'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets next_token. * * @return string */ public function getNextToken() { return $this->container['next_token']; } /** * Sets next_token. * * @param string $next_token when present and not empty, pass this string token in the next request to return the next response page * * @return $this */ public function setNextToken($next_token) { $this->container['next_token'] = $next_token; return $this; } /** * Gets financial_event_group_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FinancialEventGroupList */ public function getFinancialEventGroupList() { return $this->container['financial_event_group_list']; } /** * Sets financial_event_group_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\FinancialEventGroupList $financial_event_group_list financial_event_group_list * * @return $this */ public function setFinancialEventGroupList($financial_event_group_list) { $this->container['financial_event_group_list'] = $financial_event_group_list; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/SellerDealPaymentEvent.php
lib/Models/Finances/SellerDealPaymentEvent.php
<?php /** * SellerDealPaymentEvent. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * SellerDealPaymentEvent Class Doc Comment. * * @description An event linked to the payment of a fee related to the specified deal. * * @author Stefan Neuhaus / ClouSale */ class SellerDealPaymentEvent implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'SellerDealPaymentEvent'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'posted_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'deal_id' => 'string', 'deal_description' => 'string', 'event_type' => 'string', 'fee_type' => 'string', 'fee_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'tax_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'total_amount' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'posted_date' => null, 'deal_id' => null, 'deal_description' => null, 'event_type' => null, 'fee_type' => null, 'fee_amount' => null, 'tax_amount' => null, 'total_amount' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'posted_date' => 'postedDate', 'deal_id' => 'dealId', 'deal_description' => 'dealDescription', 'event_type' => 'eventType', 'fee_type' => 'feeType', 'fee_amount' => 'feeAmount', 'tax_amount' => 'taxAmount', 'total_amount' => 'totalAmount', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'posted_date' => 'setPostedDate', 'deal_id' => 'setDealId', 'deal_description' => 'setDealDescription', 'event_type' => 'setEventType', 'fee_type' => 'setFeeType', 'fee_amount' => 'setFeeAmount', 'tax_amount' => 'setTaxAmount', 'total_amount' => 'setTotalAmount', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'posted_date' => 'getPostedDate', 'deal_id' => 'getDealId', 'deal_description' => 'getDealDescription', 'event_type' => 'getEventType', 'fee_type' => 'getFeeType', 'fee_amount' => 'getFeeAmount', 'tax_amount' => 'getTaxAmount', 'total_amount' => 'getTotalAmount', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['posted_date'] = isset($data['posted_date']) ? $data['posted_date'] : null; $this->container['deal_id'] = isset($data['deal_id']) ? $data['deal_id'] : null; $this->container['deal_description'] = isset($data['deal_description']) ? $data['deal_description'] : null; $this->container['event_type'] = isset($data['event_type']) ? $data['event_type'] : null; $this->container['fee_type'] = isset($data['fee_type']) ? $data['fee_type'] : null; $this->container['fee_amount'] = isset($data['fee_amount']) ? $data['fee_amount'] : null; $this->container['tax_amount'] = isset($data['tax_amount']) ? $data['tax_amount'] : null; $this->container['total_amount'] = isset($data['total_amount']) ? $data['total_amount'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets posted_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getPostedDate() { return $this->container['posted_date']; } /** * Sets posted_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $posted_date posted_date * * @return $this */ public function setPostedDate($posted_date) { $this->container['posted_date'] = $posted_date; return $this; } /** * Gets deal_id. * * @return string */ public function getDealId() { return $this->container['deal_id']; } /** * Sets deal_id. * * @param string $deal_id the unique identifier of the deal * * @return $this */ public function setDealId($deal_id) { $this->container['deal_id'] = $deal_id; return $this; } /** * Gets deal_description. * * @return string */ public function getDealDescription() { return $this->container['deal_description']; } /** * Sets deal_description. * * @param string $deal_description the internal description of the deal * * @return $this */ public function setDealDescription($deal_description) { $this->container['deal_description'] = $deal_description; return $this; } /** * Gets event_type. * * @return string */ public function getEventType() { return $this->container['event_type']; } /** * Sets event_type. * * @param string $event_type the type of event: SellerDealComplete * * @return $this */ public function setEventType($event_type) { $this->container['event_type'] = $event_type; return $this; } /** * Gets fee_type. * * @return string */ public function getFeeType() { return $this->container['fee_type']; } /** * Sets fee_type. * * @param string $fee_type the type of fee: RunLightningDealFee * * @return $this */ public function setFeeType($fee_type) { $this->container['fee_type'] = $fee_type; return $this; } /** * Gets fee_amount. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getFeeAmount() { return $this->container['fee_amount']; } /** * Sets fee_amount. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $fee_amount fee_amount * * @return $this */ public function setFeeAmount($fee_amount) { $this->container['fee_amount'] = $fee_amount; return $this; } /** * Gets tax_amount. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getTaxAmount() { return $this->container['tax_amount']; } /** * Sets tax_amount. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $tax_amount tax_amount * * @return $this */ public function setTaxAmount($tax_amount) { $this->container['tax_amount'] = $tax_amount; return $this; } /** * Gets total_amount. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getTotalAmount() { return $this->container['total_amount']; } /** * Sets total_amount. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $total_amount total_amount * * @return $this */ public function setTotalAmount($total_amount) { $this->container['total_amount'] = $total_amount; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/FinancialEventGroup.php
lib/Models/Finances/FinancialEventGroup.php
<?php /** * FinancialEventGroup. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * FinancialEventGroup Class Doc Comment. * * @description Information related to a financial event group. * * @author Stefan Neuhaus / ClouSale */ class FinancialEventGroup implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'FinancialEventGroup'; /** * Array of property to type mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerTypes = [ 'financial_event_group_id' => 'string', 'processing_status' => 'string', 'fund_transfer_status' => 'string', 'original_total' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'converted_total' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'fund_transfer_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'trace_id' => 'string', 'account_tail' => 'string', 'beginning_balance' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency', 'financial_event_group_start' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', 'financial_event_group_end' => '\ClouSale\AmazonSellingPartnerAPI\Models\Finances\\DateTime', ]; /** * Array of property to format mappings. Used for (de)serialization. * * @var string[] */ protected static $swaggerFormats = [ 'financial_event_group_id' => null, 'processing_status' => null, 'fund_transfer_status' => null, 'original_total' => null, 'converted_total' => null, 'fund_transfer_date' => null, 'trace_id' => null, 'account_tail' => null, 'beginning_balance' => null, 'financial_event_group_start' => null, 'financial_event_group_end' => null, ]; /** * Array of property to type mappings. Used for (de)serialization. * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization. * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'financial_event_group_id' => 'FinancialEventGroupId', 'processing_status' => 'ProcessingStatus', 'fund_transfer_status' => 'FundTransferStatus', 'original_total' => 'OriginalTotal', 'converted_total' => 'ConvertedTotal', 'fund_transfer_date' => 'FundTransferDate', 'trace_id' => 'TraceId', 'account_tail' => 'AccountTail', 'beginning_balance' => 'BeginningBalance', 'financial_event_group_start' => 'FinancialEventGroupStart', 'financial_event_group_end' => 'FinancialEventGroupEnd', ]; /** * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'financial_event_group_id' => 'setFinancialEventGroupId', 'processing_status' => 'setProcessingStatus', 'fund_transfer_status' => 'setFundTransferStatus', 'original_total' => 'setOriginalTotal', 'converted_total' => 'setConvertedTotal', 'fund_transfer_date' => 'setFundTransferDate', 'trace_id' => 'setTraceId', 'account_tail' => 'setAccountTail', 'beginning_balance' => 'setBeginningBalance', 'financial_event_group_start' => 'setFinancialEventGroupStart', 'financial_event_group_end' => 'setFinancialEventGroupEnd', ]; /** * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'financial_event_group_id' => 'getFinancialEventGroupId', 'processing_status' => 'getProcessingStatus', 'fund_transfer_status' => 'getFundTransferStatus', 'original_total' => 'getOriginalTotal', 'converted_total' => 'getConvertedTotal', 'fund_transfer_date' => 'getFundTransferDate', 'trace_id' => 'getTraceId', 'account_tail' => 'getAccountTail', 'beginning_balance' => 'getBeginningBalance', 'financial_event_group_start' => 'getFinancialEventGroupStart', 'financial_event_group_end' => 'getFinancialEventGroupEnd', ]; /** * Array of attributes where the key is the local name, * and the value is the original name. * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses). * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests). * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['financial_event_group_id'] = isset($data['financial_event_group_id']) ? $data['financial_event_group_id'] : null; $this->container['processing_status'] = isset($data['processing_status']) ? $data['processing_status'] : null; $this->container['fund_transfer_status'] = isset($data['fund_transfer_status']) ? $data['fund_transfer_status'] : null; $this->container['original_total'] = isset($data['original_total']) ? $data['original_total'] : null; $this->container['converted_total'] = isset($data['converted_total']) ? $data['converted_total'] : null; $this->container['fund_transfer_date'] = isset($data['fund_transfer_date']) ? $data['fund_transfer_date'] : null; $this->container['trace_id'] = isset($data['trace_id']) ? $data['trace_id'] : null; $this->container['account_tail'] = isset($data['account_tail']) ? $data['account_tail'] : null; $this->container['beginning_balance'] = isset($data['beginning_balance']) ? $data['beginning_balance'] : null; $this->container['financial_event_group_start'] = isset($data['financial_event_group_start']) ? $data['financial_event_group_start'] : null; $this->container['financial_event_group_end'] = isset($data['financial_event_group_end']) ? $data['financial_event_group_end'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { return 0 === count($this->listInvalidProperties()); } /** * Gets financial_event_group_id. * * @return string */ public function getFinancialEventGroupId() { return $this->container['financial_event_group_id']; } /** * Sets financial_event_group_id. * * @param string $financial_event_group_id a unique identifier for the financial event group * * @return $this */ public function setFinancialEventGroupId($financial_event_group_id) { $this->container['financial_event_group_id'] = $financial_event_group_id; return $this; } /** * Gets processing_status. * * @return string */ public function getProcessingStatus() { return $this->container['processing_status']; } /** * Sets processing_status. * * @param string $processing_status The processing status of the financial event group indicates whether the balance of the financial event group is settled. Possible values: * Open * Closed * * @return $this */ public function setProcessingStatus($processing_status) { $this->container['processing_status'] = $processing_status; return $this; } /** * Gets fund_transfer_status. * * @return string */ public function getFundTransferStatus() { return $this->container['fund_transfer_status']; } /** * Sets fund_transfer_status. * * @param string $fund_transfer_status the status of the fund transfer * * @return $this */ public function setFundTransferStatus($fund_transfer_status) { $this->container['fund_transfer_status'] = $fund_transfer_status; return $this; } /** * Gets original_total. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getOriginalTotal() { return $this->container['original_total']; } /** * Sets original_total. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $original_total original_total * * @return $this */ public function setOriginalTotal($original_total) { $this->container['original_total'] = $original_total; return $this; } /** * Gets converted_total. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getConvertedTotal() { return $this->container['converted_total']; } /** * Sets converted_total. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $converted_total converted_total * * @return $this */ public function setConvertedTotal($converted_total) { $this->container['converted_total'] = $converted_total; return $this; } /** * Gets fund_transfer_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getFundTransferDate() { return $this->container['fund_transfer_date']; } /** * Sets fund_transfer_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $fund_transfer_date fund_transfer_date * * @return $this */ public function setFundTransferDate($fund_transfer_date) { $this->container['fund_transfer_date'] = $fund_transfer_date; return $this; } /** * Gets trace_id. * * @return string */ public function getTraceId() { return $this->container['trace_id']; } /** * Sets trace_id. * * @param string $trace_id the trace identifier used by sellers to look up transactions externally * * @return $this */ public function setTraceId($trace_id) { $this->container['trace_id'] = $trace_id; return $this; } /** * Gets account_tail. * * @return string */ public function getAccountTail() { return $this->container['account_tail']; } /** * Sets account_tail. * * @param string $account_tail the account tail of the payment instrument * * @return $this */ public function setAccountTail($account_tail) { $this->container['account_tail'] = $account_tail; return $this; } /** * Gets beginning_balance. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency */ public function getBeginningBalance() { return $this->container['beginning_balance']; } /** * Sets beginning_balance. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\Currency $beginning_balance beginning_balance * * @return $this */ public function setBeginningBalance($beginning_balance) { $this->container['beginning_balance'] = $beginning_balance; return $this; } /** * Gets financial_event_group_start. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getFinancialEventGroupStart() { return $this->container['financial_event_group_start']; } /** * Sets financial_event_group_start. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $financial_event_group_start financial_event_group_start * * @return $this */ public function setFinancialEventGroupStart($financial_event_group_start) { $this->container['financial_event_group_start'] = $financial_event_group_start; return $this; } /** * Gets financial_event_group_end. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime */ public function getFinancialEventGroupEnd() { return $this->container['financial_event_group_end']; } /** * Sets financial_event_group_end. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Finances\DateTime $financial_event_group_end financial_event_group_end * * @return $this */ public function setFinancialEventGroupEnd($financial_event_group_end) { $this->container['financial_event_group_end'] = $financial_event_group_end; return $this; } /** * Returns true if offset exists. False otherwise. * * @param int $offset Offset * * @return bool */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param int $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param int $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param int $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object. * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/PromotionList.php
lib/Models/Finances/PromotionList.php
<?php /** * PromotionList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * PromotionList Class Doc Comment. * * @description A list of promotions. * * @author Stefan Neuhaus / ClouSale */ class PromotionList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'PromotionList'; /** * 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 Promotion::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/ChargeInstrumentList.php
lib/Models/Finances/ChargeInstrumentList.php
<?php /** * ChargeInstrumentList. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * ChargeInstrumentList Class Doc Comment. * * @description A list of payment instruments. * * @author Stefan Neuhaus / ClouSale */ class ChargeInstrumentList implements ModelInterface, ArrayAccess, IterableType { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'ChargeInstrumentList'; /** * 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 ChargeInstrument::class; } }
php
MIT
3d04a42cf19c01693b52b3902bdb8090687f317c
2026-01-05T04:43:57.707350Z
false
clousale/amazon-sp-api-php
https://github.com/clousale/amazon-sp-api-php/blob/3d04a42cf19c01693b52b3902bdb8090687f317c/lib/Models/Finances/Date.php
lib/Models/Finances/Date.php
<?php /** * Date. * * PHP version 5 * * @author Stefan Neuhaus / ClouSale */ /** * Selling Partner API for Finances. * * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; use ArrayAccess; use ClouSale\AmazonSellingPartnerAPI\Models\ModelInterface; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; /** * Date Class Doc Comment. * * @author Stefan Neuhaus / ClouSale */ class Date implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $swaggerModelName = 'Date'; /** * 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