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