@sp-api-sdk/seller-wallet-api-2024-03-01 1.1.0

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