@sp-api-sdk/orders-api-v0 1.12.3 → 1.14.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 +45 -45
- package/dist/cjs/src/api-model/models/address.js +4 -9
- package/dist/cjs/src/api-model/models/index.js +2 -0
- package/dist/cjs/src/api-model/models/order-item.js +4 -9
- package/dist/cjs/src/api-model/models/order-items-inner.js +15 -0
- package/dist/cjs/src/api-model/models/order.js +30 -55
- package/dist/cjs/src/api-model/models/regulated-information-field.js +4 -9
- package/dist/cjs/src/api-model/models/regulated-order-verification-status.js +0 -13
- package/dist/cjs/src/api-model/models/shipment-status.js +5 -6
- package/dist/cjs/src/api-model/models/tax-collection.js +6 -16
- package/dist/cjs/src/api-model/models/update-verification-status-request-body.js +0 -10
- package/dist/cjs/src/api-model/models/verification-status.js +28 -0
- package/dist/cjs/src/client.js +19 -12
- package/dist/es/src/api-model/api/orders-v0-api.js +45 -45
- package/dist/es/src/api-model/models/address.js +4 -9
- package/dist/es/src/api-model/models/index.js +2 -0
- package/dist/es/src/api-model/models/order-item.js +4 -9
- package/dist/es/src/api-model/models/order-items-inner.js +14 -0
- package/dist/es/src/api-model/models/order.js +30 -55
- package/dist/es/src/api-model/models/regulated-information-field.js +4 -9
- package/dist/es/src/api-model/models/regulated-order-verification-status.js +1 -12
- package/dist/es/src/api-model/models/shipment-status.js +5 -6
- package/dist/es/src/api-model/models/tax-collection.js +6 -16
- package/dist/es/src/api-model/models/update-verification-status-request-body.js +1 -9
- package/dist/es/src/api-model/models/verification-status.js +25 -0
- package/dist/es/src/client.js +19 -12
- package/dist/types/src/api-model/api/orders-v0-api.d.ts +70 -70
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +7 -7
- package/dist/types/src/api-model/models/address.d.ts +18 -21
- package/dist/types/src/api-model/models/automated-shipping-settings.d.ts +3 -3
- package/dist/types/src/api-model/models/buyer-customized-info-detail.d.ts +1 -1
- package/dist/types/src/api-model/models/buyer-info.d.ts +5 -5
- package/dist/types/src/api-model/models/buyer-requested-cancel.d.ts +3 -3
- package/dist/types/src/api-model/models/buyer-tax-info.d.ts +3 -3
- package/dist/types/src/api-model/models/buyer-tax-information.d.ts +4 -4
- package/dist/types/src/api-model/models/fulfillment-instruction.d.ts +1 -1
- package/dist/types/src/api-model/models/get-order-address-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-buyer-info-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-items-buyer-info-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-items-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-regulated-info-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-orders-response.d.ts +2 -2
- package/dist/types/src/api-model/models/index.d.ts +2 -0
- package/dist/types/src/api-model/models/item-buyer-info.d.ts +5 -5
- package/dist/types/src/api-model/models/marketplace-tax-info.d.ts +1 -1
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/money.d.ts +2 -2
- package/dist/types/src/api-model/models/order-address.d.ts +2 -2
- package/dist/types/src/api-model/models/order-buyer-info.d.ts +6 -6
- package/dist/types/src/api-model/models/order-item-buyer-info.d.ts +6 -6
- package/dist/types/src/api-model/models/order-item.d.ts +39 -42
- package/dist/types/src/api-model/models/order-items-buyer-info-list.d.ts +3 -3
- package/dist/types/src/api-model/models/order-items-inner.d.ts +30 -0
- package/dist/types/src/api-model/models/order-items-list.d.ts +3 -3
- package/dist/types/src/api-model/models/order-regulated-info.d.ts +4 -4
- package/dist/types/src/api-model/models/order.d.ts +86 -95
- package/dist/types/src/api-model/models/orders-list.d.ts +4 -4
- package/dist/types/src/api-model/models/payment-execution-detail-item.d.ts +2 -2
- package/dist/types/src/api-model/models/points-granted-detail.d.ts +2 -2
- package/dist/types/src/api-model/models/product-info-detail.d.ts +1 -1
- package/dist/types/src/api-model/models/regulated-information-field.d.ts +9 -12
- package/dist/types/src/api-model/models/regulated-information.d.ts +1 -1
- package/dist/types/src/api-model/models/regulated-order-verification-status.d.ts +9 -19
- package/dist/types/src/api-model/models/rejection-reason.d.ts +2 -2
- package/dist/types/src/api-model/models/shipment-status.d.ts +6 -5
- package/dist/types/src/api-model/models/tax-classification.d.ts +2 -2
- package/dist/types/src/api-model/models/tax-collection.d.ts +10 -16
- package/dist/types/src/api-model/models/update-shipment-status-error-response.d.ts +1 -1
- package/dist/types/src/api-model/models/update-shipment-status-request.d.ts +5 -4
- package/dist/types/src/api-model/models/update-verification-status-error-response.d.ts +1 -1
- package/dist/types/src/api-model/models/update-verification-status-request-body.d.ts +6 -13
- package/dist/types/src/api-model/models/update-verification-status-request.d.ts +1 -1
- package/dist/types/src/api-model/models/verification-status.d.ts +24 -0
- package/package.json +4 -4
|
@@ -9,6 +9,7 @@
|
|
|
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
|
* Request to update the status of shipment of an order.
|
|
@@ -21,17 +22,17 @@ export interface UpdateShipmentStatusRequest {
|
|
|
21
22
|
* @type {string}
|
|
22
23
|
* @memberof UpdateShipmentStatusRequest
|
|
23
24
|
*/
|
|
24
|
-
marketplaceId: string;
|
|
25
|
+
'marketplaceId': string;
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
28
|
* @type {ShipmentStatus}
|
|
28
29
|
* @memberof UpdateShipmentStatusRequest
|
|
29
30
|
*/
|
|
30
|
-
shipmentStatus: ShipmentStatus;
|
|
31
|
+
'shipmentStatus': ShipmentStatus;
|
|
31
32
|
/**
|
|
32
33
|
* the list of order items and quantities when the seller wants to partially update the shipment status of the order
|
|
33
|
-
* @type {Array<
|
|
34
|
+
* @type {Array<OrderItemsInner>}
|
|
34
35
|
* @memberof UpdateShipmentStatusRequest
|
|
35
36
|
*/
|
|
36
|
-
orderItems?: Array<
|
|
37
|
+
'orderItems'?: Array<OrderItemsInner>;
|
|
37
38
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { VerificationStatus } from './verification-status';
|
|
12
13
|
/**
|
|
13
14
|
* The updated values of the VerificationStatus field.
|
|
14
15
|
* @export
|
|
@@ -16,29 +17,21 @@
|
|
|
16
17
|
*/
|
|
17
18
|
export interface UpdateVerificationStatusRequestBody {
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {
|
|
20
|
+
*
|
|
21
|
+
* @type {VerificationStatus}
|
|
21
22
|
* @memberof UpdateVerificationStatusRequestBody
|
|
22
23
|
*/
|
|
23
|
-
status:
|
|
24
|
+
'status': VerificationStatus;
|
|
24
25
|
/**
|
|
25
26
|
* The identifier for the order\'s regulated information reviewer.
|
|
26
27
|
* @type {string}
|
|
27
28
|
* @memberof UpdateVerificationStatusRequestBody
|
|
28
29
|
*/
|
|
29
|
-
externalReviewerId: string;
|
|
30
|
+
'externalReviewerId': string;
|
|
30
31
|
/**
|
|
31
32
|
* The unique identifier for the rejection reason used for rejecting the order\'s regulated information. Only required if the new status is rejected.
|
|
32
33
|
* @type {string}
|
|
33
34
|
* @memberof UpdateVerificationStatusRequestBody
|
|
34
35
|
*/
|
|
35
|
-
rejectionReasonId?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
* @enum {string}
|
|
40
|
-
*/
|
|
41
|
-
export declare enum UpdateVerificationStatusRequestBodyStatusEnum {
|
|
42
|
-
Approved = "Approved",
|
|
43
|
-
Rejected = "Rejected"
|
|
36
|
+
'rejectionReasonId'?: string;
|
|
44
37
|
}
|
|
@@ -21,5 +21,5 @@ export interface UpdateVerificationStatusRequest {
|
|
|
21
21
|
* @type {UpdateVerificationStatusRequestBody}
|
|
22
22
|
* @memberof UpdateVerificationStatusRequest
|
|
23
23
|
*/
|
|
24
|
-
regulatedOrderVerificationStatus: UpdateVerificationStatusRequestBody;
|
|
24
|
+
'regulatedOrderVerificationStatus': UpdateVerificationStatusRequestBody;
|
|
25
25
|
}
|
|
@@ -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 verification status of the order.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const VerificationStatus: {
|
|
18
|
+
readonly Pending: "Pending";
|
|
19
|
+
readonly Approved: "Approved";
|
|
20
|
+
readonly Rejected: "Rejected";
|
|
21
|
+
readonly Expired: "Expired";
|
|
22
|
+
readonly Cancelled: "Cancelled";
|
|
23
|
+
};
|
|
24
|
+
export declare type VerificationStatus = typeof VerificationStatus[keyof typeof VerificationStatus];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.14.0",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"test": "jest"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@sp-api-sdk/auth": "^1.9.
|
|
31
|
-
"@sp-api-sdk/common": "^1.9.
|
|
30
|
+
"@sp-api-sdk/auth": "^1.9.18",
|
|
31
|
+
"@sp-api-sdk/common": "^1.9.4",
|
|
32
32
|
"axios": "^0.27.2"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"sp sdk",
|
|
51
51
|
"orders api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "18efdada205f63f94bd5c11e163e758adbb93257"
|
|
54
54
|
}
|