@sp-api-sdk/orders-api-v0 1.14.0 → 1.16.0
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/src/api-model/api/orders-v0-api.js +57 -51
- package/dist/cjs/src/api-model/models/easy-ship-shipment-status.js +39 -0
- package/dist/cjs/src/api-model/models/electronic-invoice-status.js +28 -0
- package/dist/cjs/src/api-model/models/index.js +2 -0
- package/dist/cjs/src/api-model/models/shipment-status.js +1 -1
- package/dist/es/src/api-model/api/orders-v0-api.js +57 -51
- package/dist/es/src/api-model/models/easy-ship-shipment-status.js +36 -0
- package/dist/es/src/api-model/models/electronic-invoice-status.js +25 -0
- package/dist/es/src/api-model/models/index.js +2 -0
- package/dist/es/src/api-model/models/shipment-status.js +1 -1
- package/dist/types/src/api-model/api/orders-v0-api.d.ts +60 -51
- package/dist/types/src/api-model/common.d.ts +1 -0
- package/dist/types/src/api-model/models/automated-shipping-settings.d.ts +1 -1
- package/dist/types/src/api-model/models/buyer-info.d.ts +1 -1
- package/dist/types/src/api-model/models/easy-ship-shipment-status.d.ts +35 -0
- package/dist/types/src/api-model/models/electronic-invoice-status.d.ts +24 -0
- package/dist/types/src/api-model/models/index.d.ts +2 -0
- package/dist/types/src/api-model/models/model-error.d.ts +1 -1
- package/dist/types/src/api-model/models/order-items-inner.d.ts +2 -2
- package/dist/types/src/api-model/models/order-regulated-info.d.ts +1 -1
- package/dist/types/src/api-model/models/order.d.ts +14 -6
- package/dist/types/src/api-model/models/regulated-information-field.d.ts +3 -3
- package/dist/types/src/api-model/models/regulated-order-verification-status.d.ts +1 -1
- package/dist/types/src/api-model/models/rejection-reason.d.ts +1 -1
- package/dist/types/src/api-model/models/shipment-status.d.ts +1 -1
- package/dist/types/src/api-model/models/update-shipment-status-request.d.ts +3 -3
- package/dist/types/src/api-model/models/update-verification-status-request.d.ts +1 -1
- package/package.json +7 -5
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The status of the Amazon Easy-Ship order. This property is included only for Amazon Easy-Ship orders.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const EasyShipShipmentStatus: {
|
|
18
|
+
readonly PendingSchedule: "PendingSchedule";
|
|
19
|
+
readonly PendingPickUp: "PendingPickUp";
|
|
20
|
+
readonly PendingDropOff: "PendingDropOff";
|
|
21
|
+
readonly LabelCanceled: "LabelCanceled";
|
|
22
|
+
readonly PickedUp: "PickedUp";
|
|
23
|
+
readonly DroppedOff: "DroppedOff";
|
|
24
|
+
readonly AtOriginFc: "AtOriginFC";
|
|
25
|
+
readonly AtDestinationFc: "AtDestinationFC";
|
|
26
|
+
readonly Delivered: "Delivered";
|
|
27
|
+
readonly RejectedByBuyer: "RejectedByBuyer";
|
|
28
|
+
readonly Undeliverable: "Undeliverable";
|
|
29
|
+
readonly ReturningToSeller: "ReturningToSeller";
|
|
30
|
+
readonly ReturnedToSeller: "ReturnedToSeller";
|
|
31
|
+
readonly Lost: "Lost";
|
|
32
|
+
readonly OutForDelivery: "OutForDelivery";
|
|
33
|
+
readonly Damaged: "Damaged";
|
|
34
|
+
};
|
|
35
|
+
export declare type EasyShipShipmentStatus = typeof EasyShipShipmentStatus[keyof typeof EasyShipShipmentStatus];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selling Partner API for Orders
|
|
3
|
+
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The status of the electronic invoice.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const ElectronicInvoiceStatus: {
|
|
18
|
+
readonly NotRequired: "NotRequired";
|
|
19
|
+
readonly NotFound: "NotFound";
|
|
20
|
+
readonly Processing: "Processing";
|
|
21
|
+
readonly Errored: "Errored";
|
|
22
|
+
readonly Accepted: "Accepted";
|
|
23
|
+
};
|
|
24
|
+
export declare type ElectronicInvoiceStatus = typeof ElectronicInvoiceStatus[keyof typeof ElectronicInvoiceStatus];
|
|
@@ -5,6 +5,8 @@ export * from './buyer-info';
|
|
|
5
5
|
export * from './buyer-requested-cancel';
|
|
6
6
|
export * from './buyer-tax-info';
|
|
7
7
|
export * from './buyer-tax-information';
|
|
8
|
+
export * from './easy-ship-shipment-status';
|
|
9
|
+
export * from './electronic-invoice-status';
|
|
8
10
|
export * from './fulfillment-instruction';
|
|
9
11
|
export * from './get-order-address-response';
|
|
10
12
|
export * from './get-order-buyer-info-response';
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface OrderItemsInner {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The unique identifier of the order item.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof OrderItemsInner
|
|
22
22
|
*/
|
|
23
23
|
'orderItemId'?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The quantity for which to update the shipment status.
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof OrderItemsInner
|
|
28
28
|
*/
|
|
@@ -30,7 +30,7 @@ export interface OrderRegulatedInfo {
|
|
|
30
30
|
*/
|
|
31
31
|
'RegulatedInformation': RegulatedInformation;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* When true, the order requires attaching a dosage information label when shipped.
|
|
34
34
|
* @type {boolean}
|
|
35
35
|
* @memberof OrderRegulatedInfo
|
|
36
36
|
*/
|
|
@@ -13,6 +13,8 @@ import { Address } from './address';
|
|
|
13
13
|
import { AutomatedShippingSettings } from './automated-shipping-settings';
|
|
14
14
|
import { BuyerInfo } from './buyer-info';
|
|
15
15
|
import { BuyerTaxInformation } from './buyer-tax-information';
|
|
16
|
+
import { EasyShipShipmentStatus } from './easy-ship-shipment-status';
|
|
17
|
+
import { ElectronicInvoiceStatus } from './electronic-invoice-status';
|
|
16
18
|
import { FulfillmentInstruction } from './fulfillment-instruction';
|
|
17
19
|
import { MarketplaceTaxInfo } from './marketplace-tax-info';
|
|
18
20
|
import { Money } from './money';
|
|
@@ -42,7 +44,7 @@ export interface Order {
|
|
|
42
44
|
*/
|
|
43
45
|
'PurchaseDate': string;
|
|
44
46
|
/**
|
|
45
|
-
* The date when the order was last updated.
|
|
47
|
+
* 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.
|
|
46
48
|
* @type {string}
|
|
47
49
|
* @memberof Order
|
|
48
50
|
*/
|
|
@@ -126,11 +128,11 @@ export interface Order {
|
|
|
126
128
|
*/
|
|
127
129
|
'ShipmentServiceLevelCategory'?: string;
|
|
128
130
|
/**
|
|
129
|
-
*
|
|
130
|
-
* @type {
|
|
131
|
+
*
|
|
132
|
+
* @type {EasyShipShipmentStatus}
|
|
131
133
|
* @memberof Order
|
|
132
134
|
*/
|
|
133
|
-
'EasyShipShipmentStatus'?:
|
|
135
|
+
'EasyShipShipmentStatus'?: EasyShipShipmentStatus;
|
|
134
136
|
/**
|
|
135
137
|
* Custom ship label for Checkout by Amazon (CBA).
|
|
136
138
|
* @type {string}
|
|
@@ -144,13 +146,13 @@ export interface Order {
|
|
|
144
146
|
*/
|
|
145
147
|
'OrderType'?: OrderOrderTypeEnum;
|
|
146
148
|
/**
|
|
147
|
-
* The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.
|
|
149
|
+
* The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. __Note__: EarliestShipDate might not be returned for orders placed before February 1, 2013.
|
|
148
150
|
* @type {string}
|
|
149
151
|
* @memberof Order
|
|
150
152
|
*/
|
|
151
153
|
'EarliestShipDate'?: string;
|
|
152
154
|
/**
|
|
153
|
-
* The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders.
|
|
155
|
+
* The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. __Note__: LatestShipDate might not be returned for orders placed before February 1, 2013.
|
|
154
156
|
* @type {string}
|
|
155
157
|
* @memberof Order
|
|
156
158
|
*/
|
|
@@ -299,6 +301,12 @@ export interface Order {
|
|
|
299
301
|
* @memberof Order
|
|
300
302
|
*/
|
|
301
303
|
'HasRegulatedItems'?: boolean;
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @type {ElectronicInvoiceStatus}
|
|
307
|
+
* @memberof Order
|
|
308
|
+
*/
|
|
309
|
+
'ElectronicInvoiceStatus'?: ElectronicInvoiceStatus;
|
|
302
310
|
}
|
|
303
311
|
export declare const OrderOrderStatusEnum: {
|
|
304
312
|
readonly Pending: "Pending";
|
|
@@ -22,19 +22,19 @@ export interface RegulatedInformationField {
|
|
|
22
22
|
*/
|
|
23
23
|
'FieldId': string;
|
|
24
24
|
/**
|
|
25
|
-
* The
|
|
25
|
+
* The name for the field.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RegulatedInformationField
|
|
28
28
|
*/
|
|
29
29
|
'FieldLabel': string;
|
|
30
30
|
/**
|
|
31
|
-
* The type of field
|
|
31
|
+
* The type of field.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof RegulatedInformationField
|
|
34
34
|
*/
|
|
35
35
|
'FieldType': RegulatedInformationFieldFieldTypeEnum;
|
|
36
36
|
/**
|
|
37
|
-
* The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain
|
|
37
|
+
* The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain a URL to download the attachment here.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof RegulatedInformationField
|
|
40
40
|
*/
|
|
@@ -24,7 +24,7 @@ export interface RegulatedOrderVerificationStatus {
|
|
|
24
24
|
*/
|
|
25
25
|
'Status': VerificationStatus;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* When true, the regulated information provided in the order requires a review by the merchant.
|
|
28
28
|
* @type {boolean}
|
|
29
29
|
* @memberof RegulatedOrderVerificationStatus
|
|
30
30
|
*/
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
import { OrderItemsInner } from './order-items-inner';
|
|
13
13
|
import { ShipmentStatus } from './shipment-status';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* The request body for the updateShipmentStatus operation.
|
|
16
16
|
* @export
|
|
17
17
|
* @interface UpdateShipmentStatusRequest
|
|
18
18
|
*/
|
|
19
19
|
export interface UpdateShipmentStatusRequest {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* The unobfuscated marketplace identifier.
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof UpdateShipmentStatusRequest
|
|
24
24
|
*/
|
|
@@ -30,7 +30,7 @@ export interface UpdateShipmentStatusRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
'shipmentStatus': ShipmentStatus;
|
|
32
32
|
/**
|
|
33
|
-
* the list of order items and quantities
|
|
33
|
+
* For partial shipment status updates, the list of order items and quantities to be updated.
|
|
34
34
|
* @type {Array<OrderItemsInner>}
|
|
35
35
|
* @memberof UpdateShipmentStatusRequest
|
|
36
36
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { UpdateVerificationStatusRequestBody } from './update-verification-status-request-body';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The request body for the updateVerificationStatus operation.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface UpdateVerificationStatusRequest
|
|
17
17
|
*/
|
package/package.json
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/orders-api-v0",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.16.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
9
|
-
"typedocMain": "./index.ts",
|
|
10
9
|
"license": "MIT",
|
|
11
10
|
"publishConfig": {
|
|
12
11
|
"access": "public"
|
|
@@ -27,8 +26,8 @@
|
|
|
27
26
|
"test": "jest"
|
|
28
27
|
},
|
|
29
28
|
"dependencies": {
|
|
30
|
-
"@sp-api-sdk/auth": "^1.9.
|
|
31
|
-
"@sp-api-sdk/common": "^1.9.
|
|
29
|
+
"@sp-api-sdk/auth": "^1.9.21",
|
|
30
|
+
"@sp-api-sdk/common": "^1.9.7",
|
|
32
31
|
"axios": "^0.27.2"
|
|
33
32
|
},
|
|
34
33
|
"repository": {
|
|
@@ -50,5 +49,8 @@
|
|
|
50
49
|
"sp sdk",
|
|
51
50
|
"orders api"
|
|
52
51
|
],
|
|
53
|
-
"
|
|
52
|
+
"typedoc": {
|
|
53
|
+
"entryPoint": "./index.ts"
|
|
54
|
+
},
|
|
55
|
+
"gitHead": "87de54d3e7d47fd187a15c558350620d6c5b50af"
|
|
54
56
|
}
|