@sp-api-sdk/finances-api-v0 2.2.4 → 2.3.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 (59) hide show
  1. package/dist/cjs/src/api-model/api/default-api.js +12 -4
  2. package/dist/cjs/src/api-model/base.js +7 -2
  3. package/dist/cjs/src/api-model/common.js +1 -1
  4. package/dist/cjs/src/api-model/configuration.js +8 -0
  5. package/dist/es/src/api-model/api/default-api.js +13 -5
  6. package/dist/es/src/api-model/base.js +6 -1
  7. package/dist/es/src/api-model/common.js +1 -1
  8. package/dist/es/src/api-model/configuration.js +8 -0
  9. package/dist/types/src/api-model/api/default-api.d.ts +20 -20
  10. package/dist/types/src/api-model/base.d.ts +14 -2
  11. package/dist/types/src/api-model/configuration.d.ts +8 -0
  12. package/dist/types/src/api-model/models/adhoc-disbursement-event.d.ts +1 -1
  13. package/dist/types/src/api-model/models/adjustment-event.d.ts +2 -2
  14. package/dist/types/src/api-model/models/adjustment-item.d.ts +1 -1
  15. package/dist/types/src/api-model/models/affordability-expense-event.d.ts +1 -1
  16. package/dist/types/src/api-model/models/capacity-reservation-billing-event.d.ts +1 -1
  17. package/dist/types/src/api-model/models/charge-component.d.ts +1 -1
  18. package/dist/types/src/api-model/models/charge-instrument.d.ts +1 -1
  19. package/dist/types/src/api-model/models/charge-refund-event.d.ts +1 -1
  20. package/dist/types/src/api-model/models/charge-refund-transaction.d.ts +1 -1
  21. package/dist/types/src/api-model/models/coupon-payment-event.d.ts +3 -3
  22. package/dist/types/src/api-model/models/debt-recovery-event.d.ts +3 -3
  23. package/dist/types/src/api-model/models/debt-recovery-item.d.ts +1 -1
  24. package/dist/types/src/api-model/models/direct-payment.d.ts +1 -1
  25. package/dist/types/src/api-model/models/failed-adhoc-disbursement-event.d.ts +1 -1
  26. package/dist/types/src/api-model/models/fbaliquidation-event.d.ts +1 -1
  27. package/dist/types/src/api-model/models/fee-component.d.ts +1 -1
  28. package/dist/types/src/api-model/models/financial-event-group.d.ts +1 -1
  29. package/dist/types/src/api-model/models/financial-events.d.ts +28 -28
  30. package/dist/types/src/api-model/models/imaging-services-fee-event.d.ts +1 -1
  31. package/dist/types/src/api-model/models/list-financial-event-groups-payload.d.ts +1 -1
  32. package/dist/types/src/api-model/models/list-financial-event-groups-response.d.ts +1 -1
  33. package/dist/types/src/api-model/models/list-financial-events-payload.d.ts +1 -1
  34. package/dist/types/src/api-model/models/list-financial-events-response.d.ts +1 -1
  35. package/dist/types/src/api-model/models/loan-servicing-event.d.ts +1 -1
  36. package/dist/types/src/api-model/models/network-commingling-transaction-event.d.ts +1 -1
  37. package/dist/types/src/api-model/models/pay-with-amazon-event.d.ts +2 -2
  38. package/dist/types/src/api-model/models/product-ads-payment-event.d.ts +1 -1
  39. package/dist/types/src/api-model/models/promotion.d.ts +1 -1
  40. package/dist/types/src/api-model/models/removal-shipment-adjustment-event.d.ts +1 -1
  41. package/dist/types/src/api-model/models/removal-shipment-event.d.ts +1 -1
  42. package/dist/types/src/api-model/models/removal-shipment-item-adjustment.d.ts +1 -1
  43. package/dist/types/src/api-model/models/removal-shipment-item.d.ts +1 -1
  44. package/dist/types/src/api-model/models/rental-transaction-event.d.ts +4 -4
  45. package/dist/types/src/api-model/models/retrocharge-event.d.ts +2 -2
  46. package/dist/types/src/api-model/models/safetreimbursement-event.d.ts +2 -2
  47. package/dist/types/src/api-model/models/safetreimbursement-item.d.ts +1 -1
  48. package/dist/types/src/api-model/models/seller-deal-payment-event.d.ts +1 -1
  49. package/dist/types/src/api-model/models/seller-review-enrollment-payment-event.d.ts +3 -3
  50. package/dist/types/src/api-model/models/service-fee-event.d.ts +1 -1
  51. package/dist/types/src/api-model/models/shipment-event.d.ts +4 -4
  52. package/dist/types/src/api-model/models/shipment-item.d.ts +5 -5
  53. package/dist/types/src/api-model/models/solution-provider-credit-event.d.ts +1 -1
  54. package/dist/types/src/api-model/models/tax-withheld-component.d.ts +1 -1
  55. package/dist/types/src/api-model/models/tax-withholding-event.d.ts +2 -2
  56. package/dist/types/src/api-model/models/tdsreimbursement-event.d.ts +1 -1
  57. package/dist/types/src/api-model/models/trial-shipment-event.d.ts +1 -1
  58. package/dist/types/src/api-model/models/value-added-service-charge-event.d.ts +1 -1
  59. package/package.json +4 -4
@@ -222,7 +222,9 @@ const DefaultApiFp = function (configuration) {
222
222
  */
223
223
  async listFinancialEventGroups(maxResultsPerPage, financialEventGroupStartedBefore, financialEventGroupStartedAfter, nextToken, options) {
224
224
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventGroups(maxResultsPerPage, financialEventGroupStartedBefore, financialEventGroupStartedAfter, nextToken, options);
225
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
225
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
226
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.listFinancialEventGroups']?.[localVarOperationServerIndex]?.url;
227
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
226
228
  },
227
229
  /**
228
230
  * Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Note:** in `ListFinancialEvents`, deferred events don\'t show up in responses until in they are released. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
@@ -235,7 +237,9 @@ const DefaultApiFp = function (configuration) {
235
237
  */
236
238
  async listFinancialEvents(maxResultsPerPage, postedAfter, postedBefore, nextToken, options) {
237
239
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEvents(maxResultsPerPage, postedAfter, postedBefore, nextToken, options);
238
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
240
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
241
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.listFinancialEvents']?.[localVarOperationServerIndex]?.url;
242
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
239
243
  },
240
244
  /**
241
245
  * Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group\'s data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
@@ -249,7 +253,9 @@ const DefaultApiFp = function (configuration) {
249
253
  */
250
254
  async listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options) {
251
255
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options);
252
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
256
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
257
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.listFinancialEventsByGroupId']?.[localVarOperationServerIndex]?.url;
258
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
253
259
  },
254
260
  /**
255
261
  * Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
@@ -261,7 +267,9 @@ const DefaultApiFp = function (configuration) {
261
267
  */
262
268
  async listFinancialEventsByOrderId(orderId, maxResultsPerPage, nextToken, options) {
263
269
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventsByOrderId(orderId, maxResultsPerPage, nextToken, options);
264
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
270
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
271
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.listFinancialEventsByOrderId']?.[localVarOperationServerIndex]?.url;
272
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
265
273
  },
266
274
  };
267
275
  };
@@ -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 = "https://sellingpartnerapi-na.amazon.com".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, 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
  * DefaultApi - axios parameter creator
22
22
  * @export
@@ -215,7 +215,9 @@ export const DefaultApiFp = function (configuration) {
215
215
  */
216
216
  async listFinancialEventGroups(maxResultsPerPage, financialEventGroupStartedBefore, financialEventGroupStartedAfter, nextToken, options) {
217
217
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventGroups(maxResultsPerPage, financialEventGroupStartedBefore, financialEventGroupStartedAfter, nextToken, options);
218
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
218
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
219
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.listFinancialEventGroups']?.[localVarOperationServerIndex]?.url;
220
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
219
221
  },
220
222
  /**
221
223
  * Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Note:** in `ListFinancialEvents`, deferred events don\'t show up in responses until in they are released. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
@@ -228,7 +230,9 @@ export const DefaultApiFp = function (configuration) {
228
230
  */
229
231
  async listFinancialEvents(maxResultsPerPage, postedAfter, postedBefore, nextToken, options) {
230
232
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEvents(maxResultsPerPage, postedAfter, postedBefore, nextToken, options);
231
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
233
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
234
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.listFinancialEvents']?.[localVarOperationServerIndex]?.url;
235
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
232
236
  },
233
237
  /**
234
238
  * Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group\'s data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
@@ -242,7 +246,9 @@ export const DefaultApiFp = function (configuration) {
242
246
  */
243
247
  async listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options) {
244
248
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options);
245
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
249
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
250
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.listFinancialEventsByGroupId']?.[localVarOperationServerIndex]?.url;
251
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
246
252
  },
247
253
  /**
248
254
  * Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
@@ -254,7 +260,9 @@ export const DefaultApiFp = function (configuration) {
254
260
  */
255
261
  async listFinancialEventsByOrderId(orderId, maxResultsPerPage, nextToken, options) {
256
262
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventsByOrderId(orderId, maxResultsPerPage, nextToken, options);
257
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
263
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
264
+ const localVarOperationServerBasePath = operationServerMap['DefaultApi.listFinancialEventsByOrderId']?.[localVarOperationServerIndex]?.url;
265
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
258
266
  },
259
267
  };
260
268
  };
@@ -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,11 +10,11 @@
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 { ListFinancialEventGroupsResponse } from '../models';
17
- import { ListFinancialEventsResponse } from '../models';
15
+ import { type RequestArgs, BaseAPI } from '../base';
16
+ import type { ListFinancialEventGroupsResponse } from '../models';
17
+ import type { ListFinancialEventsResponse } from '../models';
18
18
  /**
19
19
  * DefaultApi - axios parameter creator
20
20
  * @export
@@ -29,7 +29,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
29
29
  * @param {*} [options] Override http request option.
30
30
  * @throws {RequiredError}
31
31
  */
32
- listFinancialEventGroups: (maxResultsPerPage?: number, financialEventGroupStartedBefore?: string, financialEventGroupStartedAfter?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ listFinancialEventGroups: (maxResultsPerPage?: number, financialEventGroupStartedBefore?: string, financialEventGroupStartedAfter?: string, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33
33
  /**
34
34
  * Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Note:** in `ListFinancialEvents`, deferred events don\'t show up in responses until in they are released. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
35
35
  * @param {number} [maxResultsPerPage] The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with \&#39;InvalidInput\&#39;.
@@ -39,7 +39,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
39
39
  * @param {*} [options] Override http request option.
40
40
  * @throws {RequiredError}
41
41
  */
42
- listFinancialEvents: (maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ listFinancialEvents: (maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
43
43
  /**
44
44
  * Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group\'s data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
45
45
  * @param {string} eventGroupId The identifier of the financial event group to which the events belong.
@@ -50,7 +50,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
50
50
  * @param {*} [options] Override http request option.
51
51
  * @throws {RequiredError}
52
52
  */
53
- listFinancialEventsByGroupId: (eventGroupId: string, maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
+ listFinancialEventsByGroupId: (eventGroupId: string, maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
54
54
  /**
55
55
  * Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
56
56
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -59,7 +59,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
59
59
  * @param {*} [options] Override http request option.
60
60
  * @throws {RequiredError}
61
61
  */
62
- listFinancialEventsByOrderId: (orderId: string, maxResultsPerPage?: number, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
62
+ listFinancialEventsByOrderId: (orderId: string, maxResultsPerPage?: number, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
63
  };
64
64
  /**
65
65
  * DefaultApi - functional programming interface
@@ -75,7 +75,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
75
75
  * @param {*} [options] Override http request option.
76
76
  * @throws {RequiredError}
77
77
  */
78
- listFinancialEventGroups(maxResultsPerPage?: number, financialEventGroupStartedBefore?: string, financialEventGroupStartedAfter?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventGroupsResponse>>;
78
+ listFinancialEventGroups(maxResultsPerPage?: number, financialEventGroupStartedBefore?: string, financialEventGroupStartedAfter?: string, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventGroupsResponse>>;
79
79
  /**
80
80
  * Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Note:** in `ListFinancialEvents`, deferred events don\'t show up in responses until in they are released. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
81
81
  * @param {number} [maxResultsPerPage] The maximum number of results to return per page. If the response exceeds the maximum number of transactions or 10 MB, the API responds with \&#39;InvalidInput\&#39;.
@@ -85,7 +85,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
85
85
  * @param {*} [options] Override http request option.
86
86
  * @throws {RequiredError}
87
87
  */
88
- listFinancialEvents(maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
88
+ listFinancialEvents(maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
89
89
  /**
90
90
  * Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group\'s data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
91
91
  * @param {string} eventGroupId The identifier of the financial event group to which the events belong.
@@ -96,7 +96,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
96
96
  * @param {*} [options] Override http request option.
97
97
  * @throws {RequiredError}
98
98
  */
99
- listFinancialEventsByGroupId(eventGroupId: string, maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
99
+ listFinancialEventsByGroupId(eventGroupId: string, maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
100
100
  /**
101
101
  * Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
102
102
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -105,7 +105,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
105
105
  * @param {*} [options] Override http request option.
106
106
  * @throws {RequiredError}
107
107
  */
108
- listFinancialEventsByOrderId(orderId: string, maxResultsPerPage?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
108
+ listFinancialEventsByOrderId(orderId: string, maxResultsPerPage?: number, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
109
109
  };
110
110
  /**
111
111
  * DefaultApi - factory interface
@@ -118,28 +118,28 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
118
118
  * @param {*} [options] Override http request option.
119
119
  * @throws {RequiredError}
120
120
  */
121
- listFinancialEventGroups(requestParameters?: DefaultApiListFinancialEventGroupsRequest, options?: AxiosRequestConfig): AxiosPromise<ListFinancialEventGroupsResponse>;
121
+ listFinancialEventGroups(requestParameters?: DefaultApiListFinancialEventGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListFinancialEventGroupsResponse>;
122
122
  /**
123
123
  * Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Note:** in `ListFinancialEvents`, deferred events don\'t show up in responses until in they are released. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
124
124
  * @param {DefaultApiListFinancialEventsRequest} requestParameters Request parameters.
125
125
  * @param {*} [options] Override http request option.
126
126
  * @throws {RequiredError}
127
127
  */
128
- listFinancialEvents(requestParameters?: DefaultApiListFinancialEventsRequest, options?: AxiosRequestConfig): AxiosPromise<ListFinancialEventsResponse>;
128
+ listFinancialEvents(requestParameters?: DefaultApiListFinancialEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListFinancialEventsResponse>;
129
129
  /**
130
130
  * Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group\'s data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
131
131
  * @param {DefaultApiListFinancialEventsByGroupIdRequest} requestParameters Request parameters.
132
132
  * @param {*} [options] Override http request option.
133
133
  * @throws {RequiredError}
134
134
  */
135
- listFinancialEventsByGroupId(requestParameters: DefaultApiListFinancialEventsByGroupIdRequest, options?: AxiosRequestConfig): AxiosPromise<ListFinancialEventsResponse>;
135
+ listFinancialEventsByGroupId(requestParameters: DefaultApiListFinancialEventsByGroupIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListFinancialEventsResponse>;
136
136
  /**
137
137
  * Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
138
138
  * @param {DefaultApiListFinancialEventsByOrderIdRequest} requestParameters Request parameters.
139
139
  * @param {*} [options] Override http request option.
140
140
  * @throws {RequiredError}
141
141
  */
142
- listFinancialEventsByOrderId(requestParameters: DefaultApiListFinancialEventsByOrderIdRequest, options?: AxiosRequestConfig): AxiosPromise<ListFinancialEventsResponse>;
142
+ listFinancialEventsByOrderId(requestParameters: DefaultApiListFinancialEventsByOrderIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListFinancialEventsResponse>;
143
143
  };
144
144
  /**
145
145
  * Request parameters for listFinancialEventGroups operation in DefaultApi.
@@ -279,7 +279,7 @@ export declare class DefaultApi extends BaseAPI {
279
279
  * @throws {RequiredError}
280
280
  * @memberof DefaultApi
281
281
  */
282
- listFinancialEventGroups(requestParameters?: DefaultApiListFinancialEventGroupsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListFinancialEventGroupsResponse, any>>;
282
+ listFinancialEventGroups(requestParameters?: DefaultApiListFinancialEventGroupsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListFinancialEventGroupsResponse, any>>;
283
283
  /**
284
284
  * Returns financial events for the specified data range. It may take up to 48 hours for orders to appear in your financial events. **Note:** in `ListFinancialEvents`, deferred events don\'t show up in responses until in they are released. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
285
285
  * @param {DefaultApiListFinancialEventsRequest} requestParameters Request parameters.
@@ -287,7 +287,7 @@ export declare class DefaultApi extends BaseAPI {
287
287
  * @throws {RequiredError}
288
288
  * @memberof DefaultApi
289
289
  */
290
- listFinancialEvents(requestParameters?: DefaultApiListFinancialEventsRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListFinancialEventsResponse, any>>;
290
+ listFinancialEvents(requestParameters?: DefaultApiListFinancialEventsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListFinancialEventsResponse, any>>;
291
291
  /**
292
292
  * Returns all financial events for the specified financial event group. It may take up to 48 hours for orders to appear in your financial events. **Note:** This operation will only retrieve group\'s data for the past two years. If a request is submitted for data spanning more than two years, an empty response is returned. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
293
293
  * @param {DefaultApiListFinancialEventsByGroupIdRequest} requestParameters Request parameters.
@@ -295,7 +295,7 @@ export declare class DefaultApi extends BaseAPI {
295
295
  * @throws {RequiredError}
296
296
  * @memberof DefaultApi
297
297
  */
298
- listFinancialEventsByGroupId(requestParameters: DefaultApiListFinancialEventsByGroupIdRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListFinancialEventsResponse, any>>;
298
+ listFinancialEventsByGroupId(requestParameters: DefaultApiListFinancialEventsByGroupIdRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListFinancialEventsResponse, any>>;
299
299
  /**
300
300
  * Returns all financial events for the specified order. It may take up to 48 hours for orders to appear in your financial events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | 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).
301
301
  * @param {DefaultApiListFinancialEventsByOrderIdRequest} requestParameters Request parameters.
@@ -303,5 +303,5 @@ export declare class DefaultApi extends BaseAPI {
303
303
  * @throws {RequiredError}
304
304
  * @memberof DefaultApi
305
305
  */
306
- listFinancialEventsByOrderId(requestParameters: DefaultApiListFinancialEventsByOrderIdRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListFinancialEventsResponse, any>>;
306
+ listFinancialEventsByOrderId(requestParameters: DefaultApiListFinancialEventsByOrderIdRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListFinancialEventsResponse, any>>;
307
307
  }
@@ -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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * An event related to an Adhoc Disbursement.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AdjustmentItem } from './adjustment-item';
13
- import { Currency } from './currency';
12
+ import type { AdjustmentItem } from './adjustment-item';
13
+ import type { Currency } from './currency';
14
14
  /**
15
15
  * An adjustment to the seller\'s account.
16
16
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * An item in an adjustment to the seller\'s account.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * An expense related to an affordability promotion.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * An event related to a capacity reservation billing charge.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A charge on the seller\'s account. Possible values: * Principal - The selling price of the order item, equal to the selling price of the item multiplied by the quantity ordered. * Tax - The tax collected by the seller on the Principal. * MarketplaceFacilitatorTax-Principal - The tax withheld on the Principal. * MarketplaceFacilitatorTax-Shipping - The tax withheld on the ShippingCharge. * MarketplaceFacilitatorTax-Giftwrap - The tax withheld on the Giftwrap charge. * MarketplaceFacilitatorTax-Other - The tax withheld on other miscellaneous charges. * Discount - The promotional discount for an order item. * TaxDiscount - The tax amount deducted for promotional rebates. * CODItemCharge - The COD charge for an order item. * CODItemTaxCharge - The tax collected by the seller on a CODItemCharge. * CODOrderCharge - The COD charge for an order. * CODOrderTaxCharge - The tax collected by the seller on a CODOrderCharge. * CODShippingCharge - Shipping charges for a COD order. * CODShippingTaxCharge - The tax collected by the seller on a CODShippingCharge. * ShippingCharge - The shipping charge. * ShippingTax - The tax collected by the seller on a ShippingCharge. * Goodwill - The amount given to a buyer as a gesture of goodwill or to compensate for pain and suffering in the buying experience. * Giftwrap - The gift wrap charge. * GiftwrapTax - The tax collected by the seller on a Giftwrap charge. * RestockingFee - The charge applied to the buyer when returning a product in certain categories. * ReturnShipping - The amount given to the buyer to compensate for shipping the item back in the event we are at fault. * PointsFee - The value of Amazon Points deducted from the refund if the buyer does not have enough Amazon Points to cover the deduction. * GenericDeduction - A generic bad debt deduction. * FreeReplacementReturnShipping - The compensation for return shipping when a buyer receives the wrong item, requests a free replacement, and returns the incorrect item. * PaymentMethodFee - The fee collected for certain payment methods in certain marketplaces. * ExportCharge - The export duty that is charged when an item is shipped to an international destination as part of the Amazon Global program. * SAFE-TReimbursement - The SAFE-T claim amount for the item. * TCS-CGST - Tax Collected at Source (TCS) for Central Goods and Services Tax (CGST). * TCS-SGST - Tax Collected at Source for State Goods and Services Tax (SGST). * TCS-IGST - Tax Collected at Source for Integrated Goods and Services Tax (IGST). * TCS-UTGST - Tax Collected at Source for Union Territories Goods and Services Tax (UTGST).
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A payment instrument.
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 { ChargeRefundTransaction } from './charge-refund-transaction';
12
+ import type { ChargeRefundTransaction } from './charge-refund-transaction';
13
13
  /**
14
14
  * An event related to charge refund.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * The charge refund transaction.
15
15
  * @export
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ChargeComponent } from './charge-component';
13
- import { Currency } from './currency';
14
- import { FeeComponent } from './fee-component';
12
+ import type { ChargeComponent } from './charge-component';
13
+ import type { Currency } from './currency';
14
+ import type { FeeComponent } from './fee-component';
15
15
  /**
16
16
  * An event related to coupon payments.
17
17
  * @export
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ChargeInstrument } from './charge-instrument';
13
- import { Currency } from './currency';
14
- import { DebtRecoveryItem } from './debt-recovery-item';
12
+ import type { ChargeInstrument } from './charge-instrument';
13
+ import type { Currency } from './currency';
14
+ import type { DebtRecoveryItem } from './debt-recovery-item';
15
15
  /**
16
16
  * A debt payment or debt adjustment.
17
17
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * An item of a debt payment or debt adjustment.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A payment made directly to a seller.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * Failed ad hoc disbursement event list.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A payment event for Fulfillment by Amazon (FBA) inventory liquidation. This event is used only in the US marketplace.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A fee associated with the event.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * Information related to a financial event group.
15
15
  * @export
@@ -9,34 +9,34 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AdhocDisbursementEvent } from './adhoc-disbursement-event';
13
- import { AdjustmentEvent } from './adjustment-event';
14
- import { AffordabilityExpenseEvent } from './affordability-expense-event';
15
- import { CapacityReservationBillingEvent } from './capacity-reservation-billing-event';
16
- import { ChargeRefundEvent } from './charge-refund-event';
17
- import { CouponPaymentEvent } from './coupon-payment-event';
18
- import { DebtRecoveryEvent } from './debt-recovery-event';
19
- import { FBALiquidationEvent } from './fbaliquidation-event';
20
- import { FailedAdhocDisbursementEvent } from './failed-adhoc-disbursement-event';
21
- import { ImagingServicesFeeEvent } from './imaging-services-fee-event';
22
- import { LoanServicingEvent } from './loan-servicing-event';
23
- import { NetworkComminglingTransactionEvent } from './network-commingling-transaction-event';
24
- import { PayWithAmazonEvent } from './pay-with-amazon-event';
25
- import { ProductAdsPaymentEvent } from './product-ads-payment-event';
26
- import { RemovalShipmentAdjustmentEvent } from './removal-shipment-adjustment-event';
27
- import { RemovalShipmentEvent } from './removal-shipment-event';
28
- import { RentalTransactionEvent } from './rental-transaction-event';
29
- import { RetrochargeEvent } from './retrocharge-event';
30
- import { SAFETReimbursementEvent } from './safetreimbursement-event';
31
- import { SellerDealPaymentEvent } from './seller-deal-payment-event';
32
- import { SellerReviewEnrollmentPaymentEvent } from './seller-review-enrollment-payment-event';
33
- import { ServiceFeeEvent } from './service-fee-event';
34
- import { ShipmentEvent } from './shipment-event';
35
- import { SolutionProviderCreditEvent } from './solution-provider-credit-event';
36
- import { TDSReimbursementEvent } from './tdsreimbursement-event';
37
- import { TaxWithholdingEvent } from './tax-withholding-event';
38
- import { TrialShipmentEvent } from './trial-shipment-event';
39
- import { ValueAddedServiceChargeEvent } from './value-added-service-charge-event';
12
+ import type { AdhocDisbursementEvent } from './adhoc-disbursement-event';
13
+ import type { AdjustmentEvent } from './adjustment-event';
14
+ import type { AffordabilityExpenseEvent } from './affordability-expense-event';
15
+ import type { CapacityReservationBillingEvent } from './capacity-reservation-billing-event';
16
+ import type { ChargeRefundEvent } from './charge-refund-event';
17
+ import type { CouponPaymentEvent } from './coupon-payment-event';
18
+ import type { DebtRecoveryEvent } from './debt-recovery-event';
19
+ import type { FBALiquidationEvent } from './fbaliquidation-event';
20
+ import type { FailedAdhocDisbursementEvent } from './failed-adhoc-disbursement-event';
21
+ import type { ImagingServicesFeeEvent } from './imaging-services-fee-event';
22
+ import type { LoanServicingEvent } from './loan-servicing-event';
23
+ import type { NetworkComminglingTransactionEvent } from './network-commingling-transaction-event';
24
+ import type { PayWithAmazonEvent } from './pay-with-amazon-event';
25
+ import type { ProductAdsPaymentEvent } from './product-ads-payment-event';
26
+ import type { RemovalShipmentAdjustmentEvent } from './removal-shipment-adjustment-event';
27
+ import type { RemovalShipmentEvent } from './removal-shipment-event';
28
+ import type { RentalTransactionEvent } from './rental-transaction-event';
29
+ import type { RetrochargeEvent } from './retrocharge-event';
30
+ import type { SAFETReimbursementEvent } from './safetreimbursement-event';
31
+ import type { SellerDealPaymentEvent } from './seller-deal-payment-event';
32
+ import type { SellerReviewEnrollmentPaymentEvent } from './seller-review-enrollment-payment-event';
33
+ import type { ServiceFeeEvent } from './service-fee-event';
34
+ import type { ShipmentEvent } from './shipment-event';
35
+ import type { SolutionProviderCreditEvent } from './solution-provider-credit-event';
36
+ import type { TDSReimbursementEvent } from './tdsreimbursement-event';
37
+ import type { TaxWithholdingEvent } from './tax-withholding-event';
38
+ import type { TrialShipmentEvent } from './trial-shipment-event';
39
+ import type { ValueAddedServiceChargeEvent } from './value-added-service-charge-event';
40
40
  /**
41
41
  * Contains all information related to a financial event.
42
42
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { FeeComponent } from './fee-component';
12
+ import type { FeeComponent } from './fee-component';
13
13
  /**
14
14
  * A fee event related to Amazon Imaging services.
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 { FinancialEventGroup } from './financial-event-group';
12
+ import type { FinancialEventGroup } from './financial-event-group';
13
13
  /**
14
14
  * The payload for the listFinancialEventGroups 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 { ListFinancialEventGroupsPayload } from './list-financial-event-groups-payload';
12
+ import type { ListFinancialEventGroupsPayload } from './list-financial-event-groups-payload';
13
13
  /**
14
14
  * The response schema for the listFinancialEventGroups 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 { FinancialEvents } from './financial-events';
12
+ import type { FinancialEvents } from './financial-events';
13
13
  /**
14
14
  * The payload for the listFinancialEvents 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 { ListFinancialEventsPayload } from './list-financial-events-payload';
12
+ import type { ListFinancialEventsPayload } from './list-financial-events-payload';
13
13
  /**
14
14
  * The response schema for the listFinancialEvents 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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A loan advance, loan payment, or loan refund.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A network commingling transaction event.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ChargeComponent } from './charge-component';
13
- import { FeeComponent } from './fee-component';
12
+ import type { ChargeComponent } from './charge-component';
13
+ import type { FeeComponent } from './fee-component';
14
14
  /**
15
15
  * An event related to the seller\'s Pay with Amazon account.
16
16
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A Sponsored Products payment event.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A promotion applied to an item.
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 { RemovalShipmentItemAdjustment } from './removal-shipment-item-adjustment';
12
+ import type { RemovalShipmentItemAdjustment } from './removal-shipment-item-adjustment';
13
13
  /**
14
14
  * A financial adjustment event for FBA liquidated inventory. A positive value indicates money owed to Amazon by the buyer (for example, when the charge was incorrectly calculated as less than it should be). A negative value indicates a full or partial refund owed to the buyer (for example, when the buyer receives damaged items or fewer items than ordered).
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 { RemovalShipmentItem } from './removal-shipment-item';
12
+ import type { RemovalShipmentItem } from './removal-shipment-item';
13
13
  /**
14
14
  * A removal shipment event for a removal order.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * Item-level information for a removal shipment item adjustment.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * Item-level information for a removal shipment.
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 { ChargeComponent } from './charge-component';
13
- import { Currency } from './currency';
14
- import { FeeComponent } from './fee-component';
15
- import { TaxWithheldComponent } from './tax-withheld-component';
12
+ import type { ChargeComponent } from './charge-component';
13
+ import type { Currency } from './currency';
14
+ import type { FeeComponent } from './fee-component';
15
+ import type { TaxWithheldComponent } from './tax-withheld-component';
16
16
  /**
17
17
  * An event related to a rental transaction.
18
18
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
13
- import { TaxWithheldComponent } from './tax-withheld-component';
12
+ import type { Currency } from './currency';
13
+ import type { TaxWithheldComponent } from './tax-withheld-component';
14
14
  /**
15
15
  * A retrocharge or retrocharge reversal.
16
16
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
13
- import { SAFETReimbursementItem } from './safetreimbursement-item';
12
+ import type { Currency } from './currency';
13
+ import type { SAFETReimbursementItem } from './safetreimbursement-item';
14
14
  /**
15
15
  * A SAFE-T claim reimbursement on the seller\'s account.
16
16
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ChargeComponent } from './charge-component';
12
+ import type { ChargeComponent } from './charge-component';
13
13
  /**
14
14
  * An item from a SAFE-T claim reimbursement.
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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * An event linked to the payment of a fee related to the specified deal.
15
15
  * @export
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ChargeComponent } from './charge-component';
13
- import { Currency } from './currency';
14
- import { FeeComponent } from './fee-component';
12
+ import type { ChargeComponent } from './charge-component';
13
+ import type { Currency } from './currency';
14
+ import type { FeeComponent } from './fee-component';
15
15
  /**
16
16
  * A fee payment event for the Early Reviewer Program.
17
17
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { FeeComponent } from './fee-component';
12
+ import type { FeeComponent } from './fee-component';
13
13
  /**
14
14
  * A service fee on the seller\'s account.
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 { ChargeComponent } from './charge-component';
13
- import { DirectPayment } from './direct-payment';
14
- import { FeeComponent } from './fee-component';
15
- import { ShipmentItem } from './shipment-item';
12
+ import type { ChargeComponent } from './charge-component';
13
+ import type { DirectPayment } from './direct-payment';
14
+ import type { FeeComponent } from './fee-component';
15
+ import type { ShipmentItem } from './shipment-item';
16
16
  /**
17
17
  * A shipment, refund, guarantee claim, or chargeback.
18
18
  * @export
@@ -9,11 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ChargeComponent } from './charge-component';
13
- import { Currency } from './currency';
14
- import { FeeComponent } from './fee-component';
15
- import { Promotion } from './promotion';
16
- import { TaxWithheldComponent } from './tax-withheld-component';
12
+ import type { ChargeComponent } from './charge-component';
13
+ import type { Currency } from './currency';
14
+ import type { FeeComponent } from './fee-component';
15
+ import type { Promotion } from './promotion';
16
+ import type { TaxWithheldComponent } from './tax-withheld-component';
17
17
  /**
18
18
  * An item of a shipment, refund, guarantee claim, or chargeback.
19
19
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * A credit given to a solution provider.
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 { ChargeComponent } from './charge-component';
12
+ import type { ChargeComponent } from './charge-component';
13
13
  /**
14
14
  * Information about the taxes withheld.
15
15
  * @export
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
13
- import { TaxWithholdingPeriod } from './tax-withholding-period';
12
+ import type { Currency } from './currency';
13
+ import type { TaxWithholdingPeriod } from './tax-withholding-period';
14
14
  /**
15
15
  * A TaxWithholding event on seller\'s account.
16
16
  * @export
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * An event related to a Tax-Deducted-at-Source (TDS) reimbursement.
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 { FeeComponent } from './fee-component';
12
+ import type { FeeComponent } from './fee-component';
13
13
  /**
14
14
  * An event related to a trial 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 { Currency } from './currency';
12
+ import type { Currency } from './currency';
13
13
  /**
14
14
  * An event related to a value added service charge.
15
15
  * @export
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/finances-api-v0",
3
3
  "author": "Bertrand Marron <bertrand@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.",
5
- "version": "2.2.4",
5
+ "version": "2.3.0",
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.8",
22
+ "axios": "^1.7.0"
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",
@@ -40,5 +40,5 @@
40
40
  "sp sdk",
41
41
  "finances api"
42
42
  ],
43
- "gitHead": "556cf5234c43b36ddaffa12f795a925b1c7fc63b"
43
+ "gitHead": "5a245a25a9f1765c825e2178668d4b0f4e44689b"
44
44
  }