@sp-api-sdk/finances-api-2024-06-19 3.3.4 → 4.1.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 (95) hide show
  1. package/README.md +7 -8
  2. package/dist/index.cjs +307 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +730 -0
  5. package/dist/index.d.ts +730 -0
  6. package/dist/index.js +275 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +26 -12
  9. package/dist/cjs/api-model/api/finances-api.js +0 -150
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/amazon-pay-context.js +0 -15
  16. package/dist/cjs/api-model/models/breakdown.js +0 -15
  17. package/dist/cjs/api-model/models/business-context.js +0 -19
  18. package/dist/cjs/api-model/models/context-all-of.js +0 -15
  19. package/dist/cjs/api-model/models/context.js +0 -15
  20. package/dist/cjs/api-model/models/currency.js +0 -15
  21. package/dist/cjs/api-model/models/deferred-context.js +0 -15
  22. package/dist/cjs/api-model/models/error-list.js +0 -15
  23. package/dist/cjs/api-model/models/index.js +0 -36
  24. package/dist/cjs/api-model/models/item-related-identifier.js +0 -22
  25. package/dist/cjs/api-model/models/item.js +0 -15
  26. package/dist/cjs/api-model/models/list-transactions-response.js +0 -15
  27. package/dist/cjs/api-model/models/marketplace-details.js +0 -15
  28. package/dist/cjs/api-model/models/model-error.js +0 -15
  29. package/dist/cjs/api-model/models/payments-context.js +0 -15
  30. package/dist/cjs/api-model/models/product-context.js +0 -15
  31. package/dist/cjs/api-model/models/related-identifier.js +0 -28
  32. package/dist/cjs/api-model/models/selling-partner-metadata.js +0 -15
  33. package/dist/cjs/api-model/models/time-range-context.js +0 -15
  34. package/dist/cjs/api-model/models/transaction.js +0 -15
  35. package/dist/cjs/api-model/models/transactions-payload.js +0 -15
  36. package/dist/cjs/client.js +0 -21
  37. package/dist/cjs/index.js +0 -19
  38. package/dist/es/api-model/api/finances-api.js +0 -140
  39. package/dist/es/api-model/api.js +0 -14
  40. package/dist/es/api-model/base.js +0 -44
  41. package/dist/es/api-model/common.js +0 -110
  42. package/dist/es/api-model/configuration.js +0 -94
  43. package/dist/es/api-model/index.js +0 -16
  44. package/dist/es/api-model/models/amazon-pay-context.js +0 -14
  45. package/dist/es/api-model/models/breakdown.js +0 -14
  46. package/dist/es/api-model/models/business-context.js +0 -16
  47. package/dist/es/api-model/models/context-all-of.js +0 -14
  48. package/dist/es/api-model/models/context.js +0 -14
  49. package/dist/es/api-model/models/currency.js +0 -14
  50. package/dist/es/api-model/models/deferred-context.js +0 -14
  51. package/dist/es/api-model/models/error-list.js +0 -14
  52. package/dist/es/api-model/models/index.js +0 -20
  53. package/dist/es/api-model/models/item-related-identifier.js +0 -19
  54. package/dist/es/api-model/models/item.js +0 -14
  55. package/dist/es/api-model/models/list-transactions-response.js +0 -14
  56. package/dist/es/api-model/models/marketplace-details.js +0 -14
  57. package/dist/es/api-model/models/model-error.js +0 -14
  58. package/dist/es/api-model/models/payments-context.js +0 -14
  59. package/dist/es/api-model/models/product-context.js +0 -14
  60. package/dist/es/api-model/models/related-identifier.js +0 -25
  61. package/dist/es/api-model/models/selling-partner-metadata.js +0 -14
  62. package/dist/es/api-model/models/time-range-context.js +0 -14
  63. package/dist/es/api-model/models/transaction.js +0 -14
  64. package/dist/es/api-model/models/transactions-payload.js +0 -14
  65. package/dist/es/client.js +0 -17
  66. package/dist/es/index.js +0 -3
  67. package/dist/types/api-model/api/finances-api.d.ts +0 -109
  68. package/dist/types/api-model/api.d.ts +0 -12
  69. package/dist/types/api-model/base.d.ts +0 -42
  70. package/dist/types/api-model/common.d.ts +0 -34
  71. package/dist/types/api-model/configuration.d.ts +0 -98
  72. package/dist/types/api-model/index.d.ts +0 -14
  73. package/dist/types/api-model/models/amazon-pay-context.d.ts +0 -28
  74. package/dist/types/api-model/models/breakdown.d.ts +0 -26
  75. package/dist/types/api-model/models/business-context.d.ts +0 -24
  76. package/dist/types/api-model/models/context-all-of.d.ts +0 -14
  77. package/dist/types/api-model/models/context.d.ts +0 -23
  78. package/dist/types/api-model/models/currency.d.ts +0 -24
  79. package/dist/types/api-model/models/deferred-context.d.ts +0 -24
  80. package/dist/types/api-model/models/error-list.d.ts +0 -20
  81. package/dist/types/api-model/models/index.d.ts +0 -20
  82. package/dist/types/api-model/models/item-related-identifier.d.ts +0 -31
  83. package/dist/types/api-model/models/item.d.ts +0 -37
  84. package/dist/types/api-model/models/list-transactions-response.d.ts +0 -18
  85. package/dist/types/api-model/models/marketplace-details.d.ts +0 -24
  86. package/dist/types/api-model/models/model-error.d.ts +0 -28
  87. package/dist/types/api-model/models/payments-context.d.ts +0 -32
  88. package/dist/types/api-model/models/product-context.d.ts +0 -32
  89. package/dist/types/api-model/models/related-identifier.d.ts +0 -37
  90. package/dist/types/api-model/models/selling-partner-metadata.d.ts +0 -28
  91. package/dist/types/api-model/models/time-range-context.d.ts +0 -24
  92. package/dist/types/api-model/models/transaction.d.ts +0 -62
  93. package/dist/types/api-model/models/transactions-payload.d.ts +0 -25
  94. package/dist/types/client.d.ts +0 -6
  95. package/dist/types/index.d.ts +0 -3
@@ -0,0 +1,730 @@
1
+ import { ClientConfiguration, RateLimit } from "@sp-api-sdk/common";
2
+ import { AxiosInstance, AxiosPromise, RawAxiosRequestConfig } from "axios";
3
+ //#region src/api-model/configuration.d.ts
4
+ /**
5
+ * The Selling Partner API for Finances
6
+ * The Selling Partner API for Finances provides 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.
7
+ *
8
+ * The version of the OpenAPI document: 2024-06-19
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
+ interface AWSv4Configuration {
16
+ options?: {
17
+ region?: string;
18
+ service?: string;
19
+ };
20
+ credentials?: {
21
+ accessKeyId?: string;
22
+ secretAccessKey?: string;
23
+ sessionToken?: string;
24
+ };
25
+ }
26
+ interface ConfigurationParameters {
27
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
+ username?: string;
29
+ password?: string;
30
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
31
+ awsv4?: AWSv4Configuration;
32
+ basePath?: string;
33
+ serverIndex?: number;
34
+ baseOptions?: any;
35
+ formDataCtor?: new () => any;
36
+ }
37
+ declare class Configuration {
38
+ /**
39
+ * parameter for apiKey security
40
+ * @param name security name
41
+ */
42
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
43
+ /**
44
+ * parameter for basic security
45
+ */
46
+ username?: string;
47
+ /**
48
+ * parameter for basic security
49
+ */
50
+ password?: string;
51
+ /**
52
+ * parameter for oauth2 security
53
+ * @param name security name
54
+ * @param scopes oauth2 scope
55
+ */
56
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
57
+ /**
58
+ * parameter for aws4 signature security
59
+ * @param {Object} AWS4Signature - AWS4 Signature security
60
+ * @param {string} options.region - aws region
61
+ * @param {string} options.service - name of the service.
62
+ * @param {string} credentials.accessKeyId - aws access key id
63
+ * @param {string} credentials.secretAccessKey - aws access key
64
+ * @param {string} credentials.sessionToken - aws session token
65
+ * @memberof Configuration
66
+ */
67
+ awsv4?: AWSv4Configuration;
68
+ /**
69
+ * override base path
70
+ */
71
+ basePath?: string;
72
+ /**
73
+ * override server index
74
+ */
75
+ serverIndex?: number;
76
+ /**
77
+ * base options for axios calls
78
+ */
79
+ baseOptions?: any;
80
+ /**
81
+ * The FormData constructor that will be used to create multipart form data
82
+ * requests. You can inject this here so that execution environments that
83
+ * do not support the FormData class can still run the generated client.
84
+ *
85
+ * @type {new () => FormData}
86
+ */
87
+ formDataCtor?: new () => any;
88
+ constructor(param?: ConfigurationParameters);
89
+ /**
90
+ * Check if the given MIME is a JSON MIME.
91
+ * JSON MIME examples:
92
+ * application/json
93
+ * application/json; charset=UTF8
94
+ * APPLICATION/JSON
95
+ * application/vnd.company+json
96
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
97
+ * @return True if the given MIME is JSON, false otherwise.
98
+ */
99
+ isJsonMime(mime: string): boolean;
100
+ }
101
+ //#endregion
102
+ //#region src/api-model/base.d.ts
103
+ interface RequestArgs {
104
+ url: string;
105
+ options: RawAxiosRequestConfig;
106
+ }
107
+ declare class BaseAPI {
108
+ protected basePath: string;
109
+ protected axios: AxiosInstance;
110
+ protected configuration: Configuration | undefined;
111
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
112
+ }
113
+ //#endregion
114
+ //#region src/api-model/models/amazon-pay-context.d.ts
115
+ /**
116
+ * The Selling Partner API for Finances
117
+ * The Selling Partner API for Finances provides 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.
118
+ *
119
+ * The version of the OpenAPI document: 2024-06-19
120
+ *
121
+ *
122
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
123
+ * https://openapi-generator.tech
124
+ * Do not edit the class manually.
125
+ */
126
+ /**
127
+ * Additional information related to Amazon Pay.
128
+ */
129
+ interface AmazonPayContext {
130
+ /**
131
+ * The name of the store that is related to the transaction.
132
+ */
133
+ 'storeName'?: string;
134
+ /**
135
+ * The transaction\'s order type.
136
+ */
137
+ 'orderType'?: string;
138
+ /**
139
+ * Channel details of related transaction.
140
+ */
141
+ 'channel'?: string;
142
+ }
143
+ //#endregion
144
+ //#region src/api-model/models/currency.d.ts
145
+ /**
146
+ * The Selling Partner API for Finances
147
+ * The Selling Partner API for Finances provides 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.
148
+ *
149
+ * The version of the OpenAPI document: 2024-06-19
150
+ *
151
+ *
152
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
153
+ * https://openapi-generator.tech
154
+ * Do not edit the class manually.
155
+ */
156
+ /**
157
+ * A currency type and amount.
158
+ */
159
+ interface Currency {
160
+ /**
161
+ * The three-digit currency code in ISO 4217 format.
162
+ */
163
+ 'currencyCode'?: string;
164
+ /**
165
+ * A signed decimal number.
166
+ */
167
+ 'currencyAmount'?: number;
168
+ }
169
+ //#endregion
170
+ //#region src/api-model/models/breakdown.d.ts
171
+ /**
172
+ * Details about the movement of money in the financial transaction. Breakdowns are further categorized into breakdown types, breakdown amounts, and further breakdowns.
173
+ */
174
+ interface Breakdown {
175
+ /**
176
+ * The type of charge.
177
+ */
178
+ 'breakdownType'?: string;
179
+ 'breakdownAmount'?: Currency;
180
+ /**
181
+ * A list of breakdowns that detail how the total amount is calculated for the transaction.
182
+ */
183
+ 'breakdowns'?: Array<Breakdown>;
184
+ }
185
+ //#endregion
186
+ //#region src/api-model/models/business-context.d.ts
187
+ /**
188
+ * The Selling Partner API for Finances
189
+ * The Selling Partner API for Finances provides 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.
190
+ *
191
+ * The version of the OpenAPI document: 2024-06-19
192
+ *
193
+ *
194
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
195
+ * https://openapi-generator.tech
196
+ * Do not edit the class manually.
197
+ */
198
+ /**
199
+ * Information about the line of business associated with a transaction.
200
+ */
201
+ interface BusinessContext {
202
+ /**
203
+ * The store name associated with the transaction.
204
+ */
205
+ 'storeName'?: BusinessContextStoreNameEnum;
206
+ }
207
+ declare const BusinessContextStoreNameEnum: {
208
+ readonly AmazonHaul: "AMAZON_HAUL";
209
+ };
210
+ type BusinessContextStoreNameEnum = typeof BusinessContextStoreNameEnum[keyof typeof BusinessContextStoreNameEnum];
211
+ //#endregion
212
+ //#region src/api-model/models/context-all-of.d.ts
213
+ /**
214
+ * The Selling Partner API for Finances
215
+ * The Selling Partner API for Finances provides 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.
216
+ *
217
+ * The version of the OpenAPI document: 2024-06-19
218
+ *
219
+ *
220
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
221
+ * https://openapi-generator.tech
222
+ * Do not edit the class manually.
223
+ */
224
+ interface ContextAllOf {
225
+ 'contextType': string;
226
+ }
227
+ //#endregion
228
+ //#region src/api-model/models/deferred-context.d.ts
229
+ /**
230
+ * The Selling Partner API for Finances
231
+ * The Selling Partner API for Finances provides 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.
232
+ *
233
+ * The version of the OpenAPI document: 2024-06-19
234
+ *
235
+ *
236
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
237
+ * https://openapi-generator.tech
238
+ * Do not edit the class manually.
239
+ */
240
+ /**
241
+ * Additional information related to deferred transactions.
242
+ */
243
+ interface DeferredContext {
244
+ /**
245
+ * The deferral policy applied to the transaction. **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
246
+ */
247
+ 'deferralReason'?: string;
248
+ /**
249
+ * A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
250
+ */
251
+ 'maturityDate'?: string;
252
+ }
253
+ //#endregion
254
+ //#region src/api-model/models/payments-context.d.ts
255
+ /**
256
+ * The Selling Partner API for Finances
257
+ * The Selling Partner API for Finances provides 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.
258
+ *
259
+ * The version of the OpenAPI document: 2024-06-19
260
+ *
261
+ *
262
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
263
+ * https://openapi-generator.tech
264
+ * Do not edit the class manually.
265
+ */
266
+ /**
267
+ * Additional information related to payments-related transactions.
268
+ */
269
+ interface PaymentsContext {
270
+ /**
271
+ * The type of payment.
272
+ */
273
+ 'paymentType'?: string;
274
+ /**
275
+ * The method of payment.
276
+ */
277
+ 'paymentMethod'?: string;
278
+ /**
279
+ * The reference number of the payment.
280
+ */
281
+ 'paymentReference'?: string;
282
+ /**
283
+ * A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
284
+ */
285
+ 'paymentDate'?: string;
286
+ }
287
+ //#endregion
288
+ //#region src/api-model/models/product-context.d.ts
289
+ /**
290
+ * The Selling Partner API for Finances
291
+ * The Selling Partner API for Finances provides 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.
292
+ *
293
+ * The version of the OpenAPI document: 2024-06-19
294
+ *
295
+ *
296
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
297
+ * https://openapi-generator.tech
298
+ * Do not edit the class manually.
299
+ */
300
+ /**
301
+ * Additional information related to the product.
302
+ */
303
+ interface ProductContext {
304
+ /**
305
+ * The Amazon Standard Identification Number (ASIN) of the item.
306
+ */
307
+ 'asin'?: string;
308
+ /**
309
+ * The Stock Keeping Unit (SKU) of the item.
310
+ */
311
+ 'sku'?: string;
312
+ /**
313
+ * The quantity of the item shipped.
314
+ */
315
+ 'quantityShipped'?: number;
316
+ /**
317
+ * The fulfillment network of the item.
318
+ */
319
+ 'fulfillmentNetwork'?: string;
320
+ }
321
+ //#endregion
322
+ //#region src/api-model/models/time-range-context.d.ts
323
+ /**
324
+ * The Selling Partner API for Finances
325
+ * The Selling Partner API for Finances provides 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.
326
+ *
327
+ * The version of the OpenAPI document: 2024-06-19
328
+ *
329
+ *
330
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
331
+ * https://openapi-generator.tech
332
+ * Do not edit the class manually.
333
+ */
334
+ /**
335
+ * Additional information that is related to the time range of the transaction.
336
+ */
337
+ interface TimeRangeContext {
338
+ /**
339
+ * A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
340
+ */
341
+ 'startTime'?: string;
342
+ /**
343
+ * A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
344
+ */
345
+ 'endTime'?: string;
346
+ }
347
+ //#endregion
348
+ //#region src/api-model/models/context.d.ts
349
+ /**
350
+ * @type Context
351
+ * Additional Information about the item.
352
+ */
353
+ type Context = AmazonPayContext & BusinessContext & ContextAllOf & DeferredContext & PaymentsContext & ProductContext & TimeRangeContext;
354
+ //#endregion
355
+ //#region src/api-model/models/error-list.d.ts
356
+ /**
357
+ * The Selling Partner API for Finances
358
+ * The Selling Partner API for Finances provides 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.
359
+ *
360
+ * The version of the OpenAPI document: 2024-06-19
361
+ *
362
+ *
363
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
364
+ * https://openapi-generator.tech
365
+ * Do not edit the class manually.
366
+ */
367
+ /**
368
+ * A list of error responses returned when a request is unsuccessful.
369
+ */
370
+ interface ErrorList {
371
+ /**
372
+ * The error responses that are returned when the request is unsuccessful.
373
+ */
374
+ 'errors': Array<Error>;
375
+ }
376
+ //#endregion
377
+ //#region src/api-model/models/item-related-identifier.d.ts
378
+ /**
379
+ * The Selling Partner API for Finances
380
+ * The Selling Partner API for Finances provides 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.
381
+ *
382
+ * The version of the OpenAPI document: 2024-06-19
383
+ *
384
+ *
385
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
386
+ * https://openapi-generator.tech
387
+ * Do not edit the class manually.
388
+ */
389
+ /**
390
+ * Related business identifiers of the item.
391
+ */
392
+ interface ItemRelatedIdentifier {
393
+ /**
394
+ * Enumerated set of related item identifier names for the item.
395
+ */
396
+ 'itemRelatedIdentifierName'?: ItemRelatedIdentifierItemRelatedIdentifierNameEnum;
397
+ /**
398
+ * Corresponding value to `ItemRelatedIdentifierName`.
399
+ */
400
+ 'itemRelatedIdentifierValue'?: string;
401
+ }
402
+ declare const ItemRelatedIdentifierItemRelatedIdentifierNameEnum: {
403
+ readonly OrderAdjustmentItemId: "ORDER_ADJUSTMENT_ITEM_ID";
404
+ readonly CouponId: "COUPON_ID";
405
+ readonly RemovalShipmentItemId: "REMOVAL_SHIPMENT_ITEM_ID";
406
+ readonly TransactionId: "TRANSACTION_ID";
407
+ };
408
+ type ItemRelatedIdentifierItemRelatedIdentifierNameEnum = typeof ItemRelatedIdentifierItemRelatedIdentifierNameEnum[keyof typeof ItemRelatedIdentifierItemRelatedIdentifierNameEnum];
409
+ //#endregion
410
+ //#region src/api-model/models/item.d.ts
411
+ /**
412
+ * Additional information about the items in a transaction.
413
+ */
414
+ interface Item {
415
+ /**
416
+ * A description of the items in a transaction.
417
+ */
418
+ 'description'?: string;
419
+ /**
420
+ * Related business identifiers of the item in the transaction.
421
+ */
422
+ 'relatedIdentifiers'?: Array<ItemRelatedIdentifier>;
423
+ 'totalAmount'?: Currency;
424
+ /**
425
+ * A list of breakdowns that detail how the total amount is calculated for the transaction.
426
+ */
427
+ 'breakdowns'?: Array<Breakdown>;
428
+ /**
429
+ * A list of additional information about the item.
430
+ */
431
+ 'contexts'?: Array<Context>;
432
+ }
433
+ //#endregion
434
+ //#region src/api-model/models/marketplace-details.d.ts
435
+ /**
436
+ * The Selling Partner API for Finances
437
+ * The Selling Partner API for Finances provides 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.
438
+ *
439
+ * The version of the OpenAPI document: 2024-06-19
440
+ *
441
+ *
442
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
443
+ * https://openapi-generator.tech
444
+ * Do not edit the class manually.
445
+ */
446
+ /**
447
+ * Information about the marketplace where the transaction occurred.
448
+ */
449
+ interface MarketplaceDetails {
450
+ /**
451
+ * The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
452
+ */
453
+ 'marketplaceId'?: string;
454
+ /**
455
+ * The name of the marketplace where the transaction occurred. For example: `Amazon.com`,`Amazon.in`
456
+ */
457
+ 'marketplaceName'?: string;
458
+ }
459
+ //#endregion
460
+ //#region src/api-model/models/related-identifier.d.ts
461
+ /**
462
+ * The Selling Partner API for Finances
463
+ * The Selling Partner API for Finances provides 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.
464
+ *
465
+ * The version of the OpenAPI document: 2024-06-19
466
+ *
467
+ *
468
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
469
+ * https://openapi-generator.tech
470
+ * Do not edit the class manually.
471
+ */
472
+ /**
473
+ * Related business identifier of the transaction.
474
+ */
475
+ interface RelatedIdentifier {
476
+ /**
477
+ * An enumerated set of related business identifier names.
478
+ */
479
+ 'relatedIdentifierName'?: RelatedIdentifierRelatedIdentifierNameEnum;
480
+ /**
481
+ * Corresponding value of `RelatedIdentifierName`.
482
+ */
483
+ 'relatedIdentifierValue'?: string;
484
+ }
485
+ declare const RelatedIdentifierRelatedIdentifierNameEnum: {
486
+ readonly OrderId: "ORDER_ID";
487
+ readonly ShipmentId: "SHIPMENT_ID";
488
+ readonly FinancialEventGroupId: "FINANCIAL_EVENT_GROUP_ID";
489
+ readonly RefundId: "REFUND_ID";
490
+ readonly InvoiceId: "INVOICE_ID";
491
+ readonly DisbursementId: "DISBURSEMENT_ID";
492
+ readonly TransferId: "TRANSFER_ID";
493
+ readonly DeferredTransactionId: "DEFERRED_TRANSACTION_ID";
494
+ readonly ReleaseTransactionId: "RELEASE_TRANSACTION_ID";
495
+ readonly SettlementId: "SETTLEMENT_ID";
496
+ };
497
+ type RelatedIdentifierRelatedIdentifierNameEnum = typeof RelatedIdentifierRelatedIdentifierNameEnum[keyof typeof RelatedIdentifierRelatedIdentifierNameEnum];
498
+ //#endregion
499
+ //#region src/api-model/models/selling-partner-metadata.d.ts
500
+ /**
501
+ * The Selling Partner API for Finances
502
+ * The Selling Partner API for Finances provides 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.
503
+ *
504
+ * The version of the OpenAPI document: 2024-06-19
505
+ *
506
+ *
507
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
508
+ * https://openapi-generator.tech
509
+ * Do not edit the class manually.
510
+ */
511
+ /**
512
+ * Metadata that describes the seller.
513
+ */
514
+ interface SellingPartnerMetadata {
515
+ /**
516
+ * A unique seller identifier.
517
+ */
518
+ 'sellingPartnerId'?: string;
519
+ /**
520
+ * The type of account in the transaction.
521
+ */
522
+ 'accountType'?: string;
523
+ /**
524
+ * The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
525
+ */
526
+ 'marketplaceId'?: string;
527
+ }
528
+ //#endregion
529
+ //#region src/api-model/models/transaction.d.ts
530
+ /**
531
+ * All the information related to a transaction.
532
+ */
533
+ interface Transaction {
534
+ 'sellingPartnerMetadata'?: SellingPartnerMetadata;
535
+ /**
536
+ * Related business identifiers of the transaction.
537
+ */
538
+ 'relatedIdentifiers'?: Array<RelatedIdentifier>;
539
+ /**
540
+ * The type of transaction. **Possible value:** `Shipment`
541
+ */
542
+ 'transactionType'?: string;
543
+ /**
544
+ * The unique identifier of the transaction.
545
+ */
546
+ 'transactionId'?: string;
547
+ /**
548
+ * 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. The status of a deferred transaction is updated to `DEFERRED_RELEASED` when the transaction is released.
549
+ */
550
+ 'transactionStatus'?: string;
551
+ /**
552
+ * Describes the reasons for the transaction. **Example:** \'Order Payment\', \'Refund Order\'
553
+ */
554
+ 'description'?: string;
555
+ /**
556
+ * A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
557
+ */
558
+ 'postedDate'?: string;
559
+ 'totalAmount'?: Currency;
560
+ 'marketplaceDetails'?: MarketplaceDetails;
561
+ /**
562
+ * A list of items in the transaction.
563
+ */
564
+ 'items'?: Array<Item>;
565
+ /**
566
+ * A list of additional information about the item.
567
+ */
568
+ 'contexts'?: Array<Context>;
569
+ /**
570
+ * A list of breakdowns that detail how the total amount is calculated for the transaction.
571
+ */
572
+ 'breakdowns'?: Array<Breakdown>;
573
+ }
574
+ //#endregion
575
+ //#region src/api-model/models/transactions-payload.d.ts
576
+ /**
577
+ * The payload for the `listTransactions` operation.
578
+ */
579
+ interface TransactionsPayload {
580
+ /**
581
+ * The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
582
+ */
583
+ 'nextToken'?: string;
584
+ /**
585
+ * A list of transactions within the specified time period.
586
+ */
587
+ 'transactions'?: Array<Transaction>;
588
+ }
589
+ //#endregion
590
+ //#region src/api-model/models/list-transactions-response.d.ts
591
+ /**
592
+ * The response schema for the `listTransactions` operation.
593
+ */
594
+ interface ListTransactionsResponse {
595
+ 'payload'?: TransactionsPayload;
596
+ }
597
+ //#endregion
598
+ //#region src/api-model/models/model-error.d.ts
599
+ /**
600
+ * The Selling Partner API for Finances
601
+ * The Selling Partner API for Finances provides 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.
602
+ *
603
+ * The version of the OpenAPI document: 2024-06-19
604
+ *
605
+ *
606
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
607
+ * https://openapi-generator.tech
608
+ * Do not edit the class manually.
609
+ */
610
+ /**
611
+ * An error response returned when the request is unsuccessful.
612
+ */
613
+ interface ModelError {
614
+ /**
615
+ * An error code that identifies the type of error that occurred.
616
+ */
617
+ 'code': string;
618
+ /**
619
+ * A message that describes the error condition.
620
+ */
621
+ 'message': string;
622
+ /**
623
+ * Additional details that can help the caller understand or fix the issue.
624
+ */
625
+ 'details'?: string;
626
+ }
627
+ //#endregion
628
+ //#region src/api-model/api/finances-api.d.ts
629
+ /**
630
+ * FinancesApi - axios parameter creator
631
+ */
632
+ declare const FinancesApiAxiosParamCreator: (configuration?: Configuration) => {
633
+ /**
634
+ * Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **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 preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).
635
+ * @param {string} [postedAfter] The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request. This field is required if you do not specify a related identifier.
636
+ * @param {string} [postedBefore] The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be later than &#x60;PostedAfter&#x60; and more than two minutes before the request was submitted. If &#x60;PostedAfter&#x60; and &#x60;PostedBefore&#x60; are more than 180 days apart, the response is empty. **Default:** Two minutes before the time of the request.
637
+ * @param {string} [marketplaceId] The identifier of the marketplace from which you want to retrieve transactions. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
638
+ * @param {string} [transactionStatus] The status of the transaction. **Possible values:** * &#x60;DEFERRED&#x60;: the transaction is currently deferred. * &#x60;RELEASED&#x60;: the transaction is currently released. * &#x60;DEFERRED_RELEASED&#x60;: the transaction was deferred in the past, but is now released. The status of a deferred transaction is updated to &#x60;DEFERRED_RELEASED&#x60; when the transaction is released.
639
+ * @param {string} [relatedIdentifierName] The name of the &#x60;relatedIdentifier&#x60;. **Possible values:** * &#x60;FINANCIAL_EVENT_GROUP_ID&#x60;: the financial event group ID associated with the transaction. * &#x60;ORDER_ID&#x60;: the order ID associated with the transaction. **Note:** FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only &#x60;relatedIdentifier&#x60; with filtering capabilities at the moment. While other &#x60;relatedIdentifier&#x60; values will be included in the response when available, they cannot be used for filtering purposes.
640
+ * @param {string} [relatedIdentifierValue] The value of the &#x60;relatedIdentifier&#x60;.
641
+ * @param {string} [nextToken] The response includes &#x60;nextToken&#x60; when the number of results exceeds the specified &#x60;pageSize&#x60; value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ listTransactions: (postedAfter?: string, postedBefore?: string, marketplaceId?: string, transactionStatus?: string, relatedIdentifierName?: string, relatedIdentifierValue?: string, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
646
+ };
647
+ /**
648
+ * FinancesApi - functional programming interface
649
+ */
650
+ declare const FinancesApiFp: (configuration?: Configuration) => {
651
+ /**
652
+ * Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **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 preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).
653
+ * @param {string} [postedAfter] The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request. This field is required if you do not specify a related identifier.
654
+ * @param {string} [postedBefore] The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be later than &#x60;PostedAfter&#x60; and more than two minutes before the request was submitted. If &#x60;PostedAfter&#x60; and &#x60;PostedBefore&#x60; are more than 180 days apart, the response is empty. **Default:** Two minutes before the time of the request.
655
+ * @param {string} [marketplaceId] The identifier of the marketplace from which you want to retrieve transactions. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
656
+ * @param {string} [transactionStatus] The status of the transaction. **Possible values:** * &#x60;DEFERRED&#x60;: the transaction is currently deferred. * &#x60;RELEASED&#x60;: the transaction is currently released. * &#x60;DEFERRED_RELEASED&#x60;: the transaction was deferred in the past, but is now released. The status of a deferred transaction is updated to &#x60;DEFERRED_RELEASED&#x60; when the transaction is released.
657
+ * @param {string} [relatedIdentifierName] The name of the &#x60;relatedIdentifier&#x60;. **Possible values:** * &#x60;FINANCIAL_EVENT_GROUP_ID&#x60;: the financial event group ID associated with the transaction. * &#x60;ORDER_ID&#x60;: the order ID associated with the transaction. **Note:** FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only &#x60;relatedIdentifier&#x60; with filtering capabilities at the moment. While other &#x60;relatedIdentifier&#x60; values will be included in the response when available, they cannot be used for filtering purposes.
658
+ * @param {string} [relatedIdentifierValue] The value of the &#x60;relatedIdentifier&#x60;.
659
+ * @param {string} [nextToken] The response includes &#x60;nextToken&#x60; when the number of results exceeds the specified &#x60;pageSize&#x60; value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ */
663
+ listTransactions(postedAfter?: string, postedBefore?: string, marketplaceId?: string, transactionStatus?: string, relatedIdentifierName?: string, relatedIdentifierValue?: string, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactionsResponse>>;
664
+ };
665
+ /**
666
+ * FinancesApi - factory interface
667
+ */
668
+ declare const FinancesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
669
+ /**
670
+ * Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **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 preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).
671
+ * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ listTransactions(requestParameters?: FinancesApiListTransactionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTransactionsResponse>;
676
+ };
677
+ /**
678
+ * Request parameters for listTransactions operation in FinancesApi.
679
+ */
680
+ interface FinancesApiListTransactionsRequest {
681
+ /**
682
+ * The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request. This field is required if you do not specify a related identifier.
683
+ */
684
+ readonly postedAfter?: string;
685
+ /**
686
+ * The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be later than &#x60;PostedAfter&#x60; and more than two minutes before the request was submitted. If &#x60;PostedAfter&#x60; and &#x60;PostedBefore&#x60; are more than 180 days apart, the response is empty. **Default:** Two minutes before the time of the request.
687
+ */
688
+ readonly postedBefore?: string;
689
+ /**
690
+ * The identifier of the marketplace from which you want to retrieve transactions. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
691
+ */
692
+ readonly marketplaceId?: string;
693
+ /**
694
+ * The status of the transaction. **Possible values:** * &#x60;DEFERRED&#x60;: the transaction is currently deferred. * &#x60;RELEASED&#x60;: the transaction is currently released. * &#x60;DEFERRED_RELEASED&#x60;: the transaction was deferred in the past, but is now released. The status of a deferred transaction is updated to &#x60;DEFERRED_RELEASED&#x60; when the transaction is released.
695
+ */
696
+ readonly transactionStatus?: string;
697
+ /**
698
+ * The name of the &#x60;relatedIdentifier&#x60;. **Possible values:** * &#x60;FINANCIAL_EVENT_GROUP_ID&#x60;: the financial event group ID associated with the transaction. * &#x60;ORDER_ID&#x60;: the order ID associated with the transaction. **Note:** FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only &#x60;relatedIdentifier&#x60; with filtering capabilities at the moment. While other &#x60;relatedIdentifier&#x60; values will be included in the response when available, they cannot be used for filtering purposes.
699
+ */
700
+ readonly relatedIdentifierName?: string;
701
+ /**
702
+ * The value of the &#x60;relatedIdentifier&#x60;.
703
+ */
704
+ readonly relatedIdentifierValue?: string;
705
+ /**
706
+ * The response includes &#x60;nextToken&#x60; when the number of results exceeds the specified &#x60;pageSize&#x60; value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
707
+ */
708
+ readonly nextToken?: string;
709
+ }
710
+ /**
711
+ * FinancesApi - object-oriented interface
712
+ */
713
+ declare class FinancesApi extends BaseAPI {
714
+ /**
715
+ * Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **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 preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).
716
+ * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ listTransactions(requestParameters?: FinancesApiListTransactionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTransactionsResponse, any, {}>>;
721
+ }
722
+ //#endregion
723
+ //#region src/client.d.ts
724
+ declare const clientRateLimits: RateLimit[];
725
+ declare class FinancesApiClient extends FinancesApi {
726
+ constructor(configuration: ClientConfiguration);
727
+ }
728
+ //#endregion
729
+ export { AmazonPayContext, Breakdown, BusinessContext, BusinessContextStoreNameEnum, Context, ContextAllOf, Currency, DeferredContext, ErrorList, FinancesApi, FinancesApiAxiosParamCreator, FinancesApiClient, FinancesApiFactory, FinancesApiFp, FinancesApiListTransactionsRequest, Item, ItemRelatedIdentifier, ItemRelatedIdentifierItemRelatedIdentifierNameEnum, ListTransactionsResponse, MarketplaceDetails, ModelError, PaymentsContext, ProductContext, RelatedIdentifier, RelatedIdentifierRelatedIdentifierNameEnum, SellingPartnerMetadata, TimeRangeContext, Transaction, TransactionsPayload, clientRateLimits };
730
+ //# sourceMappingURL=index.d.cts.map