@sp-api-sdk/shipment-invoicing-api-v0 2.0.7 → 2.1.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.
@@ -136,7 +136,9 @@ const ShipmentInvoiceApiFp = function (configuration) {
136
136
  */
137
137
  async getInvoiceStatus(shipmentId, options) {
138
138
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoiceStatus(shipmentId, options);
139
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
139
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
140
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShipmentInvoiceApi.getInvoiceStatus']?.[localVarOperationServerIndex]?.url;
141
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
140
142
  },
141
143
  /**
142
144
  * Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -146,7 +148,9 @@ const ShipmentInvoiceApiFp = function (configuration) {
146
148
  */
147
149
  async getShipmentDetails(shipmentId, options) {
148
150
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentDetails(shipmentId, options);
149
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
151
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
152
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShipmentInvoiceApi.getShipmentDetails']?.[localVarOperationServerIndex]?.url;
153
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
150
154
  },
151
155
  /**
152
156
  * Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -157,7 +161,9 @@ const ShipmentInvoiceApiFp = function (configuration) {
157
161
  */
158
162
  async submitInvoice(shipmentId, body, options) {
159
163
  const localVarAxiosArgs = await localVarAxiosParamCreator.submitInvoice(shipmentId, body, options);
160
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
164
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
165
+ const localVarOperationServerBasePath = base_1.operationServerMap['ShipmentInvoiceApi.submitInvoice']?.[localVarOperationServerIndex]?.url;
166
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
161
167
  },
162
168
  };
163
169
  };
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
19
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
22
22
  /**
@@ -43,7 +43,7 @@ class BaseAPI {
43
43
  this.axios = axios;
44
44
  if (configuration) {
45
45
  this.configuration = configuration;
46
- this.basePath = configuration.basePath || this.basePath;
46
+ this.basePath = configuration.basePath ?? basePath;
47
47
  }
48
48
  }
49
49
  }
@@ -64,3 +64,8 @@ class RequiredError extends Error {
64
64
  }
65
65
  }
66
66
  exports.RequiredError = RequiredError;
67
+ /**
68
+ *
69
+ * @export
70
+ */
71
+ exports.operationServerMap = {};
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
138
138
  */
139
139
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
140
140
  return (axios = globalAxios, basePath = BASE_PATH) => {
141
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
141
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
142
142
  return axios.request(axiosRequestArgs);
143
143
  };
144
144
  };
@@ -49,6 +49,13 @@ class Configuration {
49
49
  * @memberof Configuration
50
50
  */
51
51
  basePath;
52
+ /**
53
+ * override server index
54
+ *
55
+ * @type {number}
56
+ * @memberof Configuration
57
+ */
58
+ serverIndex;
52
59
  /**
53
60
  * base options for axios calls
54
61
  *
@@ -70,6 +77,7 @@ class Configuration {
70
77
  this.password = param.password;
71
78
  this.accessToken = param.accessToken;
72
79
  this.basePath = param.basePath;
80
+ this.serverIndex = param.serverIndex;
73
81
  this.baseOptions = param.baseOptions;
74
82
  this.formDataCtor = param.formDataCtor;
75
83
  }
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
16
16
  // @ts-ignore
17
17
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
18
  // @ts-ignore
19
- import { BASE_PATH, BaseAPI } from '../base';
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
21
  * ShipmentInvoiceApi - axios parameter creator
22
22
  * @export
@@ -129,7 +129,9 @@ export const ShipmentInvoiceApiFp = function (configuration) {
129
129
  */
130
130
  async getInvoiceStatus(shipmentId, options) {
131
131
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInvoiceStatus(shipmentId, options);
132
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
132
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
133
+ const localVarOperationServerBasePath = operationServerMap['ShipmentInvoiceApi.getInvoiceStatus']?.[localVarOperationServerIndex]?.url;
134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
133
135
  },
134
136
  /**
135
137
  * Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -139,7 +141,9 @@ export const ShipmentInvoiceApiFp = function (configuration) {
139
141
  */
140
142
  async getShipmentDetails(shipmentId, options) {
141
143
  const localVarAxiosArgs = await localVarAxiosParamCreator.getShipmentDetails(shipmentId, options);
142
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
144
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
145
+ const localVarOperationServerBasePath = operationServerMap['ShipmentInvoiceApi.getShipmentDetails']?.[localVarOperationServerIndex]?.url;
146
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
143
147
  },
144
148
  /**
145
149
  * Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
@@ -150,7 +154,9 @@ export const ShipmentInvoiceApiFp = function (configuration) {
150
154
  */
151
155
  async submitInvoice(shipmentId, body, options) {
152
156
  const localVarAxiosArgs = await localVarAxiosParamCreator.submitInvoice(shipmentId, body, options);
153
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
157
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
158
+ const localVarOperationServerBasePath = operationServerMap['ShipmentInvoiceApi.submitInvoice']?.[localVarOperationServerIndex]?.url;
159
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
154
160
  },
155
161
  };
156
162
  };
@@ -37,7 +37,7 @@ export class BaseAPI {
37
37
  this.axios = axios;
38
38
  if (configuration) {
39
39
  this.configuration = configuration;
40
- this.basePath = configuration.basePath || this.basePath;
40
+ this.basePath = configuration.basePath ?? basePath;
41
41
  }
42
42
  }
43
43
  }
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
56
56
  this.name = "RequiredError";
57
57
  }
58
58
  }
59
+ /**
60
+ *
61
+ * @export
62
+ */
63
+ export const operationServerMap = {};
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
127
127
  */
128
128
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
129
  return (axios = globalAxios, basePath = BASE_PATH) => {
130
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
130
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
131
131
  return axios.request(axiosRequestArgs);
132
132
  };
133
133
  };
@@ -46,6 +46,13 @@ export class Configuration {
46
46
  * @memberof Configuration
47
47
  */
48
48
  basePath;
49
+ /**
50
+ * override server index
51
+ *
52
+ * @type {number}
53
+ * @memberof Configuration
54
+ */
55
+ serverIndex;
49
56
  /**
50
57
  * base options for axios calls
51
58
  *
@@ -67,6 +74,7 @@ export class Configuration {
67
74
  this.password = param.password;
68
75
  this.accessToken = param.accessToken;
69
76
  this.basePath = param.basePath;
77
+ this.serverIndex = param.serverIndex;
70
78
  this.baseOptions = param.baseOptions;
71
79
  this.formDataCtor = param.formDataCtor;
72
80
  }
@@ -10,13 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import globalAxios from 'axios';
15
- import { RequestArgs, BaseAPI } from '../base';
16
- import { GetInvoiceStatusResponse } from '../models';
17
- import { GetShipmentDetailsResponse } from '../models';
18
- import { SubmitInvoiceRequest } from '../models';
19
- import { SubmitInvoiceResponse } from '../models';
15
+ import { type RequestArgs, BaseAPI } from '../base';
16
+ import type { GetInvoiceStatusResponse } from '../models';
17
+ import type { GetShipmentDetailsResponse } from '../models';
18
+ import type { SubmitInvoiceRequest } from '../models';
19
+ import type { SubmitInvoiceResponse } from '../models';
20
20
  /**
21
21
  * ShipmentInvoiceApi - axios parameter creator
22
22
  * @export
@@ -28,14 +28,14 @@ export declare const ShipmentInvoiceApiAxiosParamCreator: (configuration?: Confi
28
28
  * @param {*} [options] Override http request option.
29
29
  * @throws {RequiredError}
30
30
  */
31
- getInvoiceStatus: (shipmentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ getInvoiceStatus: (shipmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
32
  /**
33
33
  * Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
34
34
  * @param {string} shipmentId The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
35
35
  * @param {*} [options] Override http request option.
36
36
  * @throws {RequiredError}
37
37
  */
38
- getShipmentDetails: (shipmentId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
38
+ getShipmentDetails: (shipmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
39
  /**
40
40
  * Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
41
41
  * @param {string} shipmentId The identifier for the shipment.
@@ -43,7 +43,7 @@ export declare const ShipmentInvoiceApiAxiosParamCreator: (configuration?: Confi
43
43
  * @param {*} [options] Override http request option.
44
44
  * @throws {RequiredError}
45
45
  */
46
- submitInvoice: (shipmentId: string, body: SubmitInvoiceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
+ submitInvoice: (shipmentId: string, body: SubmitInvoiceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
47
  };
48
48
  /**
49
49
  * ShipmentInvoiceApi - functional programming interface
@@ -56,14 +56,14 @@ export declare const ShipmentInvoiceApiFp: (configuration?: Configuration) => {
56
56
  * @param {*} [options] Override http request option.
57
57
  * @throws {RequiredError}
58
58
  */
59
- getInvoiceStatus(shipmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceStatusResponse>>;
59
+ getInvoiceStatus(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetInvoiceStatusResponse>>;
60
60
  /**
61
61
  * Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
62
62
  * @param {string} shipmentId The identifier for the shipment. Get this value from the FBAOutboundShipmentStatus notification. For information about subscribing to notifications, see the [Notifications API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
63
63
  * @param {*} [options] Override http request option.
64
64
  * @throws {RequiredError}
65
65
  */
66
- getShipmentDetails(shipmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentDetailsResponse>>;
66
+ getShipmentDetails(shipmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetShipmentDetailsResponse>>;
67
67
  /**
68
68
  * Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
69
69
  * @param {string} shipmentId The identifier for the shipment.
@@ -71,7 +71,7 @@ export declare const ShipmentInvoiceApiFp: (configuration?: Configuration) => {
71
71
  * @param {*} [options] Override http request option.
72
72
  * @throws {RequiredError}
73
73
  */
74
- submitInvoice(shipmentId: string, body: SubmitInvoiceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitInvoiceResponse>>;
74
+ submitInvoice(shipmentId: string, body: SubmitInvoiceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitInvoiceResponse>>;
75
75
  };
76
76
  /**
77
77
  * ShipmentInvoiceApi - factory interface
@@ -84,21 +84,21 @@ export declare const ShipmentInvoiceApiFactory: (configuration?: Configuration,
84
84
  * @param {*} [options] Override http request option.
85
85
  * @throws {RequiredError}
86
86
  */
87
- getInvoiceStatus(requestParameters: ShipmentInvoiceApiGetInvoiceStatusRequest, options?: AxiosRequestConfig): AxiosPromise<GetInvoiceStatusResponse>;
87
+ getInvoiceStatus(requestParameters: ShipmentInvoiceApiGetInvoiceStatusRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetInvoiceStatusResponse>;
88
88
  /**
89
89
  * Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
90
90
  * @param {ShipmentInvoiceApiGetShipmentDetailsRequest} requestParameters Request parameters.
91
91
  * @param {*} [options] Override http request option.
92
92
  * @throws {RequiredError}
93
93
  */
94
- getShipmentDetails(requestParameters: ShipmentInvoiceApiGetShipmentDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<GetShipmentDetailsResponse>;
94
+ getShipmentDetails(requestParameters: ShipmentInvoiceApiGetShipmentDetailsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetShipmentDetailsResponse>;
95
95
  /**
96
96
  * Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
97
97
  * @param {ShipmentInvoiceApiSubmitInvoiceRequest} requestParameters Request parameters.
98
98
  * @param {*} [options] Override http request option.
99
99
  * @throws {RequiredError}
100
100
  */
101
- submitInvoice(requestParameters: ShipmentInvoiceApiSubmitInvoiceRequest, options?: AxiosRequestConfig): AxiosPromise<SubmitInvoiceResponse>;
101
+ submitInvoice(requestParameters: ShipmentInvoiceApiSubmitInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitInvoiceResponse>;
102
102
  };
103
103
  /**
104
104
  * Request parameters for getInvoiceStatus operation in ShipmentInvoiceApi.
@@ -159,7 +159,7 @@ export declare class ShipmentInvoiceApi extends BaseAPI {
159
159
  * @throws {RequiredError}
160
160
  * @memberof ShipmentInvoiceApi
161
161
  */
162
- getInvoiceStatus(requestParameters: ShipmentInvoiceApiGetInvoiceStatusRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoiceStatusResponse, any>>;
162
+ getInvoiceStatus(requestParameters: ShipmentInvoiceApiGetInvoiceStatusRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetInvoiceStatusResponse, any>>;
163
163
  /**
164
164
  * Returns the shipment details required to issue an invoice for the specified shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
165
165
  * @param {ShipmentInvoiceApiGetShipmentDetailsRequest} requestParameters Request parameters.
@@ -167,7 +167,7 @@ export declare class ShipmentInvoiceApi extends BaseAPI {
167
167
  * @throws {RequiredError}
168
168
  * @memberof ShipmentInvoiceApi
169
169
  */
170
- getShipmentDetails(requestParameters: ShipmentInvoiceApiGetShipmentDetailsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentDetailsResponse, any>>;
170
+ getShipmentDetails(requestParameters: ShipmentInvoiceApiGetShipmentDetailsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetShipmentDetailsResponse, any>>;
171
171
  /**
172
172
  * Submits a shipment invoice document for a given shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1.133 | 25 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
173
173
  * @param {ShipmentInvoiceApiSubmitInvoiceRequest} requestParameters Request parameters.
@@ -175,5 +175,5 @@ export declare class ShipmentInvoiceApi extends BaseAPI {
175
175
  * @throws {RequiredError}
176
176
  * @memberof ShipmentInvoiceApi
177
177
  */
178
- submitInvoice(requestParameters: ShipmentInvoiceApiSubmitInvoiceRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitInvoiceResponse, any>>;
178
+ submitInvoice(requestParameters: ShipmentInvoiceApiSubmitInvoiceRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitInvoiceResponse, any>>;
179
179
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Configuration } from './configuration';
13
- import type { AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
15
  /**
16
16
  *
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
29
29
  */
30
30
  export interface RequestArgs {
31
31
  url: string;
32
- options: AxiosRequestConfig;
32
+ options: RawAxiosRequestConfig;
33
33
  }
34
34
  /**
35
35
  *
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
52
52
  field: string;
53
53
  constructor(field: string, msg?: string);
54
54
  }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
15
15
  password?: string;
16
16
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
17
  basePath?: string;
18
+ serverIndex?: number;
18
19
  baseOptions?: any;
19
20
  formDataCtor?: new () => any;
20
21
  }
@@ -53,6 +54,13 @@ export declare class Configuration {
53
54
  * @memberof Configuration
54
55
  */
55
56
  basePath?: string;
57
+ /**
58
+ * override server index
59
+ *
60
+ * @type {number}
61
+ * @memberof Configuration
62
+ */
63
+ serverIndex?: number;
56
64
  /**
57
65
  * base options for axios calls
58
66
  *
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AddressTypeEnum } from './address-type-enum';
12
+ import type { AddressTypeEnum } from './address-type-enum';
13
13
  /**
14
14
  * The shipping address details of the shipment.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { TaxClassification } from './tax-classification';
12
+ import type { TaxClassification } from './tax-classification';
13
13
  /**
14
14
  * Tax information about the buyer.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ShipmentInvoiceStatusResponse } from './shipment-invoice-status-response';
12
+ import type { ShipmentInvoiceStatusResponse } from './shipment-invoice-status-response';
13
13
  /**
14
14
  * The response schema for the getInvoiceStatus operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ShipmentDetail } from './shipment-detail';
12
+ import type { ShipmentDetail } from './shipment-detail';
13
13
  /**
14
14
  * The response schema for the getShipmentDetails operation.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { TaxClassification } from './tax-classification';
12
+ import type { TaxClassification } from './tax-classification';
13
13
  /**
14
14
  * Tax information about the marketplace.
15
15
  * @export
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Address } from './address';
13
- import { BuyerTaxInfo } from './buyer-tax-info';
14
- import { MarketplaceTaxInfo } from './marketplace-tax-info';
15
- import { ShipmentItem } from './shipment-item';
12
+ import type { Address } from './address';
13
+ import type { BuyerTaxInfo } from './buyer-tax-info';
14
+ import type { MarketplaceTaxInfo } from './marketplace-tax-info';
15
+ import type { ShipmentItem } from './shipment-item';
16
16
  /**
17
17
  * The information required by a selling partner to issue a shipment invoice.
18
18
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ShipmentInvoiceStatus } from './shipment-invoice-status';
12
+ import type { ShipmentInvoiceStatus } from './shipment-invoice-status';
13
13
  /**
14
14
  * The shipment invoice status information.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ShipmentInvoiceStatusInfo } from './shipment-invoice-status-info';
12
+ import type { ShipmentInvoiceStatusInfo } from './shipment-invoice-status-info';
13
13
  /**
14
14
  * The shipment invoice status response.
15
15
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Money } from './money';
12
+ import type { Money } from './money';
13
13
  /**
14
14
  * The shipment item information required by a seller to issue a shipment invoice.
15
15
  * @export
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/shipment-invoicing-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Shipment Invoicing helps you programmatically retrieve shipment invoice information in the Brazil marketplace for a selling partner’s Fulfillment by Amazon (FBA) orders.",
5
- "version": "2.0.7",
5
+ "version": "2.1.1",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "dist/**/*.d.ts"
19
19
  ],
20
20
  "dependencies": {
21
- "@sp-api-sdk/common": "2.0.7",
22
- "axios": "^1.6.8"
21
+ "@sp-api-sdk/common": "2.0.9",
22
+ "axios": "^1.7.2"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "shipment invoicing api"
42
42
  ],
43
- "gitHead": "556cf5234c43b36ddaffa12f795a925b1c7fc63b"
43
+ "gitHead": "cce8c720364baf071322463e8e3ed29c322cc93a"
44
44
  }