@sp-api-sdk/seller-wallet-api-2024-03-01 1.5.2 → 2.0.0

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