@sp-api-sdk/vendor-orders-api-v1 1.9.3 → 1.9.6
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/vendor-orders-api.js +4 -4
- package/dist/cjs/src/api-model/models/import-details.js +21 -31
- package/dist/cjs/src/api-model/models/item-quantity.js +4 -9
- package/dist/cjs/src/api-model/models/order-details.js +12 -22
- package/dist/cjs/src/api-model/models/order-item-acknowledgement.js +10 -20
- package/dist/cjs/src/api-model/models/order-item-status-acknowledgement-status.js +6 -11
- package/dist/cjs/src/api-model/models/order-item-status-receiving-status.js +5 -10
- package/dist/cjs/src/api-model/models/order-status.js +4 -9
- package/dist/cjs/src/api-model/models/order.js +5 -10
- package/dist/cjs/src/api-model/models/tax-registration-details.js +4 -9
- package/dist/es/src/api-model/api/vendor-orders-api.js +4 -4
- package/dist/es/src/api-model/models/import-details.js +21 -31
- package/dist/es/src/api-model/models/item-quantity.js +4 -9
- package/dist/es/src/api-model/models/order-details.js +12 -22
- package/dist/es/src/api-model/models/order-item-acknowledgement.js +10 -20
- package/dist/es/src/api-model/models/order-item-status-acknowledgement-status.js +6 -11
- package/dist/es/src/api-model/models/order-item-status-receiving-status.js +5 -10
- package/dist/es/src/api-model/models/order-status.js +4 -9
- package/dist/es/src/api-model/models/order.js +5 -10
- package/dist/es/src/api-model/models/tax-registration-details.js +4 -9
- package/dist/types/src/api-model/api/vendor-orders-api.d.ts +18 -18
- 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/acknowledgement-status-details.d.ts +3 -3
- package/dist/types/src/api-model/models/address.d.ts +11 -11
- package/dist/types/src/api-model/models/get-purchase-order-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-purchase-orders-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-purchase-orders-status-response.d.ts +2 -2
- package/dist/types/src/api-model/models/import-details.d.ts +28 -34
- package/dist/types/src/api-model/models/item-quantity.d.ts +8 -11
- 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-acknowledgement-item.d.ts +8 -8
- package/dist/types/src/api-model/models/order-acknowledgement.d.ts +4 -4
- package/dist/types/src/api-model/models/order-details.d.ts +28 -34
- package/dist/types/src/api-model/models/order-item-acknowledgement.d.ts +17 -23
- package/dist/types/src/api-model/models/order-item-status-acknowledgement-status.d.ts +11 -14
- package/dist/types/src/api-model/models/order-item-status-ordered-quantity.d.ts +2 -2
- package/dist/types/src/api-model/models/order-item-status-receiving-status.d.ts +9 -12
- package/dist/types/src/api-model/models/order-item-status.d.ts +8 -8
- package/dist/types/src/api-model/models/order-item.d.ts +7 -7
- package/dist/types/src/api-model/models/order-list-status.d.ts +2 -2
- package/dist/types/src/api-model/models/order-list.d.ts +2 -2
- package/dist/types/src/api-model/models/order-status.d.ts +12 -15
- package/dist/types/src/api-model/models/order.d.ts +9 -12
- package/dist/types/src/api-model/models/ordered-quantity-details.d.ts +3 -3
- package/dist/types/src/api-model/models/pagination.d.ts +1 -1
- package/dist/types/src/api-model/models/party-identification.d.ts +3 -3
- package/dist/types/src/api-model/models/submit-acknowledgement-request.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-acknowledgement-response.d.ts +2 -2
- package/dist/types/src/api-model/models/tax-registration-details.d.ts +7 -10
- package/dist/types/src/api-model/models/transaction-id.d.ts +1 -1
- package/package.json +4 -4
|
@@ -23,103 +23,97 @@ export interface OrderDetails {
|
|
|
23
23
|
* @type {string}
|
|
24
24
|
* @memberof OrderDetails
|
|
25
25
|
*/
|
|
26
|
-
purchaseOrderDate: string;
|
|
26
|
+
'purchaseOrderDate': string;
|
|
27
27
|
/**
|
|
28
28
|
* The date when purchase order was last changed by Amazon after the order was placed. This date will be greater than \'purchaseOrderDate\'. This means the PO data was changed on that date and vendors are required to fulfill the updated PO. The PO changes can be related to Item Quantity, Ship to Location, Ship Window etc. This field will not be present in orders that have not changed after creation. Must be in ISO-8601 date/time format.
|
|
29
29
|
* @type {string}
|
|
30
30
|
* @memberof OrderDetails
|
|
31
31
|
*/
|
|
32
|
-
purchaseOrderChangedDate?: string;
|
|
32
|
+
'purchaseOrderChangedDate'?: string;
|
|
33
33
|
/**
|
|
34
34
|
* The date when current purchase order state was changed. Current purchase order state is available in the field \'purchaseOrderState\'. Must be in ISO-8601 date/time format.
|
|
35
35
|
* @type {string}
|
|
36
36
|
* @memberof OrderDetails
|
|
37
37
|
*/
|
|
38
|
-
purchaseOrderStateChangedDate: string;
|
|
38
|
+
'purchaseOrderStateChangedDate': string;
|
|
39
39
|
/**
|
|
40
40
|
* Type of purchase order.
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof OrderDetails
|
|
43
43
|
*/
|
|
44
|
-
purchaseOrderType?: OrderDetailsPurchaseOrderTypeEnum;
|
|
44
|
+
'purchaseOrderType'?: OrderDetailsPurchaseOrderTypeEnum;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @type {ImportDetails}
|
|
48
48
|
* @memberof OrderDetails
|
|
49
49
|
*/
|
|
50
|
-
importDetails?: ImportDetails;
|
|
50
|
+
'importDetails'?: ImportDetails;
|
|
51
51
|
/**
|
|
52
52
|
* If requested by the recipient, this field will contain a promotional/deal number. The discount code line is optional. It is used to obtain a price discount on items on the order.
|
|
53
53
|
* @type {string}
|
|
54
54
|
* @memberof OrderDetails
|
|
55
55
|
*/
|
|
56
|
-
dealCode?: string;
|
|
56
|
+
'dealCode'?: string;
|
|
57
57
|
/**
|
|
58
58
|
* Payment method used.
|
|
59
59
|
* @type {string}
|
|
60
60
|
* @memberof OrderDetails
|
|
61
61
|
*/
|
|
62
|
-
paymentMethod?: OrderDetailsPaymentMethodEnum;
|
|
62
|
+
'paymentMethod'?: OrderDetailsPaymentMethodEnum;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {PartyIdentification}
|
|
66
66
|
* @memberof OrderDetails
|
|
67
67
|
*/
|
|
68
|
-
buyingParty?: PartyIdentification;
|
|
68
|
+
'buyingParty'?: PartyIdentification;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {PartyIdentification}
|
|
72
72
|
* @memberof OrderDetails
|
|
73
73
|
*/
|
|
74
|
-
sellingParty?: PartyIdentification;
|
|
74
|
+
'sellingParty'?: PartyIdentification;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
77
|
* @type {PartyIdentification}
|
|
78
78
|
* @memberof OrderDetails
|
|
79
79
|
*/
|
|
80
|
-
shipToParty?: PartyIdentification;
|
|
80
|
+
'shipToParty'?: PartyIdentification;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @type {PartyIdentification}
|
|
84
84
|
* @memberof OrderDetails
|
|
85
85
|
*/
|
|
86
|
-
billToParty?: PartyIdentification;
|
|
86
|
+
'billToParty'?: PartyIdentification;
|
|
87
87
|
/**
|
|
88
88
|
* Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--).
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof OrderDetails
|
|
91
91
|
*/
|
|
92
|
-
shipWindow?: string;
|
|
92
|
+
'shipWindow'?: string;
|
|
93
93
|
/**
|
|
94
94
|
* Defines a date time interval according to ISO8601. Interval is separated by double hyphen (--).
|
|
95
95
|
* @type {string}
|
|
96
96
|
* @memberof OrderDetails
|
|
97
97
|
*/
|
|
98
|
-
deliveryWindow?: string;
|
|
98
|
+
'deliveryWindow'?: string;
|
|
99
99
|
/**
|
|
100
100
|
* A list of items in this purchase order.
|
|
101
101
|
* @type {Array<OrderItem>}
|
|
102
102
|
* @memberof OrderDetails
|
|
103
103
|
*/
|
|
104
|
-
items: Array<OrderItem>;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* @export
|
|
108
|
-
* @enum {string}
|
|
109
|
-
*/
|
|
110
|
-
export declare enum OrderDetailsPurchaseOrderTypeEnum {
|
|
111
|
-
RegularOrder = "RegularOrder",
|
|
112
|
-
ConsignedOrder = "ConsignedOrder",
|
|
113
|
-
NewProductIntroduction = "NewProductIntroduction",
|
|
114
|
-
RushOrder = "RushOrder"
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* @export
|
|
118
|
-
* @enum {string}
|
|
119
|
-
*/
|
|
120
|
-
export declare enum OrderDetailsPaymentMethodEnum {
|
|
121
|
-
Invoice = "Invoice",
|
|
122
|
-
Consignment = "Consignment",
|
|
123
|
-
CreditCard = "CreditCard",
|
|
124
|
-
Prepaid = "Prepaid"
|
|
104
|
+
'items': Array<OrderItem>;
|
|
125
105
|
}
|
|
106
|
+
export declare const OrderDetailsPurchaseOrderTypeEnum: {
|
|
107
|
+
readonly RegularOrder: "RegularOrder";
|
|
108
|
+
readonly ConsignedOrder: "ConsignedOrder";
|
|
109
|
+
readonly NewProductIntroduction: "NewProductIntroduction";
|
|
110
|
+
readonly RushOrder: "RushOrder";
|
|
111
|
+
};
|
|
112
|
+
export declare type OrderDetailsPurchaseOrderTypeEnum = typeof OrderDetailsPurchaseOrderTypeEnum[keyof typeof OrderDetailsPurchaseOrderTypeEnum];
|
|
113
|
+
export declare const OrderDetailsPaymentMethodEnum: {
|
|
114
|
+
readonly Invoice: "Invoice";
|
|
115
|
+
readonly Consignment: "Consignment";
|
|
116
|
+
readonly CreditCard: "CreditCard";
|
|
117
|
+
readonly Prepaid: "Prepaid";
|
|
118
|
+
};
|
|
119
|
+
export declare type OrderDetailsPaymentMethodEnum = typeof OrderDetailsPaymentMethodEnum[keyof typeof OrderDetailsPaymentMethodEnum];
|
|
@@ -21,47 +21,41 @@ export interface OrderItemAcknowledgement {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof OrderItemAcknowledgement
|
|
23
23
|
*/
|
|
24
|
-
acknowledgementCode: OrderItemAcknowledgementAcknowledgementCodeEnum;
|
|
24
|
+
'acknowledgementCode': OrderItemAcknowledgementAcknowledgementCodeEnum;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {ItemQuantity}
|
|
28
28
|
* @memberof OrderItemAcknowledgement
|
|
29
29
|
*/
|
|
30
|
-
acknowledgedQuantity: ItemQuantity;
|
|
30
|
+
'acknowledgedQuantity': ItemQuantity;
|
|
31
31
|
/**
|
|
32
32
|
* Estimated ship date per line item. Must be in ISO-8601 date/time format.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof OrderItemAcknowledgement
|
|
35
35
|
*/
|
|
36
|
-
scheduledShipDate?: string;
|
|
36
|
+
'scheduledShipDate'?: string;
|
|
37
37
|
/**
|
|
38
38
|
* Estimated delivery date per line item. Must be in ISO-8601 date/time format.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderItemAcknowledgement
|
|
41
41
|
*/
|
|
42
|
-
scheduledDeliveryDate?: string;
|
|
42
|
+
'scheduledDeliveryDate'?: string;
|
|
43
43
|
/**
|
|
44
44
|
* Indicates the reason for rejection.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof OrderItemAcknowledgement
|
|
47
47
|
*/
|
|
48
|
-
rejectionReason?: OrderItemAcknowledgementRejectionReasonEnum;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @export
|
|
52
|
-
* @enum {string}
|
|
53
|
-
*/
|
|
54
|
-
export declare enum OrderItemAcknowledgementAcknowledgementCodeEnum {
|
|
55
|
-
Accepted = "Accepted",
|
|
56
|
-
Backordered = "Backordered",
|
|
57
|
-
Rejected = "Rejected"
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @export
|
|
61
|
-
* @enum {string}
|
|
62
|
-
*/
|
|
63
|
-
export declare enum OrderItemAcknowledgementRejectionReasonEnum {
|
|
64
|
-
TemporarilyUnavailable = "TemporarilyUnavailable",
|
|
65
|
-
InvalidProductIdentifier = "InvalidProductIdentifier",
|
|
66
|
-
ObsoleteProduct = "ObsoleteProduct"
|
|
48
|
+
'rejectionReason'?: OrderItemAcknowledgementRejectionReasonEnum;
|
|
67
49
|
}
|
|
50
|
+
export declare const OrderItemAcknowledgementAcknowledgementCodeEnum: {
|
|
51
|
+
readonly Accepted: "Accepted";
|
|
52
|
+
readonly Backordered: "Backordered";
|
|
53
|
+
readonly Rejected: "Rejected";
|
|
54
|
+
};
|
|
55
|
+
export declare type OrderItemAcknowledgementAcknowledgementCodeEnum = typeof OrderItemAcknowledgementAcknowledgementCodeEnum[keyof typeof OrderItemAcknowledgementAcknowledgementCodeEnum];
|
|
56
|
+
export declare const OrderItemAcknowledgementRejectionReasonEnum: {
|
|
57
|
+
readonly TemporarilyUnavailable: "TemporarilyUnavailable";
|
|
58
|
+
readonly InvalidProductIdentifier: "InvalidProductIdentifier";
|
|
59
|
+
readonly ObsoleteProduct: "ObsoleteProduct";
|
|
60
|
+
};
|
|
61
|
+
export declare type OrderItemAcknowledgementRejectionReasonEnum = typeof OrderItemAcknowledgementRejectionReasonEnum[keyof typeof OrderItemAcknowledgementRejectionReasonEnum];
|
|
@@ -22,33 +22,30 @@ export interface OrderItemStatusAcknowledgementStatus {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof OrderItemStatusAcknowledgementStatus
|
|
24
24
|
*/
|
|
25
|
-
confirmationStatus?: OrderItemStatusAcknowledgementStatusConfirmationStatusEnum;
|
|
25
|
+
'confirmationStatus'?: OrderItemStatusAcknowledgementStatusConfirmationStatusEnum;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {ItemQuantity}
|
|
29
29
|
* @memberof OrderItemStatusAcknowledgementStatus
|
|
30
30
|
*/
|
|
31
|
-
acceptedQuantity?: ItemQuantity;
|
|
31
|
+
'acceptedQuantity'?: ItemQuantity;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {ItemQuantity}
|
|
35
35
|
* @memberof OrderItemStatusAcknowledgementStatus
|
|
36
36
|
*/
|
|
37
|
-
rejectedQuantity?: ItemQuantity;
|
|
37
|
+
'rejectedQuantity'?: ItemQuantity;
|
|
38
38
|
/**
|
|
39
39
|
* Details of item quantity confirmed.
|
|
40
40
|
* @type {Array<AcknowledgementStatusDetails>}
|
|
41
41
|
* @memberof OrderItemStatusAcknowledgementStatus
|
|
42
42
|
*/
|
|
43
|
-
acknowledgementStatusDetails?: Array<AcknowledgementStatusDetails>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* @export
|
|
47
|
-
* @enum {string}
|
|
48
|
-
*/
|
|
49
|
-
export declare enum OrderItemStatusAcknowledgementStatusConfirmationStatusEnum {
|
|
50
|
-
Accepted = "ACCEPTED",
|
|
51
|
-
PartiallyAccepted = "PARTIALLY_ACCEPTED",
|
|
52
|
-
Rejected = "REJECTED",
|
|
53
|
-
Unconfirmed = "UNCONFIRMED"
|
|
43
|
+
'acknowledgementStatusDetails'?: Array<AcknowledgementStatusDetails>;
|
|
54
44
|
}
|
|
45
|
+
export declare const OrderItemStatusAcknowledgementStatusConfirmationStatusEnum: {
|
|
46
|
+
readonly Accepted: "ACCEPTED";
|
|
47
|
+
readonly PartiallyAccepted: "PARTIALLY_ACCEPTED";
|
|
48
|
+
readonly Rejected: "REJECTED";
|
|
49
|
+
readonly Unconfirmed: "UNCONFIRMED";
|
|
50
|
+
};
|
|
51
|
+
export declare type OrderItemStatusAcknowledgementStatusConfirmationStatusEnum = typeof OrderItemStatusAcknowledgementStatusConfirmationStatusEnum[keyof typeof OrderItemStatusAcknowledgementStatusConfirmationStatusEnum];
|
|
@@ -22,11 +22,11 @@ export interface OrderItemStatusOrderedQuantity {
|
|
|
22
22
|
* @type {ItemQuantity}
|
|
23
23
|
* @memberof OrderItemStatusOrderedQuantity
|
|
24
24
|
*/
|
|
25
|
-
orderedQuantity?: ItemQuantity;
|
|
25
|
+
'orderedQuantity'?: ItemQuantity;
|
|
26
26
|
/**
|
|
27
27
|
* Details of item quantity ordered.
|
|
28
28
|
* @type {Array<OrderedQuantityDetails>}
|
|
29
29
|
* @memberof OrderItemStatusOrderedQuantity
|
|
30
30
|
*/
|
|
31
|
-
orderedQuantityDetails?: Array<OrderedQuantityDetails>;
|
|
31
|
+
'orderedQuantityDetails'?: Array<OrderedQuantityDetails>;
|
|
32
32
|
}
|
|
@@ -21,26 +21,23 @@ export interface OrderItemStatusReceivingStatus {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof OrderItemStatusReceivingStatus
|
|
23
23
|
*/
|
|
24
|
-
receiveStatus?: OrderItemStatusReceivingStatusReceiveStatusEnum;
|
|
24
|
+
'receiveStatus'?: OrderItemStatusReceivingStatusReceiveStatusEnum;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {ItemQuantity}
|
|
28
28
|
* @memberof OrderItemStatusReceivingStatus
|
|
29
29
|
*/
|
|
30
|
-
receivedQuantity?: ItemQuantity;
|
|
30
|
+
'receivedQuantity'?: ItemQuantity;
|
|
31
31
|
/**
|
|
32
32
|
* The date when the most recent item was received at the buyer\'s warehouse. Must be in ISO-8601 date/time format.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof OrderItemStatusReceivingStatus
|
|
35
35
|
*/
|
|
36
|
-
lastReceiveDate?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @export
|
|
40
|
-
* @enum {string}
|
|
41
|
-
*/
|
|
42
|
-
export declare enum OrderItemStatusReceivingStatusReceiveStatusEnum {
|
|
43
|
-
NotReceived = "NOT_RECEIVED",
|
|
44
|
-
PartiallyReceived = "PARTIALLY_RECEIVED",
|
|
45
|
-
Received = "RECEIVED"
|
|
36
|
+
'lastReceiveDate'?: string;
|
|
46
37
|
}
|
|
38
|
+
export declare const OrderItemStatusReceivingStatusReceiveStatusEnum: {
|
|
39
|
+
readonly NotReceived: "NOT_RECEIVED";
|
|
40
|
+
readonly PartiallyReceived: "PARTIALLY_RECEIVED";
|
|
41
|
+
readonly Received: "RECEIVED";
|
|
42
|
+
};
|
|
43
|
+
export declare type OrderItemStatusReceivingStatusReceiveStatusEnum = typeof OrderItemStatusReceivingStatusReceiveStatusEnum[keyof typeof OrderItemStatusReceivingStatusReceiveStatusEnum];
|
|
@@ -24,47 +24,47 @@ export interface OrderItemStatus {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof OrderItemStatus
|
|
26
26
|
*/
|
|
27
|
-
itemSequenceNumber: string;
|
|
27
|
+
'itemSequenceNumber': string;
|
|
28
28
|
/**
|
|
29
29
|
* Buyer\'s Standard Identification Number (ASIN) of an item.
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof OrderItemStatus
|
|
32
32
|
*/
|
|
33
|
-
buyerProductIdentifier?: string;
|
|
33
|
+
'buyerProductIdentifier'?: string;
|
|
34
34
|
/**
|
|
35
35
|
* The vendor selected product identification of the item.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof OrderItemStatus
|
|
38
38
|
*/
|
|
39
|
-
vendorProductIdentifier?: string;
|
|
39
|
+
'vendorProductIdentifier'?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {Money}
|
|
43
43
|
* @memberof OrderItemStatus
|
|
44
44
|
*/
|
|
45
|
-
netCost?: Money;
|
|
45
|
+
'netCost'?: Money;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {Money}
|
|
49
49
|
* @memberof OrderItemStatus
|
|
50
50
|
*/
|
|
51
|
-
listPrice?: Money;
|
|
51
|
+
'listPrice'?: Money;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {OrderItemStatusOrderedQuantity}
|
|
55
55
|
* @memberof OrderItemStatus
|
|
56
56
|
*/
|
|
57
|
-
orderedQuantity?: OrderItemStatusOrderedQuantity;
|
|
57
|
+
'orderedQuantity'?: OrderItemStatusOrderedQuantity;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {OrderItemStatusAcknowledgementStatus}
|
|
61
61
|
* @memberof OrderItemStatus
|
|
62
62
|
*/
|
|
63
|
-
acknowledgementStatus?: OrderItemStatusAcknowledgementStatus;
|
|
63
|
+
'acknowledgementStatus'?: OrderItemStatusAcknowledgementStatus;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {OrderItemStatusReceivingStatus}
|
|
67
67
|
* @memberof OrderItemStatus
|
|
68
68
|
*/
|
|
69
|
-
receivingStatus?: OrderItemStatusReceivingStatus;
|
|
69
|
+
'receivingStatus'?: OrderItemStatusReceivingStatus;
|
|
70
70
|
}
|
|
@@ -22,41 +22,41 @@ export interface OrderItem {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof OrderItem
|
|
24
24
|
*/
|
|
25
|
-
itemSequenceNumber: string;
|
|
25
|
+
'itemSequenceNumber': string;
|
|
26
26
|
/**
|
|
27
27
|
* Amazon Standard Identification Number (ASIN) of an item.
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof OrderItem
|
|
30
30
|
*/
|
|
31
|
-
amazonProductIdentifier?: string;
|
|
31
|
+
'amazonProductIdentifier'?: string;
|
|
32
32
|
/**
|
|
33
33
|
* The vendor selected product identification of the item.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof OrderItem
|
|
36
36
|
*/
|
|
37
|
-
vendorProductIdentifier?: string;
|
|
37
|
+
'vendorProductIdentifier'?: string;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {ItemQuantity}
|
|
41
41
|
* @memberof OrderItem
|
|
42
42
|
*/
|
|
43
|
-
orderedQuantity: ItemQuantity;
|
|
43
|
+
'orderedQuantity': ItemQuantity;
|
|
44
44
|
/**
|
|
45
45
|
* When true, we will accept backorder confirmations for this item.
|
|
46
46
|
* @type {boolean}
|
|
47
47
|
* @memberof OrderItem
|
|
48
48
|
*/
|
|
49
|
-
isBackOrderAllowed: boolean;
|
|
49
|
+
'isBackOrderAllowed': boolean;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {Money}
|
|
53
53
|
* @memberof OrderItem
|
|
54
54
|
*/
|
|
55
|
-
netCost?: Money;
|
|
55
|
+
'netCost'?: Money;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {Money}
|
|
59
59
|
* @memberof OrderItem
|
|
60
60
|
*/
|
|
61
|
-
listPrice?: Money;
|
|
61
|
+
'listPrice'?: Money;
|
|
62
62
|
}
|
|
@@ -22,11 +22,11 @@ export interface OrderListStatus {
|
|
|
22
22
|
* @type {Pagination}
|
|
23
23
|
* @memberof OrderListStatus
|
|
24
24
|
*/
|
|
25
|
-
pagination?: Pagination;
|
|
25
|
+
'pagination'?: Pagination;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {Array<OrderStatus>}
|
|
29
29
|
* @memberof OrderListStatus
|
|
30
30
|
*/
|
|
31
|
-
ordersStatus?: Array<OrderStatus>;
|
|
31
|
+
'ordersStatus'?: Array<OrderStatus>;
|
|
32
32
|
}
|
|
@@ -22,11 +22,11 @@ export interface OrderList {
|
|
|
22
22
|
* @type {Pagination}
|
|
23
23
|
* @memberof OrderList
|
|
24
24
|
*/
|
|
25
|
-
pagination?: Pagination;
|
|
25
|
+
'pagination'?: Pagination;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {Array<Order>}
|
|
29
29
|
* @memberof OrderList
|
|
30
30
|
*/
|
|
31
|
-
orders?: Array<Order>;
|
|
31
|
+
'orders'?: Array<Order>;
|
|
32
32
|
}
|
|
@@ -22,49 +22,46 @@ export interface OrderStatus {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof OrderStatus
|
|
24
24
|
*/
|
|
25
|
-
purchaseOrderNumber: string;
|
|
25
|
+
'purchaseOrderNumber': string;
|
|
26
26
|
/**
|
|
27
27
|
* The status of the buyer\'s purchase order for this order.
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof OrderStatus
|
|
30
30
|
*/
|
|
31
|
-
purchaseOrderStatus: OrderStatusPurchaseOrderStatusEnum;
|
|
31
|
+
'purchaseOrderStatus': OrderStatusPurchaseOrderStatusEnum;
|
|
32
32
|
/**
|
|
33
33
|
* The date the purchase order was placed. Must be in ISO-8601 date/time format.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof OrderStatus
|
|
36
36
|
*/
|
|
37
|
-
purchaseOrderDate: string;
|
|
37
|
+
'purchaseOrderDate': string;
|
|
38
38
|
/**
|
|
39
39
|
* The date when the purchase order was last updated. Must be in ISO-8601 date/time format.
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof OrderStatus
|
|
42
42
|
*/
|
|
43
|
-
lastUpdatedDate?: string;
|
|
43
|
+
'lastUpdatedDate'?: string;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {PartyIdentification}
|
|
47
47
|
* @memberof OrderStatus
|
|
48
48
|
*/
|
|
49
|
-
sellingParty: PartyIdentification;
|
|
49
|
+
'sellingParty': PartyIdentification;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {PartyIdentification}
|
|
53
53
|
* @memberof OrderStatus
|
|
54
54
|
*/
|
|
55
|
-
shipToParty: PartyIdentification;
|
|
55
|
+
'shipToParty': PartyIdentification;
|
|
56
56
|
/**
|
|
57
57
|
* Detailed description of items order status.
|
|
58
58
|
* @type {Array<OrderItemStatus>}
|
|
59
59
|
* @memberof OrderStatus
|
|
60
60
|
*/
|
|
61
|
-
itemStatus: Array<OrderItemStatus>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @export
|
|
65
|
-
* @enum {string}
|
|
66
|
-
*/
|
|
67
|
-
export declare enum OrderStatusPurchaseOrderStatusEnum {
|
|
68
|
-
Open = "OPEN",
|
|
69
|
-
Closed = "CLOSED"
|
|
61
|
+
'itemStatus': Array<OrderItemStatus>;
|
|
70
62
|
}
|
|
63
|
+
export declare const OrderStatusPurchaseOrderStatusEnum: {
|
|
64
|
+
readonly Open: "OPEN";
|
|
65
|
+
readonly Closed: "CLOSED";
|
|
66
|
+
};
|
|
67
|
+
export declare type OrderStatusPurchaseOrderStatusEnum = typeof OrderStatusPurchaseOrderStatusEnum[keyof typeof OrderStatusPurchaseOrderStatusEnum];
|
|
@@ -21,26 +21,23 @@ export interface Order {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Order
|
|
23
23
|
*/
|
|
24
|
-
purchaseOrderNumber: string;
|
|
24
|
+
'purchaseOrderNumber': string;
|
|
25
25
|
/**
|
|
26
26
|
* This field will contain the current state of the purchase order.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof Order
|
|
29
29
|
*/
|
|
30
|
-
purchaseOrderState: OrderPurchaseOrderStateEnum;
|
|
30
|
+
'purchaseOrderState': OrderPurchaseOrderStateEnum;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {OrderDetails}
|
|
34
34
|
* @memberof Order
|
|
35
35
|
*/
|
|
36
|
-
orderDetails?: OrderDetails;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @export
|
|
40
|
-
* @enum {string}
|
|
41
|
-
*/
|
|
42
|
-
export declare enum OrderPurchaseOrderStateEnum {
|
|
43
|
-
New = "New",
|
|
44
|
-
Acknowledged = "Acknowledged",
|
|
45
|
-
Closed = "Closed"
|
|
36
|
+
'orderDetails'?: OrderDetails;
|
|
46
37
|
}
|
|
38
|
+
export declare const OrderPurchaseOrderStateEnum: {
|
|
39
|
+
readonly New: "New";
|
|
40
|
+
readonly Acknowledged: "Acknowledged";
|
|
41
|
+
readonly Closed: "Closed";
|
|
42
|
+
};
|
|
43
|
+
export declare type OrderPurchaseOrderStateEnum = typeof OrderPurchaseOrderStateEnum[keyof typeof OrderPurchaseOrderStateEnum];
|
|
@@ -21,17 +21,17 @@ export interface OrderedQuantityDetails {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof OrderedQuantityDetails
|
|
23
23
|
*/
|
|
24
|
-
updatedDate?: string;
|
|
24
|
+
'updatedDate'?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {ItemQuantity}
|
|
28
28
|
* @memberof OrderedQuantityDetails
|
|
29
29
|
*/
|
|
30
|
-
orderedQuantity?: ItemQuantity;
|
|
30
|
+
'orderedQuantity'?: ItemQuantity;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {ItemQuantity}
|
|
34
34
|
* @memberof OrderedQuantityDetails
|
|
35
35
|
*/
|
|
36
|
-
cancelledQuantity?: ItemQuantity;
|
|
36
|
+
'cancelledQuantity'?: ItemQuantity;
|
|
37
37
|
}
|
|
@@ -22,17 +22,17 @@ export interface PartyIdentification {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof PartyIdentification
|
|
24
24
|
*/
|
|
25
|
-
partyId: string;
|
|
25
|
+
'partyId': string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {Address}
|
|
29
29
|
* @memberof PartyIdentification
|
|
30
30
|
*/
|
|
31
|
-
address?: Address;
|
|
31
|
+
'address'?: Address;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {TaxRegistrationDetails}
|
|
35
35
|
* @memberof PartyIdentification
|
|
36
36
|
*/
|
|
37
|
-
taxInfo?: TaxRegistrationDetails;
|
|
37
|
+
'taxInfo'?: TaxRegistrationDetails;
|
|
38
38
|
}
|
|
@@ -21,11 +21,11 @@ export interface SubmitAcknowledgementResponse {
|
|
|
21
21
|
* @type {TransactionId}
|
|
22
22
|
* @memberof SubmitAcknowledgementResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: TransactionId;
|
|
24
|
+
'payload'?: TransactionId;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof SubmitAcknowledgementResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
|
@@ -20,19 +20,16 @@ export interface TaxRegistrationDetails {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof TaxRegistrationDetails
|
|
22
22
|
*/
|
|
23
|
-
taxRegistrationType: TaxRegistrationDetailsTaxRegistrationTypeEnum;
|
|
23
|
+
'taxRegistrationType': TaxRegistrationDetailsTaxRegistrationTypeEnum;
|
|
24
24
|
/**
|
|
25
25
|
* Tax registration number for the entity. For example, VAT ID.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof TaxRegistrationDetails
|
|
28
28
|
*/
|
|
29
|
-
taxRegistrationNumber: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
* @enum {string}
|
|
34
|
-
*/
|
|
35
|
-
export declare enum TaxRegistrationDetailsTaxRegistrationTypeEnum {
|
|
36
|
-
Vat = "VAT",
|
|
37
|
-
Gst = "GST"
|
|
29
|
+
'taxRegistrationNumber': string;
|
|
38
30
|
}
|
|
31
|
+
export declare const TaxRegistrationDetailsTaxRegistrationTypeEnum: {
|
|
32
|
+
readonly Vat: "VAT";
|
|
33
|
+
readonly Gst: "GST";
|
|
34
|
+
};
|
|
35
|
+
export declare type TaxRegistrationDetailsTaxRegistrationTypeEnum = typeof TaxRegistrationDetailsTaxRegistrationTypeEnum[keyof typeof TaxRegistrationDetailsTaxRegistrationTypeEnum];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/vendor-orders-api-v1",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.",
|
|
5
|
-
"version": "1.9.
|
|
5
|
+
"version": "1.9.6",
|
|
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
|
"vendor orders api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "18efdada205f63f94bd5c11e163e758adbb93257"
|
|
54
54
|
}
|