@sp-api-sdk/finances-api-v0 1.10.6 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/api-model/api/default-api.js +34 -18
- package/dist/cjs/src/api-model/base.js +5 -1
- package/dist/cjs/src/api-model/configuration.js +49 -0
- package/dist/cjs/src/api-model/models/adhoc-disbursement-event.js +15 -0
- package/dist/cjs/src/api-model/models/capacity-reservation-billing-event.js +15 -0
- package/dist/cjs/src/api-model/models/charge-refund-event.js +15 -0
- package/dist/cjs/src/api-model/models/charge-refund-transaction.js +15 -0
- package/dist/cjs/src/api-model/models/failed-adhoc-disbursement-event-list.js +15 -0
- package/dist/cjs/src/api-model/models/index.js +7 -0
- package/dist/cjs/src/api-model/models/tdsreimbursement-event.js +15 -0
- package/dist/cjs/src/api-model/models/value-added-service-charge-event-list.js +15 -0
- package/dist/es/src/api-model/api/default-api.js +34 -18
- package/dist/es/src/api-model/base.js +5 -1
- package/dist/es/src/api-model/configuration.js +49 -0
- package/dist/es/src/api-model/models/adhoc-disbursement-event.js +14 -0
- package/dist/es/src/api-model/models/capacity-reservation-billing-event.js +14 -0
- package/dist/es/src/api-model/models/charge-refund-event.js +14 -0
- package/dist/es/src/api-model/models/charge-refund-transaction.js +14 -0
- package/dist/es/src/api-model/models/failed-adhoc-disbursement-event-list.js +14 -0
- package/dist/es/src/api-model/models/index.js +7 -0
- package/dist/es/src/api-model/models/tdsreimbursement-event.js +14 -0
- package/dist/es/src/api-model/models/value-added-service-charge-event-list.js +14 -0
- package/dist/types/src/api-model/api/default-api.d.ts +37 -19
- package/dist/types/src/api-model/models/adhoc-disbursement-event.d.ts +43 -0
- package/dist/types/src/api-model/models/capacity-reservation-billing-event.d.ts +43 -0
- package/dist/types/src/api-model/models/charge-refund-event.d.ts +43 -0
- package/dist/types/src/api-model/models/charge-refund-transaction.d.ts +31 -0
- package/dist/types/src/api-model/models/failed-adhoc-disbursement-event-list.d.ts +61 -0
- package/dist/types/src/api-model/models/financial-events.d.ts +52 -10
- package/dist/types/src/api-model/models/index.d.ts +7 -0
- package/dist/types/src/api-model/models/tdsreimbursement-event.d.ts +37 -0
- package/dist/types/src/api-model/models/value-added-service-charge-event-list.d.ts +43 -0
- package/package.json +3 -3
|
@@ -29,7 +29,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
29
29
|
return {
|
|
30
30
|
/**
|
|
31
31
|
* Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
32
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
32
|
+
* @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 \'InvalidInput\'.
|
|
33
33
|
* @param {string} [financialEventGroupStartedBefore] A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned.
|
|
34
34
|
* @param {string} [financialEventGroupStartedAfter] A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted.
|
|
35
35
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -73,7 +73,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
73
73
|
},
|
|
74
74
|
/**
|
|
75
75
|
* Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
76
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
76
|
+
* @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 \'InvalidInput\'.
|
|
77
77
|
* @param {string} [postedAfter] A date used for selecting financial events 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.
|
|
78
78
|
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
|
|
79
79
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -118,12 +118,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
118
118
|
/**
|
|
119
119
|
* Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
120
120
|
* @param {string} eventGroupId The identifier of the financial event group to which the events belong.
|
|
121
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
121
|
+
* @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 \'InvalidInput\'.
|
|
122
|
+
* @param {string} [postedAfter] A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format.
|
|
123
|
+
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes.
|
|
122
124
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
123
125
|
* @param {*} [options] Override http request option.
|
|
124
126
|
* @throws {RequiredError}
|
|
125
127
|
*/
|
|
126
|
-
listFinancialEventsByGroupId: async (eventGroupId, maxResultsPerPage, nextToken, options = {}) => {
|
|
128
|
+
listFinancialEventsByGroupId: async (eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options = {}) => {
|
|
127
129
|
// verify required parameter 'eventGroupId' is not null or undefined
|
|
128
130
|
(0, common_1.assertParamExists)('listFinancialEventsByGroupId', 'eventGroupId', eventGroupId);
|
|
129
131
|
const localVarPath = `/finances/v0/financialEventGroups/{eventGroupId}/financialEvents`
|
|
@@ -140,6 +142,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
140
142
|
if (maxResultsPerPage !== undefined) {
|
|
141
143
|
localVarQueryParameter['MaxResultsPerPage'] = maxResultsPerPage;
|
|
142
144
|
}
|
|
145
|
+
if (postedAfter !== undefined) {
|
|
146
|
+
localVarQueryParameter['PostedAfter'] = (postedAfter instanceof Date) ?
|
|
147
|
+
postedAfter.toISOString() :
|
|
148
|
+
postedAfter;
|
|
149
|
+
}
|
|
150
|
+
if (postedBefore !== undefined) {
|
|
151
|
+
localVarQueryParameter['PostedBefore'] = (postedBefore instanceof Date) ?
|
|
152
|
+
postedBefore.toISOString() :
|
|
153
|
+
postedBefore;
|
|
154
|
+
}
|
|
143
155
|
if (nextToken !== undefined) {
|
|
144
156
|
localVarQueryParameter['NextToken'] = nextToken;
|
|
145
157
|
}
|
|
@@ -154,7 +166,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
154
166
|
/**
|
|
155
167
|
* Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
156
168
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
157
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
169
|
+
* @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 \'InvalidInput\'.
|
|
158
170
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
159
171
|
* @param {*} [options] Override http request option.
|
|
160
172
|
* @throws {RequiredError}
|
|
@@ -199,7 +211,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
199
211
|
return {
|
|
200
212
|
/**
|
|
201
213
|
* Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
202
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
214
|
+
* @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 \'InvalidInput\'.
|
|
203
215
|
* @param {string} [financialEventGroupStartedBefore] A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned.
|
|
204
216
|
* @param {string} [financialEventGroupStartedAfter] A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted.
|
|
205
217
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -212,7 +224,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
212
224
|
},
|
|
213
225
|
/**
|
|
214
226
|
* Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
215
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
227
|
+
* @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 \'InvalidInput\'.
|
|
216
228
|
* @param {string} [postedAfter] A date used for selecting financial events 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.
|
|
217
229
|
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
|
|
218
230
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -226,19 +238,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
226
238
|
/**
|
|
227
239
|
* Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
228
240
|
* @param {string} eventGroupId The identifier of the financial event group to which the events belong.
|
|
229
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
241
|
+
* @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 \'InvalidInput\'.
|
|
242
|
+
* @param {string} [postedAfter] A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format.
|
|
243
|
+
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes.
|
|
230
244
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
231
245
|
* @param {*} [options] Override http request option.
|
|
232
246
|
* @throws {RequiredError}
|
|
233
247
|
*/
|
|
234
|
-
async listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, nextToken, options) {
|
|
235
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, nextToken, options);
|
|
248
|
+
async listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options) {
|
|
249
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options);
|
|
236
250
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
237
251
|
},
|
|
238
252
|
/**
|
|
239
253
|
* Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
240
254
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
241
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
255
|
+
* @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 \'InvalidInput\'.
|
|
242
256
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
243
257
|
* @param {*} [options] Override http request option.
|
|
244
258
|
* @throws {RequiredError}
|
|
@@ -259,7 +273,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
259
273
|
return {
|
|
260
274
|
/**
|
|
261
275
|
* Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
262
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
276
|
+
* @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 \'InvalidInput\'.
|
|
263
277
|
* @param {string} [financialEventGroupStartedBefore] A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned.
|
|
264
278
|
* @param {string} [financialEventGroupStartedAfter] A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted.
|
|
265
279
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -271,7 +285,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
271
285
|
},
|
|
272
286
|
/**
|
|
273
287
|
* Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
274
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
288
|
+
* @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 \'InvalidInput\'.
|
|
275
289
|
* @param {string} [postedAfter] A date used for selecting financial events 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.
|
|
276
290
|
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
|
|
277
291
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -284,18 +298,20 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
284
298
|
/**
|
|
285
299
|
* Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
286
300
|
* @param {string} eventGroupId The identifier of the financial event group to which the events belong.
|
|
287
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
301
|
+
* @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 \'InvalidInput\'.
|
|
302
|
+
* @param {string} [postedAfter] A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format.
|
|
303
|
+
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes.
|
|
288
304
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
289
305
|
* @param {*} [options] Override http request option.
|
|
290
306
|
* @throws {RequiredError}
|
|
291
307
|
*/
|
|
292
|
-
listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, nextToken, options) {
|
|
293
|
-
return localVarFp.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, nextToken, options).then((request) => request(axios, basePath));
|
|
308
|
+
listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options) {
|
|
309
|
+
return localVarFp.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options).then((request) => request(axios, basePath));
|
|
294
310
|
},
|
|
295
311
|
/**
|
|
296
312
|
* Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
297
313
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
298
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
314
|
+
* @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 \'InvalidInput\'.
|
|
299
315
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
300
316
|
* @param {*} [options] Override http request option.
|
|
301
317
|
* @throws {RequiredError}
|
|
@@ -341,7 +357,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
341
357
|
* @memberof DefaultApi
|
|
342
358
|
*/
|
|
343
359
|
listFinancialEventsByGroupId(requestParameters, options) {
|
|
344
|
-
return (0, exports.DefaultApiFp)(this.configuration).listFinancialEventsByGroupId(requestParameters.eventGroupId, requestParameters.maxResultsPerPage, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
360
|
+
return (0, exports.DefaultApiFp)(this.configuration).listFinancialEventsByGroupId(requestParameters.eventGroupId, requestParameters.maxResultsPerPage, requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
345
361
|
}
|
|
346
362
|
/**
|
|
347
363
|
* Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
@@ -35,6 +35,9 @@ exports.COLLECTION_FORMATS = {
|
|
|
35
35
|
* @class BaseAPI
|
|
36
36
|
*/
|
|
37
37
|
class BaseAPI {
|
|
38
|
+
basePath;
|
|
39
|
+
axios;
|
|
40
|
+
configuration;
|
|
38
41
|
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
39
42
|
this.basePath = basePath;
|
|
40
43
|
this.axios = axios;
|
|
@@ -53,10 +56,11 @@ exports.BaseAPI = BaseAPI;
|
|
|
53
56
|
* @extends {Error}
|
|
54
57
|
*/
|
|
55
58
|
class RequiredError extends Error {
|
|
59
|
+
field;
|
|
60
|
+
name = "RequiredError";
|
|
56
61
|
constructor(field, msg) {
|
|
57
62
|
super(msg);
|
|
58
63
|
this.field = field;
|
|
59
|
-
this.name = "RequiredError";
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
exports.RequiredError = RequiredError;
|
|
@@ -15,6 +15,55 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Configuration = void 0;
|
|
17
17
|
class Configuration {
|
|
18
|
+
/**
|
|
19
|
+
* parameter for apiKey security
|
|
20
|
+
* @param name security name
|
|
21
|
+
* @memberof Configuration
|
|
22
|
+
*/
|
|
23
|
+
apiKey;
|
|
24
|
+
/**
|
|
25
|
+
* parameter for basic security
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Configuration
|
|
29
|
+
*/
|
|
30
|
+
username;
|
|
31
|
+
/**
|
|
32
|
+
* parameter for basic security
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Configuration
|
|
36
|
+
*/
|
|
37
|
+
password;
|
|
38
|
+
/**
|
|
39
|
+
* parameter for oauth2 security
|
|
40
|
+
* @param name security name
|
|
41
|
+
* @param scopes oauth2 scope
|
|
42
|
+
* @memberof Configuration
|
|
43
|
+
*/
|
|
44
|
+
accessToken;
|
|
45
|
+
/**
|
|
46
|
+
* override base path
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Configuration
|
|
50
|
+
*/
|
|
51
|
+
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* base options for axios calls
|
|
54
|
+
*
|
|
55
|
+
* @type {any}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
baseOptions;
|
|
59
|
+
/**
|
|
60
|
+
* The FormData constructor that will be used to create multipart form data
|
|
61
|
+
* requests. You can inject this here so that execution environments that
|
|
62
|
+
* do not support the FormData class can still run the generated client.
|
|
63
|
+
*
|
|
64
|
+
* @type {new () => FormData}
|
|
65
|
+
*/
|
|
66
|
+
formDataCtor;
|
|
18
67
|
constructor(param = {}) {
|
|
19
68
|
this.apiKey = param.apiKey;
|
|
20
69
|
this.username = param.username;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Finances
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Finances
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Finances
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Finances
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Finances
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./adhoc-disbursement-event"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./adjustment-event"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./adjustment-item"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./affordability-expense-event"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./capacity-reservation-billing-event"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./charge-component"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./charge-instrument"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./charge-refund-event"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./charge-refund-transaction"), exports);
|
|
9
13
|
tslib_1.__exportStar(require("./coupon-payment-event"), exports);
|
|
10
14
|
tslib_1.__exportStar(require("./currency"), exports);
|
|
11
15
|
tslib_1.__exportStar(require("./debt-recovery-event"), exports);
|
|
12
16
|
tslib_1.__exportStar(require("./debt-recovery-item"), exports);
|
|
13
17
|
tslib_1.__exportStar(require("./direct-payment"), exports);
|
|
14
18
|
tslib_1.__exportStar(require("./fbaliquidation-event"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./failed-adhoc-disbursement-event-list"), exports);
|
|
15
20
|
tslib_1.__exportStar(require("./fee-component"), exports);
|
|
16
21
|
tslib_1.__exportStar(require("./financial-event-group"), exports);
|
|
17
22
|
tslib_1.__exportStar(require("./financial-events"), exports);
|
|
@@ -40,7 +45,9 @@ tslib_1.__exportStar(require("./service-fee-event"), exports);
|
|
|
40
45
|
tslib_1.__exportStar(require("./shipment-event"), exports);
|
|
41
46
|
tslib_1.__exportStar(require("./shipment-item"), exports);
|
|
42
47
|
tslib_1.__exportStar(require("./solution-provider-credit-event"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./tdsreimbursement-event"), exports);
|
|
43
49
|
tslib_1.__exportStar(require("./tax-withheld-component"), exports);
|
|
44
50
|
tslib_1.__exportStar(require("./tax-withholding-event"), exports);
|
|
45
51
|
tslib_1.__exportStar(require("./tax-withholding-period"), exports);
|
|
46
52
|
tslib_1.__exportStar(require("./trial-shipment-event"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./value-added-service-charge-event-list"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Finances
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Finances
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -25,7 +25,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
27
|
* Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
28
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
28
|
+
* @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 \'InvalidInput\'.
|
|
29
29
|
* @param {string} [financialEventGroupStartedBefore] A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned.
|
|
30
30
|
* @param {string} [financialEventGroupStartedAfter] A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted.
|
|
31
31
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -69,7 +69,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
69
69
|
},
|
|
70
70
|
/**
|
|
71
71
|
* Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
72
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
72
|
+
* @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 \'InvalidInput\'.
|
|
73
73
|
* @param {string} [postedAfter] A date used for selecting financial events 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.
|
|
74
74
|
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
|
|
75
75
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -114,12 +114,14 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
114
114
|
/**
|
|
115
115
|
* Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
116
116
|
* @param {string} eventGroupId The identifier of the financial event group to which the events belong.
|
|
117
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
117
|
+
* @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 \'InvalidInput\'.
|
|
118
|
+
* @param {string} [postedAfter] A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format.
|
|
119
|
+
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes.
|
|
118
120
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
119
121
|
* @param {*} [options] Override http request option.
|
|
120
122
|
* @throws {RequiredError}
|
|
121
123
|
*/
|
|
122
|
-
listFinancialEventsByGroupId: async (eventGroupId, maxResultsPerPage, nextToken, options = {}) => {
|
|
124
|
+
listFinancialEventsByGroupId: async (eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options = {}) => {
|
|
123
125
|
// verify required parameter 'eventGroupId' is not null or undefined
|
|
124
126
|
assertParamExists('listFinancialEventsByGroupId', 'eventGroupId', eventGroupId);
|
|
125
127
|
const localVarPath = `/finances/v0/financialEventGroups/{eventGroupId}/financialEvents`
|
|
@@ -136,6 +138,16 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
136
138
|
if (maxResultsPerPage !== undefined) {
|
|
137
139
|
localVarQueryParameter['MaxResultsPerPage'] = maxResultsPerPage;
|
|
138
140
|
}
|
|
141
|
+
if (postedAfter !== undefined) {
|
|
142
|
+
localVarQueryParameter['PostedAfter'] = (postedAfter instanceof Date) ?
|
|
143
|
+
postedAfter.toISOString() :
|
|
144
|
+
postedAfter;
|
|
145
|
+
}
|
|
146
|
+
if (postedBefore !== undefined) {
|
|
147
|
+
localVarQueryParameter['PostedBefore'] = (postedBefore instanceof Date) ?
|
|
148
|
+
postedBefore.toISOString() :
|
|
149
|
+
postedBefore;
|
|
150
|
+
}
|
|
139
151
|
if (nextToken !== undefined) {
|
|
140
152
|
localVarQueryParameter['NextToken'] = nextToken;
|
|
141
153
|
}
|
|
@@ -150,7 +162,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
150
162
|
/**
|
|
151
163
|
* Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
152
164
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
153
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
165
|
+
* @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 \'InvalidInput\'.
|
|
154
166
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
155
167
|
* @param {*} [options] Override http request option.
|
|
156
168
|
* @throws {RequiredError}
|
|
@@ -194,7 +206,7 @@ export const DefaultApiFp = function (configuration) {
|
|
|
194
206
|
return {
|
|
195
207
|
/**
|
|
196
208
|
* Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
197
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
209
|
+
* @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 \'InvalidInput\'.
|
|
198
210
|
* @param {string} [financialEventGroupStartedBefore] A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned.
|
|
199
211
|
* @param {string} [financialEventGroupStartedAfter] A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted.
|
|
200
212
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -207,7 +219,7 @@ export const DefaultApiFp = function (configuration) {
|
|
|
207
219
|
},
|
|
208
220
|
/**
|
|
209
221
|
* Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
210
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
222
|
+
* @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 \'InvalidInput\'.
|
|
211
223
|
* @param {string} [postedAfter] A date used for selecting financial events 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.
|
|
212
224
|
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
|
|
213
225
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -221,19 +233,21 @@ export const DefaultApiFp = function (configuration) {
|
|
|
221
233
|
/**
|
|
222
234
|
* Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
223
235
|
* @param {string} eventGroupId The identifier of the financial event group to which the events belong.
|
|
224
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
236
|
+
* @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 \'InvalidInput\'.
|
|
237
|
+
* @param {string} [postedAfter] A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format.
|
|
238
|
+
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes.
|
|
225
239
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
226
240
|
* @param {*} [options] Override http request option.
|
|
227
241
|
* @throws {RequiredError}
|
|
228
242
|
*/
|
|
229
|
-
async listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, nextToken, options) {
|
|
230
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, nextToken, options);
|
|
243
|
+
async listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options) {
|
|
244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options);
|
|
231
245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
232
246
|
},
|
|
233
247
|
/**
|
|
234
248
|
* Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
235
249
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
236
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
250
|
+
* @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 \'InvalidInput\'.
|
|
237
251
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
238
252
|
* @param {*} [options] Override http request option.
|
|
239
253
|
* @throws {RequiredError}
|
|
@@ -253,7 +267,7 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
253
267
|
return {
|
|
254
268
|
/**
|
|
255
269
|
* Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
256
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
270
|
+
* @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 \'InvalidInput\'.
|
|
257
271
|
* @param {string} [financialEventGroupStartedBefore] A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned.
|
|
258
272
|
* @param {string} [financialEventGroupStartedAfter] A date used for selecting financial event groups that opened after (or at) a specified date and time, in ISO 8601 format. The date-time must be no later than two minutes before the request was submitted.
|
|
259
273
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -265,7 +279,7 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
265
279
|
},
|
|
266
280
|
/**
|
|
267
281
|
* Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
268
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
282
|
+
* @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 \'InvalidInput\'.
|
|
269
283
|
* @param {string} [postedAfter] A date used for selecting financial events 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.
|
|
270
284
|
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the PostedAfter parameter if you specify the PostedBefore parameter. Default: Now minus two minutes.
|
|
271
285
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
@@ -278,18 +292,20 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
278
292
|
/**
|
|
279
293
|
* Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
280
294
|
* @param {string} eventGroupId The identifier of the financial event group to which the events belong.
|
|
281
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
295
|
+
* @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 \'InvalidInput\'.
|
|
296
|
+
* @param {string} [postedAfter] A date used for selecting financial events posted after (or at) a specified time. The date-time **must** be more than two minutes before the time of the request, in ISO 8601 date time format.
|
|
297
|
+
* @param {string} [postedBefore] A date used for selecting financial events 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 financial events are returned. You must specify the `PostedAfter` parameter if you specify the `PostedBefore` parameter. Default: Now minus two minutes.
|
|
282
298
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
283
299
|
* @param {*} [options] Override http request option.
|
|
284
300
|
* @throws {RequiredError}
|
|
285
301
|
*/
|
|
286
|
-
listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, nextToken, options) {
|
|
287
|
-
return localVarFp.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, nextToken, options).then((request) => request(axios, basePath));
|
|
302
|
+
listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options) {
|
|
303
|
+
return localVarFp.listFinancialEventsByGroupId(eventGroupId, maxResultsPerPage, postedAfter, postedBefore, nextToken, options).then((request) => request(axios, basePath));
|
|
288
304
|
},
|
|
289
305
|
/**
|
|
290
306
|
* Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
291
307
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
292
|
-
* @param {number} [maxResultsPerPage] The maximum number of results to return per page.
|
|
308
|
+
* @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 \'InvalidInput\'.
|
|
293
309
|
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
294
310
|
* @param {*} [options] Override http request option.
|
|
295
311
|
* @throws {RequiredError}
|
|
@@ -334,7 +350,7 @@ export class DefaultApi extends BaseAPI {
|
|
|
334
350
|
* @memberof DefaultApi
|
|
335
351
|
*/
|
|
336
352
|
listFinancialEventsByGroupId(requestParameters, options) {
|
|
337
|
-
return DefaultApiFp(this.configuration).listFinancialEventsByGroupId(requestParameters.eventGroupId, requestParameters.maxResultsPerPage, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
353
|
+
return DefaultApiFp(this.configuration).listFinancialEventsByGroupId(requestParameters.eventGroupId, requestParameters.maxResultsPerPage, requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
338
354
|
}
|
|
339
355
|
/**
|
|
340
356
|
* Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
@@ -31,6 +31,9 @@ export const COLLECTION_FORMATS = {
|
|
|
31
31
|
* @class BaseAPI
|
|
32
32
|
*/
|
|
33
33
|
export class BaseAPI {
|
|
34
|
+
basePath;
|
|
35
|
+
axios;
|
|
36
|
+
configuration;
|
|
34
37
|
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
35
38
|
this.basePath = basePath;
|
|
36
39
|
this.axios = axios;
|
|
@@ -48,9 +51,10 @@ export class BaseAPI {
|
|
|
48
51
|
* @extends {Error}
|
|
49
52
|
*/
|
|
50
53
|
export class RequiredError extends Error {
|
|
54
|
+
field;
|
|
55
|
+
name = "RequiredError";
|
|
51
56
|
constructor(field, msg) {
|
|
52
57
|
super(msg);
|
|
53
58
|
this.field = field;
|
|
54
|
-
this.name = "RequiredError";
|
|
55
59
|
}
|
|
56
60
|
}
|