@sp-api-sdk/orders-api-v0 1.19.0 → 2.0.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.
Files changed (27) hide show
  1. package/dist/cjs/src/api-model/api/orders-v0-api.js +33 -124
  2. package/dist/cjs/src/api-model/base.js +1 -3
  3. package/dist/cjs/src/api-model/common.js +2 -0
  4. package/dist/cjs/src/api-model/models/index.js +0 -4
  5. package/dist/cjs/src/client.js +0 -7
  6. package/dist/es/src/api-model/api/orders-v0-api.js +33 -124
  7. package/dist/es/src/api-model/base.js +1 -3
  8. package/dist/es/src/api-model/common.js +2 -0
  9. package/dist/es/src/api-model/models/index.js +0 -4
  10. package/dist/es/src/client.js +0 -7
  11. package/dist/types/src/api-model/api/orders-v0-api.d.ts +24 -103
  12. package/dist/types/src/api-model/base.d.ts +2 -3
  13. package/dist/types/src/api-model/common.d.ts +3 -3
  14. package/dist/types/src/api-model/models/index.d.ts +0 -4
  15. package/package.json +3 -3
  16. package/dist/cjs/src/api-model/models/confirm-shipment-error-response.js +0 -15
  17. package/dist/cjs/src/api-model/models/confirm-shipment-order-item.js +0 -15
  18. package/dist/cjs/src/api-model/models/confirm-shipment-request.js +0 -19
  19. package/dist/cjs/src/api-model/models/package-detail.js +0 -15
  20. package/dist/es/src/api-model/models/confirm-shipment-error-response.js +0 -14
  21. package/dist/es/src/api-model/models/confirm-shipment-order-item.js +0 -14
  22. package/dist/es/src/api-model/models/confirm-shipment-request.js +0 -16
  23. package/dist/es/src/api-model/models/package-detail.js +0 -14
  24. package/dist/types/src/api-model/models/confirm-shipment-error-response.d.ts +0 -24
  25. package/dist/types/src/api-model/models/confirm-shipment-order-item.d.ts +0 -36
  26. package/dist/types/src/api-model/models/confirm-shipment-request.d.ts +0 -41
  27. package/dist/types/src/api-model/models/package-detail.d.ts +0 -67
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Configuration } from "./configuration";
13
- import { AxiosInstance, AxiosRequestConfig } from 'axios';
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -50,6 +50,5 @@ export declare class BaseAPI {
50
50
  */
51
51
  export declare class RequiredError extends Error {
52
52
  field: string;
53
- name: "RequiredError";
54
53
  constructor(field: string, msg?: string);
55
54
  }
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /// <reference types="node" />
13
- import { Configuration } from "./configuration";
14
- import { RequestArgs } from "./base";
15
- import { AxiosInstance, AxiosResponse } from 'axios';
13
+ import type { Configuration } from "./configuration";
14
+ import type { RequestArgs } from "./base";
15
+ import type { AxiosInstance, AxiosResponse } from 'axios';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -6,9 +6,6 @@ export * from './buyer-info';
6
6
  export * from './buyer-requested-cancel';
7
7
  export * from './buyer-tax-info';
8
8
  export * from './buyer-tax-information';
9
- export * from './confirm-shipment-error-response';
10
- export * from './confirm-shipment-order-item';
11
- export * from './confirm-shipment-request';
12
9
  export * from './easy-ship-shipment-status';
13
10
  export * from './electronic-invoice-status';
14
11
  export * from './fulfillment-instruction';
@@ -44,7 +41,6 @@ export * from './order-items-inner';
44
41
  export * from './order-items-list';
45
42
  export * from './order-regulated-info';
46
43
  export * from './orders-list';
47
- export * from './package-detail';
48
44
  export * from './payment-execution-detail-item';
49
45
  export * from './points-granted-detail';
50
46
  export * from './product-info-detail';
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.19.0",
5
+ "version": "2.0.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "test": "jest"
27
27
  },
28
28
  "dependencies": {
29
- "@sp-api-sdk/common": "^1.9.21",
29
+ "@sp-api-sdk/common": "^1.9.22",
30
30
  "axios": "^0.27.2"
31
31
  },
32
32
  "repository": {
@@ -51,5 +51,5 @@
51
51
  "typedoc": {
52
52
  "entryPoint": "./index.ts"
53
53
  },
54
- "gitHead": "4aae180b5a1395b37b673b93c285065ddba25470"
54
+ "gitHead": "19982f06cbbd770bfc7b9f1bc8a42f59b57baead"
55
55
  }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Orders
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: v0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Orders
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: v0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Orders
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: v0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConfirmShipmentRequestCodCollectionMethodEnum = void 0;
17
- exports.ConfirmShipmentRequestCodCollectionMethodEnum = {
18
- DirectPayment: 'DirectPayment'
19
- };
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Selling Partner API for Orders
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: v0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Orders
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: v0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Orders
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: v0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,16 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Orders
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: v0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export const ConfirmShipmentRequestCodCollectionMethodEnum = {
15
- DirectPayment: 'DirectPayment'
16
- };
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Selling Partner API for Orders
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: v0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,24 +0,0 @@
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 an shipment confirmation.
14
- * @export
15
- * @interface ConfirmShipmentErrorResponse
16
- */
17
- export interface ConfirmShipmentErrorResponse {
18
- /**
19
- * A list of error responses returned when a request is unsuccessful.
20
- * @type {Array<Error>}
21
- * @memberof ConfirmShipmentErrorResponse
22
- */
23
- 'errors'?: Array<Error>;
24
- }
@@ -1,36 +0,0 @@
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 single order item.
14
- * @export
15
- * @interface ConfirmShipmentOrderItem
16
- */
17
- export interface ConfirmShipmentOrderItem {
18
- /**
19
- * The unique identifier of the order item.
20
- * @type {string}
21
- * @memberof ConfirmShipmentOrderItem
22
- */
23
- 'orderItemId': string;
24
- /**
25
- * The quantity of the item.
26
- * @type {number}
27
- * @memberof ConfirmShipmentOrderItem
28
- */
29
- 'quantity': number;
30
- /**
31
- * A list of order items.
32
- * @type {Array<string>}
33
- * @memberof ConfirmShipmentOrderItem
34
- */
35
- 'transparencyCodes'?: Array<string>;
36
- }
@@ -1,41 +0,0 @@
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 { PackageDetail } from './package-detail';
13
- /**
14
- * The request schema for an shipment confirmation.
15
- * @export
16
- * @interface ConfirmShipmentRequest
17
- */
18
- export interface ConfirmShipmentRequest {
19
- /**
20
- *
21
- * @type {PackageDetail}
22
- * @memberof ConfirmShipmentRequest
23
- */
24
- 'packageDetail': PackageDetail;
25
- /**
26
- * The cod collection method, support in JP only.
27
- * @type {string}
28
- * @memberof ConfirmShipmentRequest
29
- */
30
- 'codCollectionMethod'?: ConfirmShipmentRequestCodCollectionMethodEnum;
31
- /**
32
- * The unobfuscated marketplace identifier.
33
- * @type {string}
34
- * @memberof ConfirmShipmentRequest
35
- */
36
- 'marketplaceId': string;
37
- }
38
- export declare const ConfirmShipmentRequestCodCollectionMethodEnum: {
39
- readonly DirectPayment: "DirectPayment";
40
- };
41
- export type ConfirmShipmentRequestCodCollectionMethodEnum = typeof ConfirmShipmentRequestCodCollectionMethodEnum[keyof typeof ConfirmShipmentRequestCodCollectionMethodEnum];
@@ -1,67 +0,0 @@
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 { ConfirmShipmentOrderItem } from './confirm-shipment-order-item';
13
- /**
14
- * Properties of packages
15
- * @export
16
- * @interface PackageDetail
17
- */
18
- export interface PackageDetail {
19
- /**
20
- * A seller-supplied identifier that uniquely identifies a package within the scope of an order.
21
- * @type {string}
22
- * @memberof PackageDetail
23
- */
24
- 'packageReferenceId': string;
25
- /**
26
- * Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces).
27
- * @type {string}
28
- * @memberof PackageDetail
29
- */
30
- 'carrierCode': string;
31
- /**
32
- * Carrier Name that will deliver the package. Required when carrierCode is \"Others\"
33
- * @type {string}
34
- * @memberof PackageDetail
35
- */
36
- 'carrierName'?: string;
37
- /**
38
- * Ship method to be used for shipping the order.
39
- * @type {string}
40
- * @memberof PackageDetail
41
- */
42
- 'shippingMethod'?: string;
43
- /**
44
- * The tracking number used to obtain tracking and delivery information.
45
- * @type {string}
46
- * @memberof PackageDetail
47
- */
48
- 'trackingNumber': string;
49
- /**
50
- * The shipping date for the package. Must be in ISO-8601 date/time format.
51
- * @type {string}
52
- * @memberof PackageDetail
53
- */
54
- 'shipDate': string;
55
- /**
56
- * The unique identifier of the supply source.
57
- * @type {string}
58
- * @memberof PackageDetail
59
- */
60
- 'shipFromSupplySourceId'?: string;
61
- /**
62
- * A list of order items.
63
- * @type {Array<ConfirmShipmentOrderItem>}
64
- * @memberof PackageDetail
65
- */
66
- 'orderItems': Array<ConfirmShipmentOrderItem>;
67
- }