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