@sp-api-sdk/fulfillment-outbound-api-2020-07-01 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-model/api/fulfillment-outbound-api.js +0 -20
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/cjs/api-model/models/additional-location-info.js +0 -2
- package/dist/cjs/api-model/models/current-status.js +0 -2
- package/dist/cjs/api-model/models/event-code.js +0 -2
- package/dist/cjs/api-model/models/fulfillment-action.js +0 -2
- package/dist/cjs/api-model/models/fulfillment-order-status.js +0 -2
- package/dist/cjs/api-model/models/fulfillment-policy.js +0 -2
- package/dist/cjs/api-model/models/fulfillment-return-item-status.js +0 -2
- package/dist/cjs/api-model/models/invalid-item-reason-code.js +0 -2
- package/dist/cjs/api-model/models/return-item-disposition.js +0 -2
- package/dist/cjs/api-model/models/shipping-speed-category.js +0 -2
- package/dist/es/api-model/api/fulfillment-outbound-api.js +0 -20
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/es/api-model/models/additional-location-info.js +0 -2
- package/dist/es/api-model/models/current-status.js +0 -2
- package/dist/es/api-model/models/event-code.js +0 -2
- package/dist/es/api-model/models/fulfillment-action.js +0 -2
- package/dist/es/api-model/models/fulfillment-order-status.js +0 -2
- package/dist/es/api-model/models/fulfillment-policy.js +0 -2
- package/dist/es/api-model/models/fulfillment-return-item-status.js +0 -2
- package/dist/es/api-model/models/invalid-item-reason-code.js +0 -2
- package/dist/es/api-model/models/return-item-disposition.js +0 -2
- package/dist/es/api-model/models/shipping-speed-category.js +0 -2
- package/dist/types/api-model/api/fulfillment-outbound-api.d.ts +0 -100
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/additional-location-info.d.ts +0 -2
- package/dist/types/api-model/models/address.d.ts +0 -22
- package/dist/types/api-model/models/amount.d.ts +0 -6
- package/dist/types/api-model/models/cancel-fulfillment-order-response.d.ts +0 -4
- package/dist/types/api-model/models/codsettings.d.ts +0 -24
- package/dist/types/api-model/models/create-fulfillment-order-item.d.ts +0 -29
- package/dist/types/api-model/models/create-fulfillment-order-request.d.ts +0 -57
- package/dist/types/api-model/models/create-fulfillment-order-response.d.ts +0 -4
- package/dist/types/api-model/models/create-fulfillment-return-request.d.ts +0 -4
- package/dist/types/api-model/models/create-fulfillment-return-response.d.ts +0 -9
- package/dist/types/api-model/models/create-fulfillment-return-result.d.ts +0 -8
- package/dist/types/api-model/models/create-return-item.d.ts +0 -12
- package/dist/types/api-model/models/current-status.d.ts +0 -2
- package/dist/types/api-model/models/date-range.d.ts +0 -6
- package/dist/types/api-model/models/delivery-document.d.ts +0 -6
- package/dist/types/api-model/models/delivery-information.d.ts +0 -9
- package/dist/types/api-model/models/delivery-message.d.ts +0 -6
- package/dist/types/api-model/models/delivery-offer.d.ts +0 -14
- package/dist/types/api-model/models/delivery-policy.d.ts +0 -7
- package/dist/types/api-model/models/delivery-preferences.d.ts +0 -9
- package/dist/types/api-model/models/delivery-window.d.ts +0 -6
- package/dist/types/api-model/models/destination.d.ts +0 -9
- package/dist/types/api-model/models/drop-off-location.d.ts +0 -6
- package/dist/types/api-model/models/event-code.d.ts +0 -2
- package/dist/types/api-model/models/feature-settings.d.ts +0 -6
- package/dist/types/api-model/models/feature-sku.d.ts +0 -12
- package/dist/types/api-model/models/feature.d.ts +0 -8
- package/dist/types/api-model/models/fee.d.ts +0 -9
- package/dist/types/api-model/models/fulfillment-action.d.ts +0 -2
- package/dist/types/api-model/models/fulfillment-order-item.d.ts +0 -39
- package/dist/types/api-model/models/fulfillment-order-status.d.ts +0 -2
- package/dist/types/api-model/models/fulfillment-order.d.ts +0 -55
- package/dist/types/api-model/models/fulfillment-policy.d.ts +0 -2
- package/dist/types/api-model/models/fulfillment-preview-item.d.ts +0 -15
- package/dist/types/api-model/models/fulfillment-preview-shipment.d.ts +0 -14
- package/dist/types/api-model/models/fulfillment-preview.d.ts +0 -33
- package/dist/types/api-model/models/fulfillment-return-item-status.d.ts +0 -2
- package/dist/types/api-model/models/fulfillment-shipment-item.d.ts +0 -14
- package/dist/types/api-model/models/fulfillment-shipment-package.d.ts +0 -20
- package/dist/types/api-model/models/fulfillment-shipment.d.ts +0 -18
- package/dist/types/api-model/models/get-delivery-offers-product.d.ts +0 -12
- package/dist/types/api-model/models/get-delivery-offers-request.d.ts +0 -12
- package/dist/types/api-model/models/get-delivery-offers-response.d.ts +0 -9
- package/dist/types/api-model/models/get-delivery-offers-result.d.ts +0 -4
- package/dist/types/api-model/models/get-delivery-offers-terms.d.ts +0 -12
- package/dist/types/api-model/models/get-feature-inventory-response.d.ts +0 -9
- package/dist/types/api-model/models/get-feature-inventory-result.d.ts +0 -10
- package/dist/types/api-model/models/get-feature-sku-response.d.ts +0 -9
- package/dist/types/api-model/models/get-feature-sku-result.d.ts +0 -15
- package/dist/types/api-model/models/get-features-response.d.ts +0 -9
- package/dist/types/api-model/models/get-features-result.d.ts +0 -4
- package/dist/types/api-model/models/get-fulfillment-order-response.d.ts +0 -9
- package/dist/types/api-model/models/get-fulfillment-order-result.d.ts +0 -17
- package/dist/types/api-model/models/get-fulfillment-preview-item.d.ts +0 -13
- package/dist/types/api-model/models/get-fulfillment-preview-request.d.ts +0 -19
- package/dist/types/api-model/models/get-fulfillment-preview-response.d.ts +0 -9
- package/dist/types/api-model/models/get-fulfillment-preview-result.d.ts +0 -4
- package/dist/types/api-model/models/get-package-tracking-details-response.d.ts +0 -9
- package/dist/types/api-model/models/invalid-item-reason-code.d.ts +0 -2
- package/dist/types/api-model/models/invalid-item-reason.d.ts +0 -9
- package/dist/types/api-model/models/invalid-return-item.d.ts +0 -11
- package/dist/types/api-model/models/list-all-fulfillment-orders-response.d.ts +0 -9
- package/dist/types/api-model/models/list-all-fulfillment-orders-result.d.ts +0 -6
- package/dist/types/api-model/models/list-return-reason-codes-response.d.ts +0 -9
- package/dist/types/api-model/models/list-return-reason-codes-result.d.ts +0 -4
- package/dist/types/api-model/models/locker-details.d.ts +0 -6
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/money.d.ts +0 -6
- package/dist/types/api-model/models/origin.d.ts +0 -4
- package/dist/types/api-model/models/package-tracking-details.d.ts +0 -44
- package/dist/types/api-model/models/payment-information.d.ts +0 -8
- package/dist/types/api-model/models/product-identifier.d.ts +0 -4
- package/dist/types/api-model/models/reason-code-details.d.ts +0 -8
- package/dist/types/api-model/models/return-authorization.d.ts +0 -15
- package/dist/types/api-model/models/return-item-disposition.d.ts +0 -2
- package/dist/types/api-model/models/return-item.d.ts +0 -30
- package/dist/types/api-model/models/scheduled-delivery-info.d.ts +0 -6
- package/dist/types/api-model/models/shipping-speed-category.d.ts +0 -2
- package/dist/types/api-model/models/submit-fulfillment-order-status-update-request.d.ts +0 -7
- package/dist/types/api-model/models/submit-fulfillment-order-status-update-response.d.ts +0 -4
- package/dist/types/api-model/models/tracking-address.d.ts +0 -8
- package/dist/types/api-model/models/tracking-event.d.ts +0 -16
- package/dist/types/api-model/models/unfulfillable-preview-item.d.ts +0 -10
- package/dist/types/api-model/models/update-fulfillment-order-item.d.ts +0 -31
- package/dist/types/api-model/models/update-fulfillment-order-request.d.ts +0 -38
- package/dist/types/api-model/models/update-fulfillment-order-response.d.ts +0 -4
- package/dist/types/api-model/models/variable-precision-address.d.ts +0 -18
- package/dist/types/api-model/models/weight.d.ts +0 -6
- package/package.json +25 -4
|
@@ -12,68 +12,37 @@
|
|
|
12
12
|
import type { Money } from './money';
|
|
13
13
|
/**
|
|
14
14
|
* Item information for updating a fulfillment order.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface UpdateFulfillmentOrderItem
|
|
17
15
|
*/
|
|
18
16
|
export interface UpdateFulfillmentOrderItem {
|
|
19
17
|
/**
|
|
20
18
|
* The seller SKU of the item.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
23
19
|
*/
|
|
24
20
|
'sellerSku'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* Identifies the fulfillment order item to update. Created with a previous call to the createFulfillmentOrder operation.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
29
23
|
*/
|
|
30
24
|
'sellerFulfillmentOrderItemId': string;
|
|
31
25
|
/**
|
|
32
26
|
* The item quantity.
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
35
27
|
*/
|
|
36
28
|
'quantity': number;
|
|
37
29
|
/**
|
|
38
30
|
* A message to the gift recipient, if applicable.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
41
31
|
*/
|
|
42
32
|
'giftMessage'?: string;
|
|
43
33
|
/**
|
|
44
34
|
* Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
47
35
|
*/
|
|
48
36
|
'displayableComment'?: string;
|
|
49
37
|
/**
|
|
50
38
|
* Amazon\'s fulfillment network SKU of the item.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
53
39
|
*/
|
|
54
40
|
'fulfillmentNetworkSku'?: string;
|
|
55
41
|
/**
|
|
56
42
|
* Indicates whether the item is sellable or unsellable.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
59
43
|
*/
|
|
60
44
|
'orderItemDisposition'?: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Money}
|
|
64
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
65
|
-
*/
|
|
66
45
|
'perUnitDeclaredValue'?: Money;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {Money}
|
|
70
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
71
|
-
*/
|
|
72
46
|
'perUnitPrice'?: Money;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {Money}
|
|
76
|
-
* @memberof UpdateFulfillmentOrderItem
|
|
77
|
-
*/
|
|
78
47
|
'perUnitTax'?: Money;
|
|
79
48
|
}
|
|
@@ -17,80 +17,42 @@ import type { ShippingSpeedCategory } from './shipping-speed-category';
|
|
|
17
17
|
import type { UpdateFulfillmentOrderItem } from './update-fulfillment-order-item';
|
|
18
18
|
/**
|
|
19
19
|
* The request body schema for the `updateFulfillmentOrder` operation.
|
|
20
|
-
* @export
|
|
21
|
-
* @interface UpdateFulfillmentOrderRequest
|
|
22
20
|
*/
|
|
23
21
|
export interface UpdateFulfillmentOrderRequest {
|
|
24
22
|
/**
|
|
25
23
|
* The marketplace the fulfillment order is placed against.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
28
24
|
*/
|
|
29
25
|
'marketplaceId'?: string;
|
|
30
26
|
/**
|
|
31
27
|
* 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.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
34
28
|
*/
|
|
35
29
|
'displayableOrderId'?: string;
|
|
36
30
|
/**
|
|
37
31
|
* Date timestamp
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
40
32
|
*/
|
|
41
33
|
'displayableOrderDate'?: string;
|
|
42
34
|
/**
|
|
43
35
|
* Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
46
36
|
*/
|
|
47
37
|
'displayableOrderComment'?: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {ShippingSpeedCategory}
|
|
51
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
52
|
-
*/
|
|
53
38
|
'shippingSpeedCategory'?: ShippingSpeedCategory;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Address}
|
|
57
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
58
|
-
*/
|
|
59
39
|
'destinationAddress'?: Address;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {FulfillmentAction}
|
|
63
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
64
|
-
*/
|
|
65
40
|
'fulfillmentAction'?: FulfillmentAction;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {FulfillmentPolicy}
|
|
69
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
70
|
-
*/
|
|
71
41
|
'fulfillmentPolicy'?: FulfillmentPolicy;
|
|
72
42
|
/**
|
|
73
43
|
* The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
76
44
|
*/
|
|
77
45
|
'shipFromCountryCode'?: string;
|
|
78
46
|
/**
|
|
79
47
|
* A list of email addresses that the seller provides that are used by Amazon to send ship-complete notifications to recipients on behalf of the seller.
|
|
80
|
-
* @type {Array<string>}
|
|
81
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
82
48
|
*/
|
|
83
49
|
'notificationEmails'?: Array<string>;
|
|
84
50
|
/**
|
|
85
51
|
* A list of features and their fulfillment policies to apply to the order.
|
|
86
|
-
* @type {Array<FeatureSettings>}
|
|
87
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
88
52
|
*/
|
|
89
53
|
'featureConstraints'?: Array<FeatureSettings>;
|
|
90
54
|
/**
|
|
91
55
|
* An array of fulfillment order item information for updating a fulfillment order.
|
|
92
|
-
* @type {Array<UpdateFulfillmentOrderItem>}
|
|
93
|
-
* @memberof UpdateFulfillmentOrderRequest
|
|
94
56
|
*/
|
|
95
57
|
'items'?: Array<UpdateFulfillmentOrderItem>;
|
|
96
58
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The response schema for the `updateFulfillmentOrder` operation.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UpdateFulfillmentOrderResponse
|
|
16
14
|
*/
|
|
17
15
|
export interface UpdateFulfillmentOrderResponse {
|
|
18
16
|
/**
|
|
19
17
|
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
-
* @type {Array<Error>}
|
|
21
|
-
* @memberof UpdateFulfillmentOrderResponse
|
|
22
18
|
*/
|
|
23
19
|
'errors'?: Array<Error>;
|
|
24
20
|
}
|
|
@@ -11,56 +11,38 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* A physical address with varying degrees of precision. A more precise address can provide more accurate results than country code and postal code alone.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface VariablePrecisionAddress
|
|
16
14
|
*/
|
|
17
15
|
export interface VariablePrecisionAddress {
|
|
18
16
|
/**
|
|
19
17
|
* The first line of the address.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof VariablePrecisionAddress
|
|
22
18
|
*/
|
|
23
19
|
'addressLine1'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* Additional address information, if required.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof VariablePrecisionAddress
|
|
28
22
|
*/
|
|
29
23
|
'addressLine2'?: string;
|
|
30
24
|
/**
|
|
31
25
|
* Additional address information, if required.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof VariablePrecisionAddress
|
|
34
26
|
*/
|
|
35
27
|
'addressLine3'?: string;
|
|
36
28
|
/**
|
|
37
29
|
* The city where the person, business, or institution is located. This property should not be used in Japan.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof VariablePrecisionAddress
|
|
40
30
|
*/
|
|
41
31
|
'city'?: string;
|
|
42
32
|
/**
|
|
43
33
|
* The district or county where the person, business, or institution is located.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof VariablePrecisionAddress
|
|
46
34
|
*/
|
|
47
35
|
'districtOrCounty'?: string;
|
|
48
36
|
/**
|
|
49
37
|
* The state or region where the person, business or institution is located.
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof VariablePrecisionAddress
|
|
52
38
|
*/
|
|
53
39
|
'stateOrRegion'?: string;
|
|
54
40
|
/**
|
|
55
41
|
* The postal code of the address.
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof VariablePrecisionAddress
|
|
58
42
|
*/
|
|
59
43
|
'postalCode': string;
|
|
60
44
|
/**
|
|
61
45
|
* The two digit country code. In ISO 3166-1 alpha-2 format.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof VariablePrecisionAddress
|
|
64
46
|
*/
|
|
65
47
|
'countryCode': string;
|
|
66
48
|
}
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The weight.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Weight
|
|
16
14
|
*/
|
|
17
15
|
export interface Weight {
|
|
18
16
|
/**
|
|
19
17
|
* The unit of weight.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Weight
|
|
22
18
|
*/
|
|
23
19
|
'unit': WeightUnitEnum;
|
|
24
20
|
/**
|
|
25
21
|
* The weight value.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Weight
|
|
28
22
|
*/
|
|
29
23
|
'value': string;
|
|
30
24
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/fulfillment-outbound-api-2020-07-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "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.",
|
|
5
|
-
"version": "4.0.
|
|
5
|
+
"version": "4.0.2",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.16",
|
|
22
|
+
"axios": "^1.11.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,26 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"fulfillment outbound api"
|
|
42
42
|
],
|
|
43
|
-
"
|
|
43
|
+
"xo": {
|
|
44
|
+
"extends": [
|
|
45
|
+
"xo-bizon"
|
|
46
|
+
],
|
|
47
|
+
"settings": {
|
|
48
|
+
"import/internal-regex": "^@sp-api-sdk/"
|
|
49
|
+
},
|
|
50
|
+
"semicolon": false,
|
|
51
|
+
"space": 2,
|
|
52
|
+
"prettier": true,
|
|
53
|
+
"ignores": [
|
|
54
|
+
"src/api-model/**"
|
|
55
|
+
],
|
|
56
|
+
"rules": {
|
|
57
|
+
"unicorn/prevent-abbreviations": "off"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"prettier": {
|
|
61
|
+
"printWidth": 100,
|
|
62
|
+
"jsxSingleQuote": true
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "fc1b46f3bc172469e2fbbc2e0155f6fa7ce3edde"
|
|
44
65
|
}
|