@sp-api-sdk/seller-wallet-api-2024-03-01 1.5.2 → 2.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 (155) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +1252 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +1894 -0
  5. package/dist/index.d.ts +1894 -0
  6. package/dist/index.js +1195 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/seller-wallet-api.js +0 -981
  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/balance-listing.js +0 -15
  16. package/dist/cjs/api-model/models/balance-type.js +0 -25
  17. package/dist/cjs/api-model/models/balance.js +0 -15
  18. package/dist/cjs/api-model/models/bank-account-holder-status.js +0 -25
  19. package/dist/cjs/api-model/models/bank-account-listing.js +0 -15
  20. package/dist/cjs/api-model/models/bank-account-number-format.js +0 -23
  21. package/dist/cjs/api-model/models/bank-account-ownership-type.js +0 -23
  22. package/dist/cjs/api-model/models/bank-account.js +0 -15
  23. package/dist/cjs/api-model/models/bank-number-format.js +0 -23
  24. package/dist/cjs/api-model/models/create-transaction-response.js +0 -15
  25. package/dist/cjs/api-model/models/currency.js +0 -15
  26. package/dist/cjs/api-model/models/delete-transfer-schedule.js +0 -15
  27. package/dist/cjs/api-model/models/error-list.js +0 -15
  28. package/dist/cjs/api-model/models/fee-type.js +0 -24
  29. package/dist/cjs/api-model/models/fee.js +0 -15
  30. package/dist/cjs/api-model/models/fx-rate-details.js +0 -15
  31. package/dist/cjs/api-model/models/index.js +0 -56
  32. package/dist/cjs/api-model/models/model-error.js +0 -15
  33. package/dist/cjs/api-model/models/payee-contact-information.js +0 -15
  34. package/dist/cjs/api-model/models/payee-entity-type.js +0 -24
  35. package/dist/cjs/api-model/models/payment-preference-payment-type.js +0 -23
  36. package/dist/cjs/api-model/models/payment-preference.js +0 -15
  37. package/dist/cjs/api-model/models/rate-direction.js +0 -23
  38. package/dist/cjs/api-model/models/recurring-frequency.js +0 -25
  39. package/dist/cjs/api-model/models/schedule-expression-type.js +0 -23
  40. package/dist/cjs/api-model/models/schedule-expression.js +0 -15
  41. package/dist/cjs/api-model/models/schedule-transfer-type.js +0 -22
  42. package/dist/cjs/api-model/models/transaction-account.js +0 -15
  43. package/dist/cjs/api-model/models/transaction-initiation-request.js +0 -15
  44. package/dist/cjs/api-model/models/transaction-instrument-details.js +0 -15
  45. package/dist/cjs/api-model/models/transaction-listing.js +0 -15
  46. package/dist/cjs/api-model/models/transaction-status.js +0 -27
  47. package/dist/cjs/api-model/models/transaction-type.js +0 -23
  48. package/dist/cjs/api-model/models/transaction.js +0 -15
  49. package/dist/cjs/api-model/models/transfer-rate-preview.js +0 -15
  50. package/dist/cjs/api-model/models/transfer-schedule-failures.js +0 -15
  51. package/dist/cjs/api-model/models/transfer-schedule-information.js +0 -15
  52. package/dist/cjs/api-model/models/transfer-schedule-listing.js +0 -15
  53. package/dist/cjs/api-model/models/transfer-schedule-request.js +0 -15
  54. package/dist/cjs/api-model/models/transfer-schedule-status.js +0 -25
  55. package/dist/cjs/api-model/models/transfer-schedule.js +0 -15
  56. package/dist/cjs/client.js +0 -13
  57. package/dist/cjs/index.js +0 -19
  58. package/dist/es/api-model/api/seller-wallet-api.js +0 -971
  59. package/dist/es/api-model/api.js +0 -14
  60. package/dist/es/api-model/base.js +0 -44
  61. package/dist/es/api-model/common.js +0 -110
  62. package/dist/es/api-model/configuration.js +0 -94
  63. package/dist/es/api-model/index.js +0 -16
  64. package/dist/es/api-model/models/balance-listing.js +0 -14
  65. package/dist/es/api-model/models/balance-type.js +0 -22
  66. package/dist/es/api-model/models/balance.js +0 -14
  67. package/dist/es/api-model/models/bank-account-holder-status.js +0 -22
  68. package/dist/es/api-model/models/bank-account-listing.js +0 -14
  69. package/dist/es/api-model/models/bank-account-number-format.js +0 -20
  70. package/dist/es/api-model/models/bank-account-ownership-type.js +0 -20
  71. package/dist/es/api-model/models/bank-account.js +0 -14
  72. package/dist/es/api-model/models/bank-number-format.js +0 -20
  73. package/dist/es/api-model/models/create-transaction-response.js +0 -14
  74. package/dist/es/api-model/models/currency.js +0 -14
  75. package/dist/es/api-model/models/delete-transfer-schedule.js +0 -14
  76. package/dist/es/api-model/models/error-list.js +0 -14
  77. package/dist/es/api-model/models/fee-type.js +0 -21
  78. package/dist/es/api-model/models/fee.js +0 -14
  79. package/dist/es/api-model/models/fx-rate-details.js +0 -14
  80. package/dist/es/api-model/models/index.js +0 -40
  81. package/dist/es/api-model/models/model-error.js +0 -14
  82. package/dist/es/api-model/models/payee-contact-information.js +0 -14
  83. package/dist/es/api-model/models/payee-entity-type.js +0 -21
  84. package/dist/es/api-model/models/payment-preference-payment-type.js +0 -20
  85. package/dist/es/api-model/models/payment-preference.js +0 -14
  86. package/dist/es/api-model/models/rate-direction.js +0 -20
  87. package/dist/es/api-model/models/recurring-frequency.js +0 -22
  88. package/dist/es/api-model/models/schedule-expression-type.js +0 -20
  89. package/dist/es/api-model/models/schedule-expression.js +0 -14
  90. package/dist/es/api-model/models/schedule-transfer-type.js +0 -19
  91. package/dist/es/api-model/models/transaction-account.js +0 -14
  92. package/dist/es/api-model/models/transaction-initiation-request.js +0 -14
  93. package/dist/es/api-model/models/transaction-instrument-details.js +0 -14
  94. package/dist/es/api-model/models/transaction-listing.js +0 -14
  95. package/dist/es/api-model/models/transaction-status.js +0 -24
  96. package/dist/es/api-model/models/transaction-type.js +0 -20
  97. package/dist/es/api-model/models/transaction.js +0 -14
  98. package/dist/es/api-model/models/transfer-rate-preview.js +0 -14
  99. package/dist/es/api-model/models/transfer-schedule-failures.js +0 -14
  100. package/dist/es/api-model/models/transfer-schedule-information.js +0 -14
  101. package/dist/es/api-model/models/transfer-schedule-listing.js +0 -14
  102. package/dist/es/api-model/models/transfer-schedule-request.js +0 -14
  103. package/dist/es/api-model/models/transfer-schedule-status.js +0 -22
  104. package/dist/es/api-model/models/transfer-schedule.js +0 -14
  105. package/dist/es/client.js +0 -9
  106. package/dist/es/index.js +0 -3
  107. package/dist/types/api-model/api/seller-wallet-api.d.ts +0 -677
  108. package/dist/types/api-model/api.d.ts +0 -12
  109. package/dist/types/api-model/base.d.ts +0 -42
  110. package/dist/types/api-model/common.d.ts +0 -34
  111. package/dist/types/api-model/configuration.d.ts +0 -98
  112. package/dist/types/api-model/index.d.ts +0 -14
  113. package/dist/types/api-model/models/balance-listing.d.ts +0 -21
  114. package/dist/types/api-model/models/balance-type.d.ts +0 -21
  115. package/dist/types/api-model/models/balance.d.ts +0 -34
  116. package/dist/types/api-model/models/bank-account-holder-status.d.ts +0 -21
  117. package/dist/types/api-model/models/bank-account-listing.d.ts +0 -21
  118. package/dist/types/api-model/models/bank-account-number-format.d.ts +0 -19
  119. package/dist/types/api-model/models/bank-account-ownership-type.d.ts +0 -19
  120. package/dist/types/api-model/models/bank-account.d.ts +0 -52
  121. package/dist/types/api-model/models/bank-number-format.d.ts +0 -19
  122. package/dist/types/api-model/models/create-transaction-response.d.ts +0 -22
  123. package/dist/types/api-model/models/currency.d.ts +0 -24
  124. package/dist/types/api-model/models/delete-transfer-schedule.d.ts +0 -28
  125. package/dist/types/api-model/models/error-list.d.ts +0 -20
  126. package/dist/types/api-model/models/fee-type.d.ts +0 -20
  127. package/dist/types/api-model/models/fee.d.ts +0 -28
  128. package/dist/types/api-model/models/fx-rate-details.d.ts +0 -30
  129. package/dist/types/api-model/models/index.d.ts +0 -40
  130. package/dist/types/api-model/models/model-error.d.ts +0 -28
  131. package/dist/types/api-model/models/payee-contact-information.d.ts +0 -66
  132. package/dist/types/api-model/models/payee-entity-type.d.ts +0 -20
  133. package/dist/types/api-model/models/payment-preference-payment-type.d.ts +0 -19
  134. package/dist/types/api-model/models/payment-preference.d.ts +0 -22
  135. package/dist/types/api-model/models/rate-direction.d.ts +0 -19
  136. package/dist/types/api-model/models/recurring-frequency.d.ts +0 -21
  137. package/dist/types/api-model/models/schedule-expression-type.d.ts +0 -19
  138. package/dist/types/api-model/models/schedule-expression.d.ts +0 -20
  139. package/dist/types/api-model/models/schedule-transfer-type.d.ts +0 -18
  140. package/dist/types/api-model/models/transaction-account.d.ts +0 -42
  141. package/dist/types/api-model/models/transaction-initiation-request.d.ts +0 -44
  142. package/dist/types/api-model/models/transaction-instrument-details.d.ts +0 -26
  143. package/dist/types/api-model/models/transaction-listing.d.ts +0 -25
  144. package/dist/types/api-model/models/transaction-status.d.ts +0 -23
  145. package/dist/types/api-model/models/transaction-type.d.ts +0 -19
  146. package/dist/types/api-model/models/transaction.d.ts +0 -68
  147. package/dist/types/api-model/models/transfer-rate-preview.d.ts +0 -26
  148. package/dist/types/api-model/models/transfer-schedule-failures.d.ts +0 -24
  149. package/dist/types/api-model/models/transfer-schedule-information.d.ts +0 -28
  150. package/dist/types/api-model/models/transfer-schedule-listing.d.ts +0 -25
  151. package/dist/types/api-model/models/transfer-schedule-request.d.ts +0 -38
  152. package/dist/types/api-model/models/transfer-schedule-status.d.ts +0 -21
  153. package/dist/types/api-model/models/transfer-schedule.d.ts +0 -36
  154. package/dist/types/client.d.ts +0 -6
  155. package/dist/types/index.d.ts +0 -3
@@ -1,971 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Amazon Seller Wallet Open Banking API
5
- * The Selling Partner API for Seller Wallet (Seller Wallet API) provides financial information that is relevant to a seller\'s Seller Wallet account. You can obtain financial events, balances, and transfer schedules for Seller Wallet accounts. You can also schedule and initiate transactions.
6
- *
7
- * The version of the OpenAPI document: 2024-03-01
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
- import globalAxios from 'axios';
15
- // Some imports not used depending on template conditions
16
- // @ts-ignore
17
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
- // @ts-ignore
19
- import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
20
- /**
21
- * SellerWalletApi - axios parameter creator
22
- */
23
- export const SellerWalletApiAxiosParamCreator = function (configuration) {
24
- return {
25
- /**
26
- * Create a transaction request from a Seller Wallet account to another customer-provided account.
27
- * @summary Create a transaction request from Amazon Seller Wallet account to another customer-provided account
28
- * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details. For more information, refer to [Third-Party Provider Signature Guidance](https://developer-docs.amazon.com/sp-api/docs/tpp-registration-signature-guidance).
29
- * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount. Sign in the order of the request definitions. You can omit empty or optional fields. For more information, refer to [Third-Party Provider Signature Guidance](https://developer-docs.amazon.com/sp-api/docs/tpp-registration-signature-guidance).
30
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
31
- * @param {TransactionInitiationRequest} body The payload of the request
32
- * @param {*} [options] Override http request option.
33
- * @throws {RequiredError}
34
- */
35
- createTransaction: async (destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options = {}) => {
36
- // verify required parameter 'destAccountDigitalSignature' is not null or undefined
37
- assertParamExists('createTransaction', 'destAccountDigitalSignature', destAccountDigitalSignature);
38
- // verify required parameter 'amountDigitalSignature' is not null or undefined
39
- assertParamExists('createTransaction', 'amountDigitalSignature', amountDigitalSignature);
40
- // verify required parameter 'marketplaceId' is not null or undefined
41
- assertParamExists('createTransaction', 'marketplaceId', marketplaceId);
42
- // verify required parameter 'body' is not null or undefined
43
- assertParamExists('createTransaction', 'body', body);
44
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transactions`;
45
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
- let baseOptions;
48
- if (configuration) {
49
- baseOptions = configuration.baseOptions;
50
- }
51
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
52
- const localVarHeaderParameter = {};
53
- const localVarQueryParameter = {};
54
- if (marketplaceId !== undefined) {
55
- localVarQueryParameter['marketplaceId'] = marketplaceId;
56
- }
57
- localVarHeaderParameter['Content-Type'] = 'application/json';
58
- localVarHeaderParameter['Accept'] = 'application/json';
59
- if (destAccountDigitalSignature != null) {
60
- localVarHeaderParameter['destAccountDigitalSignature'] = String(destAccountDigitalSignature);
61
- }
62
- if (amountDigitalSignature != null) {
63
- localVarHeaderParameter['amountDigitalSignature'] = String(amountDigitalSignature);
64
- }
65
- setSearchParams(localVarUrlObj, localVarQueryParameter);
66
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
68
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
69
- return {
70
- url: toPathString(localVarUrlObj),
71
- options: localVarRequestOptions,
72
- };
73
- },
74
- /**
75
- * Create a transfer schedule request from a Seller Wallet account to another customer-provided account.
76
- * @summary Create a transfer schedule request from Amazon Seller Wallet account to another customer-provided account
77
- * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details.
78
- * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount.
79
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
80
- * @param {TransferScheduleRequest} body The payload of the request.
81
- * @param {*} [options] Override http request option.
82
- * @throws {RequiredError}
83
- */
84
- createTransferSchedule: async (destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options = {}) => {
85
- // verify required parameter 'destAccountDigitalSignature' is not null or undefined
86
- assertParamExists('createTransferSchedule', 'destAccountDigitalSignature', destAccountDigitalSignature);
87
- // verify required parameter 'amountDigitalSignature' is not null or undefined
88
- assertParamExists('createTransferSchedule', 'amountDigitalSignature', amountDigitalSignature);
89
- // verify required parameter 'marketplaceId' is not null or undefined
90
- assertParamExists('createTransferSchedule', 'marketplaceId', marketplaceId);
91
- // verify required parameter 'body' is not null or undefined
92
- assertParamExists('createTransferSchedule', 'body', body);
93
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules`;
94
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
96
- let baseOptions;
97
- if (configuration) {
98
- baseOptions = configuration.baseOptions;
99
- }
100
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
101
- const localVarHeaderParameter = {};
102
- const localVarQueryParameter = {};
103
- if (marketplaceId !== undefined) {
104
- localVarQueryParameter['marketplaceId'] = marketplaceId;
105
- }
106
- localVarHeaderParameter['Content-Type'] = 'application/json';
107
- localVarHeaderParameter['Accept'] = 'application/json';
108
- if (destAccountDigitalSignature != null) {
109
- localVarHeaderParameter['destAccountDigitalSignature'] = String(destAccountDigitalSignature);
110
- }
111
- if (amountDigitalSignature != null) {
112
- localVarHeaderParameter['amountDigitalSignature'] = String(amountDigitalSignature);
113
- }
114
- setSearchParams(localVarUrlObj, localVarQueryParameter);
115
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
116
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
117
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
118
- return {
119
- url: toPathString(localVarUrlObj),
120
- options: localVarRequestOptions,
121
- };
122
- },
123
- /**
124
- * Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account.
125
- * @summary Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account
126
- * @param {string} transferScheduleId A unique reference ID for a scheduled transfer.
127
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
128
- * @param {*} [options] Override http request option.
129
- * @throws {RequiredError}
130
- */
131
- deleteScheduleTransaction: async (transferScheduleId, marketplaceId, options = {}) => {
132
- // verify required parameter 'transferScheduleId' is not null or undefined
133
- assertParamExists('deleteScheduleTransaction', 'transferScheduleId', transferScheduleId);
134
- // verify required parameter 'marketplaceId' is not null or undefined
135
- assertParamExists('deleteScheduleTransaction', 'marketplaceId', marketplaceId);
136
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules/{transferScheduleId}`
137
- .replace('{transferScheduleId}', encodeURIComponent(String(transferScheduleId)));
138
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
139
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
140
- let baseOptions;
141
- if (configuration) {
142
- baseOptions = configuration.baseOptions;
143
- }
144
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
145
- const localVarHeaderParameter = {};
146
- const localVarQueryParameter = {};
147
- if (marketplaceId !== undefined) {
148
- localVarQueryParameter['marketplaceId'] = marketplaceId;
149
- }
150
- localVarHeaderParameter['Accept'] = 'application/json';
151
- setSearchParams(localVarUrlObj, localVarQueryParameter);
152
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
154
- return {
155
- url: toPathString(localVarUrlObj),
156
- options: localVarRequestOptions,
157
- };
158
- },
159
- /**
160
- * Retrieve a Seller Wallet bank account by Amazon account identifier.
161
- * @summary Find particular Amazon Seller Wallet account by Amazon account identifier
162
- * @param {string} accountId The ID of the Amazon Seller Wallet account.
163
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
164
- * @param {*} [options] Override http request option.
165
- * @throws {RequiredError}
166
- */
167
- getAccount: async (accountId, marketplaceId, options = {}) => {
168
- // verify required parameter 'accountId' is not null or undefined
169
- assertParamExists('getAccount', 'accountId', accountId);
170
- // verify required parameter 'marketplaceId' is not null or undefined
171
- assertParamExists('getAccount', 'marketplaceId', marketplaceId);
172
- const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts/{accountId}`
173
- .replace('{accountId}', encodeURIComponent(String(accountId)));
174
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
175
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
176
- let baseOptions;
177
- if (configuration) {
178
- baseOptions = configuration.baseOptions;
179
- }
180
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
181
- const localVarHeaderParameter = {};
182
- const localVarQueryParameter = {};
183
- if (marketplaceId !== undefined) {
184
- localVarQueryParameter['marketplaceId'] = marketplaceId;
185
- }
186
- localVarHeaderParameter['Accept'] = 'application/json';
187
- setSearchParams(localVarUrlObj, localVarQueryParameter);
188
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
190
- return {
191
- url: toPathString(localVarUrlObj),
192
- options: localVarRequestOptions,
193
- };
194
- },
195
- /**
196
- * Find a transaction by the Amazon transaction identifier.
197
- * @summary Find particular Amazon Seller Wallet account transaction by Amazon transaction identifier
198
- * @param {string} transactionId The ID of the Amazon Seller Wallet transaction.
199
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- getTransaction: async (transactionId, marketplaceId, options = {}) => {
204
- // verify required parameter 'transactionId' is not null or undefined
205
- assertParamExists('getTransaction', 'transactionId', transactionId);
206
- // verify required parameter 'marketplaceId' is not null or undefined
207
- assertParamExists('getTransaction', 'marketplaceId', marketplaceId);
208
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transactions/{transactionId}`
209
- .replace('{transactionId}', encodeURIComponent(String(transactionId)));
210
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
212
- let baseOptions;
213
- if (configuration) {
214
- baseOptions = configuration.baseOptions;
215
- }
216
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
217
- const localVarHeaderParameter = {};
218
- const localVarQueryParameter = {};
219
- if (marketplaceId !== undefined) {
220
- localVarQueryParameter['marketplaceId'] = marketplaceId;
221
- }
222
- localVarHeaderParameter['Accept'] = 'application/json';
223
- setSearchParams(localVarUrlObj, localVarQueryParameter);
224
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
226
- return {
227
- url: toPathString(localVarUrlObj),
228
- options: localVarRequestOptions,
229
- };
230
- },
231
- /**
232
- * Retrieve a list of potential fees on a transaction.
233
- * @summary Fetch potential fees that could be applied on a transaction on the basis of the source and destination country currency code
234
- * @param {string} sourceCountryCode Country code of the source transaction account in ISO 3166 format.
235
- * @param {string} sourceCurrencyCode Currency code of the source transaction country in ISO 4217 format.
236
- * @param {string} destinationCountryCode Country code of the destination transaction account in ISO 3166 format.
237
- * @param {string} destinationCurrencyCode Currency code of the destination transaction country in ISO 4217 format.
238
- * @param {number} baseAmount The base transaction amount without any markup fees.
239
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
240
- * @param {*} [options] Override http request option.
241
- * @throws {RequiredError}
242
- */
243
- getTransferPreview: async (sourceCountryCode, sourceCurrencyCode, destinationCountryCode, destinationCurrencyCode, baseAmount, marketplaceId, options = {}) => {
244
- // verify required parameter 'sourceCountryCode' is not null or undefined
245
- assertParamExists('getTransferPreview', 'sourceCountryCode', sourceCountryCode);
246
- // verify required parameter 'sourceCurrencyCode' is not null or undefined
247
- assertParamExists('getTransferPreview', 'sourceCurrencyCode', sourceCurrencyCode);
248
- // verify required parameter 'destinationCountryCode' is not null or undefined
249
- assertParamExists('getTransferPreview', 'destinationCountryCode', destinationCountryCode);
250
- // verify required parameter 'destinationCurrencyCode' is not null or undefined
251
- assertParamExists('getTransferPreview', 'destinationCurrencyCode', destinationCurrencyCode);
252
- // verify required parameter 'baseAmount' is not null or undefined
253
- assertParamExists('getTransferPreview', 'baseAmount', baseAmount);
254
- // verify required parameter 'marketplaceId' is not null or undefined
255
- assertParamExists('getTransferPreview', 'marketplaceId', marketplaceId);
256
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transferPreview`;
257
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
258
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
259
- let baseOptions;
260
- if (configuration) {
261
- baseOptions = configuration.baseOptions;
262
- }
263
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
264
- const localVarHeaderParameter = {};
265
- const localVarQueryParameter = {};
266
- if (sourceCountryCode !== undefined) {
267
- localVarQueryParameter['sourceCountryCode'] = sourceCountryCode;
268
- }
269
- if (sourceCurrencyCode !== undefined) {
270
- localVarQueryParameter['sourceCurrencyCode'] = sourceCurrencyCode;
271
- }
272
- if (destinationCountryCode !== undefined) {
273
- localVarQueryParameter['destinationCountryCode'] = destinationCountryCode;
274
- }
275
- if (destinationCurrencyCode !== undefined) {
276
- localVarQueryParameter['destinationCurrencyCode'] = destinationCurrencyCode;
277
- }
278
- if (baseAmount !== undefined) {
279
- localVarQueryParameter['baseAmount'] = baseAmount;
280
- }
281
- if (marketplaceId !== undefined) {
282
- localVarQueryParameter['marketplaceId'] = marketplaceId;
283
- }
284
- localVarHeaderParameter['Accept'] = 'application/json';
285
- setSearchParams(localVarUrlObj, localVarQueryParameter);
286
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
288
- return {
289
- url: toPathString(localVarUrlObj),
290
- options: localVarRequestOptions,
291
- };
292
- },
293
- /**
294
- * Find a particular Amazon Seller Wallet account transfer schedule.
295
- * @summary Find particular Amazon Seller Wallet account transfer schedule by Amazon transfer schedule identifier
296
- * @param {string} transferScheduleId The schedule ID of the Amazon Seller Wallet transfer.
297
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
298
- * @param {*} [options] Override http request option.
299
- * @throws {RequiredError}
300
- */
301
- getTransferSchedule: async (transferScheduleId, marketplaceId, options = {}) => {
302
- // verify required parameter 'transferScheduleId' is not null or undefined
303
- assertParamExists('getTransferSchedule', 'transferScheduleId', transferScheduleId);
304
- // verify required parameter 'marketplaceId' is not null or undefined
305
- assertParamExists('getTransferSchedule', 'marketplaceId', marketplaceId);
306
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules/{transferScheduleId}`
307
- .replace('{transferScheduleId}', encodeURIComponent(String(transferScheduleId)));
308
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
309
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
310
- let baseOptions;
311
- if (configuration) {
312
- baseOptions = configuration.baseOptions;
313
- }
314
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
315
- const localVarHeaderParameter = {};
316
- const localVarQueryParameter = {};
317
- if (marketplaceId !== undefined) {
318
- localVarQueryParameter['marketplaceId'] = marketplaceId;
319
- }
320
- localVarHeaderParameter['Accept'] = 'application/json';
321
- setSearchParams(localVarUrlObj, localVarQueryParameter);
322
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
323
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
324
- return {
325
- url: toPathString(localVarUrlObj),
326
- options: localVarRequestOptions,
327
- };
328
- },
329
- /**
330
- * Retrieve the balance in a given Seller Wallet bank account.
331
- * @summary Find balance in particular Amazon Seller Wallet account by Amazon account identifier
332
- * @param {string} accountId The ID of the Amazon Seller Wallet account.
333
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
334
- * @param {*} [options] Override http request option.
335
- * @throws {RequiredError}
336
- */
337
- listAccountBalances: async (accountId, marketplaceId, options = {}) => {
338
- // verify required parameter 'accountId' is not null or undefined
339
- assertParamExists('listAccountBalances', 'accountId', accountId);
340
- // verify required parameter 'marketplaceId' is not null or undefined
341
- assertParamExists('listAccountBalances', 'marketplaceId', marketplaceId);
342
- const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts/{accountId}/balance`
343
- .replace('{accountId}', encodeURIComponent(String(accountId)));
344
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
345
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
346
- let baseOptions;
347
- if (configuration) {
348
- baseOptions = configuration.baseOptions;
349
- }
350
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
351
- const localVarHeaderParameter = {};
352
- const localVarQueryParameter = {};
353
- if (marketplaceId !== undefined) {
354
- localVarQueryParameter['marketplaceId'] = marketplaceId;
355
- }
356
- localVarHeaderParameter['Accept'] = 'application/json';
357
- setSearchParams(localVarUrlObj, localVarQueryParameter);
358
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
360
- return {
361
- url: toPathString(localVarUrlObj),
362
- options: localVarRequestOptions,
363
- };
364
- },
365
- /**
366
- * Retrieve a list of transactions for a given Seller Wallet bank account.
367
- * @summary The API will return all the transactions for a given Amazon Seller Wallet account sorted by the transaction request date
368
- * @param {string} accountId The ID of the Amazon Seller Wallet account.
369
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
370
- * @param {string} [nextPageToken] A token that you use to retrieve the next page of results. The response includes `nextPageToken` when the number of results exceeds 100. 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 `nextPageToken` is null. Note that this operation can return empty pages.
371
- * @param {*} [options] Override http request option.
372
- * @throws {RequiredError}
373
- */
374
- listAccountTransactions: async (accountId, marketplaceId, nextPageToken, options = {}) => {
375
- // verify required parameter 'accountId' is not null or undefined
376
- assertParamExists('listAccountTransactions', 'accountId', accountId);
377
- // verify required parameter 'marketplaceId' is not null or undefined
378
- assertParamExists('listAccountTransactions', 'marketplaceId', marketplaceId);
379
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transactions`;
380
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
381
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
382
- let baseOptions;
383
- if (configuration) {
384
- baseOptions = configuration.baseOptions;
385
- }
386
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
387
- const localVarHeaderParameter = {};
388
- const localVarQueryParameter = {};
389
- if (accountId !== undefined) {
390
- localVarQueryParameter['accountId'] = accountId;
391
- }
392
- if (nextPageToken !== undefined) {
393
- localVarQueryParameter['nextPageToken'] = nextPageToken;
394
- }
395
- if (marketplaceId !== undefined) {
396
- localVarQueryParameter['marketplaceId'] = marketplaceId;
397
- }
398
- localVarHeaderParameter['Accept'] = 'application/json';
399
- setSearchParams(localVarUrlObj, localVarQueryParameter);
400
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
401
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
402
- return {
403
- url: toPathString(localVarUrlObj),
404
- options: localVarRequestOptions,
405
- };
406
- },
407
- /**
408
- * Get Seller Wallet accounts for a seller.
409
- * @summary Get all Amazon Seller Wallet accounts for the seller
410
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
411
- * @param {*} [options] Override http request option.
412
- * @throws {RequiredError}
413
- */
414
- listAccounts: async (marketplaceId, options = {}) => {
415
- // verify required parameter 'marketplaceId' is not null or undefined
416
- assertParamExists('listAccounts', 'marketplaceId', marketplaceId);
417
- const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts`;
418
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
420
- let baseOptions;
421
- if (configuration) {
422
- baseOptions = configuration.baseOptions;
423
- }
424
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
425
- const localVarHeaderParameter = {};
426
- const localVarQueryParameter = {};
427
- if (marketplaceId !== undefined) {
428
- localVarQueryParameter['marketplaceId'] = marketplaceId;
429
- }
430
- localVarHeaderParameter['Accept'] = 'application/json';
431
- setSearchParams(localVarUrlObj, localVarQueryParameter);
432
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
433
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
434
- return {
435
- url: toPathString(localVarUrlObj),
436
- options: localVarRequestOptions,
437
- };
438
- },
439
- /**
440
- * Retrieve transfer schedules of a Seller Wallet bank account.
441
- * @summary The API will return all the transfer schedules for a given Amazon Seller Wallet account
442
- * @param {string} accountId The ID of the Amazon Seller Wallet account.
443
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
444
- * @param {string} [nextPageToken] A token that you use to retrieve the next page of results. The response includes `nextPageToken` 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 `nextPageToken` is null. Note that this operation can return empty pages.
445
- * @param {*} [options] Override http request option.
446
- * @throws {RequiredError}
447
- */
448
- listTransferSchedules: async (accountId, marketplaceId, nextPageToken, options = {}) => {
449
- // verify required parameter 'accountId' is not null or undefined
450
- assertParamExists('listTransferSchedules', 'accountId', accountId);
451
- // verify required parameter 'marketplaceId' is not null or undefined
452
- assertParamExists('listTransferSchedules', 'marketplaceId', marketplaceId);
453
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules`;
454
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
455
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
456
- let baseOptions;
457
- if (configuration) {
458
- baseOptions = configuration.baseOptions;
459
- }
460
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
461
- const localVarHeaderParameter = {};
462
- const localVarQueryParameter = {};
463
- if (accountId !== undefined) {
464
- localVarQueryParameter['accountId'] = accountId;
465
- }
466
- if (marketplaceId !== undefined) {
467
- localVarQueryParameter['marketplaceId'] = marketplaceId;
468
- }
469
- if (nextPageToken !== undefined) {
470
- localVarQueryParameter['nextPageToken'] = nextPageToken;
471
- }
472
- localVarHeaderParameter['Accept'] = 'application/json';
473
- setSearchParams(localVarUrlObj, localVarQueryParameter);
474
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
475
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
476
- return {
477
- url: toPathString(localVarUrlObj),
478
- options: localVarRequestOptions,
479
- };
480
- },
481
- /**
482
- * Update transfer schedule information. Returns a transfer belonging to the updated scheduled transfer request.
483
- * @summary Update a transfer schedule information. Only fields (i.e; transferScheduleInformation, paymentPreference, transferScheduleStatus) in the request body can be updated.
484
- * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details.
485
- * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount.
486
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
487
- * @param {TransferSchedule} body The payload of the scheduled transfer request that is to be updated.
488
- * @param {*} [options] Override http request option.
489
- * @throws {RequiredError}
490
- */
491
- updateTransferSchedule: async (destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options = {}) => {
492
- // verify required parameter 'destAccountDigitalSignature' is not null or undefined
493
- assertParamExists('updateTransferSchedule', 'destAccountDigitalSignature', destAccountDigitalSignature);
494
- // verify required parameter 'amountDigitalSignature' is not null or undefined
495
- assertParamExists('updateTransferSchedule', 'amountDigitalSignature', amountDigitalSignature);
496
- // verify required parameter 'marketplaceId' is not null or undefined
497
- assertParamExists('updateTransferSchedule', 'marketplaceId', marketplaceId);
498
- // verify required parameter 'body' is not null or undefined
499
- assertParamExists('updateTransferSchedule', 'body', body);
500
- const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules`;
501
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
502
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
503
- let baseOptions;
504
- if (configuration) {
505
- baseOptions = configuration.baseOptions;
506
- }
507
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
508
- const localVarHeaderParameter = {};
509
- const localVarQueryParameter = {};
510
- if (marketplaceId !== undefined) {
511
- localVarQueryParameter['marketplaceId'] = marketplaceId;
512
- }
513
- localVarHeaderParameter['Content-Type'] = 'application/json';
514
- localVarHeaderParameter['Accept'] = 'application/json';
515
- if (destAccountDigitalSignature != null) {
516
- localVarHeaderParameter['destAccountDigitalSignature'] = String(destAccountDigitalSignature);
517
- }
518
- if (amountDigitalSignature != null) {
519
- localVarHeaderParameter['amountDigitalSignature'] = String(amountDigitalSignature);
520
- }
521
- setSearchParams(localVarUrlObj, localVarQueryParameter);
522
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
523
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
524
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
525
- return {
526
- url: toPathString(localVarUrlObj),
527
- options: localVarRequestOptions,
528
- };
529
- },
530
- };
531
- };
532
- /**
533
- * SellerWalletApi - functional programming interface
534
- */
535
- export const SellerWalletApiFp = function (configuration) {
536
- const localVarAxiosParamCreator = SellerWalletApiAxiosParamCreator(configuration);
537
- return {
538
- /**
539
- * Create a transaction request from a Seller Wallet account to another customer-provided account.
540
- * @summary Create a transaction request from Amazon Seller Wallet account to another customer-provided account
541
- * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details. For more information, refer to [Third-Party Provider Signature Guidance](https://developer-docs.amazon.com/sp-api/docs/tpp-registration-signature-guidance).
542
- * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount. Sign in the order of the request definitions. You can omit empty or optional fields. For more information, refer to [Third-Party Provider Signature Guidance](https://developer-docs.amazon.com/sp-api/docs/tpp-registration-signature-guidance).
543
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
544
- * @param {TransactionInitiationRequest} body The payload of the request
545
- * @param {*} [options] Override http request option.
546
- * @throws {RequiredError}
547
- */
548
- async createTransaction(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options) {
549
- const localVarAxiosArgs = await localVarAxiosParamCreator.createTransaction(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options);
550
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
551
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.createTransaction']?.[localVarOperationServerIndex]?.url;
552
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
553
- },
554
- /**
555
- * Create a transfer schedule request from a Seller Wallet account to another customer-provided account.
556
- * @summary Create a transfer schedule request from Amazon Seller Wallet account to another customer-provided account
557
- * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details.
558
- * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount.
559
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
560
- * @param {TransferScheduleRequest} body The payload of the request.
561
- * @param {*} [options] Override http request option.
562
- * @throws {RequiredError}
563
- */
564
- async createTransferSchedule(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options) {
565
- const localVarAxiosArgs = await localVarAxiosParamCreator.createTransferSchedule(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options);
566
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
567
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.createTransferSchedule']?.[localVarOperationServerIndex]?.url;
568
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
569
- },
570
- /**
571
- * Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account.
572
- * @summary Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account
573
- * @param {string} transferScheduleId A unique reference ID for a scheduled transfer.
574
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
575
- * @param {*} [options] Override http request option.
576
- * @throws {RequiredError}
577
- */
578
- async deleteScheduleTransaction(transferScheduleId, marketplaceId, options) {
579
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScheduleTransaction(transferScheduleId, marketplaceId, options);
580
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
581
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.deleteScheduleTransaction']?.[localVarOperationServerIndex]?.url;
582
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
583
- },
584
- /**
585
- * Retrieve a Seller Wallet bank account by Amazon account identifier.
586
- * @summary Find particular Amazon Seller Wallet account by Amazon account identifier
587
- * @param {string} accountId The ID of the Amazon Seller Wallet account.
588
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
589
- * @param {*} [options] Override http request option.
590
- * @throws {RequiredError}
591
- */
592
- async getAccount(accountId, marketplaceId, options) {
593
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(accountId, marketplaceId, options);
594
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
595
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.getAccount']?.[localVarOperationServerIndex]?.url;
596
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
597
- },
598
- /**
599
- * Find a transaction by the Amazon transaction identifier.
600
- * @summary Find particular Amazon Seller Wallet account transaction by Amazon transaction identifier
601
- * @param {string} transactionId The ID of the Amazon Seller Wallet transaction.
602
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
603
- * @param {*} [options] Override http request option.
604
- * @throws {RequiredError}
605
- */
606
- async getTransaction(transactionId, marketplaceId, options) {
607
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTransaction(transactionId, marketplaceId, options);
608
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
609
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.getTransaction']?.[localVarOperationServerIndex]?.url;
610
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
611
- },
612
- /**
613
- * Retrieve a list of potential fees on a transaction.
614
- * @summary Fetch potential fees that could be applied on a transaction on the basis of the source and destination country currency code
615
- * @param {string} sourceCountryCode Country code of the source transaction account in ISO 3166 format.
616
- * @param {string} sourceCurrencyCode Currency code of the source transaction country in ISO 4217 format.
617
- * @param {string} destinationCountryCode Country code of the destination transaction account in ISO 3166 format.
618
- * @param {string} destinationCurrencyCode Currency code of the destination transaction country in ISO 4217 format.
619
- * @param {number} baseAmount The base transaction amount without any markup fees.
620
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
621
- * @param {*} [options] Override http request option.
622
- * @throws {RequiredError}
623
- */
624
- async getTransferPreview(sourceCountryCode, sourceCurrencyCode, destinationCountryCode, destinationCurrencyCode, baseAmount, marketplaceId, options) {
625
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferPreview(sourceCountryCode, sourceCurrencyCode, destinationCountryCode, destinationCurrencyCode, baseAmount, marketplaceId, options);
626
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
627
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.getTransferPreview']?.[localVarOperationServerIndex]?.url;
628
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
629
- },
630
- /**
631
- * Find a particular Amazon Seller Wallet account transfer schedule.
632
- * @summary Find particular Amazon Seller Wallet account transfer schedule by Amazon transfer schedule identifier
633
- * @param {string} transferScheduleId The schedule ID of the Amazon Seller Wallet transfer.
634
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
635
- * @param {*} [options] Override http request option.
636
- * @throws {RequiredError}
637
- */
638
- async getTransferSchedule(transferScheduleId, marketplaceId, options) {
639
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferSchedule(transferScheduleId, marketplaceId, options);
640
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
641
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.getTransferSchedule']?.[localVarOperationServerIndex]?.url;
642
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
643
- },
644
- /**
645
- * Retrieve the balance in a given Seller Wallet bank account.
646
- * @summary Find balance in particular Amazon Seller Wallet account by Amazon account identifier
647
- * @param {string} accountId The ID of the Amazon Seller Wallet account.
648
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
649
- * @param {*} [options] Override http request option.
650
- * @throws {RequiredError}
651
- */
652
- async listAccountBalances(accountId, marketplaceId, options) {
653
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountBalances(accountId, marketplaceId, options);
654
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
655
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.listAccountBalances']?.[localVarOperationServerIndex]?.url;
656
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
657
- },
658
- /**
659
- * Retrieve a list of transactions for a given Seller Wallet bank account.
660
- * @summary The API will return all the transactions for a given Amazon Seller Wallet account sorted by the transaction request date
661
- * @param {string} accountId The ID of the Amazon Seller Wallet account.
662
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
663
- * @param {string} [nextPageToken] A token that you use to retrieve the next page of results. The response includes `nextPageToken` when the number of results exceeds 100. 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 `nextPageToken` is null. Note that this operation can return empty pages.
664
- * @param {*} [options] Override http request option.
665
- * @throws {RequiredError}
666
- */
667
- async listAccountTransactions(accountId, marketplaceId, nextPageToken, options) {
668
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountTransactions(accountId, marketplaceId, nextPageToken, options);
669
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
670
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.listAccountTransactions']?.[localVarOperationServerIndex]?.url;
671
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
672
- },
673
- /**
674
- * Get Seller Wallet accounts for a seller.
675
- * @summary Get all Amazon Seller Wallet accounts for the seller
676
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
677
- * @param {*} [options] Override http request option.
678
- * @throws {RequiredError}
679
- */
680
- async listAccounts(marketplaceId, options) {
681
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(marketplaceId, options);
682
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
683
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.listAccounts']?.[localVarOperationServerIndex]?.url;
684
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
685
- },
686
- /**
687
- * Retrieve transfer schedules of a Seller Wallet bank account.
688
- * @summary The API will return all the transfer schedules for a given Amazon Seller Wallet account
689
- * @param {string} accountId The ID of the Amazon Seller Wallet account.
690
- * @param {string} marketplaceId The marketplace for which items are returned. 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
- * @param {string} [nextPageToken] A token that you use to retrieve the next page of results. The response includes `nextPageToken` 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 `nextPageToken` is null. Note that this operation can return empty pages.
692
- * @param {*} [options] Override http request option.
693
- * @throws {RequiredError}
694
- */
695
- async listTransferSchedules(accountId, marketplaceId, nextPageToken, options) {
696
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTransferSchedules(accountId, marketplaceId, nextPageToken, options);
697
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
698
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.listTransferSchedules']?.[localVarOperationServerIndex]?.url;
699
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
700
- },
701
- /**
702
- * Update transfer schedule information. Returns a transfer belonging to the updated scheduled transfer request.
703
- * @summary Update a transfer schedule information. Only fields (i.e; transferScheduleInformation, paymentPreference, transferScheduleStatus) in the request body can be updated.
704
- * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details.
705
- * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount.
706
- * @param {string} marketplaceId The marketplace for which items are returned. 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).
707
- * @param {TransferSchedule} body The payload of the scheduled transfer request that is to be updated.
708
- * @param {*} [options] Override http request option.
709
- * @throws {RequiredError}
710
- */
711
- async updateTransferSchedule(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options) {
712
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTransferSchedule(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options);
713
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
714
- const localVarOperationServerBasePath = operationServerMap['SellerWalletApi.updateTransferSchedule']?.[localVarOperationServerIndex]?.url;
715
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
716
- },
717
- };
718
- };
719
- /**
720
- * SellerWalletApi - factory interface
721
- */
722
- export const SellerWalletApiFactory = function (configuration, basePath, axios) {
723
- const localVarFp = SellerWalletApiFp(configuration);
724
- return {
725
- /**
726
- * Create a transaction request from a Seller Wallet account to another customer-provided account.
727
- * @summary Create a transaction request from Amazon Seller Wallet account to another customer-provided account
728
- * @param {SellerWalletApiCreateTransactionRequest} requestParameters Request parameters.
729
- * @param {*} [options] Override http request option.
730
- * @throws {RequiredError}
731
- */
732
- createTransaction(requestParameters, options) {
733
- return localVarFp.createTransaction(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(axios, basePath));
734
- },
735
- /**
736
- * Create a transfer schedule request from a Seller Wallet account to another customer-provided account.
737
- * @summary Create a transfer schedule request from Amazon Seller Wallet account to another customer-provided account
738
- * @param {SellerWalletApiCreateTransferScheduleRequest} requestParameters Request parameters.
739
- * @param {*} [options] Override http request option.
740
- * @throws {RequiredError}
741
- */
742
- createTransferSchedule(requestParameters, options) {
743
- return localVarFp.createTransferSchedule(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(axios, basePath));
744
- },
745
- /**
746
- * Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account.
747
- * @summary Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account
748
- * @param {SellerWalletApiDeleteScheduleTransactionRequest} requestParameters Request parameters.
749
- * @param {*} [options] Override http request option.
750
- * @throws {RequiredError}
751
- */
752
- deleteScheduleTransaction(requestParameters, options) {
753
- return localVarFp.deleteScheduleTransaction(requestParameters.transferScheduleId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
754
- },
755
- /**
756
- * Retrieve a Seller Wallet bank account by Amazon account identifier.
757
- * @summary Find particular Amazon Seller Wallet account by Amazon account identifier
758
- * @param {SellerWalletApiGetAccountRequest} requestParameters Request parameters.
759
- * @param {*} [options] Override http request option.
760
- * @throws {RequiredError}
761
- */
762
- getAccount(requestParameters, options) {
763
- return localVarFp.getAccount(requestParameters.accountId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
764
- },
765
- /**
766
- * Find a transaction by the Amazon transaction identifier.
767
- * @summary Find particular Amazon Seller Wallet account transaction by Amazon transaction identifier
768
- * @param {SellerWalletApiGetTransactionRequest} requestParameters Request parameters.
769
- * @param {*} [options] Override http request option.
770
- * @throws {RequiredError}
771
- */
772
- getTransaction(requestParameters, options) {
773
- return localVarFp.getTransaction(requestParameters.transactionId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
774
- },
775
- /**
776
- * Retrieve a list of potential fees on a transaction.
777
- * @summary Fetch potential fees that could be applied on a transaction on the basis of the source and destination country currency code
778
- * @param {SellerWalletApiGetTransferPreviewRequest} requestParameters Request parameters.
779
- * @param {*} [options] Override http request option.
780
- * @throws {RequiredError}
781
- */
782
- getTransferPreview(requestParameters, options) {
783
- return localVarFp.getTransferPreview(requestParameters.sourceCountryCode, requestParameters.sourceCurrencyCode, requestParameters.destinationCountryCode, requestParameters.destinationCurrencyCode, requestParameters.baseAmount, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
784
- },
785
- /**
786
- * Find a particular Amazon Seller Wallet account transfer schedule.
787
- * @summary Find particular Amazon Seller Wallet account transfer schedule by Amazon transfer schedule identifier
788
- * @param {SellerWalletApiGetTransferScheduleRequest} requestParameters Request parameters.
789
- * @param {*} [options] Override http request option.
790
- * @throws {RequiredError}
791
- */
792
- getTransferSchedule(requestParameters, options) {
793
- return localVarFp.getTransferSchedule(requestParameters.transferScheduleId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
794
- },
795
- /**
796
- * Retrieve the balance in a given Seller Wallet bank account.
797
- * @summary Find balance in particular Amazon Seller Wallet account by Amazon account identifier
798
- * @param {SellerWalletApiListAccountBalancesRequest} requestParameters Request parameters.
799
- * @param {*} [options] Override http request option.
800
- * @throws {RequiredError}
801
- */
802
- listAccountBalances(requestParameters, options) {
803
- return localVarFp.listAccountBalances(requestParameters.accountId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
804
- },
805
- /**
806
- * Retrieve a list of transactions for a given Seller Wallet bank account.
807
- * @summary The API will return all the transactions for a given Amazon Seller Wallet account sorted by the transaction request date
808
- * @param {SellerWalletApiListAccountTransactionsRequest} requestParameters Request parameters.
809
- * @param {*} [options] Override http request option.
810
- * @throws {RequiredError}
811
- */
812
- listAccountTransactions(requestParameters, options) {
813
- return localVarFp.listAccountTransactions(requestParameters.accountId, requestParameters.marketplaceId, requestParameters.nextPageToken, options).then((request) => request(axios, basePath));
814
- },
815
- /**
816
- * Get Seller Wallet accounts for a seller.
817
- * @summary Get all Amazon Seller Wallet accounts for the seller
818
- * @param {SellerWalletApiListAccountsRequest} requestParameters Request parameters.
819
- * @param {*} [options] Override http request option.
820
- * @throws {RequiredError}
821
- */
822
- listAccounts(requestParameters, options) {
823
- return localVarFp.listAccounts(requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
824
- },
825
- /**
826
- * Retrieve transfer schedules of a Seller Wallet bank account.
827
- * @summary The API will return all the transfer schedules for a given Amazon Seller Wallet account
828
- * @param {SellerWalletApiListTransferSchedulesRequest} requestParameters Request parameters.
829
- * @param {*} [options] Override http request option.
830
- * @throws {RequiredError}
831
- */
832
- listTransferSchedules(requestParameters, options) {
833
- return localVarFp.listTransferSchedules(requestParameters.accountId, requestParameters.marketplaceId, requestParameters.nextPageToken, options).then((request) => request(axios, basePath));
834
- },
835
- /**
836
- * Update transfer schedule information. Returns a transfer belonging to the updated scheduled transfer request.
837
- * @summary Update a transfer schedule information. Only fields (i.e; transferScheduleInformation, paymentPreference, transferScheduleStatus) in the request body can be updated.
838
- * @param {SellerWalletApiUpdateTransferScheduleRequest} requestParameters Request parameters.
839
- * @param {*} [options] Override http request option.
840
- * @throws {RequiredError}
841
- */
842
- updateTransferSchedule(requestParameters, options) {
843
- return localVarFp.updateTransferSchedule(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(axios, basePath));
844
- },
845
- };
846
- };
847
- /**
848
- * SellerWalletApi - object-oriented interface
849
- */
850
- export class SellerWalletApi extends BaseAPI {
851
- /**
852
- * Create a transaction request from a Seller Wallet account to another customer-provided account.
853
- * @summary Create a transaction request from Amazon Seller Wallet account to another customer-provided account
854
- * @param {SellerWalletApiCreateTransactionRequest} requestParameters Request parameters.
855
- * @param {*} [options] Override http request option.
856
- * @throws {RequiredError}
857
- */
858
- createTransaction(requestParameters, options) {
859
- return SellerWalletApiFp(this.configuration).createTransaction(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
860
- }
861
- /**
862
- * Create a transfer schedule request from a Seller Wallet account to another customer-provided account.
863
- * @summary Create a transfer schedule request from Amazon Seller Wallet account to another customer-provided account
864
- * @param {SellerWalletApiCreateTransferScheduleRequest} requestParameters Request parameters.
865
- * @param {*} [options] Override http request option.
866
- * @throws {RequiredError}
867
- */
868
- createTransferSchedule(requestParameters, options) {
869
- return SellerWalletApiFp(this.configuration).createTransferSchedule(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
870
- }
871
- /**
872
- * Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account.
873
- * @summary Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account
874
- * @param {SellerWalletApiDeleteScheduleTransactionRequest} requestParameters Request parameters.
875
- * @param {*} [options] Override http request option.
876
- * @throws {RequiredError}
877
- */
878
- deleteScheduleTransaction(requestParameters, options) {
879
- return SellerWalletApiFp(this.configuration).deleteScheduleTransaction(requestParameters.transferScheduleId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
880
- }
881
- /**
882
- * Retrieve a Seller Wallet bank account by Amazon account identifier.
883
- * @summary Find particular Amazon Seller Wallet account by Amazon account identifier
884
- * @param {SellerWalletApiGetAccountRequest} requestParameters Request parameters.
885
- * @param {*} [options] Override http request option.
886
- * @throws {RequiredError}
887
- */
888
- getAccount(requestParameters, options) {
889
- return SellerWalletApiFp(this.configuration).getAccount(requestParameters.accountId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
890
- }
891
- /**
892
- * Find a transaction by the Amazon transaction identifier.
893
- * @summary Find particular Amazon Seller Wallet account transaction by Amazon transaction identifier
894
- * @param {SellerWalletApiGetTransactionRequest} requestParameters Request parameters.
895
- * @param {*} [options] Override http request option.
896
- * @throws {RequiredError}
897
- */
898
- getTransaction(requestParameters, options) {
899
- return SellerWalletApiFp(this.configuration).getTransaction(requestParameters.transactionId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
900
- }
901
- /**
902
- * Retrieve a list of potential fees on a transaction.
903
- * @summary Fetch potential fees that could be applied on a transaction on the basis of the source and destination country currency code
904
- * @param {SellerWalletApiGetTransferPreviewRequest} requestParameters Request parameters.
905
- * @param {*} [options] Override http request option.
906
- * @throws {RequiredError}
907
- */
908
- getTransferPreview(requestParameters, options) {
909
- return SellerWalletApiFp(this.configuration).getTransferPreview(requestParameters.sourceCountryCode, requestParameters.sourceCurrencyCode, requestParameters.destinationCountryCode, requestParameters.destinationCurrencyCode, requestParameters.baseAmount, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
910
- }
911
- /**
912
- * Find a particular Amazon Seller Wallet account transfer schedule.
913
- * @summary Find particular Amazon Seller Wallet account transfer schedule by Amazon transfer schedule identifier
914
- * @param {SellerWalletApiGetTransferScheduleRequest} requestParameters Request parameters.
915
- * @param {*} [options] Override http request option.
916
- * @throws {RequiredError}
917
- */
918
- getTransferSchedule(requestParameters, options) {
919
- return SellerWalletApiFp(this.configuration).getTransferSchedule(requestParameters.transferScheduleId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
920
- }
921
- /**
922
- * Retrieve the balance in a given Seller Wallet bank account.
923
- * @summary Find balance in particular Amazon Seller Wallet account by Amazon account identifier
924
- * @param {SellerWalletApiListAccountBalancesRequest} requestParameters Request parameters.
925
- * @param {*} [options] Override http request option.
926
- * @throws {RequiredError}
927
- */
928
- listAccountBalances(requestParameters, options) {
929
- return SellerWalletApiFp(this.configuration).listAccountBalances(requestParameters.accountId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
930
- }
931
- /**
932
- * Retrieve a list of transactions for a given Seller Wallet bank account.
933
- * @summary The API will return all the transactions for a given Amazon Seller Wallet account sorted by the transaction request date
934
- * @param {SellerWalletApiListAccountTransactionsRequest} requestParameters Request parameters.
935
- * @param {*} [options] Override http request option.
936
- * @throws {RequiredError}
937
- */
938
- listAccountTransactions(requestParameters, options) {
939
- return SellerWalletApiFp(this.configuration).listAccountTransactions(requestParameters.accountId, requestParameters.marketplaceId, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
940
- }
941
- /**
942
- * Get Seller Wallet accounts for a seller.
943
- * @summary Get all Amazon Seller Wallet accounts for the seller
944
- * @param {SellerWalletApiListAccountsRequest} requestParameters Request parameters.
945
- * @param {*} [options] Override http request option.
946
- * @throws {RequiredError}
947
- */
948
- listAccounts(requestParameters, options) {
949
- return SellerWalletApiFp(this.configuration).listAccounts(requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
950
- }
951
- /**
952
- * Retrieve transfer schedules of a Seller Wallet bank account.
953
- * @summary The API will return all the transfer schedules for a given Amazon Seller Wallet account
954
- * @param {SellerWalletApiListTransferSchedulesRequest} requestParameters Request parameters.
955
- * @param {*} [options] Override http request option.
956
- * @throws {RequiredError}
957
- */
958
- listTransferSchedules(requestParameters, options) {
959
- return SellerWalletApiFp(this.configuration).listTransferSchedules(requestParameters.accountId, requestParameters.marketplaceId, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
960
- }
961
- /**
962
- * Update transfer schedule information. Returns a transfer belonging to the updated scheduled transfer request.
963
- * @summary Update a transfer schedule information. Only fields (i.e; transferScheduleInformation, paymentPreference, transferScheduleStatus) in the request body can be updated.
964
- * @param {SellerWalletApiUpdateTransferScheduleRequest} requestParameters Request parameters.
965
- * @param {*} [options] Override http request option.
966
- * @throws {RequiredError}
967
- */
968
- updateTransferSchedule(requestParameters, options) {
969
- return SellerWalletApiFp(this.configuration).updateTransferSchedule(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
970
- }
971
- }