@sp-api-sdk/finances-transfers-api-2024-06-01 4.0.16 → 5.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 +411 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +458 -0
- package/dist/index.d.ts +458 -0
- package/dist/index.js +366 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/finances-transfers-api.js +0 -188
- 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/assignment-type.js +0 -22
- package/dist/cjs/api-model/models/error-list.js +0 -15
- package/dist/cjs/api-model/models/expiry-date.js +0 -15
- package/dist/cjs/api-model/models/get-payment-methods-response.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -25
- package/dist/cjs/api-model/models/initiate-payout-request.js +0 -15
- package/dist/cjs/api-model/models/initiate-payout-response.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/payment-method-details.js +0 -15
- package/dist/cjs/api-model/models/payment-method-type.js +0 -24
- package/dist/cjs/client.js +0 -28
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/finances-transfers-api.js +0 -178
- 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/assignment-type.js +0 -19
- package/dist/es/api-model/models/error-list.js +0 -14
- package/dist/es/api-model/models/expiry-date.js +0 -14
- package/dist/es/api-model/models/get-payment-methods-response.js +0 -14
- package/dist/es/api-model/models/index.js +0 -9
- package/dist/es/api-model/models/initiate-payout-request.js +0 -14
- package/dist/es/api-model/models/initiate-payout-response.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/payment-method-details.js +0 -14
- package/dist/es/api-model/models/payment-method-type.js +0 -21
- package/dist/es/client.js +0 -24
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/finances-transfers-api.d.ts +0 -124
- 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/assignment-type.d.ts +0 -18
- package/dist/types/api-model/models/error-list.d.ts +0 -20
- package/dist/types/api-model/models/expiry-date.d.ts +0 -24
- package/dist/types/api-model/models/get-payment-methods-response.d.ts +0 -21
- package/dist/types/api-model/models/index.d.ts +0 -9
- package/dist/types/api-model/models/initiate-payout-request.d.ts +0 -24
- package/dist/types/api-model/models/initiate-payout-response.d.ts +0 -20
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/payment-method-details.d.ts +0 -38
- package/dist/types/api-model/models/payment-method-type.d.ts +0 -20
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@sp-api-sdk/finances-transfers-api-2024-06-01`
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@sp-api-sdk/finances-transfers-api-2024-06-01)
|
|
4
4
|
[](https://github.com/xojs/xo)
|
|
@@ -25,10 +25,10 @@ npm install @sp-api-sdk/finances-transfers-api-2024-06-01
|
|
|
25
25
|
import {SellingPartnerApiAuth} from '@sp-api-sdk/auth'
|
|
26
26
|
import {FinancesTransfersApiClient} from '@sp-api-sdk/finances-transfers-api-2024-06-01'
|
|
27
27
|
|
|
28
|
+
// `clientId` and `clientSecret` default to the `LWA_CLIENT_ID` and
|
|
29
|
+
// `LWA_CLIENT_SECRET` environment variables.
|
|
28
30
|
const auth = new SellingPartnerApiAuth({
|
|
29
|
-
|
|
30
|
-
clientSecret: process.env.LWA_CLIENT_SECRET,
|
|
31
|
-
refreshToken: 'Atzr|…',
|
|
31
|
+
refreshToken: await getRefreshTokenForSeller(sellerId),
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
const client = new FinancesTransfersApiClient({
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,411 @@
|
|
|
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
|
+
AssignmentType: () => AssignmentType,
|
|
34
|
+
FinancesTransfersApi: () => FinancesTransfersApi,
|
|
35
|
+
FinancesTransfersApiAxiosParamCreator: () => FinancesTransfersApiAxiosParamCreator,
|
|
36
|
+
FinancesTransfersApiClient: () => FinancesTransfersApiClient,
|
|
37
|
+
FinancesTransfersApiFactory: () => FinancesTransfersApiFactory,
|
|
38
|
+
FinancesTransfersApiFp: () => FinancesTransfersApiFp,
|
|
39
|
+
GetPaymentMethodsPaymentMethodTypesEnum: () => GetPaymentMethodsPaymentMethodTypesEnum,
|
|
40
|
+
PaymentMethodType: () => PaymentMethodType,
|
|
41
|
+
clientRateLimits: () => clientRateLimits
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(index_exports);
|
|
44
|
+
|
|
45
|
+
// src/client.ts
|
|
46
|
+
var import_common2 = require("@sp-api-sdk/common");
|
|
47
|
+
|
|
48
|
+
// src/api-model/api/finances-transfers-api.ts
|
|
49
|
+
var import_axios2 = __toESM(require("axios"), 1);
|
|
50
|
+
|
|
51
|
+
// src/api-model/base.ts
|
|
52
|
+
var import_axios = __toESM(require("axios"), 1);
|
|
53
|
+
var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
54
|
+
var COLLECTION_FORMATS = {
|
|
55
|
+
csv: ",",
|
|
56
|
+
ssv: " ",
|
|
57
|
+
tsv: " ",
|
|
58
|
+
pipes: "|"
|
|
59
|
+
};
|
|
60
|
+
var BaseAPI = class {
|
|
61
|
+
constructor(configuration, basePath = BASE_PATH, axios = import_axios.default) {
|
|
62
|
+
this.basePath = basePath;
|
|
63
|
+
this.axios = axios;
|
|
64
|
+
if (configuration) {
|
|
65
|
+
this.configuration = configuration;
|
|
66
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
basePath;
|
|
70
|
+
axios;
|
|
71
|
+
configuration;
|
|
72
|
+
};
|
|
73
|
+
var RequiredError = class extends Error {
|
|
74
|
+
constructor(field, msg) {
|
|
75
|
+
super(msg);
|
|
76
|
+
this.field = field;
|
|
77
|
+
this.name = "RequiredError";
|
|
78
|
+
}
|
|
79
|
+
field;
|
|
80
|
+
};
|
|
81
|
+
var operationServerMap = {};
|
|
82
|
+
|
|
83
|
+
// src/api-model/common.ts
|
|
84
|
+
var DUMMY_BASE_URL = "https://example.com";
|
|
85
|
+
var assertParamExists = function(functionName, paramName, paramValue) {
|
|
86
|
+
if (paramValue === null || paramValue === void 0) {
|
|
87
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
91
|
+
if (parameter == null) return;
|
|
92
|
+
if (typeof parameter === "object") {
|
|
93
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
94
|
+
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
95
|
+
} else {
|
|
96
|
+
Object.keys(parameter).forEach(
|
|
97
|
+
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
} else {
|
|
101
|
+
if (urlSearchParams.has(key)) {
|
|
102
|
+
urlSearchParams.append(key, parameter);
|
|
103
|
+
} else {
|
|
104
|
+
urlSearchParams.set(key, parameter);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
var setSearchParams = function(url, ...objects) {
|
|
109
|
+
const searchParams = new URLSearchParams(url.search);
|
|
110
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
111
|
+
url.search = searchParams.toString();
|
|
112
|
+
};
|
|
113
|
+
var replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
114
|
+
if (value instanceof Set) {
|
|
115
|
+
return Array.from(value);
|
|
116
|
+
} else {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
121
|
+
const nonString = typeof value !== "string";
|
|
122
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
123
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
124
|
+
};
|
|
125
|
+
var toPathString = function(url) {
|
|
126
|
+
return url.pathname + url.search + url.hash;
|
|
127
|
+
};
|
|
128
|
+
var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
|
|
129
|
+
return (axios = globalAxios3, basePath = BASE_PATH2) => {
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
|
+
return axios.request(axiosRequestArgs);
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
// src/api-model/api/finances-transfers-api.ts
|
|
136
|
+
var FinancesTransfersApiAxiosParamCreator = function(configuration) {
|
|
137
|
+
return {
|
|
138
|
+
/**
|
|
139
|
+
* Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
140
|
+
* @param {string} marketplaceId The identifier of the marketplace from which you want to retrieve payment methods. For the list of possible marketplace identifiers, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
141
|
+
* @param {Set<GetPaymentMethodsPaymentMethodTypesEnum>} [paymentMethodTypes] A comma-separated list of the payment method types you want to include in the response.
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @throws {RequiredError}
|
|
144
|
+
*/
|
|
145
|
+
getPaymentMethods: async (marketplaceId, paymentMethodTypes, options = {}) => {
|
|
146
|
+
assertParamExists("getPaymentMethods", "marketplaceId", marketplaceId);
|
|
147
|
+
const localVarPath = `/finances/transfers/2024-06-01/paymentMethods`;
|
|
148
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
149
|
+
let baseOptions;
|
|
150
|
+
if (configuration) {
|
|
151
|
+
baseOptions = configuration.baseOptions;
|
|
152
|
+
}
|
|
153
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
154
|
+
const localVarHeaderParameter = {};
|
|
155
|
+
const localVarQueryParameter = {};
|
|
156
|
+
if (marketplaceId !== void 0) {
|
|
157
|
+
localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
158
|
+
}
|
|
159
|
+
if (paymentMethodTypes) {
|
|
160
|
+
localVarQueryParameter["paymentMethodTypes"] = Array.from(paymentMethodTypes).join(COLLECTION_FORMATS.csv);
|
|
161
|
+
}
|
|
162
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
166
|
+
return {
|
|
167
|
+
url: toPathString(localVarUrlObj),
|
|
168
|
+
options: localVarRequestOptions
|
|
169
|
+
};
|
|
170
|
+
},
|
|
171
|
+
/**
|
|
172
|
+
* Initiates an on-demand payout to the seller\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
173
|
+
* @param {InitiatePayoutRequest} body The request body for the `initiatePayout` operation.
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
initiatePayout: async (body, options = {}) => {
|
|
178
|
+
assertParamExists("initiatePayout", "body", body);
|
|
179
|
+
const localVarPath = `/finances/transfers/2024-06-01/payouts`;
|
|
180
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
181
|
+
let baseOptions;
|
|
182
|
+
if (configuration) {
|
|
183
|
+
baseOptions = configuration.baseOptions;
|
|
184
|
+
}
|
|
185
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
186
|
+
const localVarHeaderParameter = {};
|
|
187
|
+
const localVarQueryParameter = {};
|
|
188
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
189
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
193
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
194
|
+
return {
|
|
195
|
+
url: toPathString(localVarUrlObj),
|
|
196
|
+
options: localVarRequestOptions
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
var FinancesTransfersApiFp = function(configuration) {
|
|
202
|
+
const localVarAxiosParamCreator = FinancesTransfersApiAxiosParamCreator(configuration);
|
|
203
|
+
return {
|
|
204
|
+
/**
|
|
205
|
+
* Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
206
|
+
* @param {string} marketplaceId The identifier of the marketplace from which you want to retrieve payment methods. For the list of possible marketplace identifiers, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
207
|
+
* @param {Set<GetPaymentMethodsPaymentMethodTypesEnum>} [paymentMethodTypes] A comma-separated list of the payment method types you want to include in the response.
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
async getPaymentMethods(marketplaceId, paymentMethodTypes, options) {
|
|
212
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(marketplaceId, paymentMethodTypes, options);
|
|
213
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
214
|
+
const localVarOperationServerBasePath = operationServerMap["FinancesTransfersApi.getPaymentMethods"]?.[localVarOperationServerIndex]?.url;
|
|
215
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
216
|
+
},
|
|
217
|
+
/**
|
|
218
|
+
* Initiates an on-demand payout to the seller\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
219
|
+
* @param {InitiatePayoutRequest} body The request body for the `initiatePayout` operation.
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
*/
|
|
223
|
+
async initiatePayout(body, options) {
|
|
224
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePayout(body, options);
|
|
225
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
226
|
+
const localVarOperationServerBasePath = operationServerMap["FinancesTransfersApi.initiatePayout"]?.[localVarOperationServerIndex]?.url;
|
|
227
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
var FinancesTransfersApiFactory = function(configuration, basePath, axios) {
|
|
232
|
+
const localVarFp = FinancesTransfersApiFp(configuration);
|
|
233
|
+
return {
|
|
234
|
+
/**
|
|
235
|
+
* Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
236
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
getPaymentMethods(requestParameters, options) {
|
|
241
|
+
return localVarFp.getPaymentMethods(requestParameters.marketplaceId, requestParameters.paymentMethodTypes, options).then((request) => request(axios, basePath));
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* Initiates an on-demand payout to the seller\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
245
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
initiatePayout(requestParameters, options) {
|
|
250
|
+
return localVarFp.initiatePayout(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
var FinancesTransfersApi = class extends BaseAPI {
|
|
255
|
+
/**
|
|
256
|
+
* Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
257
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
getPaymentMethods(requestParameters, options) {
|
|
262
|
+
return FinancesTransfersApiFp(this.configuration).getPaymentMethods(requestParameters.marketplaceId, requestParameters.paymentMethodTypes, options).then((request) => request(this.axios, this.basePath));
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Initiates an on-demand payout to the seller\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
266
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
initiatePayout(requestParameters, options) {
|
|
271
|
+
return FinancesTransfersApiFp(this.configuration).initiatePayout(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
var GetPaymentMethodsPaymentMethodTypesEnum = {
|
|
275
|
+
BankAccount: "BANK_ACCOUNT",
|
|
276
|
+
Card: "CARD",
|
|
277
|
+
SellerWallet: "SELLER_WALLET"
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
// src/api-model/configuration.ts
|
|
281
|
+
var Configuration = class {
|
|
282
|
+
/**
|
|
283
|
+
* parameter for apiKey security
|
|
284
|
+
* @param name security name
|
|
285
|
+
*/
|
|
286
|
+
apiKey;
|
|
287
|
+
/**
|
|
288
|
+
* parameter for basic security
|
|
289
|
+
*/
|
|
290
|
+
username;
|
|
291
|
+
/**
|
|
292
|
+
* parameter for basic security
|
|
293
|
+
*/
|
|
294
|
+
password;
|
|
295
|
+
/**
|
|
296
|
+
* parameter for oauth2 security
|
|
297
|
+
* @param name security name
|
|
298
|
+
* @param scopes oauth2 scope
|
|
299
|
+
*/
|
|
300
|
+
accessToken;
|
|
301
|
+
/**
|
|
302
|
+
* parameter for aws4 signature security
|
|
303
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
304
|
+
* @param {string} options.region - aws region
|
|
305
|
+
* @param {string} options.service - name of the service.
|
|
306
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
307
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
308
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
309
|
+
* @memberof Configuration
|
|
310
|
+
*/
|
|
311
|
+
awsv4;
|
|
312
|
+
/**
|
|
313
|
+
* override base path
|
|
314
|
+
*/
|
|
315
|
+
basePath;
|
|
316
|
+
/**
|
|
317
|
+
* override server index
|
|
318
|
+
*/
|
|
319
|
+
serverIndex;
|
|
320
|
+
/**
|
|
321
|
+
* base options for axios calls
|
|
322
|
+
*/
|
|
323
|
+
baseOptions;
|
|
324
|
+
/**
|
|
325
|
+
* The FormData constructor that will be used to create multipart form data
|
|
326
|
+
* requests. You can inject this here so that execution environments that
|
|
327
|
+
* do not support the FormData class can still run the generated client.
|
|
328
|
+
*
|
|
329
|
+
* @type {new () => FormData}
|
|
330
|
+
*/
|
|
331
|
+
formDataCtor;
|
|
332
|
+
constructor(param = {}) {
|
|
333
|
+
this.apiKey = param.apiKey;
|
|
334
|
+
this.username = param.username;
|
|
335
|
+
this.password = param.password;
|
|
336
|
+
this.accessToken = param.accessToken;
|
|
337
|
+
this.awsv4 = param.awsv4;
|
|
338
|
+
this.basePath = param.basePath;
|
|
339
|
+
this.serverIndex = param.serverIndex;
|
|
340
|
+
this.baseOptions = {
|
|
341
|
+
...param.baseOptions,
|
|
342
|
+
headers: {
|
|
343
|
+
...param.baseOptions?.headers
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
this.formDataCtor = param.formDataCtor;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Check if the given MIME is a JSON MIME.
|
|
350
|
+
* JSON MIME examples:
|
|
351
|
+
* application/json
|
|
352
|
+
* application/json; charset=UTF8
|
|
353
|
+
* APPLICATION/JSON
|
|
354
|
+
* application/vnd.company+json
|
|
355
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
356
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
357
|
+
*/
|
|
358
|
+
isJsonMime(mime) {
|
|
359
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
360
|
+
return mime !== null && jsonMime.test(mime);
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
// src/api-model/models/assignment-type.ts
|
|
365
|
+
var AssignmentType = {
|
|
366
|
+
DefaultDepositMethod: "DEFAULT_DEPOSIT_METHOD"
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
// src/api-model/models/payment-method-type.ts
|
|
370
|
+
var PaymentMethodType = {
|
|
371
|
+
BankAccount: "BANK_ACCOUNT",
|
|
372
|
+
Card: "CARD",
|
|
373
|
+
SellerWallet: "SELLER_WALLET"
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
// src/client.ts
|
|
377
|
+
var clientRateLimits = [
|
|
378
|
+
{
|
|
379
|
+
method: "post",
|
|
380
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
381
|
+
urlRegex: new RegExp("^/finances/transfers/2024-06-01/payouts$"),
|
|
382
|
+
rate: 0.017,
|
|
383
|
+
burst: 2
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
method: "get",
|
|
387
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
388
|
+
urlRegex: new RegExp("^/finances/transfers/2024-06-01/paymentMethods$"),
|
|
389
|
+
rate: 0.5,
|
|
390
|
+
burst: 30
|
|
391
|
+
}
|
|
392
|
+
];
|
|
393
|
+
var FinancesTransfersApiClient = class extends FinancesTransfersApi {
|
|
394
|
+
constructor(configuration) {
|
|
395
|
+
const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
|
|
396
|
+
super(new Configuration(), endpoint, axios);
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
400
|
+
0 && (module.exports = {
|
|
401
|
+
AssignmentType,
|
|
402
|
+
FinancesTransfersApi,
|
|
403
|
+
FinancesTransfersApiAxiosParamCreator,
|
|
404
|
+
FinancesTransfersApiClient,
|
|
405
|
+
FinancesTransfersApiFactory,
|
|
406
|
+
FinancesTransfersApiFp,
|
|
407
|
+
GetPaymentMethodsPaymentMethodTypesEnum,
|
|
408
|
+
PaymentMethodType,
|
|
409
|
+
clientRateLimits
|
|
410
|
+
});
|
|
411
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/client.ts","../src/api-model/api/finances-transfers-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/assignment-type.ts","../src/api-model/models/payment-method-type.ts"],"sourcesContent":["export * from './client.js'\nexport * from './api-model/api.js'\nexport * from './api-model/models/index.js'\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, FinancesTransfersApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'post',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/finances/transfers/2024-06-01/payouts$'),\n rate: 0.017,\n burst: 2,\n },\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/finances/transfers/2024-06-01/paymentMethods$'),\n rate: 0.5,\n burst: 30,\n },\n]\n\nexport class FinancesTransfersApiClient extends FinancesTransfersApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Transfers.\n * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.\n *\n * The version of the OpenAPI document: 2024-06-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { GetPaymentMethodsResponse } from '../models/index.js';\n// @ts-ignore\nimport type { InitiatePayoutRequest } from '../models/index.js';\n// @ts-ignore\nimport type { InitiatePayoutResponse } from '../models/index.js';\n/**\n * FinancesTransfersApi - axios parameter creator\n */\nexport const FinancesTransfersApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} marketplaceId The identifier of the marketplace from which you want to retrieve payment methods. For the list of possible marketplace identifiers, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).\n * @param {Set<GetPaymentMethodsPaymentMethodTypesEnum>} [paymentMethodTypes] A comma-separated list of the payment method types you want to include in the response.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPaymentMethods: async (marketplaceId: string, paymentMethodTypes?: Set<GetPaymentMethodsPaymentMethodTypesEnum>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'marketplaceId' is not null or undefined\n assertParamExists('getPaymentMethods', 'marketplaceId', marketplaceId)\n const localVarPath = `/finances/transfers/2024-06-01/paymentMethods`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (marketplaceId !== undefined) {\n localVarQueryParameter['marketplaceId'] = marketplaceId;\n }\n\n if (paymentMethodTypes) {\n localVarQueryParameter['paymentMethodTypes'] = Array.from(paymentMethodTypes).join(COLLECTION_FORMATS.csv);\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n /**\n * Initiates an on-demand payout to the seller\\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {InitiatePayoutRequest} body The request body for the `initiatePayout` operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n initiatePayout: async (body: InitiatePayoutRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n // verify required parameter 'body' is not null or undefined\n assertParamExists('initiatePayout', 'body', body)\n const localVarPath = `/finances/transfers/2024-06-01/payouts`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n localVarHeaderParameter['Content-Type'] = 'application/json';\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * FinancesTransfersApi - functional programming interface\n */\nexport const FinancesTransfersApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = FinancesTransfersApiAxiosParamCreator(configuration)\n return {\n /**\n * Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {string} marketplaceId The identifier of the marketplace from which you want to retrieve payment methods. For the list of possible marketplace identifiers, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).\n * @param {Set<GetPaymentMethodsPaymentMethodTypesEnum>} [paymentMethodTypes] A comma-separated list of the payment method types you want to include in the response.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async getPaymentMethods(marketplaceId: string, paymentMethodTypes?: Set<GetPaymentMethodsPaymentMethodTypesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(marketplaceId, paymentMethodTypes, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['FinancesTransfersApi.getPaymentMethods']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n /**\n * Initiates an on-demand payout to the seller\\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {InitiatePayoutRequest} body The request body for the `initiatePayout` operation.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async initiatePayout(body: InitiatePayoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePayoutResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePayout(body, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['FinancesTransfersApi.initiatePayout']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * FinancesTransfersApi - factory interface\n */\nexport const FinancesTransfersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = FinancesTransfersApiFp(configuration)\n return {\n /**\n * Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n getPaymentMethods(requestParameters: FinancesTransfersApiGetPaymentMethodsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPaymentMethodsResponse> {\n return localVarFp.getPaymentMethods(requestParameters.marketplaceId, requestParameters.paymentMethodTypes, options).then((request) => request(axios, basePath));\n },\n /**\n * Initiates an on-demand payout to the seller\\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n initiatePayout(requestParameters: FinancesTransfersApiInitiatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<InitiatePayoutResponse> {\n return localVarFp.initiatePayout(requestParameters.body, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for getPaymentMethods operation in FinancesTransfersApi.\n */\nexport interface FinancesTransfersApiGetPaymentMethodsRequest {\n /**\n * The identifier of the marketplace from which you want to retrieve payment methods. For the list of possible marketplace identifiers, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).\n */\n readonly marketplaceId: string\n\n /**\n * A comma-separated list of the payment method types you want to include in the response.\n */\n readonly paymentMethodTypes?: Set<GetPaymentMethodsPaymentMethodTypesEnum>\n}\n\n/**\n * Request parameters for initiatePayout operation in FinancesTransfersApi.\n */\nexport interface FinancesTransfersApiInitiatePayoutRequest {\n /**\n * The request body for the `initiatePayout` operation.\n */\n readonly body: InitiatePayoutRequest\n}\n\n/**\n * FinancesTransfersApi - object-oriented interface\n */\nexport class FinancesTransfersApi extends BaseAPI {\n /**\n * Returns the list of payment methods for the seller, which can be filtered by method type. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | .5 | 30 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public getPaymentMethods(requestParameters: FinancesTransfersApiGetPaymentMethodsRequest, options?: RawAxiosRequestConfig) {\n return FinancesTransfersApiFp(this.configuration).getPaymentMethods(requestParameters.marketplaceId, requestParameters.paymentMethodTypes, options).then((request) => request(this.axios, this.basePath));\n }\n\n /**\n * Initiates an on-demand payout to the seller\\'s default deposit method in Seller Central for the given `marketplaceId` and `accountType`, if eligible. You can only initiate one on-demand payout for each marketplace and account type within a 24-hour period. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.017 | 2 | The `x-amzn-RateLimit-Limit` response header contains the usage plan rate limits for the operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput might have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).\n * @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public initiatePayout(requestParameters: FinancesTransfersApiInitiatePayoutRequest, options?: RawAxiosRequestConfig) {\n return FinancesTransfersApiFp(this.configuration).initiatePayout(requestParameters.body, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\nexport const GetPaymentMethodsPaymentMethodTypesEnum = {\n BankAccount: 'BANK_ACCOUNT',\n Card: 'CARD',\n SellerWallet: 'SELLER_WALLET',\n} as const;\nexport type GetPaymentMethodsPaymentMethodTypesEnum = typeof GetPaymentMethodsPaymentMethodTypesEnum[keyof typeof GetPaymentMethodsPaymentMethodTypesEnum];\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Transfers.\n * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.\n *\n * The version of the OpenAPI document: 2024-06-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Transfers.\n * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.\n *\n * The version of the OpenAPI document: 2024-06-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * The Selling Partner API for Transfers.\n * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.\n *\n * The version of the OpenAPI document: 2024-06-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Transfers.\n * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.\n *\n * The version of the OpenAPI document: 2024-06-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The default payment method type.\n */\n\nexport const AssignmentType = {\n DefaultDepositMethod: 'DEFAULT_DEPOSIT_METHOD',\n} as const;\n\nexport type AssignmentType = typeof AssignmentType[keyof typeof AssignmentType];\n\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Transfers.\n * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.\n *\n * The version of the OpenAPI document: 2024-06-01\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * The type of payment method.\n */\n\nexport const PaymentMethodType = {\n BankAccount: 'BANK_ACCOUNT',\n Card: 'CARD',\n SellerWallet: 'SELLER_WALLET',\n} as const;\n\nexport type PaymentMethodType = typeof PaymentMethodType[keyof typeof PaymentMethodType];\n\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,iBAA4E;;;ACiB5E,IAAAC,gBAAwB;;;ACExB,mBAAwB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