@sp-api-sdk/orders-api-v0 1.13.1 → 1.15.1
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 +39 -39
- package/dist/cjs/src/api-model/models/index.js +1 -0
- package/dist/cjs/src/api-model/models/order-items-inner.js +15 -0
- package/dist/cjs/src/api-model/models/shipment-status.js +1 -1
- package/dist/es/src/api-model/api/orders-v0-api.js +39 -39
- package/dist/es/src/api-model/models/index.js +1 -0
- package/dist/es/src/api-model/models/order-items-inner.js +14 -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 +58 -58
- package/dist/types/src/api-model/common.d.ts +6 -6
- 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/index.d.ts +1 -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 +30 -0
- package/dist/types/src/api-model/models/order-regulated-info.d.ts +1 -1
- package/dist/types/src/api-model/models/order.d.ts +3 -3
- 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 +6 -5
- package/package.json +7 -5
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OrderItemsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface OrderItemsInner {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier of the order item.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OrderItemsInner
|
|
22
|
+
*/
|
|
23
|
+
'orderItemId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The quantity for which to update the shipment status.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof OrderItemsInner
|
|
28
|
+
*/
|
|
29
|
+
'quantity'?: number;
|
|
30
|
+
}
|
|
@@ -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
|
*/
|
|
@@ -42,7 +42,7 @@ export interface Order {
|
|
|
42
42
|
*/
|
|
43
43
|
'PurchaseDate': string;
|
|
44
44
|
/**
|
|
45
|
-
* The date when the order was last updated.
|
|
45
|
+
* 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
46
|
* @type {string}
|
|
47
47
|
* @memberof Order
|
|
48
48
|
*/
|
|
@@ -144,13 +144,13 @@ export interface Order {
|
|
|
144
144
|
*/
|
|
145
145
|
'OrderType'?: OrderOrderTypeEnum;
|
|
146
146
|
/**
|
|
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.
|
|
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. __Note__: EarliestShipDate might not be returned for orders placed before February 1, 2013.
|
|
148
148
|
* @type {string}
|
|
149
149
|
* @memberof Order
|
|
150
150
|
*/
|
|
151
151
|
'EarliestShipDate'?: string;
|
|
152
152
|
/**
|
|
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.
|
|
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. __Note__: LatestShipDate might not be returned for orders placed before February 1, 2013.
|
|
154
154
|
* @type {string}
|
|
155
155
|
* @memberof Order
|
|
156
156
|
*/
|
|
@@ -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
|
*/
|
|
@@ -9,15 +9,16 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { OrderItemsInner } from './order-items-inner';
|
|
12
13
|
import { ShipmentStatus } from './shipment-status';
|
|
13
14
|
/**
|
|
14
|
-
*
|
|
15
|
+
* The request body for the updateShipmentStatus operation.
|
|
15
16
|
* @export
|
|
16
17
|
* @interface UpdateShipmentStatusRequest
|
|
17
18
|
*/
|
|
18
19
|
export interface UpdateShipmentStatusRequest {
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* The unobfuscated marketplace identifier.
|
|
21
22
|
* @type {string}
|
|
22
23
|
* @memberof UpdateShipmentStatusRequest
|
|
23
24
|
*/
|
|
@@ -29,9 +30,9 @@ export interface UpdateShipmentStatusRequest {
|
|
|
29
30
|
*/
|
|
30
31
|
'shipmentStatus': ShipmentStatus;
|
|
31
32
|
/**
|
|
32
|
-
* the list of order items and quantities
|
|
33
|
-
* @type {Array<
|
|
33
|
+
* For partial shipment status updates, the list of order items and quantities to be updated.
|
|
34
|
+
* @type {Array<OrderItemsInner>}
|
|
34
35
|
* @memberof UpdateShipmentStatusRequest
|
|
35
36
|
*/
|
|
36
|
-
'orderItems'?: Array<
|
|
37
|
+
'orderItems'?: Array<OrderItemsInner>;
|
|
37
38
|
}
|
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.15.1",
|
|
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.20",
|
|
30
|
+
"@sp-api-sdk/common": "^1.9.6",
|
|
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": "c28c9ce8bfa10271bba79c0067c5c9f63a5f6dc0"
|
|
54
56
|
}
|