@sp-api-sdk/finances-transfers-api-2024-06-01 3.0.4 → 4.0.1
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/dist/cjs/api-model/api/{default-api.js → finances-transfers-api.js} +26 -26
- package/dist/cjs/api-model/api.js +1 -1
- package/dist/cjs/client.js +1 -1
- package/dist/es/api-model/api/{default-api.js → finances-transfers-api.js} +21 -21
- package/dist/es/api-model/api.js +1 -1
- package/dist/es/client.js +2 -2
- package/dist/types/api-model/api/{default-api.d.ts → finances-transfers-api.d.ts} +28 -28
- package/dist/types/api-model/api.d.ts +1 -1
- package/dist/types/client.d.ts +2 -2
- package/package.json +4 -4
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetPaymentMethodsPaymentMethodTypesEnum = exports.
|
|
19
|
+
exports.GetPaymentMethodsPaymentMethodTypesEnum = exports.FinancesTransfersApi = exports.FinancesTransfersApiFactory = exports.FinancesTransfersApiFp = exports.FinancesTransfersApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -24,10 +24,10 @@ const common_1 = require("../common");
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* FinancesTransfersApi - axios parameter creator
|
|
28
28
|
* @export
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const FinancesTransfersApiAxiosParamCreator = function (configuration) {
|
|
31
31
|
return {
|
|
32
32
|
/**
|
|
33
33
|
* 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).
|
|
@@ -94,13 +94,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
94
94
|
},
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
97
|
+
exports.FinancesTransfersApiAxiosParamCreator = FinancesTransfersApiAxiosParamCreator;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* FinancesTransfersApi - functional programming interface
|
|
100
100
|
* @export
|
|
101
101
|
*/
|
|
102
|
-
const
|
|
103
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
102
|
+
const FinancesTransfersApiFp = function (configuration) {
|
|
103
|
+
const localVarAxiosParamCreator = (0, exports.FinancesTransfersApiAxiosParamCreator)(configuration);
|
|
104
104
|
return {
|
|
105
105
|
/**
|
|
106
106
|
* 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).
|
|
@@ -112,7 +112,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
112
112
|
async getPaymentMethods(marketplaceId, paymentMethodTypes, options) {
|
|
113
113
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(marketplaceId, paymentMethodTypes, options);
|
|
114
114
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
115
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
115
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FinancesTransfersApi.getPaymentMethods']?.[localVarOperationServerIndex]?.url;
|
|
116
116
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
117
117
|
},
|
|
118
118
|
/**
|
|
@@ -124,22 +124,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
124
124
|
async initiatePayout(body, options) {
|
|
125
125
|
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePayout(body, options);
|
|
126
126
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
127
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['
|
|
127
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['FinancesTransfersApi.initiatePayout']?.[localVarOperationServerIndex]?.url;
|
|
128
128
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
129
129
|
},
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
exports.
|
|
132
|
+
exports.FinancesTransfersApiFp = FinancesTransfersApiFp;
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* FinancesTransfersApi - factory interface
|
|
135
135
|
* @export
|
|
136
136
|
*/
|
|
137
|
-
const
|
|
138
|
-
const localVarFp = (0, exports.
|
|
137
|
+
const FinancesTransfersApiFactory = function (configuration, basePath, axios) {
|
|
138
|
+
const localVarFp = (0, exports.FinancesTransfersApiFp)(configuration);
|
|
139
139
|
return {
|
|
140
140
|
/**
|
|
141
141
|
* 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).
|
|
142
|
-
* @param {
|
|
142
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
*/
|
|
@@ -148,7 +148,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
148
148
|
},
|
|
149
149
|
/**
|
|
150
150
|
* 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).
|
|
151
|
-
* @param {
|
|
151
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
152
152
|
* @param {*} [options] Override http request option.
|
|
153
153
|
* @throws {RequiredError}
|
|
154
154
|
*/
|
|
@@ -157,36 +157,36 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
157
157
|
},
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
|
-
exports.
|
|
160
|
+
exports.FinancesTransfersApiFactory = FinancesTransfersApiFactory;
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* FinancesTransfersApi - object-oriented interface
|
|
163
163
|
* @export
|
|
164
|
-
* @class
|
|
164
|
+
* @class FinancesTransfersApi
|
|
165
165
|
* @extends {BaseAPI}
|
|
166
166
|
*/
|
|
167
|
-
class
|
|
167
|
+
class FinancesTransfersApi extends base_1.BaseAPI {
|
|
168
168
|
/**
|
|
169
169
|
* 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).
|
|
170
|
-
* @param {
|
|
170
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
171
171
|
* @param {*} [options] Override http request option.
|
|
172
172
|
* @throws {RequiredError}
|
|
173
|
-
* @memberof
|
|
173
|
+
* @memberof FinancesTransfersApi
|
|
174
174
|
*/
|
|
175
175
|
getPaymentMethods(requestParameters, options) {
|
|
176
|
-
return (0, exports.
|
|
176
|
+
return (0, exports.FinancesTransfersApiFp)(this.configuration).getPaymentMethods(requestParameters.marketplaceId, requestParameters.paymentMethodTypes, options).then((request) => request(this.axios, this.basePath));
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
179
|
* 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).
|
|
180
|
-
* @param {
|
|
180
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
181
181
|
* @param {*} [options] Override http request option.
|
|
182
182
|
* @throws {RequiredError}
|
|
183
|
-
* @memberof
|
|
183
|
+
* @memberof FinancesTransfersApi
|
|
184
184
|
*/
|
|
185
185
|
initiatePayout(requestParameters, options) {
|
|
186
|
-
return (0, exports.
|
|
186
|
+
return (0, exports.FinancesTransfersApiFp)(this.configuration).initiatePayout(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
exports.
|
|
189
|
+
exports.FinancesTransfersApi = FinancesTransfersApi;
|
|
190
190
|
/**
|
|
191
191
|
* @export
|
|
192
192
|
*/
|
|
@@ -27,4 +27,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api/
|
|
30
|
+
__exportStar(require("./api/finances-transfers-api"), exports);
|
package/dist/cjs/client.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.clientRateLimits = [
|
|
|
19
19
|
burst: 30,
|
|
20
20
|
},
|
|
21
21
|
];
|
|
22
|
-
class FinancesTransfersApiClient extends api_model_1.
|
|
22
|
+
class FinancesTransfersApiClient extends api_model_1.FinancesTransfersApi {
|
|
23
23
|
constructor(configuration) {
|
|
24
24
|
const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
|
|
25
25
|
super(new api_model_1.Configuration(), endpoint, axios);
|
|
@@ -18,10 +18,10 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeed
|
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* FinancesTransfersApi - axios parameter creator
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
|
-
export const
|
|
24
|
+
export const FinancesTransfersApiAxiosParamCreator = function (configuration) {
|
|
25
25
|
return {
|
|
26
26
|
/**
|
|
27
27
|
* 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).
|
|
@@ -89,11 +89,11 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* FinancesTransfersApi - functional programming interface
|
|
93
93
|
* @export
|
|
94
94
|
*/
|
|
95
|
-
export const
|
|
96
|
-
const localVarAxiosParamCreator =
|
|
95
|
+
export const FinancesTransfersApiFp = function (configuration) {
|
|
96
|
+
const localVarAxiosParamCreator = FinancesTransfersApiAxiosParamCreator(configuration);
|
|
97
97
|
return {
|
|
98
98
|
/**
|
|
99
99
|
* 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).
|
|
@@ -105,7 +105,7 @@ export const DefaultApiFp = function (configuration) {
|
|
|
105
105
|
async getPaymentMethods(marketplaceId, paymentMethodTypes, options) {
|
|
106
106
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(marketplaceId, paymentMethodTypes, options);
|
|
107
107
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
108
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
108
|
+
const localVarOperationServerBasePath = operationServerMap['FinancesTransfersApi.getPaymentMethods']?.[localVarOperationServerIndex]?.url;
|
|
109
109
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
110
110
|
},
|
|
111
111
|
/**
|
|
@@ -117,21 +117,21 @@ export const DefaultApiFp = function (configuration) {
|
|
|
117
117
|
async initiatePayout(body, options) {
|
|
118
118
|
const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePayout(body, options);
|
|
119
119
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
120
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
120
|
+
const localVarOperationServerBasePath = operationServerMap['FinancesTransfersApi.initiatePayout']?.[localVarOperationServerIndex]?.url;
|
|
121
121
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
122
122
|
},
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* FinancesTransfersApi - factory interface
|
|
127
127
|
* @export
|
|
128
128
|
*/
|
|
129
|
-
export const
|
|
130
|
-
const localVarFp =
|
|
129
|
+
export const FinancesTransfersApiFactory = function (configuration, basePath, axios) {
|
|
130
|
+
const localVarFp = FinancesTransfersApiFp(configuration);
|
|
131
131
|
return {
|
|
132
132
|
/**
|
|
133
133
|
* 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).
|
|
134
|
-
* @param {
|
|
134
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
135
135
|
* @param {*} [options] Override http request option.
|
|
136
136
|
* @throws {RequiredError}
|
|
137
137
|
*/
|
|
@@ -140,7 +140,7 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
140
140
|
},
|
|
141
141
|
/**
|
|
142
142
|
* 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).
|
|
143
|
-
* @param {
|
|
143
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
144
144
|
* @param {*} [options] Override http request option.
|
|
145
145
|
* @throws {RequiredError}
|
|
146
146
|
*/
|
|
@@ -150,31 +150,31 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* FinancesTransfersApi - object-oriented interface
|
|
154
154
|
* @export
|
|
155
|
-
* @class
|
|
155
|
+
* @class FinancesTransfersApi
|
|
156
156
|
* @extends {BaseAPI}
|
|
157
157
|
*/
|
|
158
|
-
export class
|
|
158
|
+
export class FinancesTransfersApi extends BaseAPI {
|
|
159
159
|
/**
|
|
160
160
|
* 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).
|
|
161
|
-
* @param {
|
|
161
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
162
162
|
* @param {*} [options] Override http request option.
|
|
163
163
|
* @throws {RequiredError}
|
|
164
|
-
* @memberof
|
|
164
|
+
* @memberof FinancesTransfersApi
|
|
165
165
|
*/
|
|
166
166
|
getPaymentMethods(requestParameters, options) {
|
|
167
|
-
return
|
|
167
|
+
return FinancesTransfersApiFp(this.configuration).getPaymentMethods(requestParameters.marketplaceId, requestParameters.paymentMethodTypes, options).then((request) => request(this.axios, this.basePath));
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* 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).
|
|
171
|
-
* @param {
|
|
171
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
172
172
|
* @param {*} [options] Override http request option.
|
|
173
173
|
* @throws {RequiredError}
|
|
174
|
-
* @memberof
|
|
174
|
+
* @memberof FinancesTransfersApi
|
|
175
175
|
*/
|
|
176
176
|
initiatePayout(requestParameters, options) {
|
|
177
|
-
return
|
|
177
|
+
return FinancesTransfersApiFp(this.configuration).initiatePayout(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
/**
|
package/dist/es/api-model/api.js
CHANGED
package/dist/es/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAxiosInstance } from '@sp-api-sdk/common';
|
|
2
|
-
import { Configuration,
|
|
2
|
+
import { Configuration, FinancesTransfersApi } from './api-model';
|
|
3
3
|
export const clientRateLimits = [
|
|
4
4
|
{
|
|
5
5
|
method: 'post',
|
|
@@ -16,7 +16,7 @@ export const clientRateLimits = [
|
|
|
16
16
|
burst: 30,
|
|
17
17
|
},
|
|
18
18
|
];
|
|
19
|
-
export class FinancesTransfersApiClient extends
|
|
19
|
+
export class FinancesTransfersApiClient extends FinancesTransfersApi {
|
|
20
20
|
constructor(configuration) {
|
|
21
21
|
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
22
22
|
super(new Configuration(), endpoint, axios);
|
|
@@ -17,10 +17,10 @@ import type { GetPaymentMethodsResponse } from '../models';
|
|
|
17
17
|
import type { InitiatePayoutRequest } from '../models';
|
|
18
18
|
import type { InitiatePayoutResponse } from '../models';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* FinancesTransfersApi - axios parameter creator
|
|
21
21
|
* @export
|
|
22
22
|
*/
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const FinancesTransfersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
24
|
/**
|
|
25
25
|
* 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).
|
|
26
26
|
* @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).
|
|
@@ -38,10 +38,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
38
38
|
initiatePayout: (body: InitiatePayoutRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* FinancesTransfersApi - functional programming interface
|
|
42
42
|
* @export
|
|
43
43
|
*/
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const FinancesTransfersApiFp: (configuration?: Configuration) => {
|
|
45
45
|
/**
|
|
46
46
|
* 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).
|
|
47
47
|
* @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).
|
|
@@ -59,80 +59,80 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
59
59
|
initiatePayout(body: InitiatePayoutRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiatePayoutResponse>>;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* FinancesTransfersApi - factory interface
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const
|
|
65
|
+
export declare const FinancesTransfersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
66
66
|
/**
|
|
67
67
|
* 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).
|
|
68
|
-
* @param {
|
|
68
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
70
70
|
* @throws {RequiredError}
|
|
71
71
|
*/
|
|
72
|
-
getPaymentMethods(requestParameters:
|
|
72
|
+
getPaymentMethods(requestParameters: FinancesTransfersApiGetPaymentMethodsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPaymentMethodsResponse>;
|
|
73
73
|
/**
|
|
74
74
|
* 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).
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
76
76
|
* @param {*} [options] Override http request option.
|
|
77
77
|
* @throws {RequiredError}
|
|
78
78
|
*/
|
|
79
|
-
initiatePayout(requestParameters:
|
|
79
|
+
initiatePayout(requestParameters: FinancesTransfersApiInitiatePayoutRequest, options?: RawAxiosRequestConfig): AxiosPromise<InitiatePayoutResponse>;
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
|
-
* Request parameters for getPaymentMethods operation in
|
|
82
|
+
* Request parameters for getPaymentMethods operation in FinancesTransfersApi.
|
|
83
83
|
* @export
|
|
84
|
-
* @interface
|
|
84
|
+
* @interface FinancesTransfersApiGetPaymentMethodsRequest
|
|
85
85
|
*/
|
|
86
|
-
export interface
|
|
86
|
+
export interface FinancesTransfersApiGetPaymentMethodsRequest {
|
|
87
87
|
/**
|
|
88
88
|
* 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).
|
|
89
89
|
* @type {string}
|
|
90
|
-
* @memberof
|
|
90
|
+
* @memberof FinancesTransfersApiGetPaymentMethods
|
|
91
91
|
*/
|
|
92
92
|
readonly marketplaceId: string;
|
|
93
93
|
/**
|
|
94
94
|
* A comma-separated list of the payment method types you want to include in the response.
|
|
95
95
|
* @type {Set<'BANK_ACCOUNT' | 'CARD' | 'SELLER_WALLET'>}
|
|
96
|
-
* @memberof
|
|
96
|
+
* @memberof FinancesTransfersApiGetPaymentMethods
|
|
97
97
|
*/
|
|
98
98
|
readonly paymentMethodTypes?: Set<GetPaymentMethodsPaymentMethodTypesEnum>;
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* Request parameters for initiatePayout operation in
|
|
101
|
+
* Request parameters for initiatePayout operation in FinancesTransfersApi.
|
|
102
102
|
* @export
|
|
103
|
-
* @interface
|
|
103
|
+
* @interface FinancesTransfersApiInitiatePayoutRequest
|
|
104
104
|
*/
|
|
105
|
-
export interface
|
|
105
|
+
export interface FinancesTransfersApiInitiatePayoutRequest {
|
|
106
106
|
/**
|
|
107
107
|
* The request body for the `initiatePayout` operation.
|
|
108
108
|
* @type {InitiatePayoutRequest}
|
|
109
|
-
* @memberof
|
|
109
|
+
* @memberof FinancesTransfersApiInitiatePayout
|
|
110
110
|
*/
|
|
111
111
|
readonly body: InitiatePayoutRequest;
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* FinancesTransfersApi - object-oriented interface
|
|
115
115
|
* @export
|
|
116
|
-
* @class
|
|
116
|
+
* @class FinancesTransfersApi
|
|
117
117
|
* @extends {BaseAPI}
|
|
118
118
|
*/
|
|
119
|
-
export declare class
|
|
119
|
+
export declare class FinancesTransfersApi extends BaseAPI {
|
|
120
120
|
/**
|
|
121
121
|
* 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).
|
|
122
|
-
* @param {
|
|
122
|
+
* @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
|
|
123
123
|
* @param {*} [options] Override http request option.
|
|
124
124
|
* @throws {RequiredError}
|
|
125
|
-
* @memberof
|
|
125
|
+
* @memberof FinancesTransfersApi
|
|
126
126
|
*/
|
|
127
|
-
getPaymentMethods(requestParameters:
|
|
127
|
+
getPaymentMethods(requestParameters: FinancesTransfersApiGetPaymentMethodsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetPaymentMethodsResponse, any>>;
|
|
128
128
|
/**
|
|
129
129
|
* 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).
|
|
130
|
-
* @param {
|
|
130
|
+
* @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
|
|
131
131
|
* @param {*} [options] Override http request option.
|
|
132
132
|
* @throws {RequiredError}
|
|
133
|
-
* @memberof
|
|
133
|
+
* @memberof FinancesTransfersApi
|
|
134
134
|
*/
|
|
135
|
-
initiatePayout(requestParameters:
|
|
135
|
+
initiatePayout(requestParameters: FinancesTransfersApiInitiatePayoutRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<InitiatePayoutResponse, any>>;
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* @export
|
package/dist/types/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
|
|
2
|
-
import {
|
|
2
|
+
import { FinancesTransfersApi } from './api-model';
|
|
3
3
|
export declare const clientRateLimits: RateLimit[];
|
|
4
|
-
export declare class FinancesTransfersApiClient extends
|
|
4
|
+
export declare class FinancesTransfersApiClient extends FinancesTransfersApi {
|
|
5
5
|
constructor(configuration: ClientConfiguration);
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/finances-transfers-api-2024-06-01",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "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.",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "4.0.1",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.15",
|
|
22
|
+
"axios": "^1.10.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"finances transfers api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "b36600f33d62a2b6c3a9035968a93bc83e9838a9"
|
|
44
44
|
}
|