@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
package/dist/index.js ADDED
@@ -0,0 +1,1195 @@
1
+ // src/client.ts
2
+ import { createAxiosInstance } from "@sp-api-sdk/common";
3
+
4
+ // src/api-model/api/seller-wallet-api.ts
5
+ import globalAxios2 from "axios";
6
+
7
+ // src/api-model/base.ts
8
+ import globalAxios from "axios";
9
+ var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
10
+ var BaseAPI = class {
11
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
12
+ this.basePath = basePath;
13
+ this.axios = axios;
14
+ if (configuration) {
15
+ this.configuration = configuration;
16
+ this.basePath = configuration.basePath ?? basePath;
17
+ }
18
+ }
19
+ basePath;
20
+ axios;
21
+ configuration;
22
+ };
23
+ var RequiredError = class extends Error {
24
+ constructor(field, msg) {
25
+ super(msg);
26
+ this.field = field;
27
+ this.name = "RequiredError";
28
+ }
29
+ field;
30
+ };
31
+ var operationServerMap = {};
32
+
33
+ // src/api-model/common.ts
34
+ var DUMMY_BASE_URL = "https://example.com";
35
+ var assertParamExists = function(functionName, paramName, paramValue) {
36
+ if (paramValue === null || paramValue === void 0) {
37
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
38
+ }
39
+ };
40
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
41
+ if (parameter == null) return;
42
+ if (typeof parameter === "object") {
43
+ if (Array.isArray(parameter) || parameter instanceof Set) {
44
+ parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
45
+ } else {
46
+ Object.keys(parameter).forEach(
47
+ (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
48
+ );
49
+ }
50
+ } else {
51
+ if (urlSearchParams.has(key)) {
52
+ urlSearchParams.append(key, parameter);
53
+ } else {
54
+ urlSearchParams.set(key, parameter);
55
+ }
56
+ }
57
+ }
58
+ var setSearchParams = function(url, ...objects) {
59
+ const searchParams = new URLSearchParams(url.search);
60
+ setFlattenedQueryParams(searchParams, objects);
61
+ url.search = searchParams.toString();
62
+ };
63
+ var replaceWithSerializableTypeIfNeeded = function(key, value) {
64
+ if (value instanceof Set) {
65
+ return Array.from(value);
66
+ } else {
67
+ return value;
68
+ }
69
+ };
70
+ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
71
+ const nonString = typeof value !== "string";
72
+ const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
73
+ return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
74
+ };
75
+ var toPathString = function(url) {
76
+ return url.pathname + url.search + url.hash;
77
+ };
78
+ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
79
+ return (axios = globalAxios3, basePath = BASE_PATH2) => {
80
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
81
+ return axios.request(axiosRequestArgs);
82
+ };
83
+ };
84
+
85
+ // src/api-model/api/seller-wallet-api.ts
86
+ var SellerWalletApiAxiosParamCreator = function(configuration) {
87
+ return {
88
+ /**
89
+ * Create a transaction request from a Seller Wallet account to another customer-provided account.
90
+ * @summary Create a transaction request from Amazon Seller Wallet account to another customer-provided account
91
+ * @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).
92
+ * @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).
93
+ * @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).
94
+ * @param {TransactionInitiationRequest} body The payload of the request
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ createTransaction: async (destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options = {}) => {
99
+ assertParamExists("createTransaction", "destAccountDigitalSignature", destAccountDigitalSignature);
100
+ assertParamExists("createTransaction", "amountDigitalSignature", amountDigitalSignature);
101
+ assertParamExists("createTransaction", "marketplaceId", marketplaceId);
102
+ assertParamExists("createTransaction", "body", body);
103
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transactions`;
104
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
105
+ let baseOptions;
106
+ if (configuration) {
107
+ baseOptions = configuration.baseOptions;
108
+ }
109
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
110
+ const localVarHeaderParameter = {};
111
+ const localVarQueryParameter = {};
112
+ if (marketplaceId !== void 0) {
113
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
114
+ }
115
+ localVarHeaderParameter["Content-Type"] = "application/json";
116
+ localVarHeaderParameter["Accept"] = "application/json";
117
+ if (destAccountDigitalSignature != null) {
118
+ localVarHeaderParameter["destAccountDigitalSignature"] = String(destAccountDigitalSignature);
119
+ }
120
+ if (amountDigitalSignature != null) {
121
+ localVarHeaderParameter["amountDigitalSignature"] = String(amountDigitalSignature);
122
+ }
123
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
126
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
127
+ return {
128
+ url: toPathString(localVarUrlObj),
129
+ options: localVarRequestOptions
130
+ };
131
+ },
132
+ /**
133
+ * Create a transfer schedule request from a Seller Wallet account to another customer-provided account.
134
+ * @summary Create a transfer schedule request from Amazon Seller Wallet account to another customer-provided account
135
+ * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details.
136
+ * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount.
137
+ * @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).
138
+ * @param {TransferScheduleRequest} body The payload of the request.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ createTransferSchedule: async (destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options = {}) => {
143
+ assertParamExists("createTransferSchedule", "destAccountDigitalSignature", destAccountDigitalSignature);
144
+ assertParamExists("createTransferSchedule", "amountDigitalSignature", amountDigitalSignature);
145
+ assertParamExists("createTransferSchedule", "marketplaceId", marketplaceId);
146
+ assertParamExists("createTransferSchedule", "body", body);
147
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules`;
148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
+ let baseOptions;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ }
153
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
154
+ const localVarHeaderParameter = {};
155
+ const localVarQueryParameter = {};
156
+ if (marketplaceId !== void 0) {
157
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
158
+ }
159
+ localVarHeaderParameter["Content-Type"] = "application/json";
160
+ localVarHeaderParameter["Accept"] = "application/json";
161
+ if (destAccountDigitalSignature != null) {
162
+ localVarHeaderParameter["destAccountDigitalSignature"] = String(destAccountDigitalSignature);
163
+ }
164
+ if (amountDigitalSignature != null) {
165
+ localVarHeaderParameter["amountDigitalSignature"] = String(amountDigitalSignature);
166
+ }
167
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
168
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
170
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
171
+ return {
172
+ url: toPathString(localVarUrlObj),
173
+ options: localVarRequestOptions
174
+ };
175
+ },
176
+ /**
177
+ * Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account.
178
+ * @summary Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account
179
+ * @param {string} transferScheduleId A unique reference ID for a scheduled transfer.
180
+ * @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).
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ deleteScheduleTransaction: async (transferScheduleId, marketplaceId, options = {}) => {
185
+ assertParamExists("deleteScheduleTransaction", "transferScheduleId", transferScheduleId);
186
+ assertParamExists("deleteScheduleTransaction", "marketplaceId", marketplaceId);
187
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules/{transferScheduleId}`.replace("{transferScheduleId}", encodeURIComponent(String(transferScheduleId)));
188
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
189
+ let baseOptions;
190
+ if (configuration) {
191
+ baseOptions = configuration.baseOptions;
192
+ }
193
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
194
+ const localVarHeaderParameter = {};
195
+ const localVarQueryParameter = {};
196
+ if (marketplaceId !== void 0) {
197
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
198
+ }
199
+ localVarHeaderParameter["Accept"] = "application/json";
200
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
202
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
203
+ return {
204
+ url: toPathString(localVarUrlObj),
205
+ options: localVarRequestOptions
206
+ };
207
+ },
208
+ /**
209
+ * Retrieve a Seller Wallet bank account by Amazon account identifier.
210
+ * @summary Find particular Amazon Seller Wallet account by Amazon account identifier
211
+ * @param {string} accountId The ID of the Amazon Seller Wallet account.
212
+ * @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).
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ getAccount: async (accountId, marketplaceId, options = {}) => {
217
+ assertParamExists("getAccount", "accountId", accountId);
218
+ assertParamExists("getAccount", "marketplaceId", marketplaceId);
219
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts/{accountId}`.replace("{accountId}", encodeURIComponent(String(accountId)));
220
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
221
+ let baseOptions;
222
+ if (configuration) {
223
+ baseOptions = configuration.baseOptions;
224
+ }
225
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
226
+ const localVarHeaderParameter = {};
227
+ const localVarQueryParameter = {};
228
+ if (marketplaceId !== void 0) {
229
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
230
+ }
231
+ localVarHeaderParameter["Accept"] = "application/json";
232
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
233
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
235
+ return {
236
+ url: toPathString(localVarUrlObj),
237
+ options: localVarRequestOptions
238
+ };
239
+ },
240
+ /**
241
+ * Find a transaction by the Amazon transaction identifier.
242
+ * @summary Find particular Amazon Seller Wallet account transaction by Amazon transaction identifier
243
+ * @param {string} transactionId The ID of the Amazon Seller Wallet transaction.
244
+ * @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).
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ getTransaction: async (transactionId, marketplaceId, options = {}) => {
249
+ assertParamExists("getTransaction", "transactionId", transactionId);
250
+ assertParamExists("getTransaction", "marketplaceId", marketplaceId);
251
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transactions/{transactionId}`.replace("{transactionId}", encodeURIComponent(String(transactionId)));
252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
253
+ let baseOptions;
254
+ if (configuration) {
255
+ baseOptions = configuration.baseOptions;
256
+ }
257
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
258
+ const localVarHeaderParameter = {};
259
+ const localVarQueryParameter = {};
260
+ if (marketplaceId !== void 0) {
261
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
262
+ }
263
+ localVarHeaderParameter["Accept"] = "application/json";
264
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
265
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
267
+ return {
268
+ url: toPathString(localVarUrlObj),
269
+ options: localVarRequestOptions
270
+ };
271
+ },
272
+ /**
273
+ * Retrieve a list of potential fees on a transaction.
274
+ * @summary Fetch potential fees that could be applied on a transaction on the basis of the source and destination country currency code
275
+ * @param {string} sourceCountryCode Country code of the source transaction account in ISO 3166 format.
276
+ * @param {string} sourceCurrencyCode Currency code of the source transaction country in ISO 4217 format.
277
+ * @param {string} destinationCountryCode Country code of the destination transaction account in ISO 3166 format.
278
+ * @param {string} destinationCurrencyCode Currency code of the destination transaction country in ISO 4217 format.
279
+ * @param {number} baseAmount The base transaction amount without any markup fees.
280
+ * @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).
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ getTransferPreview: async (sourceCountryCode, sourceCurrencyCode, destinationCountryCode, destinationCurrencyCode, baseAmount, marketplaceId, options = {}) => {
285
+ assertParamExists("getTransferPreview", "sourceCountryCode", sourceCountryCode);
286
+ assertParamExists("getTransferPreview", "sourceCurrencyCode", sourceCurrencyCode);
287
+ assertParamExists("getTransferPreview", "destinationCountryCode", destinationCountryCode);
288
+ assertParamExists("getTransferPreview", "destinationCurrencyCode", destinationCurrencyCode);
289
+ assertParamExists("getTransferPreview", "baseAmount", baseAmount);
290
+ assertParamExists("getTransferPreview", "marketplaceId", marketplaceId);
291
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transferPreview`;
292
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
293
+ let baseOptions;
294
+ if (configuration) {
295
+ baseOptions = configuration.baseOptions;
296
+ }
297
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
298
+ const localVarHeaderParameter = {};
299
+ const localVarQueryParameter = {};
300
+ if (sourceCountryCode !== void 0) {
301
+ localVarQueryParameter["sourceCountryCode"] = sourceCountryCode;
302
+ }
303
+ if (sourceCurrencyCode !== void 0) {
304
+ localVarQueryParameter["sourceCurrencyCode"] = sourceCurrencyCode;
305
+ }
306
+ if (destinationCountryCode !== void 0) {
307
+ localVarQueryParameter["destinationCountryCode"] = destinationCountryCode;
308
+ }
309
+ if (destinationCurrencyCode !== void 0) {
310
+ localVarQueryParameter["destinationCurrencyCode"] = destinationCurrencyCode;
311
+ }
312
+ if (baseAmount !== void 0) {
313
+ localVarQueryParameter["baseAmount"] = baseAmount;
314
+ }
315
+ if (marketplaceId !== void 0) {
316
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
317
+ }
318
+ localVarHeaderParameter["Accept"] = "application/json";
319
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
321
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
322
+ return {
323
+ url: toPathString(localVarUrlObj),
324
+ options: localVarRequestOptions
325
+ };
326
+ },
327
+ /**
328
+ * Find a particular Amazon Seller Wallet account transfer schedule.
329
+ * @summary Find particular Amazon Seller Wallet account transfer schedule by Amazon transfer schedule identifier
330
+ * @param {string} transferScheduleId The schedule ID of the Amazon Seller Wallet transfer.
331
+ * @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).
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ getTransferSchedule: async (transferScheduleId, marketplaceId, options = {}) => {
336
+ assertParamExists("getTransferSchedule", "transferScheduleId", transferScheduleId);
337
+ assertParamExists("getTransferSchedule", "marketplaceId", marketplaceId);
338
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules/{transferScheduleId}`.replace("{transferScheduleId}", encodeURIComponent(String(transferScheduleId)));
339
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
340
+ let baseOptions;
341
+ if (configuration) {
342
+ baseOptions = configuration.baseOptions;
343
+ }
344
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
345
+ const localVarHeaderParameter = {};
346
+ const localVarQueryParameter = {};
347
+ if (marketplaceId !== void 0) {
348
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
349
+ }
350
+ localVarHeaderParameter["Accept"] = "application/json";
351
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
354
+ return {
355
+ url: toPathString(localVarUrlObj),
356
+ options: localVarRequestOptions
357
+ };
358
+ },
359
+ /**
360
+ * Retrieve the balance in a given Seller Wallet bank account.
361
+ * @summary Find balance in particular Amazon Seller Wallet account by Amazon account identifier
362
+ * @param {string} accountId The ID of the Amazon Seller Wallet account.
363
+ * @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).
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ */
367
+ listAccountBalances: async (accountId, marketplaceId, options = {}) => {
368
+ assertParamExists("listAccountBalances", "accountId", accountId);
369
+ assertParamExists("listAccountBalances", "marketplaceId", marketplaceId);
370
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts/{accountId}/balance`.replace("{accountId}", encodeURIComponent(String(accountId)));
371
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
372
+ let baseOptions;
373
+ if (configuration) {
374
+ baseOptions = configuration.baseOptions;
375
+ }
376
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
377
+ const localVarHeaderParameter = {};
378
+ const localVarQueryParameter = {};
379
+ if (marketplaceId !== void 0) {
380
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
381
+ }
382
+ localVarHeaderParameter["Accept"] = "application/json";
383
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
384
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
386
+ return {
387
+ url: toPathString(localVarUrlObj),
388
+ options: localVarRequestOptions
389
+ };
390
+ },
391
+ /**
392
+ * Retrieve a list of transactions for a given Seller Wallet bank account.
393
+ * @summary The API will return all the transactions for a given Amazon Seller Wallet account sorted by the transaction request date
394
+ * @param {string} accountId The ID of the Amazon Seller Wallet account.
395
+ * @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).
396
+ * @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.
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ listAccountTransactions: async (accountId, marketplaceId, nextPageToken, options = {}) => {
401
+ assertParamExists("listAccountTransactions", "accountId", accountId);
402
+ assertParamExists("listAccountTransactions", "marketplaceId", marketplaceId);
403
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transactions`;
404
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
405
+ let baseOptions;
406
+ if (configuration) {
407
+ baseOptions = configuration.baseOptions;
408
+ }
409
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
410
+ const localVarHeaderParameter = {};
411
+ const localVarQueryParameter = {};
412
+ if (accountId !== void 0) {
413
+ localVarQueryParameter["accountId"] = accountId;
414
+ }
415
+ if (nextPageToken !== void 0) {
416
+ localVarQueryParameter["nextPageToken"] = nextPageToken;
417
+ }
418
+ if (marketplaceId !== void 0) {
419
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
420
+ }
421
+ localVarHeaderParameter["Accept"] = "application/json";
422
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
423
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
424
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
425
+ return {
426
+ url: toPathString(localVarUrlObj),
427
+ options: localVarRequestOptions
428
+ };
429
+ },
430
+ /**
431
+ * Get Seller Wallet accounts for a seller.
432
+ * @summary Get all Amazon Seller Wallet accounts for the seller
433
+ * @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).
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ listAccounts: async (marketplaceId, options = {}) => {
438
+ assertParamExists("listAccounts", "marketplaceId", marketplaceId);
439
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/accounts`;
440
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
441
+ let baseOptions;
442
+ if (configuration) {
443
+ baseOptions = configuration.baseOptions;
444
+ }
445
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
446
+ const localVarHeaderParameter = {};
447
+ const localVarQueryParameter = {};
448
+ if (marketplaceId !== void 0) {
449
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
450
+ }
451
+ localVarHeaderParameter["Accept"] = "application/json";
452
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
453
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
454
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
455
+ return {
456
+ url: toPathString(localVarUrlObj),
457
+ options: localVarRequestOptions
458
+ };
459
+ },
460
+ /**
461
+ * Retrieve transfer schedules of a Seller Wallet bank account.
462
+ * @summary The API will return all the transfer schedules for a given Amazon Seller Wallet account
463
+ * @param {string} accountId The ID of the Amazon Seller Wallet account.
464
+ * @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).
465
+ * @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.
466
+ * @param {*} [options] Override http request option.
467
+ * @throws {RequiredError}
468
+ */
469
+ listTransferSchedules: async (accountId, marketplaceId, nextPageToken, options = {}) => {
470
+ assertParamExists("listTransferSchedules", "accountId", accountId);
471
+ assertParamExists("listTransferSchedules", "marketplaceId", marketplaceId);
472
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules`;
473
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
474
+ let baseOptions;
475
+ if (configuration) {
476
+ baseOptions = configuration.baseOptions;
477
+ }
478
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
479
+ const localVarHeaderParameter = {};
480
+ const localVarQueryParameter = {};
481
+ if (accountId !== void 0) {
482
+ localVarQueryParameter["accountId"] = accountId;
483
+ }
484
+ if (marketplaceId !== void 0) {
485
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
486
+ }
487
+ if (nextPageToken !== void 0) {
488
+ localVarQueryParameter["nextPageToken"] = nextPageToken;
489
+ }
490
+ localVarHeaderParameter["Accept"] = "application/json";
491
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
492
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
493
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
494
+ return {
495
+ url: toPathString(localVarUrlObj),
496
+ options: localVarRequestOptions
497
+ };
498
+ },
499
+ /**
500
+ * Update transfer schedule information. Returns a transfer belonging to the updated scheduled transfer request.
501
+ * @summary Update a transfer schedule information. Only fields (i.e; transferScheduleInformation, paymentPreference, transferScheduleStatus) in the request body can be updated.
502
+ * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details.
503
+ * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount.
504
+ * @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).
505
+ * @param {TransferSchedule} body The payload of the scheduled transfer request that is to be updated.
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ */
509
+ updateTransferSchedule: async (destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options = {}) => {
510
+ assertParamExists("updateTransferSchedule", "destAccountDigitalSignature", destAccountDigitalSignature);
511
+ assertParamExists("updateTransferSchedule", "amountDigitalSignature", amountDigitalSignature);
512
+ assertParamExists("updateTransferSchedule", "marketplaceId", marketplaceId);
513
+ assertParamExists("updateTransferSchedule", "body", body);
514
+ const localVarPath = `/finances/transfers/wallet/2024-03-01/transferSchedules`;
515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
516
+ let baseOptions;
517
+ if (configuration) {
518
+ baseOptions = configuration.baseOptions;
519
+ }
520
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
521
+ const localVarHeaderParameter = {};
522
+ const localVarQueryParameter = {};
523
+ if (marketplaceId !== void 0) {
524
+ localVarQueryParameter["marketplaceId"] = marketplaceId;
525
+ }
526
+ localVarHeaderParameter["Content-Type"] = "application/json";
527
+ localVarHeaderParameter["Accept"] = "application/json";
528
+ if (destAccountDigitalSignature != null) {
529
+ localVarHeaderParameter["destAccountDigitalSignature"] = String(destAccountDigitalSignature);
530
+ }
531
+ if (amountDigitalSignature != null) {
532
+ localVarHeaderParameter["amountDigitalSignature"] = String(amountDigitalSignature);
533
+ }
534
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
536
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
537
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
538
+ return {
539
+ url: toPathString(localVarUrlObj),
540
+ options: localVarRequestOptions
541
+ };
542
+ }
543
+ };
544
+ };
545
+ var SellerWalletApiFp = function(configuration) {
546
+ const localVarAxiosParamCreator = SellerWalletApiAxiosParamCreator(configuration);
547
+ return {
548
+ /**
549
+ * Create a transaction request from a Seller Wallet account to another customer-provided account.
550
+ * @summary Create a transaction request from Amazon Seller Wallet account to another customer-provided account
551
+ * @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).
552
+ * @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).
553
+ * @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).
554
+ * @param {TransactionInitiationRequest} body The payload of the request
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ async createTransaction(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options) {
559
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTransaction(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options);
560
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
561
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.createTransaction"]?.[localVarOperationServerIndex]?.url;
562
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
563
+ },
564
+ /**
565
+ * Create a transfer schedule request from a Seller Wallet account to another customer-provided account.
566
+ * @summary Create a transfer schedule request from Amazon Seller Wallet account to another customer-provided account
567
+ * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details.
568
+ * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount.
569
+ * @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).
570
+ * @param {TransferScheduleRequest} body The payload of the request.
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ async createTransferSchedule(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options) {
575
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTransferSchedule(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options);
576
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
577
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.createTransferSchedule"]?.[localVarOperationServerIndex]?.url;
578
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
579
+ },
580
+ /**
581
+ * Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account.
582
+ * @summary Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account
583
+ * @param {string} transferScheduleId A unique reference ID for a scheduled transfer.
584
+ * @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).
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ async deleteScheduleTransaction(transferScheduleId, marketplaceId, options) {
589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScheduleTransaction(transferScheduleId, marketplaceId, options);
590
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
591
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.deleteScheduleTransaction"]?.[localVarOperationServerIndex]?.url;
592
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
593
+ },
594
+ /**
595
+ * Retrieve a Seller Wallet bank account by Amazon account identifier.
596
+ * @summary Find particular Amazon Seller Wallet account by Amazon account identifier
597
+ * @param {string} accountId The ID of the Amazon Seller Wallet account.
598
+ * @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).
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ */
602
+ async getAccount(accountId, marketplaceId, options) {
603
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccount(accountId, marketplaceId, options);
604
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
605
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.getAccount"]?.[localVarOperationServerIndex]?.url;
606
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
607
+ },
608
+ /**
609
+ * Find a transaction by the Amazon transaction identifier.
610
+ * @summary Find particular Amazon Seller Wallet account transaction by Amazon transaction identifier
611
+ * @param {string} transactionId The ID of the Amazon Seller Wallet transaction.
612
+ * @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).
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ async getTransaction(transactionId, marketplaceId, options) {
617
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTransaction(transactionId, marketplaceId, options);
618
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
619
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.getTransaction"]?.[localVarOperationServerIndex]?.url;
620
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
621
+ },
622
+ /**
623
+ * Retrieve a list of potential fees on a transaction.
624
+ * @summary Fetch potential fees that could be applied on a transaction on the basis of the source and destination country currency code
625
+ * @param {string} sourceCountryCode Country code of the source transaction account in ISO 3166 format.
626
+ * @param {string} sourceCurrencyCode Currency code of the source transaction country in ISO 4217 format.
627
+ * @param {string} destinationCountryCode Country code of the destination transaction account in ISO 3166 format.
628
+ * @param {string} destinationCurrencyCode Currency code of the destination transaction country in ISO 4217 format.
629
+ * @param {number} baseAmount The base transaction amount without any markup fees.
630
+ * @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).
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ */
634
+ async getTransferPreview(sourceCountryCode, sourceCurrencyCode, destinationCountryCode, destinationCurrencyCode, baseAmount, marketplaceId, options) {
635
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferPreview(sourceCountryCode, sourceCurrencyCode, destinationCountryCode, destinationCurrencyCode, baseAmount, marketplaceId, options);
636
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
637
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.getTransferPreview"]?.[localVarOperationServerIndex]?.url;
638
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
639
+ },
640
+ /**
641
+ * Find a particular Amazon Seller Wallet account transfer schedule.
642
+ * @summary Find particular Amazon Seller Wallet account transfer schedule by Amazon transfer schedule identifier
643
+ * @param {string} transferScheduleId The schedule ID of the Amazon Seller Wallet transfer.
644
+ * @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).
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ */
648
+ async getTransferSchedule(transferScheduleId, marketplaceId, options) {
649
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTransferSchedule(transferScheduleId, marketplaceId, options);
650
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
651
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.getTransferSchedule"]?.[localVarOperationServerIndex]?.url;
652
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
653
+ },
654
+ /**
655
+ * Retrieve the balance in a given Seller Wallet bank account.
656
+ * @summary Find balance in particular Amazon Seller Wallet account by Amazon account identifier
657
+ * @param {string} accountId The ID of the Amazon Seller Wallet account.
658
+ * @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).
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ async listAccountBalances(accountId, marketplaceId, options) {
663
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountBalances(accountId, marketplaceId, options);
664
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
665
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.listAccountBalances"]?.[localVarOperationServerIndex]?.url;
666
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
667
+ },
668
+ /**
669
+ * Retrieve a list of transactions for a given Seller Wallet bank account.
670
+ * @summary The API will return all the transactions for a given Amazon Seller Wallet account sorted by the transaction request date
671
+ * @param {string} accountId The ID of the Amazon Seller Wallet account.
672
+ * @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).
673
+ * @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.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ async listAccountTransactions(accountId, marketplaceId, nextPageToken, options) {
678
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountTransactions(accountId, marketplaceId, nextPageToken, options);
679
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
680
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.listAccountTransactions"]?.[localVarOperationServerIndex]?.url;
681
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
682
+ },
683
+ /**
684
+ * Get Seller Wallet accounts for a seller.
685
+ * @summary Get all Amazon Seller Wallet accounts for the seller
686
+ * @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).
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ async listAccounts(marketplaceId, options) {
691
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAccounts(marketplaceId, options);
692
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
693
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.listAccounts"]?.[localVarOperationServerIndex]?.url;
694
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
695
+ },
696
+ /**
697
+ * Retrieve transfer schedules of a Seller Wallet bank account.
698
+ * @summary The API will return all the transfer schedules for a given Amazon Seller Wallet account
699
+ * @param {string} accountId The ID of the Amazon Seller Wallet account.
700
+ * @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).
701
+ * @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.
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ async listTransferSchedules(accountId, marketplaceId, nextPageToken, options) {
706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTransferSchedules(accountId, marketplaceId, nextPageToken, options);
707
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
708
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.listTransferSchedules"]?.[localVarOperationServerIndex]?.url;
709
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
710
+ },
711
+ /**
712
+ * Update transfer schedule information. Returns a transfer belonging to the updated scheduled transfer request.
713
+ * @summary Update a transfer schedule information. Only fields (i.e; transferScheduleInformation, paymentPreference, transferScheduleStatus) in the request body can be updated.
714
+ * @param {string} destAccountDigitalSignature Digital signature for the destination bank account details.
715
+ * @param {string} amountDigitalSignature Digital signature for the source currency transaction amount.
716
+ * @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).
717
+ * @param {TransferSchedule} body The payload of the scheduled transfer request that is to be updated.
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ */
721
+ async updateTransferSchedule(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options) {
722
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTransferSchedule(destAccountDigitalSignature, amountDigitalSignature, marketplaceId, body, options);
723
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
724
+ const localVarOperationServerBasePath = operationServerMap["SellerWalletApi.updateTransferSchedule"]?.[localVarOperationServerIndex]?.url;
725
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
726
+ }
727
+ };
728
+ };
729
+ var SellerWalletApiFactory = function(configuration, basePath, axios) {
730
+ const localVarFp = SellerWalletApiFp(configuration);
731
+ return {
732
+ /**
733
+ * Create a transaction request from a Seller Wallet account to another customer-provided account.
734
+ * @summary Create a transaction request from Amazon Seller Wallet account to another customer-provided account
735
+ * @param {SellerWalletApiCreateTransactionRequest} requestParameters Request parameters.
736
+ * @param {*} [options] Override http request option.
737
+ * @throws {RequiredError}
738
+ */
739
+ createTransaction(requestParameters, options) {
740
+ return localVarFp.createTransaction(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(axios, basePath));
741
+ },
742
+ /**
743
+ * Create a transfer schedule request from a Seller Wallet account to another customer-provided account.
744
+ * @summary Create a transfer schedule request from Amazon Seller Wallet account to another customer-provided account
745
+ * @param {SellerWalletApiCreateTransferScheduleRequest} requestParameters Request parameters.
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ createTransferSchedule(requestParameters, options) {
750
+ return localVarFp.createTransferSchedule(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(axios, basePath));
751
+ },
752
+ /**
753
+ * Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account.
754
+ * @summary Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account
755
+ * @param {SellerWalletApiDeleteScheduleTransactionRequest} requestParameters Request parameters.
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ deleteScheduleTransaction(requestParameters, options) {
760
+ return localVarFp.deleteScheduleTransaction(requestParameters.transferScheduleId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
761
+ },
762
+ /**
763
+ * Retrieve a Seller Wallet bank account by Amazon account identifier.
764
+ * @summary Find particular Amazon Seller Wallet account by Amazon account identifier
765
+ * @param {SellerWalletApiGetAccountRequest} requestParameters Request parameters.
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ */
769
+ getAccount(requestParameters, options) {
770
+ return localVarFp.getAccount(requestParameters.accountId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
771
+ },
772
+ /**
773
+ * Find a transaction by the Amazon transaction identifier.
774
+ * @summary Find particular Amazon Seller Wallet account transaction by Amazon transaction identifier
775
+ * @param {SellerWalletApiGetTransactionRequest} requestParameters Request parameters.
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ getTransaction(requestParameters, options) {
780
+ return localVarFp.getTransaction(requestParameters.transactionId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
781
+ },
782
+ /**
783
+ * Retrieve a list of potential fees on a transaction.
784
+ * @summary Fetch potential fees that could be applied on a transaction on the basis of the source and destination country currency code
785
+ * @param {SellerWalletApiGetTransferPreviewRequest} requestParameters Request parameters.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ */
789
+ getTransferPreview(requestParameters, options) {
790
+ return localVarFp.getTransferPreview(requestParameters.sourceCountryCode, requestParameters.sourceCurrencyCode, requestParameters.destinationCountryCode, requestParameters.destinationCurrencyCode, requestParameters.baseAmount, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
791
+ },
792
+ /**
793
+ * Find a particular Amazon Seller Wallet account transfer schedule.
794
+ * @summary Find particular Amazon Seller Wallet account transfer schedule by Amazon transfer schedule identifier
795
+ * @param {SellerWalletApiGetTransferScheduleRequest} requestParameters Request parameters.
796
+ * @param {*} [options] Override http request option.
797
+ * @throws {RequiredError}
798
+ */
799
+ getTransferSchedule(requestParameters, options) {
800
+ return localVarFp.getTransferSchedule(requestParameters.transferScheduleId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
801
+ },
802
+ /**
803
+ * Retrieve the balance in a given Seller Wallet bank account.
804
+ * @summary Find balance in particular Amazon Seller Wallet account by Amazon account identifier
805
+ * @param {SellerWalletApiListAccountBalancesRequest} requestParameters Request parameters.
806
+ * @param {*} [options] Override http request option.
807
+ * @throws {RequiredError}
808
+ */
809
+ listAccountBalances(requestParameters, options) {
810
+ return localVarFp.listAccountBalances(requestParameters.accountId, requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
811
+ },
812
+ /**
813
+ * Retrieve a list of transactions for a given Seller Wallet bank account.
814
+ * @summary The API will return all the transactions for a given Amazon Seller Wallet account sorted by the transaction request date
815
+ * @param {SellerWalletApiListAccountTransactionsRequest} requestParameters Request parameters.
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ */
819
+ listAccountTransactions(requestParameters, options) {
820
+ return localVarFp.listAccountTransactions(requestParameters.accountId, requestParameters.marketplaceId, requestParameters.nextPageToken, options).then((request) => request(axios, basePath));
821
+ },
822
+ /**
823
+ * Get Seller Wallet accounts for a seller.
824
+ * @summary Get all Amazon Seller Wallet accounts for the seller
825
+ * @param {SellerWalletApiListAccountsRequest} requestParameters Request parameters.
826
+ * @param {*} [options] Override http request option.
827
+ * @throws {RequiredError}
828
+ */
829
+ listAccounts(requestParameters, options) {
830
+ return localVarFp.listAccounts(requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
831
+ },
832
+ /**
833
+ * Retrieve transfer schedules of a Seller Wallet bank account.
834
+ * @summary The API will return all the transfer schedules for a given Amazon Seller Wallet account
835
+ * @param {SellerWalletApiListTransferSchedulesRequest} requestParameters Request parameters.
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ listTransferSchedules(requestParameters, options) {
840
+ return localVarFp.listTransferSchedules(requestParameters.accountId, requestParameters.marketplaceId, requestParameters.nextPageToken, options).then((request) => request(axios, basePath));
841
+ },
842
+ /**
843
+ * Update transfer schedule information. Returns a transfer belonging to the updated scheduled transfer request.
844
+ * @summary Update a transfer schedule information. Only fields (i.e; transferScheduleInformation, paymentPreference, transferScheduleStatus) in the request body can be updated.
845
+ * @param {SellerWalletApiUpdateTransferScheduleRequest} requestParameters Request parameters.
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ */
849
+ updateTransferSchedule(requestParameters, options) {
850
+ return localVarFp.updateTransferSchedule(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(axios, basePath));
851
+ }
852
+ };
853
+ };
854
+ var SellerWalletApi = class extends BaseAPI {
855
+ /**
856
+ * Create a transaction request from a Seller Wallet account to another customer-provided account.
857
+ * @summary Create a transaction request from Amazon Seller Wallet account to another customer-provided account
858
+ * @param {SellerWalletApiCreateTransactionRequest} requestParameters Request parameters.
859
+ * @param {*} [options] Override http request option.
860
+ * @throws {RequiredError}
861
+ */
862
+ createTransaction(requestParameters, options) {
863
+ return SellerWalletApiFp(this.configuration).createTransaction(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
864
+ }
865
+ /**
866
+ * Create a transfer schedule request from a Seller Wallet account to another customer-provided account.
867
+ * @summary Create a transfer schedule request from Amazon Seller Wallet account to another customer-provided account
868
+ * @param {SellerWalletApiCreateTransferScheduleRequest} requestParameters Request parameters.
869
+ * @param {*} [options] Override http request option.
870
+ * @throws {RequiredError}
871
+ */
872
+ createTransferSchedule(requestParameters, options) {
873
+ return SellerWalletApiFp(this.configuration).createTransferSchedule(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
874
+ }
875
+ /**
876
+ * Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account.
877
+ * @summary Delete a transaction request that is scheduled from Amazon Seller Wallet account to another customer-provided account
878
+ * @param {SellerWalletApiDeleteScheduleTransactionRequest} requestParameters Request parameters.
879
+ * @param {*} [options] Override http request option.
880
+ * @throws {RequiredError}
881
+ */
882
+ deleteScheduleTransaction(requestParameters, options) {
883
+ return SellerWalletApiFp(this.configuration).deleteScheduleTransaction(requestParameters.transferScheduleId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
884
+ }
885
+ /**
886
+ * Retrieve a Seller Wallet bank account by Amazon account identifier.
887
+ * @summary Find particular Amazon Seller Wallet account by Amazon account identifier
888
+ * @param {SellerWalletApiGetAccountRequest} requestParameters Request parameters.
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ */
892
+ getAccount(requestParameters, options) {
893
+ return SellerWalletApiFp(this.configuration).getAccount(requestParameters.accountId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
894
+ }
895
+ /**
896
+ * Find a transaction by the Amazon transaction identifier.
897
+ * @summary Find particular Amazon Seller Wallet account transaction by Amazon transaction identifier
898
+ * @param {SellerWalletApiGetTransactionRequest} requestParameters Request parameters.
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ getTransaction(requestParameters, options) {
903
+ return SellerWalletApiFp(this.configuration).getTransaction(requestParameters.transactionId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
904
+ }
905
+ /**
906
+ * Retrieve a list of potential fees on a transaction.
907
+ * @summary Fetch potential fees that could be applied on a transaction on the basis of the source and destination country currency code
908
+ * @param {SellerWalletApiGetTransferPreviewRequest} requestParameters Request parameters.
909
+ * @param {*} [options] Override http request option.
910
+ * @throws {RequiredError}
911
+ */
912
+ getTransferPreview(requestParameters, options) {
913
+ 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));
914
+ }
915
+ /**
916
+ * Find a particular Amazon Seller Wallet account transfer schedule.
917
+ * @summary Find particular Amazon Seller Wallet account transfer schedule by Amazon transfer schedule identifier
918
+ * @param {SellerWalletApiGetTransferScheduleRequest} requestParameters Request parameters.
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ getTransferSchedule(requestParameters, options) {
923
+ return SellerWalletApiFp(this.configuration).getTransferSchedule(requestParameters.transferScheduleId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
924
+ }
925
+ /**
926
+ * Retrieve the balance in a given Seller Wallet bank account.
927
+ * @summary Find balance in particular Amazon Seller Wallet account by Amazon account identifier
928
+ * @param {SellerWalletApiListAccountBalancesRequest} requestParameters Request parameters.
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ listAccountBalances(requestParameters, options) {
933
+ return SellerWalletApiFp(this.configuration).listAccountBalances(requestParameters.accountId, requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
934
+ }
935
+ /**
936
+ * Retrieve a list of transactions for a given Seller Wallet bank account.
937
+ * @summary The API will return all the transactions for a given Amazon Seller Wallet account sorted by the transaction request date
938
+ * @param {SellerWalletApiListAccountTransactionsRequest} requestParameters Request parameters.
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ listAccountTransactions(requestParameters, options) {
943
+ return SellerWalletApiFp(this.configuration).listAccountTransactions(requestParameters.accountId, requestParameters.marketplaceId, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
944
+ }
945
+ /**
946
+ * Get Seller Wallet accounts for a seller.
947
+ * @summary Get all Amazon Seller Wallet accounts for the seller
948
+ * @param {SellerWalletApiListAccountsRequest} requestParameters Request parameters.
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ */
952
+ listAccounts(requestParameters, options) {
953
+ return SellerWalletApiFp(this.configuration).listAccounts(requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
954
+ }
955
+ /**
956
+ * Retrieve transfer schedules of a Seller Wallet bank account.
957
+ * @summary The API will return all the transfer schedules for a given Amazon Seller Wallet account
958
+ * @param {SellerWalletApiListTransferSchedulesRequest} requestParameters Request parameters.
959
+ * @param {*} [options] Override http request option.
960
+ * @throws {RequiredError}
961
+ */
962
+ listTransferSchedules(requestParameters, options) {
963
+ return SellerWalletApiFp(this.configuration).listTransferSchedules(requestParameters.accountId, requestParameters.marketplaceId, requestParameters.nextPageToken, options).then((request) => request(this.axios, this.basePath));
964
+ }
965
+ /**
966
+ * Update transfer schedule information. Returns a transfer belonging to the updated scheduled transfer request.
967
+ * @summary Update a transfer schedule information. Only fields (i.e; transferScheduleInformation, paymentPreference, transferScheduleStatus) in the request body can be updated.
968
+ * @param {SellerWalletApiUpdateTransferScheduleRequest} requestParameters Request parameters.
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ updateTransferSchedule(requestParameters, options) {
973
+ return SellerWalletApiFp(this.configuration).updateTransferSchedule(requestParameters.destAccountDigitalSignature, requestParameters.amountDigitalSignature, requestParameters.marketplaceId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
974
+ }
975
+ };
976
+
977
+ // src/api-model/configuration.ts
978
+ var Configuration = class {
979
+ /**
980
+ * parameter for apiKey security
981
+ * @param name security name
982
+ */
983
+ apiKey;
984
+ /**
985
+ * parameter for basic security
986
+ */
987
+ username;
988
+ /**
989
+ * parameter for basic security
990
+ */
991
+ password;
992
+ /**
993
+ * parameter for oauth2 security
994
+ * @param name security name
995
+ * @param scopes oauth2 scope
996
+ */
997
+ accessToken;
998
+ /**
999
+ * parameter for aws4 signature security
1000
+ * @param {Object} AWS4Signature - AWS4 Signature security
1001
+ * @param {string} options.region - aws region
1002
+ * @param {string} options.service - name of the service.
1003
+ * @param {string} credentials.accessKeyId - aws access key id
1004
+ * @param {string} credentials.secretAccessKey - aws access key
1005
+ * @param {string} credentials.sessionToken - aws session token
1006
+ * @memberof Configuration
1007
+ */
1008
+ awsv4;
1009
+ /**
1010
+ * override base path
1011
+ */
1012
+ basePath;
1013
+ /**
1014
+ * override server index
1015
+ */
1016
+ serverIndex;
1017
+ /**
1018
+ * base options for axios calls
1019
+ */
1020
+ baseOptions;
1021
+ /**
1022
+ * The FormData constructor that will be used to create multipart form data
1023
+ * requests. You can inject this here so that execution environments that
1024
+ * do not support the FormData class can still run the generated client.
1025
+ *
1026
+ * @type {new () => FormData}
1027
+ */
1028
+ formDataCtor;
1029
+ constructor(param = {}) {
1030
+ this.apiKey = param.apiKey;
1031
+ this.username = param.username;
1032
+ this.password = param.password;
1033
+ this.accessToken = param.accessToken;
1034
+ this.awsv4 = param.awsv4;
1035
+ this.basePath = param.basePath;
1036
+ this.serverIndex = param.serverIndex;
1037
+ this.baseOptions = {
1038
+ ...param.baseOptions,
1039
+ headers: {
1040
+ ...param.baseOptions?.headers
1041
+ }
1042
+ };
1043
+ this.formDataCtor = param.formDataCtor;
1044
+ }
1045
+ /**
1046
+ * Check if the given MIME is a JSON MIME.
1047
+ * JSON MIME examples:
1048
+ * application/json
1049
+ * application/json; charset=UTF8
1050
+ * APPLICATION/JSON
1051
+ * application/vnd.company+json
1052
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
1053
+ * @return True if the given MIME is JSON, false otherwise.
1054
+ */
1055
+ isJsonMime(mime) {
1056
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
1057
+ return mime !== null && jsonMime.test(mime);
1058
+ }
1059
+ };
1060
+
1061
+ // src/api-model/models/balance-type.ts
1062
+ var BalanceType = {
1063
+ Available: "AVAILABLE",
1064
+ LockedIn: "LOCKED_IN",
1065
+ LockedOut: "LOCKED_OUT",
1066
+ Total: "TOTAL"
1067
+ };
1068
+
1069
+ // src/api-model/models/bank-account-holder-status.ts
1070
+ var BankAccountHolderStatus = {
1071
+ Active: "ACTIVE",
1072
+ Inactive: "INACTIVE",
1073
+ UnderReview: "UNDER_REVIEW",
1074
+ VerificationFailed: "VERIFICATION_FAILED"
1075
+ };
1076
+
1077
+ // src/api-model/models/bank-account-number-format.ts
1078
+ var BankAccountNumberFormat = {
1079
+ Iban: "IBAN",
1080
+ Bban: "BBAN"
1081
+ };
1082
+
1083
+ // src/api-model/models/bank-account-ownership-type.ts
1084
+ var BankAccountOwnershipType = {
1085
+ ThirdParty: "THIRD_PARTY",
1086
+ Self: "SELF"
1087
+ };
1088
+
1089
+ // src/api-model/models/bank-number-format.ts
1090
+ var BankNumberFormat = {
1091
+ Bic: "BIC",
1092
+ Basic: "BASIC"
1093
+ };
1094
+
1095
+ // src/api-model/models/fee-type.ts
1096
+ var FeeType = {
1097
+ MiscellaneousFee: "MISCELLANEOUS_FEE",
1098
+ Tax: "TAX",
1099
+ TransactionFee: "TRANSACTION_FEE"
1100
+ };
1101
+
1102
+ // src/api-model/models/payee-entity-type.ts
1103
+ var PayeeEntityType = {
1104
+ Individual: "INDIVIDUAL",
1105
+ Business: "BUSINESS",
1106
+ TaxAuthority: "TAX_AUTHORITY"
1107
+ };
1108
+
1109
+ // src/api-model/models/payment-preference-payment-type.ts
1110
+ var PaymentPreferencePaymentType = {
1111
+ Percentage: "PERCENTAGE",
1112
+ Amount: "AMOUNT"
1113
+ };
1114
+
1115
+ // src/api-model/models/rate-direction.ts
1116
+ var RateDirection = {
1117
+ Buy: "BUY",
1118
+ Sell: "SELL"
1119
+ };
1120
+
1121
+ // src/api-model/models/recurring-frequency.ts
1122
+ var RecurringFrequency = {
1123
+ Daily: "DAILY",
1124
+ Weekly: "WEEKLY",
1125
+ Biweekly: "BIWEEKLY",
1126
+ Monthly: "MONTHLY"
1127
+ };
1128
+
1129
+ // src/api-model/models/schedule-expression-type.ts
1130
+ var ScheduleExpressionType = {
1131
+ Recurring: "RECURRING",
1132
+ OneTime: "ONE_TIME"
1133
+ };
1134
+
1135
+ // src/api-model/models/schedule-transfer-type.ts
1136
+ var ScheduleTransferType = {
1137
+ TimeBased: "TIME_BASED"
1138
+ };
1139
+
1140
+ // src/api-model/models/transaction-status.ts
1141
+ var TransactionStatus = {
1142
+ Expired: "EXPIRED",
1143
+ Failed: "FAILED",
1144
+ FailedCreditsApplied: "FAILED_CREDITS_APPLIED",
1145
+ InProgress: "IN_PROGRESS",
1146
+ PendingUserApproval: "PENDING_USER_APPROVAL",
1147
+ Successful: "SUCCESSFUL"
1148
+ };
1149
+
1150
+ // src/api-model/models/transaction-type.ts
1151
+ var TransactionType = {
1152
+ Credit: "CREDIT",
1153
+ Debit: "DEBIT"
1154
+ };
1155
+
1156
+ // src/api-model/models/transfer-schedule-status.ts
1157
+ var TransferScheduleStatus = {
1158
+ Enabled: "ENABLED",
1159
+ Disabled: "DISABLED",
1160
+ Expired: "EXPIRED",
1161
+ Deleted: "DELETED"
1162
+ };
1163
+
1164
+ // src/client.ts
1165
+ var clientRateLimits = [];
1166
+ var SellerWalletApiClient = class extends SellerWalletApi {
1167
+ constructor(configuration) {
1168
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
1169
+ super(new Configuration(), endpoint, axios);
1170
+ }
1171
+ };
1172
+ export {
1173
+ BalanceType,
1174
+ BankAccountHolderStatus,
1175
+ BankAccountNumberFormat,
1176
+ BankAccountOwnershipType,
1177
+ BankNumberFormat,
1178
+ FeeType,
1179
+ PayeeEntityType,
1180
+ PaymentPreferencePaymentType,
1181
+ RateDirection,
1182
+ RecurringFrequency,
1183
+ ScheduleExpressionType,
1184
+ ScheduleTransferType,
1185
+ SellerWalletApi,
1186
+ SellerWalletApiAxiosParamCreator,
1187
+ SellerWalletApiClient,
1188
+ SellerWalletApiFactory,
1189
+ SellerWalletApiFp,
1190
+ TransactionStatus,
1191
+ TransactionType,
1192
+ TransferScheduleStatus,
1193
+ clientRateLimits
1194
+ };
1195
+ //# sourceMappingURL=index.js.map