Skip to content

Commit 85e7724

Browse files
authored
Update PHP SDK
1 parent 84314ed commit 85e7724

File tree

10 files changed

+140
-33
lines changed

10 files changed

+140
-33
lines changed

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/Amount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @category Class
4040
*
41-
* @description A quantity based on unit of measure.
41+
* @description A quantity based on the specified unit of measurement.
4242
*
4343
* @author OpenAPI Generator team
4444
*

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/DeliveryDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function getUrl(): ?string
281281
/**
282282
* Sets url.
283283
*
284-
* @param null|string $url A URL that you can use to download the document. This URL has a `Content-Type` header. Note that the URL expires after one hour. To get a new URL, you must call the API again.
284+
* @param null|string $url A URL that is valid for one hour to download the document. In case of URL expiry, call the API again to get a new url. The URL will have a Content-Type header.
285285
*/
286286
public function setUrl(?string $url): self
287287
{

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/DeliveryInformation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @category Class
4040
*
41-
* @description The delivery information for the package. This information is available after the package is delivered.
41+
* @description The delivery information of the package, this information is only available post package delivery to its intended destination.
4242
*
4343
* @author OpenAPI Generator team
4444
*

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/DeliveryPreferences.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function getDeliveryInstructions(): ?string
258258
/**
259259
* Sets delivery_instructions.
260260
*
261-
* @param null|string $delivery_instructions Additional delivery instructions. For example, this could be instructions on how to enter a building, nearby landmark or navigation instructions, 'Beware of dogs', etc.
261+
* @param null|string $delivery_instructions Additional delivery instructions. For example, this could be instructions on how to enter a building, nearby landmark or navigation instructions, or `Beware of dogs`.
262262
*/
263263
public function setDeliveryInstructions(?string $delivery_instructions): self
264264
{

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/Destination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function getIpAddress(): ?string
282282
/**
283283
* Sets ip_address.
284284
*
285-
* @param null|string $ip_address an IP Address
285+
* @param null|string $ip_address an IP address
286286
*/
287287
public function setIpAddress(?string $ip_address): self
288288
{

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/DropOffLocation.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @category Class
4040
*
41-
* @description The preferred location to leave packages at the destination address.
41+
* @description The drop-off location at the destination address.
4242
*
4343
* @author OpenAPI Generator team
4444
*
@@ -58,8 +58,6 @@ class DropOffLocation implements ModelInterface, \ArrayAccess, \JsonSerializable
5858
public const TYPE_RECEPTIONIST = 'RECEPTIONIST';
5959
public const TYPE_FALLBACK_NEIGHBOR_DELIVERY = 'FALLBACK_NEIGHBOR_DELIVERY';
6060
public const TYPE_DO_NOT_LEAVE_UNATTENDED = 'DO_NOT_LEAVE_UNATTENDED';
61-
public const TYPE_MAIL_ROOM_CLERK = 'MAIL_ROOM_CLERK';
62-
public const TYPE_AS_INSTRUCTED = 'AS_INSTRUCTED';
6361

6462
/**
6563
* The original name of the model.
@@ -247,8 +245,6 @@ public function getTypeAllowableValues(): array
247245
self::TYPE_RECEPTIONIST,
248246
self::TYPE_FALLBACK_NEIGHBOR_DELIVERY,
249247
self::TYPE_DO_NOT_LEAVE_UNATTENDED,
250-
self::TYPE_MAIL_ROOM_CLERK,
251-
self::TYPE_AS_INSTRUCTED,
252248
];
253249
}
254250

@@ -298,7 +294,7 @@ public function getType(): string
298294
/**
299295
* Sets type.
300296
*
301-
* @param string $type specifies the preferred location to leave the package at the destination address
297+
* @param string $type the drop-off location type at the destination address
302298
*/
303299
public function setType(string $type): self
304300
{
@@ -333,7 +329,7 @@ public function getAttributes(): ?array
333329
/**
334330
* Sets attributes.
335331
*
336-
* @param null|array<string,string> $attributes Additional information about the drop-off location that can vary depending on the type of drop-off location specified in the `type` field. If the `type` is set to `FALLBACK_NEIGHBOR_DELIVERY`, the `attributes` object should include the exact keys `neighborName` and `houseNumber` to provide the name and house number of the designated neighbor. For `RECEPTIONIST`, `MAIL_ROOM_CLERK`, and `AS_INSTRUCTED` types, the `attributes` object will include a `recipientName` field containing the name of the person who received the package.
332+
* @param null|array<string,string> $attributes Additional information about the drop-off location. This information can vary depending on the type of drop-off location specified in the `type` field. If the `type` is set to `FALLBACK_NEIGHBOR_DELIVERY`, the `attributes` object must include the keys `neighborName` and `houseNumber` to provide the name and house number of the designated neighbor. For `RECEPTIONIST` type, the `attributes` object may include a `recipientName` field that contains the name of the person who received or will receive the package.
337333
*/
338334
public function setAttributes(?array $attributes): self
339335
{

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/FeatureSettings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @category Class
4040
*
41-
* @description Feature settings allows you to apply fulfillment features to an order. To block an order from being shipped using Amazon Logistics (AMZL) and an AMZL tracking number, set &#x60;featureName&#x60; to &#x60;BLOCK_AMZL&#x60; and &#x60;featureFulfillmentPolicy&#x60; to &#x60;Required&#x60;. Blocking AMZL will incur an additional fee surcharge on your MCF orders and increase the risk of some of your orders being unfulfilled or delivered late if there are no alternative carriers available. Using &#x60;BLOCK_AMZL&#x60; in an order request will take precedence over your Seller Central account setting. To ship in non-Amazon branded packaging (blank boxes), set &#x60;featureName&#x60; to &#x60;BLANK_BOX&#x60;. To require a signature from the recipient upon delivery, set &#x60;featureName&#x60; to &#x60;SIGNATURE_CONFIRMATION&#x60;. Note that using signature confirmation features will incur additional fees on MCF orders and are currently supported only in the US marketplace. To ensure all items in an order are delivered together, set &#x60;featureName&#x60; to &#x60;DELIVER_TOGETHER&#x60;.
41+
* @description Feature settings allows you to apply fulfillment features to an order. To block an order from being shipped using Amazon Logistics (AMZL) and an AMZL tracking number, set &#x60;featureName&#x60; to &#x60;BLOCK_AMZL&#x60; and &#x60;featureFulfillmentPolicy&#x60; to &#x60;Required&#x60;. Blocking AMZL will incur an additional fee surcharge on your MCF orders and increase the risk of some of your orders being unfulfilled or delivered late if there are no alternative carriers available. Using &#x60;BLOCK_AMZL&#x60; in an order request will take precedence over your Seller Central account setting. To ship in non-Amazon branded packaging (blank boxes), set &#x60;featureName&#x60; to &#x60;BLANK_BOX&#x60;. To require items to be shipped in an overbox rather than in their original product packaging, set &#x60;featureName&#x60; to &#x60;OVERBOX&#x60;. To require a packing slip to be included with the order, set &#x60;featureName&#x60; to &#x60;PACKING_SLIP&#x60;. To require a signature from the recipient upon delivery, set &#x60;featureName&#x60; to &#x60;SIGNATURE_CONFIRMATION&#x60;. Note that using signature confirmation features will incur additional fees on MCF orders and are currently supported only in the US marketplace. To ensure all items in an order are delivered together, set &#x60;featureName&#x60; to &#x60;DELIVER_TOGETHER&#x60;.
4242
*
4343
* @author OpenAPI Generator team
4444
*
@@ -279,7 +279,7 @@ public function getFeatureName(): ?string
279279
/**
280280
* Sets feature_name.
281281
*
282-
* @param null|string $feature_name The name of the feature. Valid feature names are: - `BLOCK_AMZL`: Blocks orders from being shipped using Amazon Logistics (AMZL). - Note: Using this feature will incur additional fee surcharges on MCF orders and may increase the risk of unfulfilled or delayed deliveries if alternative carriers are unavailable. Using `BLOCK_AMZL` in an order request will take precedence over your Seller Central account setting. - `BLANK_BOX`: Ships orders in non-Amazon branded packaging (blank boxes). - `SIGNATURE_CONFIRMATION`: Requires a signature from the recipient upon delivery. - Note: Using signature confirmation features will incur additional fees on MCF orders and are currently supported only in the US marketplace.
282+
* @param null|string $feature_name The name of the feature. Valid feature names are: - `BLOCK_AMZL`: Blocks orders from being shipped using Amazon Logistics (AMZL). - Note: Using this feature will incur additional fee surcharges on MCF orders and may increase the risk of unfulfilled or delayed deliveries if alternative carriers are unavailable. Using `BLOCK_AMZL` in an order request will take precedence over your Seller Central account setting. - `BLANK_BOX`: Ships orders in non-Amazon branded packaging (blank boxes). - `OVERBOX`: Requires items to be shipped in an overbox rather than in their original product packaging. - `PACKING_SLIP`: Requires a packing slip to be included with the order. - `SIGNATURE_CONFIRMATION`: Requires a signature from the recipient upon delivery. - Note: Using signature confirmation features will incur additional fees on MCF orders and are currently supported only in the US marketplace.
283283
*/
284284
public function setFeatureName(?string $feature_name): self
285285
{

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/FeatureSku.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public function getSellerSku(): ?string
273273
/**
274274
* Sets seller_sku.
275275
*
276-
* @param null|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.
276+
* @param null|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.
277277
*/
278278
public function setSellerSku(?string $seller_sku): self
279279
{

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/GetFeatureSkuResult.php

Lines changed: 128 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ class GetFeatureSkuResult implements ModelInterface, \ArrayAccess, \JsonSerializ
6565
'feature_name' => 'string',
6666
'is_eligible' => 'bool',
6767
'ineligible_reasons' => 'string[]',
68-
'sku_info' => '\SpApi\Model\fulfillment\outbound\v2020_07_01\FeatureSku'];
68+
'seller_sku' => 'string',
69+
'fn_sku' => 'string',
70+
'asin' => 'string',
71+
'sku_count' => 'float'];
6972

7073
/**
7174
* Array of property to format mappings. Used for (de)serialization.
@@ -81,7 +84,10 @@ class GetFeatureSkuResult implements ModelInterface, \ArrayAccess, \JsonSerializ
8184
'feature_name' => null,
8285
'is_eligible' => null,
8386
'ineligible_reasons' => null,
84-
'sku_info' => null];
87+
'seller_sku' => null,
88+
'fn_sku' => null,
89+
'asin' => null,
90+
'sku_count' => null];
8591

8692
/**
8793
* Array of nullable properties. Used for (de)serialization.
@@ -93,7 +99,10 @@ class GetFeatureSkuResult implements ModelInterface, \ArrayAccess, \JsonSerializ
9399
'feature_name' => false,
94100
'is_eligible' => false,
95101
'ineligible_reasons' => true,
96-
'sku_info' => true,
102+
'seller_sku' => true,
103+
'fn_sku' => true,
104+
'asin' => true,
105+
'sku_count' => true,
97106
];
98107

99108
/**
@@ -114,7 +123,10 @@ class GetFeatureSkuResult implements ModelInterface, \ArrayAccess, \JsonSerializ
114123
'feature_name' => 'featureName',
115124
'is_eligible' => 'isEligible',
116125
'ineligible_reasons' => 'ineligibleReasons',
117-
'sku_info' => 'skuInfo',
126+
'seller_sku' => 'sellerSku',
127+
'fn_sku' => 'fnSku',
128+
'asin' => 'asin',
129+
'sku_count' => 'skuCount',
118130
];
119131

120132
/**
@@ -127,7 +139,10 @@ class GetFeatureSkuResult implements ModelInterface, \ArrayAccess, \JsonSerializ
127139
'feature_name' => 'setFeatureName',
128140
'is_eligible' => 'setIsEligible',
129141
'ineligible_reasons' => 'setIneligibleReasons',
130-
'sku_info' => 'setSkuInfo',
142+
'seller_sku' => 'setSellerSku',
143+
'fn_sku' => 'setFnSku',
144+
'asin' => 'setAsin',
145+
'sku_count' => 'setSkuCount',
131146
];
132147

133148
/**
@@ -140,7 +155,10 @@ class GetFeatureSkuResult implements ModelInterface, \ArrayAccess, \JsonSerializ
140155
'feature_name' => 'getFeatureName',
141156
'is_eligible' => 'getIsEligible',
142157
'ineligible_reasons' => 'getIneligibleReasons',
143-
'sku_info' => 'getSkuInfo',
158+
'seller_sku' => 'getSellerSku',
159+
'fn_sku' => 'getFnSku',
160+
'asin' => 'getAsin',
161+
'sku_count' => 'getSkuCount',
144162
];
145163

146164
/**
@@ -160,7 +178,10 @@ public function __construct(?array $data = null)
160178
$this->setIfExists('feature_name', $data ?? [], null);
161179
$this->setIfExists('is_eligible', $data ?? [], null);
162180
$this->setIfExists('ineligible_reasons', $data ?? [], null);
163-
$this->setIfExists('sku_info', $data ?? [], null);
181+
$this->setIfExists('seller_sku', $data ?? [], null);
182+
$this->setIfExists('fn_sku', $data ?? [], null);
183+
$this->setIfExists('asin', $data ?? [], null);
184+
$this->setIfExists('sku_count', $data ?? [], null);
164185
}
165186

166187
/**
@@ -374,31 +395,121 @@ public function setIneligibleReasons(?array $ineligible_reasons): self
374395
}
375396

376397
/**
377-
* Gets sku_info.
398+
* Gets seller_sku.
378399
*/
379-
public function getSkuInfo(): ?FeatureSku
400+
public function getSellerSku(): ?string
380401
{
381-
return $this->container['sku_info'];
402+
return $this->container['seller_sku'];
382403
}
383404

384405
/**
385-
* Sets sku_info.
406+
* Sets seller_sku.
386407
*
387-
* @param null|FeatureSku $sku_info sku_info
408+
* @param null|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.
388409
*/
389-
public function setSkuInfo(?FeatureSku $sku_info): self
410+
public function setSellerSku(?string $seller_sku): self
390411
{
391-
if (is_null($sku_info)) {
392-
array_push($this->openAPINullablesSetToNull, 'sku_info');
412+
if (is_null($seller_sku)) {
413+
array_push($this->openAPINullablesSetToNull, 'seller_sku');
393414
} else {
394415
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
395-
$index = array_search('sku_info', $nullablesSetToNull);
416+
$index = array_search('seller_sku', $nullablesSetToNull);
396417
if (false !== $index) {
397418
unset($nullablesSetToNull[$index]);
398419
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
399420
}
400421
}
401-
$this->container['sku_info'] = $sku_info;
422+
$this->container['seller_sku'] = $seller_sku;
423+
424+
return $this;
425+
}
426+
427+
/**
428+
* Gets fn_sku.
429+
*/
430+
public function getFnSku(): ?string
431+
{
432+
return $this->container['fn_sku'];
433+
}
434+
435+
/**
436+
* Sets fn_sku.
437+
*
438+
* @param null|string $fn_sku the unique SKU used by Amazon's fulfillment network
439+
*/
440+
public function setFnSku(?string $fn_sku): self
441+
{
442+
if (is_null($fn_sku)) {
443+
array_push($this->openAPINullablesSetToNull, 'fn_sku');
444+
} else {
445+
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
446+
$index = array_search('fn_sku', $nullablesSetToNull);
447+
if (false !== $index) {
448+
unset($nullablesSetToNull[$index]);
449+
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
450+
}
451+
}
452+
$this->container['fn_sku'] = $fn_sku;
453+
454+
return $this;
455+
}
456+
457+
/**
458+
* Gets asin.
459+
*/
460+
public function getAsin(): ?string
461+
{
462+
return $this->container['asin'];
463+
}
464+
465+
/**
466+
* Sets asin.
467+
*
468+
* @param null|string $asin the Amazon Standard Identification Number (ASIN) of the item
469+
*/
470+
public function setAsin(?string $asin): self
471+
{
472+
if (is_null($asin)) {
473+
array_push($this->openAPINullablesSetToNull, 'asin');
474+
} else {
475+
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
476+
$index = array_search('asin', $nullablesSetToNull);
477+
if (false !== $index) {
478+
unset($nullablesSetToNull[$index]);
479+
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
480+
}
481+
}
482+
$this->container['asin'] = $asin;
483+
484+
return $this;
485+
}
486+
487+
/**
488+
* Gets sku_count.
489+
*/
490+
public function getSkuCount(): ?float
491+
{
492+
return $this->container['sku_count'];
493+
}
494+
495+
/**
496+
* Sets sku_count.
497+
*
498+
* @param null|float $sku_count the number of SKUs available for this service
499+
*/
500+
public function setSkuCount(?float $sku_count): self
501+
{
502+
if (is_null($sku_count)) {
503+
array_push($this->openAPINullablesSetToNull, 'sku_count');
504+
} else {
505+
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
506+
$index = array_search('sku_count', $nullablesSetToNull);
507+
if (false !== $index) {
508+
unset($nullablesSetToNull[$index]);
509+
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
510+
}
511+
}
512+
$this->container['sku_count'] = $sku_count;
402513

403514
return $this;
404515
}

php/sdk/lib/Model/fulfillment/outbound/v2020_07_01/Origin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public function getCountryCode(): string
258258
/**
259259
* Sets country_code.
260260
*
261-
* @param string $country_code The two digit country code the items should ship from. In ISO 3166-1 alpha-2 format.
261+
* @param string $country_code the two-digit country code (in ISO 3166-1 alpha-2 format) for the country where the items will ship from
262262
*/
263263
public function setCountryCode(string $country_code): self
264264
{

0 commit comments

Comments
 (0)