@sp-api-sdk/finances-transfers-api-2024-06-01 4.0.17 → 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.
Files changed (62) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +411 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +458 -0
  5. package/dist/index.d.ts +458 -0
  6. package/dist/index.js +366 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/finances-transfers-api.js +0 -188
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/assignment-type.js +0 -22
  16. package/dist/cjs/api-model/models/error-list.js +0 -15
  17. package/dist/cjs/api-model/models/expiry-date.js +0 -15
  18. package/dist/cjs/api-model/models/get-payment-methods-response.js +0 -15
  19. package/dist/cjs/api-model/models/index.js +0 -25
  20. package/dist/cjs/api-model/models/initiate-payout-request.js +0 -15
  21. package/dist/cjs/api-model/models/initiate-payout-response.js +0 -15
  22. package/dist/cjs/api-model/models/model-error.js +0 -15
  23. package/dist/cjs/api-model/models/payment-method-details.js +0 -15
  24. package/dist/cjs/api-model/models/payment-method-type.js +0 -24
  25. package/dist/cjs/client.js +0 -28
  26. package/dist/cjs/index.js +0 -19
  27. package/dist/es/api-model/api/finances-transfers-api.js +0 -178
  28. package/dist/es/api-model/api.js +0 -14
  29. package/dist/es/api-model/base.js +0 -44
  30. package/dist/es/api-model/common.js +0 -110
  31. package/dist/es/api-model/configuration.js +0 -94
  32. package/dist/es/api-model/index.js +0 -16
  33. package/dist/es/api-model/models/assignment-type.js +0 -19
  34. package/dist/es/api-model/models/error-list.js +0 -14
  35. package/dist/es/api-model/models/expiry-date.js +0 -14
  36. package/dist/es/api-model/models/get-payment-methods-response.js +0 -14
  37. package/dist/es/api-model/models/index.js +0 -9
  38. package/dist/es/api-model/models/initiate-payout-request.js +0 -14
  39. package/dist/es/api-model/models/initiate-payout-response.js +0 -14
  40. package/dist/es/api-model/models/model-error.js +0 -14
  41. package/dist/es/api-model/models/payment-method-details.js +0 -14
  42. package/dist/es/api-model/models/payment-method-type.js +0 -21
  43. package/dist/es/client.js +0 -24
  44. package/dist/es/index.js +0 -3
  45. package/dist/types/api-model/api/finances-transfers-api.d.ts +0 -124
  46. package/dist/types/api-model/api.d.ts +0 -12
  47. package/dist/types/api-model/base.d.ts +0 -42
  48. package/dist/types/api-model/common.d.ts +0 -34
  49. package/dist/types/api-model/configuration.d.ts +0 -98
  50. package/dist/types/api-model/index.d.ts +0 -14
  51. package/dist/types/api-model/models/assignment-type.d.ts +0 -18
  52. package/dist/types/api-model/models/error-list.d.ts +0 -20
  53. package/dist/types/api-model/models/expiry-date.d.ts +0 -24
  54. package/dist/types/api-model/models/get-payment-methods-response.d.ts +0 -21
  55. package/dist/types/api-model/models/index.d.ts +0 -9
  56. package/dist/types/api-model/models/initiate-payout-request.d.ts +0 -24
  57. package/dist/types/api-model/models/initiate-payout-response.d.ts +0 -20
  58. package/dist/types/api-model/models/model-error.d.ts +0 -28
  59. package/dist/types/api-model/models/payment-method-details.d.ts +0 -38
  60. package/dist/types/api-model/models/payment-method-type.d.ts +0 -20
  61. package/dist/types/client.d.ts +0 -6
  62. package/dist/types/index.d.ts +0 -3
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for Transfers.
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 2024-06-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for Transfers.
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 2024-06-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for Transfers.
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 2024-06-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * The Selling Partner API for Transfers.
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 2024-06-01
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PaymentMethodType = void 0;
17
- /**
18
- * The type of payment method.
19
- */
20
- exports.PaymentMethodType = {
21
- BankAccount: 'BANK_ACCOUNT',
22
- Card: 'CARD',
23
- SellerWallet: 'SELLER_WALLET',
24
- };
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FinancesTransfersApiClient = exports.clientRateLimits = void 0;
4
- const common_1 = require("@sp-api-sdk/common");
5
- const api_model_1 = require("./api-model");
6
- exports.clientRateLimits = [
7
- {
8
- method: 'post',
9
- // eslint-disable-next-line prefer-regex-literals
10
- urlRegex: new RegExp('^/finances/transfers/2024-06-01/payouts$'),
11
- rate: 0.017,
12
- burst: 2,
13
- },
14
- {
15
- method: 'get',
16
- // eslint-disable-next-line prefer-regex-literals
17
- urlRegex: new RegExp('^/finances/transfers/2024-06-01/paymentMethods$'),
18
- rate: 0.5,
19
- burst: 30,
20
- },
21
- ];
22
- class FinancesTransfersApiClient extends api_model_1.FinancesTransfersApi {
23
- constructor(configuration) {
24
- const { axios, endpoint } = (0, common_1.createAxiosInstance)(configuration, exports.clientRateLimits);
25
- super(new api_model_1.Configuration(), endpoint, axios);
26
- }
27
- }
28
- exports.FinancesTransfersApiClient = FinancesTransfersApiClient;
package/dist/cjs/index.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
18
- __exportStar(require("./api-model/api"), exports);
19
- __exportStar(require("./api-model/models"), exports);
@@ -1,178 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import globalAxios from 'axios';
15
- // Some imports not used depending on template conditions
16
- // @ts-ignore
17
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
- // @ts-ignore
19
- import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, operationServerMap } from '../base';
20
- /**
21
- * FinancesTransfersApi - axios parameter creator
22
- */
23
- export const FinancesTransfersApiAxiosParamCreator = function (configuration) {
24
- return {
25
- /**
26
- * 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).
27
- * @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).
28
- * @param {Set<GetPaymentMethodsPaymentMethodTypesEnum>} [paymentMethodTypes] A comma-separated list of the payment method types you want to include in the response.
29
- * @param {*} [options] Override http request option.
30
- * @throws {RequiredError}
31
- */
32
- getPaymentMethods: async (marketplaceId, paymentMethodTypes, options = {}) => {
33
- // verify required parameter 'marketplaceId' is not null or undefined
34
- assertParamExists('getPaymentMethods', 'marketplaceId', marketplaceId);
35
- const localVarPath = `/finances/transfers/2024-06-01/paymentMethods`;
36
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38
- let baseOptions;
39
- if (configuration) {
40
- baseOptions = configuration.baseOptions;
41
- }
42
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
43
- const localVarHeaderParameter = {};
44
- const localVarQueryParameter = {};
45
- if (marketplaceId !== undefined) {
46
- localVarQueryParameter['marketplaceId'] = marketplaceId;
47
- }
48
- if (paymentMethodTypes) {
49
- localVarQueryParameter['paymentMethodTypes'] = Array.from(paymentMethodTypes).join(COLLECTION_FORMATS.csv);
50
- }
51
- localVarHeaderParameter['Accept'] = 'application/json';
52
- setSearchParams(localVarUrlObj, localVarQueryParameter);
53
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
55
- return {
56
- url: toPathString(localVarUrlObj),
57
- options: localVarRequestOptions,
58
- };
59
- },
60
- /**
61
- * 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).
62
- * @param {InitiatePayoutRequest} body The request body for the &#x60;initiatePayout&#x60; operation.
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- initiatePayout: async (body, options = {}) => {
67
- // verify required parameter 'body' is not null or undefined
68
- assertParamExists('initiatePayout', 'body', body);
69
- const localVarPath = `/finances/transfers/2024-06-01/payouts`;
70
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
71
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
72
- let baseOptions;
73
- if (configuration) {
74
- baseOptions = configuration.baseOptions;
75
- }
76
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
77
- const localVarHeaderParameter = {};
78
- const localVarQueryParameter = {};
79
- localVarHeaderParameter['Content-Type'] = 'application/json';
80
- localVarHeaderParameter['Accept'] = 'application/json';
81
- setSearchParams(localVarUrlObj, localVarQueryParameter);
82
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
83
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
84
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
85
- return {
86
- url: toPathString(localVarUrlObj),
87
- options: localVarRequestOptions,
88
- };
89
- },
90
- };
91
- };
92
- /**
93
- * FinancesTransfersApi - functional programming interface
94
- */
95
- export const FinancesTransfersApiFp = function (configuration) {
96
- const localVarAxiosParamCreator = FinancesTransfersApiAxiosParamCreator(configuration);
97
- return {
98
- /**
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).
100
- * @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).
101
- * @param {Set<GetPaymentMethodsPaymentMethodTypesEnum>} [paymentMethodTypes] A comma-separated list of the payment method types you want to include in the response.
102
- * @param {*} [options] Override http request option.
103
- * @throws {RequiredError}
104
- */
105
- async getPaymentMethods(marketplaceId, paymentMethodTypes, options) {
106
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethods(marketplaceId, paymentMethodTypes, options);
107
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
108
- const localVarOperationServerBasePath = operationServerMap['FinancesTransfersApi.getPaymentMethods']?.[localVarOperationServerIndex]?.url;
109
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
110
- },
111
- /**
112
- * 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).
113
- * @param {InitiatePayoutRequest} body The request body for the &#x60;initiatePayout&#x60; operation.
114
- * @param {*} [options] Override http request option.
115
- * @throws {RequiredError}
116
- */
117
- async initiatePayout(body, options) {
118
- const localVarAxiosArgs = await localVarAxiosParamCreator.initiatePayout(body, options);
119
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
120
- const localVarOperationServerBasePath = operationServerMap['FinancesTransfersApi.initiatePayout']?.[localVarOperationServerIndex]?.url;
121
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
122
- },
123
- };
124
- };
125
- /**
126
- * FinancesTransfersApi - factory interface
127
- */
128
- export const FinancesTransfersApiFactory = function (configuration, basePath, axios) {
129
- const localVarFp = FinancesTransfersApiFp(configuration);
130
- return {
131
- /**
132
- * 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).
133
- * @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
134
- * @param {*} [options] Override http request option.
135
- * @throws {RequiredError}
136
- */
137
- getPaymentMethods(requestParameters, options) {
138
- return localVarFp.getPaymentMethods(requestParameters.marketplaceId, requestParameters.paymentMethodTypes, options).then((request) => request(axios, basePath));
139
- },
140
- /**
141
- * 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).
142
- * @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
143
- * @param {*} [options] Override http request option.
144
- * @throws {RequiredError}
145
- */
146
- initiatePayout(requestParameters, options) {
147
- return localVarFp.initiatePayout(requestParameters.body, options).then((request) => request(axios, basePath));
148
- },
149
- };
150
- };
151
- /**
152
- * FinancesTransfersApi - object-oriented interface
153
- */
154
- export class FinancesTransfersApi extends BaseAPI {
155
- /**
156
- * 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).
157
- * @param {FinancesTransfersApiGetPaymentMethodsRequest} requestParameters Request parameters.
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- */
161
- getPaymentMethods(requestParameters, options) {
162
- return FinancesTransfersApiFp(this.configuration).getPaymentMethods(requestParameters.marketplaceId, requestParameters.paymentMethodTypes, options).then((request) => request(this.axios, this.basePath));
163
- }
164
- /**
165
- * 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).
166
- * @param {FinancesTransfersApiInitiatePayoutRequest} requestParameters Request parameters.
167
- * @param {*} [options] Override http request option.
168
- * @throws {RequiredError}
169
- */
170
- initiatePayout(requestParameters, options) {
171
- return FinancesTransfersApiFp(this.configuration).initiatePayout(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
172
- }
173
- }
174
- export const GetPaymentMethodsPaymentMethodTypesEnum = {
175
- BankAccount: 'BANK_ACCOUNT',
176
- Card: 'CARD',
177
- SellerWallet: 'SELLER_WALLET',
178
- };
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export * from './api/finances-transfers-api';
@@ -1,44 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import globalAxios from 'axios';
15
- export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
16
- export const COLLECTION_FORMATS = {
17
- csv: ",",
18
- ssv: " ",
19
- tsv: "\t",
20
- pipes: "|",
21
- };
22
- export class BaseAPI {
23
- basePath;
24
- axios;
25
- configuration;
26
- constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
27
- this.basePath = basePath;
28
- this.axios = axios;
29
- if (configuration) {
30
- this.configuration = configuration;
31
- this.basePath = configuration.basePath ?? basePath;
32
- }
33
- }
34
- }
35
- ;
36
- export class RequiredError extends Error {
37
- field;
38
- constructor(field, msg) {
39
- super(msg);
40
- this.field = field;
41
- this.name = "RequiredError";
42
- }
43
- }
44
- export const operationServerMap = {};
@@ -1,110 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- import { RequiredError } from "./base";
15
- export const DUMMY_BASE_URL = 'https://example.com';
16
- /**
17
- *
18
- * @throws {RequiredError}
19
- */
20
- export const assertParamExists = function (functionName, paramName, paramValue) {
21
- if (paramValue === null || paramValue === undefined) {
22
- throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
23
- }
24
- };
25
- export const setApiKeyToObject = async function (object, keyParamName, configuration) {
26
- if (configuration && configuration.apiKey) {
27
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
28
- ? await configuration.apiKey(keyParamName)
29
- : await configuration.apiKey;
30
- object[keyParamName] = localVarApiKeyValue;
31
- }
32
- };
33
- export const setBasicAuthToObject = function (object, configuration) {
34
- if (configuration && (configuration.username || configuration.password)) {
35
- object["auth"] = { username: configuration.username, password: configuration.password };
36
- }
37
- };
38
- export const setBearerAuthToObject = async function (object, configuration) {
39
- if (configuration && configuration.accessToken) {
40
- const accessToken = typeof configuration.accessToken === 'function'
41
- ? await configuration.accessToken()
42
- : await configuration.accessToken;
43
- object["Authorization"] = "Bearer " + accessToken;
44
- }
45
- };
46
- export const setOAuthToObject = async function (object, name, scopes, configuration) {
47
- if (configuration && configuration.accessToken) {
48
- const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
49
- ? await configuration.accessToken(name, scopes)
50
- : await configuration.accessToken;
51
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
52
- }
53
- };
54
- function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
55
- if (parameter == null)
56
- return;
57
- if (typeof parameter === "object") {
58
- if (Array.isArray(parameter) || parameter instanceof Set) {
59
- parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
60
- }
61
- else {
62
- Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
63
- }
64
- }
65
- else {
66
- if (urlSearchParams.has(key)) {
67
- urlSearchParams.append(key, parameter);
68
- }
69
- else {
70
- urlSearchParams.set(key, parameter);
71
- }
72
- }
73
- }
74
- export const setSearchParams = function (url, ...objects) {
75
- const searchParams = new URLSearchParams(url.search);
76
- setFlattenedQueryParams(searchParams, objects);
77
- url.search = searchParams.toString();
78
- };
79
- /**
80
- * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
81
- * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
82
- * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
83
- */
84
- // @ts-ignore
85
- export const replaceWithSerializableTypeIfNeeded = function (key, value) {
86
- if (value instanceof Set) {
87
- return Array.from(value);
88
- }
89
- else {
90
- return value;
91
- }
92
- };
93
- export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
94
- const nonString = typeof value !== 'string';
95
- const needsSerialization = nonString && configuration && configuration.isJsonMime
96
- ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
97
- : nonString;
98
- return needsSerialization
99
- ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
100
- : (value || "");
101
- };
102
- export const toPathString = function (url) {
103
- return url.pathname + url.search + url.hash;
104
- };
105
- export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
106
- return (axios = globalAxios, basePath = BASE_PATH) => {
107
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
108
- return axios.request(axiosRequestArgs);
109
- };
110
- };
@@ -1,94 +0,0 @@
1
- /* tslint:disable */
2
- /**
3
- * The Selling Partner API for Transfers.
4
- * 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
- *
6
- * The version of the OpenAPI document: 2024-06-01
7
- *
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- export class Configuration {
14
- /**
15
- * parameter for apiKey security
16
- * @param name security name
17
- */
18
- apiKey;
19
- /**
20
- * parameter for basic security
21
- */
22
- username;
23
- /**
24
- * parameter for basic security
25
- */
26
- password;
27
- /**
28
- * parameter for oauth2 security
29
- * @param name security name
30
- * @param scopes oauth2 scope
31
- */
32
- accessToken;
33
- /**
34
- * parameter for aws4 signature security
35
- * @param {Object} AWS4Signature - AWS4 Signature security
36
- * @param {string} options.region - aws region
37
- * @param {string} options.service - name of the service.
38
- * @param {string} credentials.accessKeyId - aws access key id
39
- * @param {string} credentials.secretAccessKey - aws access key
40
- * @param {string} credentials.sessionToken - aws session token
41
- * @memberof Configuration
42
- */
43
- awsv4;
44
- /**
45
- * override base path
46
- */
47
- basePath;
48
- /**
49
- * override server index
50
- */
51
- serverIndex;
52
- /**
53
- * base options for axios calls
54
- */
55
- baseOptions;
56
- /**
57
- * The FormData constructor that will be used to create multipart form data
58
- * requests. You can inject this here so that execution environments that
59
- * do not support the FormData class can still run the generated client.
60
- *
61
- * @type {new () => FormData}
62
- */
63
- formDataCtor;
64
- constructor(param = {}) {
65
- this.apiKey = param.apiKey;
66
- this.username = param.username;
67
- this.password = param.password;
68
- this.accessToken = param.accessToken;
69
- this.awsv4 = param.awsv4;
70
- this.basePath = param.basePath;
71
- this.serverIndex = param.serverIndex;
72
- this.baseOptions = {
73
- ...param.baseOptions,
74
- headers: {
75
- ...param.baseOptions?.headers,
76
- },
77
- };
78
- this.formDataCtor = param.formDataCtor;
79
- }
80
- /**
81
- * Check if the given MIME is a JSON MIME.
82
- * JSON MIME examples:
83
- * application/json
84
- * application/json; charset=UTF8
85
- * APPLICATION/JSON
86
- * application/vnd.company+json
87
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
88
- * @return True if the given MIME is JSON, false otherwise.
89
- */
90
- isJsonMime(mime) {
91
- const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
92
- return mime !== null && jsonMime.test(mime);
93
- }
94
- }
@@ -1,16 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export * from "./api";
15
- export * from "./configuration";
16
- export * from "./models";
@@ -1,19 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- /**
15
- * The default payment method type.
16
- */
17
- export const AssignmentType = {
18
- DefaultDepositMethod: 'DEFAULT_DEPOSIT_METHOD',
19
- };
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * The Selling Partner API for Transfers.
5
- * 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.
6
- *
7
- * The version of the OpenAPI document: 2024-06-01
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
- export {};