@sp-api-sdk/orders-api-v0 1.9.2 → 1.11.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/README.md +2 -2
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/src/api-model/api/orders-v0-api.js +140 -19
- package/dist/cjs/src/api-model/api.js +1 -1
- package/dist/cjs/src/api-model/base.js +1 -1
- package/dist/cjs/src/api-model/index.js +3 -3
- package/dist/cjs/src/api-model/models/buyer-requested-cancel.js +15 -0
- package/dist/cjs/src/api-model/models/get-order-regulated-info-response.js +15 -0
- package/dist/cjs/src/api-model/models/index.js +43 -33
- package/dist/cjs/src/api-model/models/order-regulated-info.js +15 -0
- package/dist/cjs/src/api-model/models/regulated-information-field.js +25 -0
- package/dist/cjs/src/api-model/models/regulated-information.js +15 -0
- package/dist/cjs/src/api-model/models/regulated-order-verification-status.js +28 -0
- package/dist/cjs/src/api-model/models/rejection-reason.js +15 -0
- package/dist/cjs/src/api-model/models/update-verification-status-error-response.js +15 -0
- package/dist/cjs/src/api-model/models/update-verification-status-request-body.js +25 -0
- package/dist/cjs/src/api-model/models/update-verification-status-request.js +15 -0
- package/dist/cjs/src/client.js +12 -0
- package/dist/es/src/api-model/api/orders-v0-api.js +139 -18
- package/dist/es/src/api-model/models/buyer-requested-cancel.js +14 -0
- package/dist/es/src/api-model/models/get-order-regulated-info-response.js +14 -0
- package/dist/es/src/api-model/models/index.js +10 -0
- package/dist/es/src/api-model/models/order-regulated-info.js +14 -0
- package/dist/es/src/api-model/models/regulated-information-field.js +22 -0
- package/dist/es/src/api-model/models/regulated-information.js +14 -0
- package/dist/es/src/api-model/models/regulated-order-verification-status.js +25 -0
- package/dist/es/src/api-model/models/rejection-reason.js +14 -0
- package/dist/es/src/api-model/models/update-verification-status-error-response.js +14 -0
- package/dist/es/src/api-model/models/update-verification-status-request-body.js +22 -0
- package/dist/es/src/api-model/models/update-verification-status-request.js +14 -0
- package/dist/es/src/client.js +12 -0
- package/dist/types/src/api-model/api/orders-v0-api.d.ts +115 -20
- package/dist/types/src/api-model/models/buyer-requested-cancel.d.ts +30 -0
- package/dist/types/src/api-model/models/buyer-tax-information.d.ts +1 -1
- package/dist/types/src/api-model/models/get-order-regulated-info-response.d.ts +31 -0
- package/dist/types/src/api-model/models/index.d.ts +10 -0
- package/dist/types/src/api-model/models/order-item.d.ts +7 -0
- package/dist/types/src/api-model/models/order-regulated-info.d.ts +44 -0
- package/dist/types/src/api-model/models/order.d.ts +13 -1
- package/dist/types/src/api-model/models/regulated-information-field.d.ts +50 -0
- package/dist/types/src/api-model/models/regulated-information.d.ts +25 -0
- package/dist/types/src/api-model/models/regulated-order-verification-status.d.ts +66 -0
- package/dist/types/src/api-model/models/rejection-reason.d.ts +30 -0
- package/dist/types/src/api-model/models/update-verification-status-error-response.d.ts +24 -0
- package/dist/types/src/api-model/models/update-verification-status-request-body.d.ts +44 -0
- package/dist/types/src/api-model/models/update-verification-status-request.d.ts +25 -0
- package/package.json +5 -5
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { RegulatedInformation } from './regulated-information';
|
|
13
|
+
import { RegulatedOrderVerificationStatus } from './regulated-order-verification-status';
|
|
14
|
+
/**
|
|
15
|
+
* The order\'s regulated information along with its verification status.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface OrderRegulatedInfo
|
|
18
|
+
*/
|
|
19
|
+
export interface OrderRegulatedInfo {
|
|
20
|
+
/**
|
|
21
|
+
* An Amazon-defined order identifier, in 3-7-7 format.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof OrderRegulatedInfo
|
|
24
|
+
*/
|
|
25
|
+
AmazonOrderId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {RegulatedInformation}
|
|
29
|
+
* @memberof OrderRegulatedInfo
|
|
30
|
+
*/
|
|
31
|
+
RegulatedInformation: RegulatedInformation;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the order requires attaching a dosage information label when shipped.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof OrderRegulatedInfo
|
|
36
|
+
*/
|
|
37
|
+
RequiresDosageLabel: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RegulatedOrderVerificationStatus}
|
|
41
|
+
* @memberof OrderRegulatedInfo
|
|
42
|
+
*/
|
|
43
|
+
RegulatedOrderVerificationStatus: RegulatedOrderVerificationStatus;
|
|
44
|
+
}
|
|
@@ -221,6 +221,12 @@ export interface Order {
|
|
|
221
221
|
* @memberof Order
|
|
222
222
|
*/
|
|
223
223
|
IsSoldByAB?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* 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.
|
|
226
|
+
* @type {boolean}
|
|
227
|
+
* @memberof Order
|
|
228
|
+
*/
|
|
229
|
+
IsIBA?: boolean;
|
|
224
230
|
/**
|
|
225
231
|
*
|
|
226
232
|
* @type {Address}
|
|
@@ -228,7 +234,7 @@ export interface Order {
|
|
|
228
234
|
*/
|
|
229
235
|
DefaultShipFromLocationAddress?: Address;
|
|
230
236
|
/**
|
|
231
|
-
* The buyer
|
|
237
|
+
* The buyer\'s invoicing preference. Available only in the TR marketplace.
|
|
232
238
|
* @type {string}
|
|
233
239
|
* @memberof Order
|
|
234
240
|
*/
|
|
@@ -281,6 +287,12 @@ export interface Order {
|
|
|
281
287
|
* @memberof Order
|
|
282
288
|
*/
|
|
283
289
|
AutomatedShippingSettings?: AutomatedShippingSettings;
|
|
290
|
+
/**
|
|
291
|
+
* Whether the order contains regulated items which may require additional approval steps before being fulfilled.
|
|
292
|
+
* @type {boolean}
|
|
293
|
+
* @memberof Order
|
|
294
|
+
*/
|
|
295
|
+
HasRegulatedItems?: boolean;
|
|
284
296
|
}
|
|
285
297
|
/**
|
|
286
298
|
* @export
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* A field collected from the regulatory form.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RegulatedInformationField
|
|
16
|
+
*/
|
|
17
|
+
export interface RegulatedInformationField {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier for the field.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RegulatedInformationField
|
|
22
|
+
*/
|
|
23
|
+
FieldId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The human-readable name for the field.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RegulatedInformationField
|
|
28
|
+
*/
|
|
29
|
+
FieldLabel: string;
|
|
30
|
+
/**
|
|
31
|
+
* The type of field the field.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RegulatedInformationField
|
|
34
|
+
*/
|
|
35
|
+
FieldType: RegulatedInformationFieldFieldTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain an URL to download the attachment here.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RegulatedInformationField
|
|
40
|
+
*/
|
|
41
|
+
FieldValue: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
* @enum {string}
|
|
46
|
+
*/
|
|
47
|
+
export declare enum RegulatedInformationFieldFieldTypeEnum {
|
|
48
|
+
Text = "Text",
|
|
49
|
+
FileAttachment = "FileAttachment"
|
|
50
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { RegulatedInformationField } from './regulated-information-field';
|
|
13
|
+
/**
|
|
14
|
+
* The regulated information collected during purchase and used to verify the order.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RegulatedInformation
|
|
17
|
+
*/
|
|
18
|
+
export interface RegulatedInformation {
|
|
19
|
+
/**
|
|
20
|
+
* A list of regulated information fields as collected from the regulatory form.
|
|
21
|
+
* @type {Array<RegulatedInformationField>}
|
|
22
|
+
* @memberof RegulatedInformation
|
|
23
|
+
*/
|
|
24
|
+
Fields: Array<RegulatedInformationField>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
import { RejectionReason } from './rejection-reason';
|
|
13
|
+
/**
|
|
14
|
+
* The verification status of the order along with associated approval or rejection metadata.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RegulatedOrderVerificationStatus
|
|
17
|
+
*/
|
|
18
|
+
export interface RegulatedOrderVerificationStatus {
|
|
19
|
+
/**
|
|
20
|
+
* The verification status of the order.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RegulatedOrderVerificationStatus
|
|
23
|
+
*/
|
|
24
|
+
Status: RegulatedOrderVerificationStatusStatusEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the regulated information provided in the order requires a review by the merchant.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof RegulatedOrderVerificationStatus
|
|
29
|
+
*/
|
|
30
|
+
RequiresMerchantAction: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* A list of valid rejection reasons that may be used to reject the order\'s regulated information.
|
|
33
|
+
* @type {Array<RejectionReason>}
|
|
34
|
+
* @memberof RegulatedOrderVerificationStatus
|
|
35
|
+
*/
|
|
36
|
+
ValidRejectionReasons: Array<RejectionReason>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {RejectionReason}
|
|
40
|
+
* @memberof RegulatedOrderVerificationStatus
|
|
41
|
+
*/
|
|
42
|
+
RejectionReason?: RejectionReason;
|
|
43
|
+
/**
|
|
44
|
+
* The date the order was reviewed. In ISO 8601 date time format.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof RegulatedOrderVerificationStatus
|
|
47
|
+
*/
|
|
48
|
+
ReviewDate?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The identifier for the order\'s regulated information reviewer.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof RegulatedOrderVerificationStatus
|
|
53
|
+
*/
|
|
54
|
+
ExternalReviewerId?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
* @enum {string}
|
|
59
|
+
*/
|
|
60
|
+
export declare enum RegulatedOrderVerificationStatusStatusEnum {
|
|
61
|
+
Pending = "Pending",
|
|
62
|
+
Approved = "Approved",
|
|
63
|
+
Rejected = "Rejected",
|
|
64
|
+
Expired = "Expired",
|
|
65
|
+
Cancelled = "Cancelled"
|
|
66
|
+
}
|
|
@@ -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
|
+
* The reason for rejecting the order\'s regulated information. Not present if the order isn\'t rejected.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RejectionReason
|
|
16
|
+
*/
|
|
17
|
+
export interface RejectionReason {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier for the rejection reason.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RejectionReason
|
|
22
|
+
*/
|
|
23
|
+
RejectionReasonId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The human-readable description of this rejection reason.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RejectionReason
|
|
28
|
+
*/
|
|
29
|
+
RejectionReasonDescription: string;
|
|
30
|
+
}
|
|
@@ -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 error response schema for the UpdateVerificationStatus operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateVerificationStatusErrorResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateVerificationStatusErrorResponse {
|
|
18
|
+
/**
|
|
19
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
20
|
+
* @type {Array<Error>}
|
|
21
|
+
* @memberof UpdateVerificationStatusErrorResponse
|
|
22
|
+
*/
|
|
23
|
+
errors?: Array<Error>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 updated values of the VerificationStatus field.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateVerificationStatusRequestBody
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateVerificationStatusRequestBody {
|
|
18
|
+
/**
|
|
19
|
+
* The new verification status of the order.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateVerificationStatusRequestBody
|
|
22
|
+
*/
|
|
23
|
+
status: UpdateVerificationStatusRequestBodyStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
* The identifier for the order\'s regulated information reviewer.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateVerificationStatusRequestBody
|
|
28
|
+
*/
|
|
29
|
+
externalReviewerId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The unique identifier for the rejection reason used for rejecting the order\'s regulated information. Only required if the new status is rejected.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateVerificationStatusRequestBody
|
|
34
|
+
*/
|
|
35
|
+
rejectionReasonId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
* @enum {string}
|
|
40
|
+
*/
|
|
41
|
+
export declare enum UpdateVerificationStatusRequestBodyStatusEnum {
|
|
42
|
+
Approved = "Approved",
|
|
43
|
+
Rejected = "Rejected"
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { UpdateVerificationStatusRequestBody } from './update-verification-status-request-body';
|
|
13
|
+
/**
|
|
14
|
+
* Request to update the verification status of an order containing regulated products.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateVerificationStatusRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateVerificationStatusRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {UpdateVerificationStatusRequestBody}
|
|
22
|
+
* @memberof UpdateVerificationStatusRequest
|
|
23
|
+
*/
|
|
24
|
+
regulatedOrderVerificationStatus: UpdateVerificationStatusRequestBody;
|
|
25
|
+
}
|
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.11.1",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"test": "NODE_ENV='test' yarn jest"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@sp-api-sdk/auth": "^1.9.
|
|
30
|
-
"@sp-api-sdk/common": "^1.7.
|
|
31
|
-
"axios": "^0.26.
|
|
29
|
+
"@sp-api-sdk/auth": "^1.9.11",
|
|
30
|
+
"@sp-api-sdk/common": "^1.7.13",
|
|
31
|
+
"axios": "^0.26.1"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"sp sdk",
|
|
50
50
|
"orders api"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "61adb3dd4480de30ba48c20a1da60cebf9d4f0ac"
|
|
53
53
|
}
|