@sp-api-sdk/finances-api-2024-06-19 3.3.3 → 4.0.0

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