@sp-api-sdk/finances-api-2024-06-19 2.1.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
19
+ exports.FinancesApi = exports.FinancesApiFactory = exports.FinancesApiFp = exports.FinancesApiAxiosParamCreator = void 0;
20
20
  const axios_1 = __importDefault(require("axios"));
21
21
  // Some imports not used depending on template conditions
22
22
  // @ts-ignore
@@ -24,10 +24,10 @@ const common_1 = require("../common");
24
24
  // @ts-ignore
25
25
  const base_1 = require("../base");
26
26
  /**
27
- * DefaultApi - axios parameter creator
27
+ * FinancesApi - axios parameter creator
28
28
  * @export
29
29
  */
30
- const DefaultApiAxiosParamCreator = function (configuration) {
30
+ const FinancesApiAxiosParamCreator = function (configuration) {
31
31
  return {
32
32
  /**
33
33
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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).
@@ -77,13 +77,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
77
77
  },
78
78
  };
79
79
  };
80
- exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
80
+ exports.FinancesApiAxiosParamCreator = FinancesApiAxiosParamCreator;
81
81
  /**
82
- * DefaultApi - functional programming interface
82
+ * FinancesApi - functional programming interface
83
83
  * @export
84
84
  */
85
- const DefaultApiFp = function (configuration) {
86
- const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
85
+ const FinancesApiFp = function (configuration) {
86
+ const localVarAxiosParamCreator = (0, exports.FinancesApiAxiosParamCreator)(configuration);
87
87
  return {
88
88
  /**
89
89
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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,22 +97,22 @@ const DefaultApiFp = function (configuration) {
97
97
  async listTransactions(postedAfter, postedBefore, marketplaceId, nextToken, options) {
98
98
  const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(postedAfter, postedBefore, marketplaceId, nextToken, options);
99
99
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
100
- const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.listTransactions']?.[localVarOperationServerIndex]?.url;
100
+ const localVarOperationServerBasePath = base_1.operationServerMap['FinancesApi.listTransactions']?.[localVarOperationServerIndex]?.url;
101
101
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
102
102
  },
103
103
  };
104
104
  };
105
- exports.DefaultApiFp = DefaultApiFp;
105
+ exports.FinancesApiFp = FinancesApiFp;
106
106
  /**
107
- * DefaultApi - factory interface
107
+ * FinancesApi - factory interface
108
108
  * @export
109
109
  */
110
- const DefaultApiFactory = function (configuration, basePath, axios) {
111
- const localVarFp = (0, exports.DefaultApiFp)(configuration);
110
+ const FinancesApiFactory = function (configuration, basePath, axios) {
111
+ const localVarFp = (0, exports.FinancesApiFp)(configuration);
112
112
  return {
113
113
  /**
114
114
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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).
115
- * @param {DefaultApiListTransactionsRequest} requestParameters Request parameters.
115
+ * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
116
116
  * @param {*} [options] Override http request option.
117
117
  * @throws {RequiredError}
118
118
  */
@@ -121,23 +121,23 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
121
121
  },
122
122
  };
123
123
  };
124
- exports.DefaultApiFactory = DefaultApiFactory;
124
+ exports.FinancesApiFactory = FinancesApiFactory;
125
125
  /**
126
- * DefaultApi - object-oriented interface
126
+ * FinancesApi - object-oriented interface
127
127
  * @export
128
- * @class DefaultApi
128
+ * @class FinancesApi
129
129
  * @extends {BaseAPI}
130
130
  */
131
- class DefaultApi extends base_1.BaseAPI {
131
+ class FinancesApi extends base_1.BaseAPI {
132
132
  /**
133
133
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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).
134
- * @param {DefaultApiListTransactionsRequest} requestParameters Request parameters.
134
+ * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
135
135
  * @param {*} [options] Override http request option.
136
136
  * @throws {RequiredError}
137
- * @memberof DefaultApi
137
+ * @memberof FinancesApi
138
138
  */
139
139
  listTransactions(requestParameters, options) {
140
- return (0, exports.DefaultApiFp)(this.configuration).listTransactions(requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.marketplaceId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
140
+ return (0, exports.FinancesApiFp)(this.configuration).listTransactions(requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.marketplaceId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
141
141
  }
142
142
  }
143
- exports.DefaultApi = DefaultApi;
143
+ exports.FinancesApi = FinancesApi;
@@ -27,4 +27,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api/default-api"), exports);
30
+ __exportStar(require("./api/finances-api"), exports);
@@ -21,5 +21,7 @@ exports.RelatedIdentifierRelatedIdentifierNameEnum = {
21
21
  RefundId: 'REFUND_ID',
22
22
  InvoiceId: 'INVOICE_ID',
23
23
  DisbursementId: 'DISBURSEMENT_ID',
24
- TransferId: 'TRANSFER_ID'
24
+ TransferId: 'TRANSFER_ID',
25
+ DeferredTransactionId: 'DEFERRED_TRANSACTION_ID',
26
+ ReleaseTransactionId: 'RELEASE_TRANSACTION_ID'
25
27
  };
@@ -12,7 +12,7 @@ exports.clientRateLimits = [
12
12
  burst: 10,
13
13
  },
14
14
  ];
15
- class FinancesApiClient extends api_model_1.DefaultApi {
15
+ class FinancesApiClient extends api_model_1.FinancesApi {
16
16
  constructor(configuration) {
17
17
  const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
18
18
  super(new api_model_1.Configuration(), endpoint, axios);
@@ -18,10 +18,10 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, creat
18
18
  // @ts-ignore
19
19
  import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
20
  /**
21
- * DefaultApi - axios parameter creator
21
+ * FinancesApi - axios parameter creator
22
22
  * @export
23
23
  */
24
- export const DefaultApiAxiosParamCreator = function (configuration) {
24
+ export const FinancesApiAxiosParamCreator = function (configuration) {
25
25
  return {
26
26
  /**
27
27
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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).
@@ -72,11 +72,11 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
72
72
  };
73
73
  };
74
74
  /**
75
- * DefaultApi - functional programming interface
75
+ * FinancesApi - functional programming interface
76
76
  * @export
77
77
  */
78
- export const DefaultApiFp = function (configuration) {
79
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
78
+ export const FinancesApiFp = function (configuration) {
79
+ const localVarAxiosParamCreator = FinancesApiAxiosParamCreator(configuration);
80
80
  return {
81
81
  /**
82
82
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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,21 +90,21 @@ export const DefaultApiFp = function (configuration) {
90
90
  async listTransactions(postedAfter, postedBefore, marketplaceId, nextToken, options) {
91
91
  const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(postedAfter, postedBefore, marketplaceId, nextToken, options);
92
92
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
93
- const localVarOperationServerBasePath = operationServerMap['DefaultApi.listTransactions']?.[localVarOperationServerIndex]?.url;
93
+ const localVarOperationServerBasePath = operationServerMap['FinancesApi.listTransactions']?.[localVarOperationServerIndex]?.url;
94
94
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
95
95
  },
96
96
  };
97
97
  };
98
98
  /**
99
- * DefaultApi - factory interface
99
+ * FinancesApi - factory interface
100
100
  * @export
101
101
  */
102
- export const DefaultApiFactory = function (configuration, basePath, axios) {
103
- const localVarFp = DefaultApiFp(configuration);
102
+ export const FinancesApiFactory = function (configuration, basePath, axios) {
103
+ const localVarFp = FinancesApiFp(configuration);
104
104
  return {
105
105
  /**
106
106
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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).
107
- * @param {DefaultApiListTransactionsRequest} requestParameters Request parameters.
107
+ * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
110
  */
@@ -114,20 +114,20 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
114
114
  };
115
115
  };
116
116
  /**
117
- * DefaultApi - object-oriented interface
117
+ * FinancesApi - object-oriented interface
118
118
  * @export
119
- * @class DefaultApi
119
+ * @class FinancesApi
120
120
  * @extends {BaseAPI}
121
121
  */
122
- export class DefaultApi extends BaseAPI {
122
+ export class FinancesApi extends BaseAPI {
123
123
  /**
124
124
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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).
125
- * @param {DefaultApiListTransactionsRequest} requestParameters Request parameters.
125
+ * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
126
126
  * @param {*} [options] Override http request option.
127
127
  * @throws {RequiredError}
128
- * @memberof DefaultApi
128
+ * @memberof FinancesApi
129
129
  */
130
130
  listTransactions(requestParameters, options) {
131
- return DefaultApiFp(this.configuration).listTransactions(requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.marketplaceId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
131
+ return FinancesApiFp(this.configuration).listTransactions(requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.marketplaceId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
132
132
  }
133
133
  }
@@ -11,4 +11,4 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export * from './api/default-api';
14
+ export * from './api/finances-api';
@@ -18,5 +18,7 @@ export const RelatedIdentifierRelatedIdentifierNameEnum = {
18
18
  RefundId: 'REFUND_ID',
19
19
  InvoiceId: 'INVOICE_ID',
20
20
  DisbursementId: 'DISBURSEMENT_ID',
21
- TransferId: 'TRANSFER_ID'
21
+ TransferId: 'TRANSFER_ID',
22
+ DeferredTransactionId: 'DEFERRED_TRANSACTION_ID',
23
+ ReleaseTransactionId: 'RELEASE_TRANSACTION_ID'
22
24
  };
package/dist/es/client.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createAxiosInstance } from '@sp-api-sdk/common';
2
- import { Configuration, DefaultApi } from './api-model';
2
+ import { Configuration, FinancesApi } from './api-model';
3
3
  export const clientRateLimits = [
4
4
  {
5
5
  method: 'get',
@@ -9,7 +9,7 @@ export const clientRateLimits = [
9
9
  burst: 10,
10
10
  },
11
11
  ];
12
- export class FinancesApiClient extends DefaultApi {
12
+ export class FinancesApiClient extends FinancesApi {
13
13
  constructor(configuration) {
14
14
  const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
15
15
  super(new Configuration(), endpoint, axios);
@@ -15,10 +15,10 @@ import globalAxios from 'axios';
15
15
  import { type RequestArgs, BaseAPI } from '../base';
16
16
  import type { ListTransactionsResponse } from '../models';
17
17
  /**
18
- * DefaultApi - axios parameter creator
18
+ * FinancesApi - axios parameter creator
19
19
  * @export
20
20
  */
21
- export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ export declare const FinancesApiAxiosParamCreator: (configuration?: Configuration) => {
22
22
  /**
23
23
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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).
24
24
  * @param {string} postedAfter A date used for selecting transactions posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format.
@@ -31,10 +31,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
31
31
  listTransactions: (postedAfter: string, postedBefore?: string, marketplaceId?: string, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
32
  };
33
33
  /**
34
- * DefaultApi - functional programming interface
34
+ * FinancesApi - functional programming interface
35
35
  * @export
36
36
  */
37
- export declare const DefaultApiFp: (configuration?: Configuration) => {
37
+ export declare const FinancesApiFp: (configuration?: Configuration) => {
38
38
  /**
39
39
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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).
40
40
  * @param {string} postedAfter A date used for selecting transactions posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format.
@@ -47,62 +47,62 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
47
47
  listTransactions(postedAfter: string, postedBefore?: string, marketplaceId?: string, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactionsResponse>>;
48
48
  };
49
49
  /**
50
- * DefaultApi - factory interface
50
+ * FinancesApi - factory interface
51
51
  * @export
52
52
  */
53
- export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
53
+ export declare const FinancesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
54
  /**
55
55
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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
- * @param {DefaultApiListTransactionsRequest} requestParameters Request parameters.
56
+ * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
57
57
  * @param {*} [options] Override http request option.
58
58
  * @throws {RequiredError}
59
59
  */
60
- listTransactions(requestParameters: DefaultApiListTransactionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTransactionsResponse>;
60
+ listTransactions(requestParameters: FinancesApiListTransactionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTransactionsResponse>;
61
61
  };
62
62
  /**
63
- * Request parameters for listTransactions operation in DefaultApi.
63
+ * Request parameters for listTransactions operation in FinancesApi.
64
64
  * @export
65
- * @interface DefaultApiListTransactionsRequest
65
+ * @interface FinancesApiListTransactionsRequest
66
66
  */
67
- export interface DefaultApiListTransactionsRequest {
67
+ export interface FinancesApiListTransactionsRequest {
68
68
  /**
69
69
  * A date used for selecting transactions posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format.
70
70
  * @type {string}
71
- * @memberof DefaultApiListTransactions
71
+ * @memberof FinancesApiListTransactions
72
72
  */
73
73
  readonly postedAfter: string;
74
74
  /**
75
75
  * A date used for selecting transactions posted before (but not at) a specified time. The date-time must be later than PostedAfter and no later than two minutes before the request was submitted, in ISO 8601 date time format. If PostedAfter and PostedBefore are more than 180 days apart, no transactions are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
76
76
  * @type {string}
77
- * @memberof DefaultApiListTransactions
77
+ * @memberof FinancesApiListTransactions
78
78
  */
79
79
  readonly postedBefore?: string;
80
80
  /**
81
81
  * A string token used to select Marketplace ID.
82
82
  * @type {string}
83
- * @memberof DefaultApiListTransactions
83
+ * @memberof FinancesApiListTransactions
84
84
  */
85
85
  readonly marketplaceId?: string;
86
86
  /**
87
87
  * A string token returned in the response of your previous request.
88
88
  * @type {string}
89
- * @memberof DefaultApiListTransactions
89
+ * @memberof FinancesApiListTransactions
90
90
  */
91
91
  readonly nextToken?: string;
92
92
  }
93
93
  /**
94
- * DefaultApi - object-oriented interface
94
+ * FinancesApi - object-oriented interface
95
95
  * @export
96
- * @class DefaultApi
96
+ * @class FinancesApi
97
97
  * @extends {BaseAPI}
98
98
  */
99
- export declare class DefaultApi extends BaseAPI {
99
+ export declare class FinancesApi extends BaseAPI {
100
100
  /**
101
101
  * Returns transactions for the given parameters. It may take up to 48 hours for transactions to appear in your transaction events. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | 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
- * @param {DefaultApiListTransactionsRequest} requestParameters Request parameters.
102
+ * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
103
103
  * @param {*} [options] Override http request option.
104
104
  * @throws {RequiredError}
105
- * @memberof DefaultApi
105
+ * @memberof FinancesApi
106
106
  */
107
- listTransactions(requestParameters: DefaultApiListTransactionsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListTransactionsResponse, any>>;
107
+ listTransactions(requestParameters: FinancesApiListTransactionsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ListTransactionsResponse, any>>;
108
108
  }
@@ -9,4 +9,4 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- export * from './api/default-api';
12
+ export * from './api/finances-api';
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface DeferredContext {
18
18
  /**
19
- * Deferral policy applied on the transaction. Example: \'B2B\',\'DD7\'
19
+ * The deferral policy applied to the transaction. **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
20
20
  * @type {string}
21
21
  * @memberof DeferredContext
22
22
  */
@@ -27,10 +27,4 @@ export interface DeferredContext {
27
27
  * @memberof DeferredContext
28
28
  */
29
29
  'maturityDate'?: string;
30
- /**
31
- * Status of the transaction. Example: \'HOLD\',\'RELEASE\'
32
- * @type {string}
33
- * @memberof DeferredContext
34
- */
35
- 'deferralStatus'?: string;
36
30
  }
@@ -36,5 +36,7 @@ export declare const RelatedIdentifierRelatedIdentifierNameEnum: {
36
36
  readonly InvoiceId: "INVOICE_ID";
37
37
  readonly DisbursementId: "DISBURSEMENT_ID";
38
38
  readonly TransferId: "TRANSFER_ID";
39
+ readonly DeferredTransactionId: "DEFERRED_TRANSACTION_ID";
40
+ readonly ReleaseTransactionId: "RELEASE_TRANSACTION_ID";
39
41
  };
40
42
  export type RelatedIdentifierRelatedIdentifierNameEnum = typeof RelatedIdentifierRelatedIdentifierNameEnum[keyof typeof RelatedIdentifierRelatedIdentifierNameEnum];
@@ -47,7 +47,7 @@ export interface Transaction {
47
47
  */
48
48
  'transactionId'?: string;
49
49
  /**
50
- * The status for the transaction. Possible values: * Deferred *Released
50
+ * The status of the transaction. **Possible values:** * `DEFERRED`: the transaction is currently deferred. * `RELEASED`: the transaction is currently released. * `DEFERRED_RELEASED`: the transaction was deferred in the past, but is now released. Deferred transactions will have their status updated to `DEFERRED_RELEASED` when released.
51
51
  * @type {string}
52
52
  * @memberof Transaction
53
53
  */
@@ -1,6 +1,6 @@
1
1
  import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
2
- import { DefaultApi } from './api-model';
2
+ import { FinancesApi } from './api-model';
3
3
  export declare const clientRateLimits: RateLimit[];
4
- export declare class FinancesApiClient extends DefaultApi {
4
+ export declare class FinancesApiClient extends FinancesApi {
5
5
  constructor(configuration: ClientConfiguration);
6
6
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/finances-api-2024-06-19",
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 or date range without having to wait until a statement period closes.",
5
- "version": "2.1.2",
5
+ "version": "3.0.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.1.13",
22
- "axios": "^1.8.4"
21
+ "@sp-api-sdk/common": "2.1.14",
22
+ "axios": "^1.9.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": "287508bdc050a25bac20889ed0afb6d3f6518cd6"
43
+ "gitHead": "773f45c3f4aab28e0bd9f6033045988800d7f258"
44
44
  }