@sp-api-sdk/orders-api-v0 5.1.0 → 5.1.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/orders-api.js +0 -16
- 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/association-type.js +0 -2
- package/dist/cjs/api-model/models/constraint-type.js +0 -2
- package/dist/cjs/api-model/models/easy-ship-shipment-status.js +0 -2
- package/dist/cjs/api-model/models/electronic-invoice-status.js +0 -2
- package/dist/cjs/api-model/models/other-delivery-attributes.js +0 -2
- package/dist/cjs/api-model/models/shipment-status.js +0 -2
- package/dist/cjs/api-model/models/verification-status.js +0 -2
- package/dist/es/api-model/api/orders-api.js +0 -16
- 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/association-type.js +0 -2
- package/dist/es/api-model/models/constraint-type.js +0 -2
- package/dist/es/api-model/models/easy-ship-shipment-status.js +0 -2
- package/dist/es/api-model/models/electronic-invoice-status.js +0 -2
- package/dist/es/api-model/models/other-delivery-attributes.js +0 -2
- package/dist/es/api-model/models/shipment-status.js +0 -2
- package/dist/es/api-model/models/verification-status.js +0 -2
- package/dist/types/api-model/api/orders-api.d.ts +0 -108
- 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/address-extended-fields.d.ts +0 -10
- package/dist/types/api-model/models/address.d.ts +0 -35
- package/dist/types/api-model/models/amazon-programs.d.ts +0 -4
- package/dist/types/api-model/models/associated-item.d.ts +0 -11
- package/dist/types/api-model/models/association-type.d.ts +0 -2
- package/dist/types/api-model/models/automated-shipping-settings.d.ts +0 -8
- package/dist/types/api-model/models/business-hours.d.ts +0 -6
- package/dist/types/api-model/models/buyer-customized-info-detail.d.ts +0 -4
- package/dist/types/api-model/models/buyer-info.d.ts +0 -15
- package/dist/types/api-model/models/buyer-requested-cancel.d.ts +0 -6
- package/dist/types/api-model/models/buyer-tax-info.d.ts +0 -8
- package/dist/types/api-model/models/buyer-tax-information.d.ts +0 -10
- package/dist/types/api-model/models/confirm-shipment-error-response.d.ts +0 -4
- package/dist/types/api-model/models/confirm-shipment-order-item.d.ts +0 -8
- package/dist/types/api-model/models/confirm-shipment-request.d.ts +0 -11
- package/dist/types/api-model/models/constraint-type.d.ts +0 -2
- package/dist/types/api-model/models/delivery-preferences.d.ts +0 -13
- package/dist/types/api-model/models/easy-ship-shipment-status.d.ts +0 -2
- package/dist/types/api-model/models/electronic-invoice-status.d.ts +0 -2
- package/dist/types/api-model/models/exception-dates.d.ts +0 -8
- package/dist/types/api-model/models/fulfillment-instruction.d.ts +0 -4
- package/dist/types/api-model/models/get-order-address-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-buyer-info-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-items-buyer-info-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-items-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-regulated-info-response.d.ts +0 -9
- package/dist/types/api-model/models/get-order-response.d.ts +0 -9
- package/dist/types/api-model/models/get-orders-response.d.ts +0 -9
- package/dist/types/api-model/models/item-buyer-info.d.ts +0 -21
- package/dist/types/api-model/models/marketplace-tax-info.d.ts +0 -4
- package/dist/types/api-model/models/measurement.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/open-interval.d.ts +0 -12
- package/dist/types/api-model/models/open-time-interval.d.ts +0 -6
- package/dist/types/api-model/models/order-address.d.ts +0 -16
- package/dist/types/api-model/models/order-buyer-info.d.ts +0 -17
- package/dist/types/api-model/models/order-item-buyer-info.d.ts +0 -23
- package/dist/types/api-model/models/order-item.d.ts +0 -139
- package/dist/types/api-model/models/order-items-buyer-info-list.d.ts +0 -8
- package/dist/types/api-model/models/order-items-inner.d.ts +0 -9
- package/dist/types/api-model/models/order-items-list.d.ts +0 -8
- package/dist/types/api-model/models/order-regulated-info.d.ts +0 -16
- package/dist/types/api-model/models/order.d.ts +0 -126
- package/dist/types/api-model/models/orders-list.d.ts +0 -10
- package/dist/types/api-model/models/other-delivery-attributes.d.ts +0 -2
- package/dist/types/api-model/models/package-detail.d.ts +0 -18
- package/dist/types/api-model/models/payment-execution-detail-item.d.ts +0 -9
- package/dist/types/api-model/models/points-granted-detail.d.ts +0 -9
- package/dist/types/api-model/models/preferred-delivery-time.d.ts +0 -6
- package/dist/types/api-model/models/prescription-detail.d.ts +0 -16
- package/dist/types/api-model/models/product-info-detail.d.ts +0 -4
- package/dist/types/api-model/models/regulated-information-field.d.ts +0 -10
- package/dist/types/api-model/models/regulated-information.d.ts +0 -4
- package/dist/types/api-model/models/regulated-order-verification-status.d.ts +0 -22
- package/dist/types/api-model/models/rejection-reason.d.ts +0 -6
- package/dist/types/api-model/models/shipment-status.d.ts +0 -2
- package/dist/types/api-model/models/shipping-constraints.d.ts +0 -22
- package/dist/types/api-model/models/substitution-option.d.ts +0 -15
- package/dist/types/api-model/models/substitution-preferences.d.ts +0 -6
- package/dist/types/api-model/models/tax-classification.d.ts +0 -6
- package/dist/types/api-model/models/tax-collection.d.ts +0 -6
- package/dist/types/api-model/models/update-shipment-status-error-response.d.ts +0 -4
- package/dist/types/api-model/models/update-shipment-status-request.d.ts +0 -11
- package/dist/types/api-model/models/update-verification-status-error-response.d.ts +0 -4
- package/dist/types/api-model/models/update-verification-status-request-body.d.ts +0 -16
- package/dist/types/api-model/models/update-verification-status-request.d.ts +0 -7
- package/dist/types/api-model/models/valid-verification-detail.d.ts +0 -6
- package/dist/types/api-model/models/verification-details.d.ts +0 -7
- package/dist/types/api-model/models/verification-status.d.ts +0 -2
- package/package.json +25 -4
|
@@ -21,291 +21,165 @@ import type { Money } from './money';
|
|
|
21
21
|
import type { PaymentExecutionDetailItem } from './payment-execution-detail-item';
|
|
22
22
|
/**
|
|
23
23
|
* Order information.
|
|
24
|
-
* @export
|
|
25
|
-
* @interface Order
|
|
26
24
|
*/
|
|
27
25
|
export interface Order {
|
|
28
26
|
/**
|
|
29
27
|
* An Amazon-defined order identifier, in 3-7-7 format.
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof Order
|
|
32
28
|
*/
|
|
33
29
|
'AmazonOrderId': string;
|
|
34
30
|
/**
|
|
35
31
|
* A seller-defined order identifier.
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof Order
|
|
38
32
|
*/
|
|
39
33
|
'SellerOrderId'?: string;
|
|
40
34
|
/**
|
|
41
35
|
* The date when the order was created.
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof Order
|
|
44
36
|
*/
|
|
45
37
|
'PurchaseDate': string;
|
|
46
38
|
/**
|
|
47
39
|
* The date when the order was last updated. __Note__: `LastUpdateDate` is returned with an incorrect date for orders that were last updated before 2009-04-01.
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof Order
|
|
50
40
|
*/
|
|
51
41
|
'LastUpdateDate': string;
|
|
52
42
|
/**
|
|
53
43
|
* The current order status.
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof Order
|
|
56
44
|
*/
|
|
57
45
|
'OrderStatus': OrderOrderStatusEnum;
|
|
58
46
|
/**
|
|
59
47
|
* Whether the order was fulfilled by Amazon (`AFN`) or by the seller (`MFN`).
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof Order
|
|
62
48
|
*/
|
|
63
49
|
'FulfillmentChannel'?: OrderFulfillmentChannelEnum;
|
|
64
50
|
/**
|
|
65
51
|
* The sales channel for the first item in the order.
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof Order
|
|
68
52
|
*/
|
|
69
53
|
'SalesChannel'?: string;
|
|
70
54
|
/**
|
|
71
55
|
* The order channel for the first item in the order.
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof Order
|
|
74
56
|
*/
|
|
75
57
|
'OrderChannel'?: string;
|
|
76
58
|
/**
|
|
77
59
|
* The order\'s shipment service level.
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof Order
|
|
80
60
|
*/
|
|
81
61
|
'ShipServiceLevel'?: string;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Money}
|
|
85
|
-
* @memberof Order
|
|
86
|
-
*/
|
|
87
62
|
'OrderTotal'?: Money;
|
|
88
63
|
/**
|
|
89
64
|
* The number of items shipped.
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof Order
|
|
92
65
|
*/
|
|
93
66
|
'NumberOfItemsShipped'?: number;
|
|
94
67
|
/**
|
|
95
68
|
* The number of items unshipped.
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof Order
|
|
98
69
|
*/
|
|
99
70
|
'NumberOfItemsUnshipped'?: number;
|
|
100
71
|
/**
|
|
101
72
|
* A list of payment execution detail items.
|
|
102
|
-
* @type {Array<PaymentExecutionDetailItem>}
|
|
103
|
-
* @memberof Order
|
|
104
73
|
*/
|
|
105
74
|
'PaymentExecutionDetail'?: Array<PaymentExecutionDetailItem>;
|
|
106
75
|
/**
|
|
107
76
|
* The payment method for the order. This property is limited to COD and CVS payment methods. Unless you need the specific COD payment information provided by the `PaymentExecutionDetailItem` object, we recommend using the `PaymentMethodDetails` property to get payment method information.
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof Order
|
|
110
77
|
*/
|
|
111
78
|
'PaymentMethod'?: OrderPaymentMethodEnum;
|
|
112
79
|
/**
|
|
113
80
|
* A list of payment method detail items.
|
|
114
|
-
* @type {Array<string>}
|
|
115
|
-
* @memberof Order
|
|
116
81
|
*/
|
|
117
82
|
'PaymentMethodDetails'?: Array<string>;
|
|
118
83
|
/**
|
|
119
84
|
* The identifier for the marketplace where the order was placed.
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof Order
|
|
122
85
|
*/
|
|
123
86
|
'MarketplaceId'?: string;
|
|
124
87
|
/**
|
|
125
88
|
* The shipment service level category for the order. **Possible values**: `Expedited`, `FreeEconomy`, `NextDay`, `Priority`, `SameDay`, `SecondDay`, `Scheduled`, and `Standard`.
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof Order
|
|
128
89
|
*/
|
|
129
90
|
'ShipmentServiceLevelCategory'?: string;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {EasyShipShipmentStatus}
|
|
133
|
-
* @memberof Order
|
|
134
|
-
*/
|
|
135
91
|
'EasyShipShipmentStatus'?: EasyShipShipmentStatus;
|
|
136
92
|
/**
|
|
137
93
|
* Custom ship label for Checkout by Amazon (CBA).
|
|
138
|
-
* @type {string}
|
|
139
|
-
* @memberof Order
|
|
140
94
|
*/
|
|
141
95
|
'CbaDisplayableShippingLabel'?: string;
|
|
142
96
|
/**
|
|
143
97
|
* The order\'s type.
|
|
144
|
-
* @type {string}
|
|
145
|
-
* @memberof Order
|
|
146
98
|
*/
|
|
147
99
|
'OrderType'?: OrderOrderTypeEnum;
|
|
148
100
|
/**
|
|
149
101
|
* The start of the time period within which you have committed to ship the order. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format. Only returned for seller-fulfilled orders. __Note__: `EarliestShipDate` might not be returned for orders placed before February 1, 2013.
|
|
150
|
-
* @type {string}
|
|
151
|
-
* @memberof Order
|
|
152
102
|
*/
|
|
153
103
|
'EarliestShipDate'?: string;
|
|
154
104
|
/**
|
|
155
105
|
* The end of the time period within which you have committed to ship the order. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format. Only returned for seller-fulfilled orders. __Note__: `LatestShipDate` might not be returned for orders placed before February 1, 2013.
|
|
156
|
-
* @type {string}
|
|
157
|
-
* @memberof Order
|
|
158
106
|
*/
|
|
159
107
|
'LatestShipDate'?: string;
|
|
160
108
|
/**
|
|
161
109
|
* The start of the time period within which you have committed to fulfill the order. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format. Only returned for seller-fulfilled orders.
|
|
162
|
-
* @type {string}
|
|
163
|
-
* @memberof Order
|
|
164
110
|
*/
|
|
165
111
|
'EarliestDeliveryDate'?: string;
|
|
166
112
|
/**
|
|
167
113
|
* The end of the time period within which you have committed to fulfill the order. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format. Only returned for seller-fulfilled orders that do not have a `PendingAvailability`, `Pending`, or `Canceled` status.
|
|
168
|
-
* @type {string}
|
|
169
|
-
* @memberof Order
|
|
170
114
|
*/
|
|
171
115
|
'LatestDeliveryDate'?: string;
|
|
172
116
|
/**
|
|
173
117
|
* When true, the order is an Amazon Business order. An Amazon Business order is an order where the buyer is a Verified Business Buyer.
|
|
174
|
-
* @type {boolean}
|
|
175
|
-
* @memberof Order
|
|
176
118
|
*/
|
|
177
119
|
'IsBusinessOrder'?: boolean;
|
|
178
120
|
/**
|
|
179
121
|
* When true, the order is a seller-fulfilled Amazon Prime order.
|
|
180
|
-
* @type {boolean}
|
|
181
|
-
* @memberof Order
|
|
182
122
|
*/
|
|
183
123
|
'IsPrime'?: boolean;
|
|
184
124
|
/**
|
|
185
125
|
* When true, the order has a Premium Shipping Service Level Agreement. For more information about Premium Shipping orders, refer to \"Premium Shipping Options\" in the Seller Central Help for your marketplace.
|
|
186
|
-
* @type {boolean}
|
|
187
|
-
* @memberof Order
|
|
188
126
|
*/
|
|
189
127
|
'IsPremiumOrder'?: boolean;
|
|
190
128
|
/**
|
|
191
129
|
* When true, the order is a `GlobalExpress` order.
|
|
192
|
-
* @type {boolean}
|
|
193
|
-
* @memberof Order
|
|
194
130
|
*/
|
|
195
131
|
'IsGlobalExpressEnabled'?: boolean;
|
|
196
132
|
/**
|
|
197
133
|
* The order ID value for the order that is being replaced. Returned only if IsReplacementOrder = true.
|
|
198
|
-
* @type {string}
|
|
199
|
-
* @memberof Order
|
|
200
134
|
*/
|
|
201
135
|
'ReplacedOrderId'?: string;
|
|
202
136
|
/**
|
|
203
137
|
* When true, this is a replacement order.
|
|
204
|
-
* @type {boolean}
|
|
205
|
-
* @memberof Order
|
|
206
138
|
*/
|
|
207
139
|
'IsReplacementOrder'?: boolean;
|
|
208
140
|
/**
|
|
209
141
|
* Indicates the date by which the seller must respond to the buyer with an estimated ship date. Only returned for Sourcing on Demand orders.
|
|
210
|
-
* @type {string}
|
|
211
|
-
* @memberof Order
|
|
212
142
|
*/
|
|
213
143
|
'PromiseResponseDueDate'?: string;
|
|
214
144
|
/**
|
|
215
145
|
* When true, the estimated ship date is set for the order. Only returned for Sourcing on Demand orders.
|
|
216
|
-
* @type {boolean}
|
|
217
|
-
* @memberof Order
|
|
218
146
|
*/
|
|
219
147
|
'IsEstimatedShipDateSet'?: boolean;
|
|
220
148
|
/**
|
|
221
149
|
* When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller.
|
|
222
|
-
* @type {boolean}
|
|
223
|
-
* @memberof Order
|
|
224
150
|
*/
|
|
225
151
|
'IsSoldByAB'?: boolean;
|
|
226
152
|
/**
|
|
227
153
|
* When true, the item within this order was bought and re-sold by Amazon Business EU SARL (ABEU). By buying and instantly re-selling your items, ABEU becomes the seller of record, making your inventory available for sale to customers who would not otherwise purchase from a third-party seller.
|
|
228
|
-
* @type {boolean}
|
|
229
|
-
* @memberof Order
|
|
230
154
|
*/
|
|
231
155
|
'IsIBA'?: boolean;
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
234
|
-
* @type {Address}
|
|
235
|
-
* @memberof Order
|
|
236
|
-
*/
|
|
237
156
|
'DefaultShipFromLocationAddress'?: Address;
|
|
238
157
|
/**
|
|
239
158
|
* The buyer\'s invoicing preference. Sellers can use this data to issue electronic invoices for orders in Turkey. **Note**: This attribute is only available in the Turkey marketplace.
|
|
240
|
-
* @type {string}
|
|
241
|
-
* @memberof Order
|
|
242
159
|
*/
|
|
243
160
|
'BuyerInvoicePreference'?: OrderBuyerInvoicePreferenceEnum;
|
|
244
|
-
/**
|
|
245
|
-
*
|
|
246
|
-
* @type {BuyerTaxInformation}
|
|
247
|
-
* @memberof Order
|
|
248
|
-
*/
|
|
249
161
|
'BuyerTaxInformation'?: BuyerTaxInformation;
|
|
250
|
-
/**
|
|
251
|
-
*
|
|
252
|
-
* @type {FulfillmentInstruction}
|
|
253
|
-
* @memberof Order
|
|
254
|
-
*/
|
|
255
162
|
'FulfillmentInstruction'?: FulfillmentInstruction;
|
|
256
163
|
/**
|
|
257
164
|
* When true, this order is marked to be picked up from a store rather than delivered.
|
|
258
|
-
* @type {boolean}
|
|
259
|
-
* @memberof Order
|
|
260
165
|
*/
|
|
261
166
|
'IsISPU'?: boolean;
|
|
262
167
|
/**
|
|
263
168
|
* When true, this order is marked to be delivered to an Access Point. The access location is chosen by the customer. Access Points include Amazon Hub Lockers, Amazon Hub Counters, and pickup points operated by carriers.
|
|
264
|
-
* @type {boolean}
|
|
265
|
-
* @memberof Order
|
|
266
169
|
*/
|
|
267
170
|
'IsAccessPointOrder'?: boolean;
|
|
268
|
-
/**
|
|
269
|
-
*
|
|
270
|
-
* @type {MarketplaceTaxInfo}
|
|
271
|
-
* @memberof Order
|
|
272
|
-
*/
|
|
273
171
|
'MarketplaceTaxInfo'?: MarketplaceTaxInfo;
|
|
274
172
|
/**
|
|
275
173
|
* The seller’s friendly name registered in the marketplace where the sale took place. Sellers can use this data to issue electronic invoices for orders in Brazil. **Note**: This attribute is only available in the Brazil marketplace for the orders with `Pending` or `Unshipped` status.
|
|
276
|
-
* @type {string}
|
|
277
|
-
* @memberof Order
|
|
278
174
|
*/
|
|
279
175
|
'SellerDisplayName'?: string;
|
|
280
|
-
/**
|
|
281
|
-
*
|
|
282
|
-
* @type {Address}
|
|
283
|
-
* @memberof Order
|
|
284
|
-
*/
|
|
285
176
|
'ShippingAddress'?: Address;
|
|
286
|
-
/**
|
|
287
|
-
*
|
|
288
|
-
* @type {BuyerInfo}
|
|
289
|
-
* @memberof Order
|
|
290
|
-
*/
|
|
291
177
|
'BuyerInfo'?: BuyerInfo;
|
|
292
|
-
/**
|
|
293
|
-
*
|
|
294
|
-
* @type {AutomatedShippingSettings}
|
|
295
|
-
* @memberof Order
|
|
296
|
-
*/
|
|
297
178
|
'AutomatedShippingSettings'?: AutomatedShippingSettings;
|
|
298
179
|
/**
|
|
299
180
|
* Whether the order contains regulated items which may require additional approval steps before being fulfilled.
|
|
300
|
-
* @type {boolean}
|
|
301
|
-
* @memberof Order
|
|
302
181
|
*/
|
|
303
182
|
'HasRegulatedItems'?: boolean;
|
|
304
|
-
/**
|
|
305
|
-
*
|
|
306
|
-
* @type {ElectronicInvoiceStatus}
|
|
307
|
-
* @memberof Order
|
|
308
|
-
*/
|
|
309
183
|
'ElectronicInvoiceStatus'?: ElectronicInvoiceStatus;
|
|
310
184
|
}
|
|
311
185
|
export declare const OrderOrderStatusEnum: {
|
|
@@ -12,32 +12,22 @@
|
|
|
12
12
|
import type { Order } from './order';
|
|
13
13
|
/**
|
|
14
14
|
* A list of orders along with additional information to make subsequent API calls.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface OrdersList
|
|
17
15
|
*/
|
|
18
16
|
export interface OrdersList {
|
|
19
17
|
/**
|
|
20
18
|
* A list of orders.
|
|
21
|
-
* @type {Array<Order>}
|
|
22
|
-
* @memberof OrdersList
|
|
23
19
|
*/
|
|
24
20
|
'Orders': Array<Order>;
|
|
25
21
|
/**
|
|
26
22
|
* When present and not empty, pass this string token in the next request to return the next response page.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof OrdersList
|
|
29
23
|
*/
|
|
30
24
|
'NextToken'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* Use this date to select orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. Use [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format for all dates.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof OrdersList
|
|
35
27
|
*/
|
|
36
28
|
'LastUpdatedBefore'?: string;
|
|
37
29
|
/**
|
|
38
30
|
* Use this date to select orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof OrdersList
|
|
41
31
|
*/
|
|
42
32
|
'CreatedBefore'?: string;
|
|
43
33
|
}
|
|
@@ -12,56 +12,38 @@
|
|
|
12
12
|
import type { ConfirmShipmentOrderItem } from './confirm-shipment-order-item';
|
|
13
13
|
/**
|
|
14
14
|
* Properties of packages
|
|
15
|
-
* @export
|
|
16
|
-
* @interface PackageDetail
|
|
17
15
|
*/
|
|
18
16
|
export interface PackageDetail {
|
|
19
17
|
/**
|
|
20
18
|
* A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof PackageDetail
|
|
23
19
|
*/
|
|
24
20
|
'packageReferenceId': string;
|
|
25
21
|
/**
|
|
26
22
|
* Identifies the carrier that will deliver the package. This field is required for all marketplaces. For more information, refer to the [`CarrierCode` announcement](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces).
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof PackageDetail
|
|
29
23
|
*/
|
|
30
24
|
'carrierCode': string;
|
|
31
25
|
/**
|
|
32
26
|
* Carrier name that will deliver the package. Required when `carrierCode` is \"Other\"
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof PackageDetail
|
|
35
27
|
*/
|
|
36
28
|
'carrierName'?: string;
|
|
37
29
|
/**
|
|
38
30
|
* Ship method to be used for shipping the order.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof PackageDetail
|
|
41
31
|
*/
|
|
42
32
|
'shippingMethod'?: string;
|
|
43
33
|
/**
|
|
44
34
|
* The tracking number used to obtain tracking and delivery information.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof PackageDetail
|
|
47
35
|
*/
|
|
48
36
|
'trackingNumber': string;
|
|
49
37
|
/**
|
|
50
38
|
* The shipping date for the package. Must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> date/time format.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof PackageDetail
|
|
53
39
|
*/
|
|
54
40
|
'shipDate': string;
|
|
55
41
|
/**
|
|
56
42
|
* The unique identifier for the supply source.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof PackageDetail
|
|
59
43
|
*/
|
|
60
44
|
'shipFromSupplySourceId'?: string;
|
|
61
45
|
/**
|
|
62
46
|
* A list of order items.
|
|
63
|
-
* @type {Array<ConfirmShipmentOrderItem>}
|
|
64
|
-
* @memberof PackageDetail
|
|
65
47
|
*/
|
|
66
48
|
'orderItems': Array<ConfirmShipmentOrderItem>;
|
|
67
49
|
}
|
|
@@ -12,20 +12,11 @@
|
|
|
12
12
|
import type { Money } from './money';
|
|
13
13
|
/**
|
|
14
14
|
* Information about a sub-payment method used to pay for a COD order.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface PaymentExecutionDetailItem
|
|
17
15
|
*/
|
|
18
16
|
export interface PaymentExecutionDetailItem {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Money}
|
|
22
|
-
* @memberof PaymentExecutionDetailItem
|
|
23
|
-
*/
|
|
24
17
|
'Payment': Money;
|
|
25
18
|
/**
|
|
26
19
|
* A sub-payment method for a COD order. **Possible values**: * `COD`: Cash on delivery * `GC`: Gift card * `PointsAccount`: Amazon Points * `Invoice`: Invoice
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof PaymentExecutionDetailItem
|
|
29
20
|
*/
|
|
30
21
|
'PaymentMethod': string;
|
|
31
22
|
}
|
|
@@ -12,20 +12,11 @@
|
|
|
12
12
|
import type { Money } from './money';
|
|
13
13
|
/**
|
|
14
14
|
* The number of Amazon Points offered with the purchase of an item, and their monetary value.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface PointsGrantedDetail
|
|
17
15
|
*/
|
|
18
16
|
export interface PointsGrantedDetail {
|
|
19
17
|
/**
|
|
20
18
|
* The number of Amazon Points granted with the purchase of an item.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof PointsGrantedDetail
|
|
23
19
|
*/
|
|
24
20
|
'PointsNumber'?: number;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Money}
|
|
28
|
-
* @memberof PointsGrantedDetail
|
|
29
|
-
*/
|
|
30
21
|
'PointsMonetaryValue'?: Money;
|
|
31
22
|
}
|
|
@@ -13,20 +13,14 @@ import type { BusinessHours } from './business-hours';
|
|
|
13
13
|
import type { ExceptionDates } from './exception-dates';
|
|
14
14
|
/**
|
|
15
15
|
* The time window when the delivery is preferred.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PreferredDeliveryTime
|
|
18
16
|
*/
|
|
19
17
|
export interface PreferredDeliveryTime {
|
|
20
18
|
/**
|
|
21
19
|
* Business hours when the business is open for deliveries.
|
|
22
|
-
* @type {Array<BusinessHours>}
|
|
23
|
-
* @memberof PreferredDeliveryTime
|
|
24
20
|
*/
|
|
25
21
|
'BusinessHours'?: Array<BusinessHours>;
|
|
26
22
|
/**
|
|
27
23
|
* Dates when the business is closed during the next 30 days.
|
|
28
|
-
* @type {Array<ExceptionDates>}
|
|
29
|
-
* @memberof PreferredDeliveryTime
|
|
30
24
|
*/
|
|
31
25
|
'ExceptionDates'?: Array<ExceptionDates>;
|
|
32
26
|
}
|
|
@@ -11,50 +11,34 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Information about the prescription that is used to verify a regulated product. This must be provided once per order and reflect the seller’s own records. Only approved orders can have prescriptions.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface PrescriptionDetail
|
|
16
14
|
*/
|
|
17
15
|
export interface PrescriptionDetail {
|
|
18
16
|
/**
|
|
19
17
|
* The identifier for the prescription used to verify the regulated product.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof PrescriptionDetail
|
|
22
18
|
*/
|
|
23
19
|
'prescriptionId': string;
|
|
24
20
|
/**
|
|
25
21
|
* The expiration date of the prescription used to verify the regulated product, in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof PrescriptionDetail
|
|
28
22
|
*/
|
|
29
23
|
'expirationDate': string;
|
|
30
24
|
/**
|
|
31
25
|
* The number of units in each fill as provided in the prescription.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof PrescriptionDetail
|
|
34
26
|
*/
|
|
35
27
|
'writtenQuantity': number;
|
|
36
28
|
/**
|
|
37
29
|
* The total number of refills written in the original prescription used to verify the regulated product. If a prescription originally had no refills, this value must be 0.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof PrescriptionDetail
|
|
40
30
|
*/
|
|
41
31
|
'totalRefillsAuthorized': number;
|
|
42
32
|
/**
|
|
43
33
|
* The number of refills remaining for the prescription used to verify the regulated product. If a prescription originally had 10 total refills, this value must be `10` for the first order, `9` for the second order, and `0` for the eleventh order. If a prescription originally had no refills, this value must be 0.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof PrescriptionDetail
|
|
46
34
|
*/
|
|
47
35
|
'refillsRemaining': number;
|
|
48
36
|
/**
|
|
49
37
|
* The identifier for the clinic which provided the prescription used to verify the regulated product.
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof PrescriptionDetail
|
|
52
38
|
*/
|
|
53
39
|
'clinicId': string;
|
|
54
40
|
/**
|
|
55
41
|
* The instructions for the prescription as provided by the approver of the regulated product.
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof PrescriptionDetail
|
|
58
42
|
*/
|
|
59
43
|
'usageInstructions': string;
|
|
60
44
|
}
|
|
@@ -11,14 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Product information on the number of items.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ProductInfoDetail
|
|
16
14
|
*/
|
|
17
15
|
export interface ProductInfoDetail {
|
|
18
16
|
/**
|
|
19
17
|
* The total number of items that are included in the ASIN.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ProductInfoDetail
|
|
22
18
|
*/
|
|
23
19
|
'NumberOfItems'?: string;
|
|
24
20
|
}
|
|
@@ -11,32 +11,22 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* A field collected from the regulatory form.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RegulatedInformationField
|
|
16
14
|
*/
|
|
17
15
|
export interface RegulatedInformationField {
|
|
18
16
|
/**
|
|
19
17
|
* The unique identifier of the field.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RegulatedInformationField
|
|
22
18
|
*/
|
|
23
19
|
'FieldId': string;
|
|
24
20
|
/**
|
|
25
21
|
* The name of the field.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RegulatedInformationField
|
|
28
22
|
*/
|
|
29
23
|
'FieldLabel': string;
|
|
30
24
|
/**
|
|
31
25
|
* The type of field.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof RegulatedInformationField
|
|
34
26
|
*/
|
|
35
27
|
'FieldType': RegulatedInformationFieldFieldTypeEnum;
|
|
36
28
|
/**
|
|
37
29
|
* The content of the field as collected in regulatory form. Note that `FileAttachment` type fields contain a URL where you can download the attachment.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof RegulatedInformationField
|
|
40
30
|
*/
|
|
41
31
|
'FieldValue': string;
|
|
42
32
|
}
|
|
@@ -12,14 +12,10 @@
|
|
|
12
12
|
import type { RegulatedInformationField } from './regulated-information-field';
|
|
13
13
|
/**
|
|
14
14
|
* The regulated information collected during purchase and used to verify the order.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface RegulatedInformation
|
|
17
15
|
*/
|
|
18
16
|
export interface RegulatedInformation {
|
|
19
17
|
/**
|
|
20
18
|
* A list of regulated information fields as collected from the regulatory form.
|
|
21
|
-
* @type {Array<RegulatedInformationField>}
|
|
22
|
-
* @memberof RegulatedInformation
|
|
23
19
|
*/
|
|
24
20
|
'Fields': Array<RegulatedInformationField>;
|
|
25
21
|
}
|
|
@@ -14,50 +14,28 @@ import type { ValidVerificationDetail } from './valid-verification-detail';
|
|
|
14
14
|
import type { VerificationStatus } from './verification-status';
|
|
15
15
|
/**
|
|
16
16
|
* The verification status of the order, along with associated approval or rejection metadata.
|
|
17
|
-
* @export
|
|
18
|
-
* @interface RegulatedOrderVerificationStatus
|
|
19
17
|
*/
|
|
20
18
|
export interface RegulatedOrderVerificationStatus {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {VerificationStatus}
|
|
24
|
-
* @memberof RegulatedOrderVerificationStatus
|
|
25
|
-
*/
|
|
26
19
|
'Status': VerificationStatus;
|
|
27
20
|
/**
|
|
28
21
|
* When true, the regulated information provided in the order requires a review by the merchant.
|
|
29
|
-
* @type {boolean}
|
|
30
|
-
* @memberof RegulatedOrderVerificationStatus
|
|
31
22
|
*/
|
|
32
23
|
'RequiresMerchantAction': boolean;
|
|
33
24
|
/**
|
|
34
25
|
* A list of valid rejection reasons that may be used to reject the order\'s regulated information.
|
|
35
|
-
* @type {Array<RejectionReason>}
|
|
36
|
-
* @memberof RegulatedOrderVerificationStatus
|
|
37
26
|
*/
|
|
38
27
|
'ValidRejectionReasons': Array<RejectionReason>;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {RejectionReason}
|
|
42
|
-
* @memberof RegulatedOrderVerificationStatus
|
|
43
|
-
*/
|
|
44
28
|
'RejectionReason'?: RejectionReason;
|
|
45
29
|
/**
|
|
46
30
|
* The date the order was reviewed. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date time format.
|
|
47
|
-
* @type {string}
|
|
48
|
-
* @memberof RegulatedOrderVerificationStatus
|
|
49
31
|
*/
|
|
50
32
|
'ReviewDate'?: string;
|
|
51
33
|
/**
|
|
52
34
|
* The identifier for the order\'s regulated information reviewer.
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof RegulatedOrderVerificationStatus
|
|
55
35
|
*/
|
|
56
36
|
'ExternalReviewerId'?: string;
|
|
57
37
|
/**
|
|
58
38
|
* A list of valid verification details that may be provided and the criteria required for when the verification detail can be provided.
|
|
59
|
-
* @type {Array<ValidVerificationDetail>}
|
|
60
|
-
* @memberof RegulatedOrderVerificationStatus
|
|
61
39
|
*/
|
|
62
40
|
'ValidVerificationDetails'?: Array<ValidVerificationDetail>;
|
|
63
41
|
}
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* The reason for rejecting the order\'s regulated information. This is only present if the order is rejected.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RejectionReason
|
|
16
14
|
*/
|
|
17
15
|
export interface RejectionReason {
|
|
18
16
|
/**
|
|
19
17
|
* The unique identifier for the rejection reason.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof RejectionReason
|
|
22
18
|
*/
|
|
23
19
|
'RejectionReasonId': string;
|
|
24
20
|
/**
|
|
25
21
|
* The description of this rejection reason.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof RejectionReason
|
|
28
22
|
*/
|
|
29
23
|
'RejectionReasonDescription': string;
|
|
30
24
|
}
|