@sp-api-sdk/orders-api-v0 1.12.2 → 1.13.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.
Files changed (73) hide show
  1. package/dist/cjs/src/api-model/api/orders-v0-api.js +45 -45
  2. package/dist/cjs/src/api-model/models/address.js +4 -9
  3. package/dist/cjs/src/api-model/models/index.js +1 -0
  4. package/dist/cjs/src/api-model/models/order-item.js +4 -9
  5. package/dist/cjs/src/api-model/models/order.js +30 -55
  6. package/dist/cjs/src/api-model/models/regulated-information-field.js +4 -9
  7. package/dist/cjs/src/api-model/models/regulated-order-verification-status.js +0 -13
  8. package/dist/cjs/src/api-model/models/shipment-status.js +5 -6
  9. package/dist/cjs/src/api-model/models/tax-collection.js +6 -16
  10. package/dist/cjs/src/api-model/models/update-verification-status-request-body.js +0 -10
  11. package/dist/cjs/src/api-model/models/verification-status.js +28 -0
  12. package/dist/cjs/src/client.js +19 -12
  13. package/dist/es/src/api-model/api/orders-v0-api.js +45 -45
  14. package/dist/es/src/api-model/models/address.js +4 -9
  15. package/dist/es/src/api-model/models/index.js +1 -0
  16. package/dist/es/src/api-model/models/order-item.js +4 -9
  17. package/dist/es/src/api-model/models/order.js +30 -55
  18. package/dist/es/src/api-model/models/regulated-information-field.js +4 -9
  19. package/dist/es/src/api-model/models/regulated-order-verification-status.js +1 -12
  20. package/dist/es/src/api-model/models/shipment-status.js +5 -6
  21. package/dist/es/src/api-model/models/tax-collection.js +6 -16
  22. package/dist/es/src/api-model/models/update-verification-status-request-body.js +1 -9
  23. package/dist/es/src/api-model/models/verification-status.js +25 -0
  24. package/dist/es/src/client.js +19 -12
  25. package/dist/types/src/api-model/api/orders-v0-api.d.ts +64 -64
  26. package/dist/types/src/api-model/base.d.ts +2 -2
  27. package/dist/types/src/api-model/common.d.ts +2 -2
  28. package/dist/types/src/api-model/models/address.d.ts +18 -21
  29. package/dist/types/src/api-model/models/automated-shipping-settings.d.ts +3 -3
  30. package/dist/types/src/api-model/models/buyer-customized-info-detail.d.ts +1 -1
  31. package/dist/types/src/api-model/models/buyer-info.d.ts +5 -5
  32. package/dist/types/src/api-model/models/buyer-requested-cancel.d.ts +3 -3
  33. package/dist/types/src/api-model/models/buyer-tax-info.d.ts +3 -3
  34. package/dist/types/src/api-model/models/buyer-tax-information.d.ts +4 -4
  35. package/dist/types/src/api-model/models/fulfillment-instruction.d.ts +1 -1
  36. package/dist/types/src/api-model/models/get-order-address-response.d.ts +2 -2
  37. package/dist/types/src/api-model/models/get-order-buyer-info-response.d.ts +2 -2
  38. package/dist/types/src/api-model/models/get-order-items-buyer-info-response.d.ts +2 -2
  39. package/dist/types/src/api-model/models/get-order-items-response.d.ts +2 -2
  40. package/dist/types/src/api-model/models/get-order-regulated-info-response.d.ts +2 -2
  41. package/dist/types/src/api-model/models/get-order-response.d.ts +2 -2
  42. package/dist/types/src/api-model/models/get-orders-response.d.ts +2 -2
  43. package/dist/types/src/api-model/models/index.d.ts +1 -0
  44. package/dist/types/src/api-model/models/item-buyer-info.d.ts +5 -5
  45. package/dist/types/src/api-model/models/marketplace-tax-info.d.ts +1 -1
  46. package/dist/types/src/api-model/models/model-error.d.ts +3 -3
  47. package/dist/types/src/api-model/models/money.d.ts +2 -2
  48. package/dist/types/src/api-model/models/order-address.d.ts +2 -2
  49. package/dist/types/src/api-model/models/order-buyer-info.d.ts +6 -6
  50. package/dist/types/src/api-model/models/order-item-buyer-info.d.ts +6 -6
  51. package/dist/types/src/api-model/models/order-item.d.ts +39 -42
  52. package/dist/types/src/api-model/models/order-items-buyer-info-list.d.ts +3 -3
  53. package/dist/types/src/api-model/models/order-items-list.d.ts +3 -3
  54. package/dist/types/src/api-model/models/order-regulated-info.d.ts +4 -4
  55. package/dist/types/src/api-model/models/order.d.ts +86 -95
  56. package/dist/types/src/api-model/models/orders-list.d.ts +4 -4
  57. package/dist/types/src/api-model/models/payment-execution-detail-item.d.ts +2 -2
  58. package/dist/types/src/api-model/models/points-granted-detail.d.ts +2 -2
  59. package/dist/types/src/api-model/models/product-info-detail.d.ts +1 -1
  60. package/dist/types/src/api-model/models/regulated-information-field.d.ts +9 -12
  61. package/dist/types/src/api-model/models/regulated-information.d.ts +1 -1
  62. package/dist/types/src/api-model/models/regulated-order-verification-status.d.ts +9 -19
  63. package/dist/types/src/api-model/models/rejection-reason.d.ts +2 -2
  64. package/dist/types/src/api-model/models/shipment-status.d.ts +6 -5
  65. package/dist/types/src/api-model/models/tax-classification.d.ts +2 -2
  66. package/dist/types/src/api-model/models/tax-collection.d.ts +10 -16
  67. package/dist/types/src/api-model/models/update-shipment-status-error-response.d.ts +1 -1
  68. package/dist/types/src/api-model/models/update-shipment-status-request.d.ts +3 -3
  69. package/dist/types/src/api-model/models/update-verification-status-error-response.d.ts +1 -1
  70. package/dist/types/src/api-model/models/update-verification-status-request-body.d.ts +6 -13
  71. package/dist/types/src/api-model/models/update-verification-status-request.d.ts +1 -1
  72. package/dist/types/src/api-model/models/verification-status.d.ts +24 -0
  73. package/package.json +5 -5
@@ -14,8 +14,9 @@
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
- export declare enum ShipmentStatus {
18
- ReadyForPickup = "ReadyForPickup",
19
- PickedUp = "PickedUp",
20
- RefusedPickup = "RefusedPickup"
21
- }
17
+ export declare const ShipmentStatus: {
18
+ readonly ReadyForPickup: "ReadyForPickup";
19
+ readonly PickedUp: "PickedUp";
20
+ readonly RefusedPickup: "RefusedPickup";
21
+ };
22
+ export declare type ShipmentStatus = typeof ShipmentStatus[keyof typeof ShipmentStatus];
@@ -20,11 +20,11 @@ export interface TaxClassification {
20
20
  * @type {string}
21
21
  * @memberof TaxClassification
22
22
  */
23
- Name?: string;
23
+ 'Name'?: string;
24
24
  /**
25
25
  * The buyer\'s tax identifier.
26
26
  * @type {string}
27
27
  * @memberof TaxClassification
28
28
  */
29
- Value?: string;
29
+ 'Value'?: string;
30
30
  }
@@ -20,25 +20,19 @@ export interface TaxCollection {
20
20
  * @type {string}
21
21
  * @memberof TaxCollection
22
22
  */
23
- Model?: TaxCollectionModelEnum;
23
+ 'Model'?: TaxCollectionModelEnum;
24
24
  /**
25
25
  * The party responsible for withholding the taxes and remitting them to the taxing authority.
26
26
  * @type {string}
27
27
  * @memberof TaxCollection
28
28
  */
29
- ResponsibleParty?: TaxCollectionResponsiblePartyEnum;
30
- }
31
- /**
32
- * @export
33
- * @enum {string}
34
- */
35
- export declare enum TaxCollectionModelEnum {
36
- MarketplaceFacilitator = "MarketplaceFacilitator"
37
- }
38
- /**
39
- * @export
40
- * @enum {string}
41
- */
42
- export declare enum TaxCollectionResponsiblePartyEnum {
43
- AmazonServicesInc = "Amazon Services, Inc."
29
+ 'ResponsibleParty'?: TaxCollectionResponsiblePartyEnum;
44
30
  }
31
+ export declare const TaxCollectionModelEnum: {
32
+ readonly MarketplaceFacilitator: "MarketplaceFacilitator";
33
+ };
34
+ export declare type TaxCollectionModelEnum = typeof TaxCollectionModelEnum[keyof typeof TaxCollectionModelEnum];
35
+ export declare const TaxCollectionResponsiblePartyEnum: {
36
+ readonly AmazonServicesInc: "Amazon Services, Inc.";
37
+ };
38
+ export declare type TaxCollectionResponsiblePartyEnum = typeof TaxCollectionResponsiblePartyEnum[keyof typeof TaxCollectionResponsiblePartyEnum];
@@ -20,5 +20,5 @@ export interface UpdateShipmentStatusErrorResponse {
20
20
  * @type {Array<Error>}
21
21
  * @memberof UpdateShipmentStatusErrorResponse
22
22
  */
23
- errors?: Array<Error>;
23
+ 'errors'?: Array<Error>;
24
24
  }
@@ -21,17 +21,17 @@ export interface UpdateShipmentStatusRequest {
21
21
  * @type {string}
22
22
  * @memberof UpdateShipmentStatusRequest
23
23
  */
24
- marketplaceId: string;
24
+ 'marketplaceId': string;
25
25
  /**
26
26
  *
27
27
  * @type {ShipmentStatus}
28
28
  * @memberof UpdateShipmentStatusRequest
29
29
  */
30
- shipmentStatus: ShipmentStatus;
30
+ 'shipmentStatus': ShipmentStatus;
31
31
  /**
32
32
  * the list of order items and quantities when the seller wants to partially update the shipment status of the order
33
33
  * @type {Array<object>}
34
34
  * @memberof UpdateShipmentStatusRequest
35
35
  */
36
- orderItems?: Array<object>;
36
+ 'orderItems'?: Array<object>;
37
37
  }
@@ -20,5 +20,5 @@ export interface UpdateVerificationStatusErrorResponse {
20
20
  * @type {Array<Error>}
21
21
  * @memberof UpdateVerificationStatusErrorResponse
22
22
  */
23
- errors?: Array<Error>;
23
+ 'errors'?: Array<Error>;
24
24
  }
@@ -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
- * The new verification status of the order.
20
- * @type {string}
20
+ *
21
+ * @type {VerificationStatus}
21
22
  * @memberof UpdateVerificationStatusRequestBody
22
23
  */
23
- status: UpdateVerificationStatusRequestBodyStatusEnum;
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.12.2",
5
+ "version": "1.13.1",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -24,11 +24,11 @@
24
24
  "build:es": "tsc -p tsconfig.es.json",
25
25
  "build": "yarn build:cjs && yarn build:es",
26
26
  "clean": "rimraf dist",
27
- "test": "NODE_ENV='test' yarn jest"
27
+ "test": "jest"
28
28
  },
29
29
  "dependencies": {
30
- "@sp-api-sdk/auth": "^1.9.15",
31
- "@sp-api-sdk/common": "^1.9.1",
30
+ "@sp-api-sdk/auth": "^1.9.17",
31
+ "@sp-api-sdk/common": "^1.9.3",
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": "e49e4267a61beba2869d509719731bea6cc2c6d8"
53
+ "gitHead": "d4f265d3c6a4e05e45025a46effa023a56a54e9c"
54
54
  }