@sp-api-sdk/finances-api-v0 1.7.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 (165) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cjs/index.js +6 -0
  4. package/dist/cjs/src/api-model/api/default-api.js +357 -0
  5. package/dist/cjs/src/api-model/api.js +17 -0
  6. package/dist/cjs/src/api-model/base.js +62 -0
  7. package/dist/cjs/src/api-model/common.js +137 -0
  8. package/dist/cjs/src/api-model/configuration.js +42 -0
  9. package/dist/cjs/src/api-model/index.js +19 -0
  10. package/dist/cjs/src/api-model/models/adjustment-event.js +15 -0
  11. package/dist/cjs/src/api-model/models/adjustment-item.js +15 -0
  12. package/dist/cjs/src/api-model/models/affordability-expense-event.js +15 -0
  13. package/dist/cjs/src/api-model/models/charge-component.js +15 -0
  14. package/dist/cjs/src/api-model/models/charge-instrument.js +15 -0
  15. package/dist/cjs/src/api-model/models/coupon-payment-event.js +15 -0
  16. package/dist/cjs/src/api-model/models/currency.js +15 -0
  17. package/dist/cjs/src/api-model/models/debt-recovery-event.js +15 -0
  18. package/dist/cjs/src/api-model/models/debt-recovery-item.js +15 -0
  19. package/dist/cjs/src/api-model/models/direct-payment.js +15 -0
  20. package/dist/cjs/src/api-model/models/fbaliquidation-event.js +15 -0
  21. package/dist/cjs/src/api-model/models/fee-component.js +15 -0
  22. package/dist/cjs/src/api-model/models/financial-event-group.js +15 -0
  23. package/dist/cjs/src/api-model/models/financial-events.js +15 -0
  24. package/dist/cjs/src/api-model/models/imaging-services-fee-event.js +15 -0
  25. package/dist/cjs/src/api-model/models/index.js +46 -0
  26. package/dist/cjs/src/api-model/models/list-financial-event-groups-payload.js +15 -0
  27. package/dist/cjs/src/api-model/models/list-financial-event-groups-response.js +15 -0
  28. package/dist/cjs/src/api-model/models/list-financial-events-payload.js +15 -0
  29. package/dist/cjs/src/api-model/models/list-financial-events-response.js +15 -0
  30. package/dist/cjs/src/api-model/models/loan-servicing-event.js +15 -0
  31. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  32. package/dist/cjs/src/api-model/models/network-commingling-transaction-event.js +15 -0
  33. package/dist/cjs/src/api-model/models/pay-with-amazon-event.js +15 -0
  34. package/dist/cjs/src/api-model/models/product-ads-payment-event.js +15 -0
  35. package/dist/cjs/src/api-model/models/promotion.js +15 -0
  36. package/dist/cjs/src/api-model/models/removal-shipment-adjustment-event.js +15 -0
  37. package/dist/cjs/src/api-model/models/removal-shipment-event.js +15 -0
  38. package/dist/cjs/src/api-model/models/removal-shipment-item-adjustment.js +15 -0
  39. package/dist/cjs/src/api-model/models/removal-shipment-item.js +15 -0
  40. package/dist/cjs/src/api-model/models/rental-transaction-event.js +15 -0
  41. package/dist/cjs/src/api-model/models/retrocharge-event.js +15 -0
  42. package/dist/cjs/src/api-model/models/safetreimbursement-event.js +15 -0
  43. package/dist/cjs/src/api-model/models/safetreimbursement-item.js +15 -0
  44. package/dist/cjs/src/api-model/models/seller-deal-payment-event.js +15 -0
  45. package/dist/cjs/src/api-model/models/seller-review-enrollment-payment-event.js +15 -0
  46. package/dist/cjs/src/api-model/models/service-fee-event.js +15 -0
  47. package/dist/cjs/src/api-model/models/shipment-event.js +15 -0
  48. package/dist/cjs/src/api-model/models/shipment-item.js +15 -0
  49. package/dist/cjs/src/api-model/models/solution-provider-credit-event.js +15 -0
  50. package/dist/cjs/src/api-model/models/tax-withheld-component.js +15 -0
  51. package/dist/cjs/src/api-model/models/tax-withholding-event.js +15 -0
  52. package/dist/cjs/src/api-model/models/tax-withholding-period.js +15 -0
  53. package/dist/cjs/src/api-model/models/tdsreimbursement-event.js +15 -0
  54. package/dist/cjs/src/api-model/models/trial-shipment-event.js +15 -0
  55. package/dist/cjs/src/client.js +53 -0
  56. package/dist/cjs/src/error.js +10 -0
  57. package/dist/es/index.js +3 -0
  58. package/dist/es/src/api-model/api/default-api.js +349 -0
  59. package/dist/es/src/api-model/api.js +14 -0
  60. package/dist/es/src/api-model/base.js +56 -0
  61. package/dist/es/src/api-model/common.js +125 -0
  62. package/dist/es/src/api-model/configuration.js +38 -0
  63. package/dist/es/src/api-model/index.js +16 -0
  64. package/dist/es/src/api-model/models/adjustment-event.js +14 -0
  65. package/dist/es/src/api-model/models/adjustment-item.js +14 -0
  66. package/dist/es/src/api-model/models/affordability-expense-event.js +14 -0
  67. package/dist/es/src/api-model/models/charge-component.js +14 -0
  68. package/dist/es/src/api-model/models/charge-instrument.js +14 -0
  69. package/dist/es/src/api-model/models/coupon-payment-event.js +14 -0
  70. package/dist/es/src/api-model/models/currency.js +14 -0
  71. package/dist/es/src/api-model/models/debt-recovery-event.js +14 -0
  72. package/dist/es/src/api-model/models/debt-recovery-item.js +14 -0
  73. package/dist/es/src/api-model/models/direct-payment.js +14 -0
  74. package/dist/es/src/api-model/models/fbaliquidation-event.js +14 -0
  75. package/dist/es/src/api-model/models/fee-component.js +14 -0
  76. package/dist/es/src/api-model/models/financial-event-group.js +14 -0
  77. package/dist/es/src/api-model/models/financial-events.js +14 -0
  78. package/dist/es/src/api-model/models/imaging-services-fee-event.js +14 -0
  79. package/dist/es/src/api-model/models/index.js +43 -0
  80. package/dist/es/src/api-model/models/list-financial-event-groups-payload.js +14 -0
  81. package/dist/es/src/api-model/models/list-financial-event-groups-response.js +14 -0
  82. package/dist/es/src/api-model/models/list-financial-events-payload.js +14 -0
  83. package/dist/es/src/api-model/models/list-financial-events-response.js +14 -0
  84. package/dist/es/src/api-model/models/loan-servicing-event.js +14 -0
  85. package/dist/es/src/api-model/models/model-error.js +14 -0
  86. package/dist/es/src/api-model/models/network-commingling-transaction-event.js +14 -0
  87. package/dist/es/src/api-model/models/pay-with-amazon-event.js +14 -0
  88. package/dist/es/src/api-model/models/product-ads-payment-event.js +14 -0
  89. package/dist/es/src/api-model/models/promotion.js +14 -0
  90. package/dist/es/src/api-model/models/removal-shipment-adjustment-event.js +14 -0
  91. package/dist/es/src/api-model/models/removal-shipment-event.js +14 -0
  92. package/dist/es/src/api-model/models/removal-shipment-item-adjustment.js +14 -0
  93. package/dist/es/src/api-model/models/removal-shipment-item.js +14 -0
  94. package/dist/es/src/api-model/models/rental-transaction-event.js +14 -0
  95. package/dist/es/src/api-model/models/retrocharge-event.js +14 -0
  96. package/dist/es/src/api-model/models/safetreimbursement-event.js +14 -0
  97. package/dist/es/src/api-model/models/safetreimbursement-item.js +14 -0
  98. package/dist/es/src/api-model/models/seller-deal-payment-event.js +14 -0
  99. package/dist/es/src/api-model/models/seller-review-enrollment-payment-event.js +14 -0
  100. package/dist/es/src/api-model/models/service-fee-event.js +14 -0
  101. package/dist/es/src/api-model/models/shipment-event.js +14 -0
  102. package/dist/es/src/api-model/models/shipment-item.js +14 -0
  103. package/dist/es/src/api-model/models/solution-provider-credit-event.js +14 -0
  104. package/dist/es/src/api-model/models/tax-withheld-component.js +14 -0
  105. package/dist/es/src/api-model/models/tax-withholding-event.js +14 -0
  106. package/dist/es/src/api-model/models/tax-withholding-period.js +14 -0
  107. package/dist/es/src/api-model/models/tdsreimbursement-event.js +14 -0
  108. package/dist/es/src/api-model/models/trial-shipment-event.js +14 -0
  109. package/dist/es/src/client.js +49 -0
  110. package/dist/es/src/error.js +6 -0
  111. package/dist/types/index.d.ts +3 -0
  112. package/dist/types/src/api-model/api/default-api.d.ts +300 -0
  113. package/dist/types/src/api-model/api.d.ts +12 -0
  114. package/dist/types/src/api-model/base.d.ts +55 -0
  115. package/dist/types/src/api-model/common.d.ts +65 -0
  116. package/dist/types/src/api-model/configuration.d.ts +83 -0
  117. package/dist/types/src/api-model/index.d.ts +14 -0
  118. package/dist/types/src/api-model/models/adjustment-event.d.ts +44 -0
  119. package/dist/types/src/api-model/models/adjustment-item.d.ts +61 -0
  120. package/dist/types/src/api-model/models/affordability-expense-event.d.ts +73 -0
  121. package/dist/types/src/api-model/models/charge-component.d.ts +31 -0
  122. package/dist/types/src/api-model/models/charge-instrument.d.ts +37 -0
  123. package/dist/types/src/api-model/models/coupon-payment-event.d.ts +69 -0
  124. package/dist/types/src/api-model/models/currency.d.ts +30 -0
  125. package/dist/types/src/api-model/models/debt-recovery-event.d.ts +51 -0
  126. package/dist/types/src/api-model/models/debt-recovery-item.d.ts +43 -0
  127. package/dist/types/src/api-model/models/direct-payment.d.ts +31 -0
  128. package/dist/types/src/api-model/models/fbaliquidation-event.d.ts +43 -0
  129. package/dist/types/src/api-model/models/fee-component.d.ts +31 -0
  130. package/dist/types/src/api-model/models/financial-event-group.d.ts +85 -0
  131. package/dist/types/src/api-model/models/financial-events.d.ts +202 -0
  132. package/dist/types/src/api-model/models/imaging-services-fee-event.d.ts +43 -0
  133. package/dist/types/src/api-model/models/index.d.ts +43 -0
  134. package/dist/types/src/api-model/models/list-financial-event-groups-payload.d.ts +31 -0
  135. package/dist/types/src/api-model/models/list-financial-event-groups-response.d.ts +31 -0
  136. package/dist/types/src/api-model/models/list-financial-events-payload.d.ts +31 -0
  137. package/dist/types/src/api-model/models/list-financial-events-response.d.ts +31 -0
  138. package/dist/types/src/api-model/models/loan-servicing-event.d.ts +31 -0
  139. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  140. package/dist/types/src/api-model/models/network-commingling-transaction-event.d.ts +67 -0
  141. package/dist/types/src/api-model/models/pay-with-amazon-event.d.ts +80 -0
  142. package/dist/types/src/api-model/models/product-ads-payment-event.d.ts +55 -0
  143. package/dist/types/src/api-model/models/promotion.d.ts +37 -0
  144. package/dist/types/src/api-model/models/removal-shipment-adjustment-event.d.ts +55 -0
  145. package/dist/types/src/api-model/models/removal-shipment-event.d.ts +49 -0
  146. package/dist/types/src/api-model/models/removal-shipment-item-adjustment.d.ts +61 -0
  147. package/dist/types/src/api-model/models/removal-shipment-item.d.ts +67 -0
  148. package/dist/types/src/api-model/models/rental-transaction-event.d.ts +82 -0
  149. package/dist/types/src/api-model/models/retrocharge-event.d.ts +62 -0
  150. package/dist/types/src/api-model/models/safetreimbursement-event.d.ts +50 -0
  151. package/dist/types/src/api-model/models/safetreimbursement-item.d.ts +37 -0
  152. package/dist/types/src/api-model/models/seller-deal-payment-event.d.ts +67 -0
  153. package/dist/types/src/api-model/models/seller-review-enrollment-payment-event.d.ts +57 -0
  154. package/dist/types/src/api-model/models/service-fee-event.d.ts +61 -0
  155. package/dist/types/src/api-model/models/shipment-event.d.ts +100 -0
  156. package/dist/types/src/api-model/models/shipment-item.d.ts +101 -0
  157. package/dist/types/src/api-model/models/solution-provider-credit-event.d.ts +79 -0
  158. package/dist/types/src/api-model/models/tax-withheld-component.d.ts +31 -0
  159. package/dist/types/src/api-model/models/tax-withholding-event.d.ts +44 -0
  160. package/dist/types/src/api-model/models/tax-withholding-period.d.ts +30 -0
  161. package/dist/types/src/api-model/models/tdsreimbursement-event.d.ts +37 -0
  162. package/dist/types/src/api-model/models/trial-shipment-event.d.ts +49 -0
  163. package/dist/types/src/client.d.ts +13 -0
  164. package/dist/types/src/error.d.ts +3 -0
  165. package/package.json +53 -0
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Finances
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Finances
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Finances
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Finances
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Finances
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Finances
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Finances
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: v0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,49 @@
1
+ /* eslint-disable prefer-regex-literals */
2
+ import { endpoints, awsRegionByCode, createAxiosInstance } from '@sp-api-sdk/common';
3
+ import { Configuration, DefaultApi } from './api-model';
4
+ import { FinancesApiError } from './error';
5
+ export const RATE_LIMITS = [
6
+ {
7
+ method: 'get',
8
+ urlRegex: new RegExp('^/finances/v0/financialEventGroups$'),
9
+ rate: 0.5,
10
+ burst: 30,
11
+ },
12
+ {
13
+ method: 'get',
14
+ urlRegex: new RegExp('^/finances/v0/financialEventGroups/[^/]*/financialEvents$'),
15
+ rate: 0.5,
16
+ burst: 30,
17
+ },
18
+ {
19
+ method: 'get',
20
+ urlRegex: new RegExp('^/finances/v0/orders/[^/]*/financialEvents$'),
21
+ rate: 0.5,
22
+ burst: 30,
23
+ },
24
+ {
25
+ method: 'get',
26
+ urlRegex: new RegExp('^/finances/v0/financialEvents$'),
27
+ rate: 0.5,
28
+ burst: 30,
29
+ },
30
+ ];
31
+ export class FinancesApiClient extends DefaultApi {
32
+ constructor(parameters) {
33
+ const region = awsRegionByCode[parameters.region] ?? parameters.region;
34
+ const { rateLimiting, ...clientParameters } = parameters;
35
+ const axiosParameters = { ...clientParameters, region };
36
+ if (rateLimiting?.retry) {
37
+ axiosParameters.rateLimits = RATE_LIMITS;
38
+ axiosParameters.onRetry = rateLimiting.onRetry;
39
+ }
40
+ const axiosInstance = createAxiosInstance(axiosParameters);
41
+ const configuration = new Configuration();
42
+ const environment = parameters.sandbox ? 'sandbox' : 'production';
43
+ const endpoint = endpoints[environment][region];
44
+ if (!endpoint) {
45
+ throw new FinancesApiError(`Unknown region : ${region}`);
46
+ }
47
+ super(configuration, endpoint, axiosInstance);
48
+ }
49
+ }
@@ -0,0 +1,6 @@
1
+ export class FinancesApiError extends Error {
2
+ constructor(message) {
3
+ super(message);
4
+ this.name = 'FinancesApiError';
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './src/client';
2
+ export * from './src/error';
3
+ export * from './src/api-model/models';
@@ -0,0 +1,300 @@
1
+ /**
2
+ * Selling Partner API for Finances
3
+ * 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.
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { ListFinancialEventGroupsResponse } from '../models';
16
+ import { ListFinancialEventsResponse } from '../models';
17
+ /**
18
+ * DefaultApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
22
+ /**
23
+ * 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.
24
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
25
+ * @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.
26
+ * @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.
27
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ listFinancialEventGroups: (maxResultsPerPage?: number | undefined, financialEventGroupStartedBefore?: string | undefined, financialEventGroupStartedAfter?: string | undefined, nextToken?: string | undefined, options?: any) => Promise<RequestArgs>;
32
+ /**
33
+ * 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.
34
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
35
+ * @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.
36
+ * @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.
37
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ listFinancialEvents: (maxResultsPerPage?: number | undefined, postedAfter?: string | undefined, postedBefore?: string | undefined, nextToken?: string | undefined, options?: any) => Promise<RequestArgs>;
42
+ /**
43
+ * 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.
44
+ * @param {string} eventGroupId The identifier of the financial event group to which the events belong.
45
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
46
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ listFinancialEventsByGroupId: (eventGroupId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: any) => Promise<RequestArgs>;
51
+ /**
52
+ * 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.
53
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
54
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
55
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ listFinancialEventsByOrderId: (orderId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: any) => Promise<RequestArgs>;
60
+ };
61
+ /**
62
+ * DefaultApi - functional programming interface
63
+ * @export
64
+ */
65
+ export declare const DefaultApiFp: (configuration?: Configuration | undefined) => {
66
+ /**
67
+ * 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.
68
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
69
+ * @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.
70
+ * @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.
71
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ listFinancialEventGroups(maxResultsPerPage?: number | undefined, financialEventGroupStartedBefore?: string | undefined, financialEventGroupStartedAfter?: string | undefined, nextToken?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListFinancialEventGroupsResponse>>;
76
+ /**
77
+ * 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.
78
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
79
+ * @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.
80
+ * @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.
81
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ listFinancialEvents(maxResultsPerPage?: number | undefined, postedAfter?: string | undefined, postedBefore?: string | undefined, nextToken?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListFinancialEventsResponse>>;
86
+ /**
87
+ * 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.
88
+ * @param {string} eventGroupId The identifier of the financial event group to which the events belong.
89
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
90
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ listFinancialEventsByGroupId(eventGroupId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListFinancialEventsResponse>>;
95
+ /**
96
+ * 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.
97
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
98
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
99
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ listFinancialEventsByOrderId(orderId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: any): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListFinancialEventsResponse>>;
104
+ };
105
+ /**
106
+ * DefaultApi - factory interface
107
+ * @export
108
+ */
109
+ export declare const DefaultApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
110
+ /**
111
+ * 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.
112
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
113
+ * @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.
114
+ * @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.
115
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ listFinancialEventGroups(maxResultsPerPage?: number | undefined, financialEventGroupStartedBefore?: string | undefined, financialEventGroupStartedAfter?: string | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<ListFinancialEventGroupsResponse>;
120
+ /**
121
+ * 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.
122
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
123
+ * @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.
124
+ * @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.
125
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ listFinancialEvents(maxResultsPerPage?: number | undefined, postedAfter?: string | undefined, postedBefore?: string | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<ListFinancialEventsResponse>;
130
+ /**
131
+ * 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.
132
+ * @param {string} eventGroupId The identifier of the financial event group to which the events belong.
133
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
134
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ listFinancialEventsByGroupId(eventGroupId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<ListFinancialEventsResponse>;
139
+ /**
140
+ * 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.
141
+ * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
142
+ * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
143
+ * @param {string} [nextToken] A string token returned in the response of your previous request.
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ listFinancialEventsByOrderId(orderId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<ListFinancialEventsResponse>;
148
+ };
149
+ /**
150
+ * Request parameters for listFinancialEventGroups operation in DefaultApi.
151
+ * @export
152
+ * @interface DefaultApiListFinancialEventGroupsRequest
153
+ */
154
+ export interface DefaultApiListFinancialEventGroupsRequest {
155
+ /**
156
+ * The maximum number of results to return per page.
157
+ * @type {number}
158
+ * @memberof DefaultApiListFinancialEventGroups
159
+ */
160
+ readonly maxResultsPerPage?: number;
161
+ /**
162
+ * 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.
163
+ * @type {string}
164
+ * @memberof DefaultApiListFinancialEventGroups
165
+ */
166
+ readonly financialEventGroupStartedBefore?: string;
167
+ /**
168
+ * 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.
169
+ * @type {string}
170
+ * @memberof DefaultApiListFinancialEventGroups
171
+ */
172
+ readonly financialEventGroupStartedAfter?: string;
173
+ /**
174
+ * A string token returned in the response of your previous request.
175
+ * @type {string}
176
+ * @memberof DefaultApiListFinancialEventGroups
177
+ */
178
+ readonly nextToken?: string;
179
+ }
180
+ /**
181
+ * Request parameters for listFinancialEvents operation in DefaultApi.
182
+ * @export
183
+ * @interface DefaultApiListFinancialEventsRequest
184
+ */
185
+ export interface DefaultApiListFinancialEventsRequest {
186
+ /**
187
+ * The maximum number of results to return per page.
188
+ * @type {number}
189
+ * @memberof DefaultApiListFinancialEvents
190
+ */
191
+ readonly maxResultsPerPage?: number;
192
+ /**
193
+ * 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.
194
+ * @type {string}
195
+ * @memberof DefaultApiListFinancialEvents
196
+ */
197
+ readonly postedAfter?: string;
198
+ /**
199
+ * 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.
200
+ * @type {string}
201
+ * @memberof DefaultApiListFinancialEvents
202
+ */
203
+ readonly postedBefore?: string;
204
+ /**
205
+ * A string token returned in the response of your previous request.
206
+ * @type {string}
207
+ * @memberof DefaultApiListFinancialEvents
208
+ */
209
+ readonly nextToken?: string;
210
+ }
211
+ /**
212
+ * Request parameters for listFinancialEventsByGroupId operation in DefaultApi.
213
+ * @export
214
+ * @interface DefaultApiListFinancialEventsByGroupIdRequest
215
+ */
216
+ export interface DefaultApiListFinancialEventsByGroupIdRequest {
217
+ /**
218
+ * The identifier of the financial event group to which the events belong.
219
+ * @type {string}
220
+ * @memberof DefaultApiListFinancialEventsByGroupId
221
+ */
222
+ readonly eventGroupId: string;
223
+ /**
224
+ * The maximum number of results to return per page.
225
+ * @type {number}
226
+ * @memberof DefaultApiListFinancialEventsByGroupId
227
+ */
228
+ readonly maxResultsPerPage?: number;
229
+ /**
230
+ * A string token returned in the response of your previous request.
231
+ * @type {string}
232
+ * @memberof DefaultApiListFinancialEventsByGroupId
233
+ */
234
+ readonly nextToken?: string;
235
+ }
236
+ /**
237
+ * Request parameters for listFinancialEventsByOrderId operation in DefaultApi.
238
+ * @export
239
+ * @interface DefaultApiListFinancialEventsByOrderIdRequest
240
+ */
241
+ export interface DefaultApiListFinancialEventsByOrderIdRequest {
242
+ /**
243
+ * An Amazon-defined order identifier, in 3-7-7 format.
244
+ * @type {string}
245
+ * @memberof DefaultApiListFinancialEventsByOrderId
246
+ */
247
+ readonly orderId: string;
248
+ /**
249
+ * The maximum number of results to return per page.
250
+ * @type {number}
251
+ * @memberof DefaultApiListFinancialEventsByOrderId
252
+ */
253
+ readonly maxResultsPerPage?: number;
254
+ /**
255
+ * A string token returned in the response of your previous request.
256
+ * @type {string}
257
+ * @memberof DefaultApiListFinancialEventsByOrderId
258
+ */
259
+ readonly nextToken?: string;
260
+ }
261
+ /**
262
+ * DefaultApi - object-oriented interface
263
+ * @export
264
+ * @class DefaultApi
265
+ * @extends {BaseAPI}
266
+ */
267
+ export declare class DefaultApi extends BaseAPI {
268
+ /**
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.
270
+ * @param {DefaultApiListFinancialEventGroupsRequest} requestParameters Request parameters.
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ * @memberof DefaultApi
274
+ */
275
+ listFinancialEventGroups(requestParameters?: DefaultApiListFinancialEventGroupsRequest, options?: any): Promise<import("axios").AxiosResponse<ListFinancialEventGroupsResponse>>;
276
+ /**
277
+ * 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.
278
+ * @param {DefaultApiListFinancialEventsRequest} requestParameters Request parameters.
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ * @memberof DefaultApi
282
+ */
283
+ listFinancialEvents(requestParameters?: DefaultApiListFinancialEventsRequest, options?: any): Promise<import("axios").AxiosResponse<ListFinancialEventsResponse>>;
284
+ /**
285
+ * 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
+ * @param {DefaultApiListFinancialEventsByGroupIdRequest} requestParameters Request parameters.
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ * @memberof DefaultApi
290
+ */
291
+ listFinancialEventsByGroupId(requestParameters: DefaultApiListFinancialEventsByGroupIdRequest, options?: any): Promise<import("axios").AxiosResponse<ListFinancialEventsResponse>>;
292
+ /**
293
+ * 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.
294
+ * @param {DefaultApiListFinancialEventsByOrderIdRequest} requestParameters Request parameters.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ * @memberof DefaultApi
298
+ */
299
+ listFinancialEventsByOrderId(requestParameters: DefaultApiListFinancialEventsByOrderIdRequest, options?: any): Promise<import("axios").AxiosResponse<ListFinancialEventsResponse>>;
300
+ }