@sp-api-sdk/finances-transfers-api-2024-06-01 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/cjs/api-model/api/default-api.js +197 -0
- package/dist/cjs/api-model/api.js +30 -0
- package/dist/cjs/api-model/base.js +71 -0
- package/dist/cjs/api-model/common.js +145 -0
- package/dist/cjs/api-model/configuration.js +99 -0
- package/dist/cjs/api-model/index.js +32 -0
- package/dist/cjs/api-model/models/assignment-type.js +24 -0
- package/dist/cjs/api-model/models/error-list.js +15 -0
- package/dist/cjs/api-model/models/expiry-date.js +15 -0
- package/dist/cjs/api-model/models/get-payment-methods-response.js +15 -0
- package/dist/cjs/api-model/models/index.js +25 -0
- package/dist/cjs/api-model/models/initiate-payout-request.js +15 -0
- package/dist/cjs/api-model/models/initiate-payout-response.js +15 -0
- package/dist/cjs/api-model/models/model-error.js +15 -0
- package/dist/cjs/api-model/models/payment-method-details.js +15 -0
- package/dist/cjs/api-model/models/payment-method-type.js +26 -0
- package/dist/cjs/client.js +28 -0
- package/dist/cjs/index.js +19 -0
- package/dist/es/api-model/api/default-api.js +187 -0
- package/dist/es/api-model/api.js +14 -0
- package/dist/es/api-model/base.js +63 -0
- package/dist/es/api-model/common.js +133 -0
- package/dist/es/api-model/configuration.js +95 -0
- package/dist/es/api-model/index.js +16 -0
- package/dist/es/api-model/models/assignment-type.js +21 -0
- package/dist/es/api-model/models/error-list.js +14 -0
- package/dist/es/api-model/models/expiry-date.js +14 -0
- package/dist/es/api-model/models/get-payment-methods-response.js +14 -0
- package/dist/es/api-model/models/index.js +9 -0
- package/dist/es/api-model/models/initiate-payout-request.js +14 -0
- package/dist/es/api-model/models/initiate-payout-response.js +14 -0
- package/dist/es/api-model/models/model-error.js +14 -0
- package/dist/es/api-model/models/payment-method-details.js +14 -0
- package/dist/es/api-model/models/payment-method-type.js +23 -0
- package/dist/es/client.js +24 -0
- package/dist/es/index.js +3 -0
- package/dist/types/api-model/api/default-api.d.ts +145 -0
- package/dist/types/api-model/api.d.ts +12 -0
- package/dist/types/api-model/base.d.ts +66 -0
- package/dist/types/api-model/common.d.ts +65 -0
- package/dist/types/api-model/configuration.d.ts +91 -0
- package/dist/types/api-model/index.d.ts +14 -0
- package/dist/types/api-model/models/assignment-type.d.ts +20 -0
- package/dist/types/api-model/models/error-list.d.ts +24 -0
- package/dist/types/api-model/models/expiry-date.d.ts +30 -0
- package/dist/types/api-model/models/get-payment-methods-response.d.ts +25 -0
- package/dist/types/api-model/models/index.d.ts +9 -0
- package/dist/types/api-model/models/initiate-payout-request.d.ts +30 -0
- package/dist/types/api-model/models/initiate-payout-response.d.ts +24 -0
- package/dist/types/api-model/models/model-error.d.ts +36 -0
- package/dist/types/api-model/models/payment-method-details.d.ts +63 -0
- package/dist/types/api-model/models/payment-method-type.d.ts +22 -0
- package/dist/types/client.d.ts +6 -0
- package/dist/types/index.d.ts +3 -0
- package/package.json +44 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
19
|
+
baseOptions?: any;
|
|
20
|
+
formDataCtor?: new () => any;
|
|
21
|
+
}
|
|
22
|
+
export declare class Configuration {
|
|
23
|
+
/**
|
|
24
|
+
* parameter for apiKey security
|
|
25
|
+
* @param name security name
|
|
26
|
+
* @memberof Configuration
|
|
27
|
+
*/
|
|
28
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
|
+
/**
|
|
30
|
+
* parameter for basic security
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Configuration
|
|
34
|
+
*/
|
|
35
|
+
username?: string;
|
|
36
|
+
/**
|
|
37
|
+
* parameter for basic security
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Configuration
|
|
41
|
+
*/
|
|
42
|
+
password?: string;
|
|
43
|
+
/**
|
|
44
|
+
* parameter for oauth2 security
|
|
45
|
+
* @param name security name
|
|
46
|
+
* @param scopes oauth2 scope
|
|
47
|
+
* @memberof Configuration
|
|
48
|
+
*/
|
|
49
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
|
+
/**
|
|
51
|
+
* override base path
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof Configuration
|
|
55
|
+
*/
|
|
56
|
+
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
64
|
+
/**
|
|
65
|
+
* base options for axios calls
|
|
66
|
+
*
|
|
67
|
+
* @type {any}
|
|
68
|
+
* @memberof Configuration
|
|
69
|
+
*/
|
|
70
|
+
baseOptions?: any;
|
|
71
|
+
/**
|
|
72
|
+
* The FormData constructor that will be used to create multipart form data
|
|
73
|
+
* requests. You can inject this here so that execution environments that
|
|
74
|
+
* do not support the FormData class can still run the generated client.
|
|
75
|
+
*
|
|
76
|
+
* @type {new () => FormData}
|
|
77
|
+
*/
|
|
78
|
+
formDataCtor?: new () => any;
|
|
79
|
+
constructor(param?: ConfigurationParameters);
|
|
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: string): boolean;
|
|
91
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./api";
|
|
13
|
+
export * from "./configuration";
|
|
14
|
+
export * from "./models";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The default payment method type.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const AssignmentType: {
|
|
18
|
+
readonly DefaultDepositMethod: "DEFAULT_DEPOSIT_METHOD";
|
|
19
|
+
};
|
|
20
|
+
export type AssignmentType = typeof AssignmentType[keyof typeof AssignmentType];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ErrorList
|
|
16
|
+
*/
|
|
17
|
+
export interface ErrorList {
|
|
18
|
+
/**
|
|
19
|
+
* array of errors
|
|
20
|
+
* @type {Array<Error>}
|
|
21
|
+
* @memberof ErrorList
|
|
22
|
+
*/
|
|
23
|
+
'errors': Array<Error>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The expiration date of the card used for payment. If the payment method is not `card`, the expiration date is `null`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ExpiryDate
|
|
16
|
+
*/
|
|
17
|
+
export interface ExpiryDate {
|
|
18
|
+
/**
|
|
19
|
+
* The month the card expires expressed as a number from `1` to `12`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExpiryDate
|
|
22
|
+
*/
|
|
23
|
+
'month'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Year
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ExpiryDate
|
|
28
|
+
*/
|
|
29
|
+
'year'?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PaymentMethodDetails } from './payment-method-details';
|
|
13
|
+
/**
|
|
14
|
+
* The response schema for the `getPaymentMethods` operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetPaymentMethodsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GetPaymentMethodsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The list of payment methods with payment method details.
|
|
21
|
+
* @type {Array<PaymentMethodDetails>}
|
|
22
|
+
* @memberof GetPaymentMethodsResponse
|
|
23
|
+
*/
|
|
24
|
+
'paymentMethods'?: Array<PaymentMethodDetails>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './assignment-type';
|
|
2
|
+
export * from './error-list';
|
|
3
|
+
export * from './expiry-date';
|
|
4
|
+
export * from './get-payment-methods-response';
|
|
5
|
+
export * from './initiate-payout-request';
|
|
6
|
+
export * from './initiate-payout-response';
|
|
7
|
+
export * from './model-error';
|
|
8
|
+
export * from './payment-method-details';
|
|
9
|
+
export * from './payment-method-type';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The request schema for the `initiatePayout` operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InitiatePayoutRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface InitiatePayoutRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The identifier of the Amazon marketplace. For the list of all marketplace IDs, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitiatePayoutRequest
|
|
22
|
+
*/
|
|
23
|
+
'marketplaceId': string;
|
|
24
|
+
/**
|
|
25
|
+
* The account type in the selected marketplace for which a payout must be initiated. For supported EU marketplaces, the only account type is `Standard Orders`.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitiatePayoutRequest
|
|
28
|
+
*/
|
|
29
|
+
'accountType': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The response schema for the `initiatePayout` operation.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InitiatePayoutResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface InitiatePayoutResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The financial event group ID for a successfully initiated payout. You can use this ID to track payout information.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitiatePayoutResponse
|
|
22
|
+
*/
|
|
23
|
+
'payoutReferenceId': string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Error response returned when the request is unsuccessful.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelError
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelError {
|
|
18
|
+
/**
|
|
19
|
+
* An error code that identifies the type of error that occurred.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelError
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* A message that describes the error condition.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelError
|
|
28
|
+
*/
|
|
29
|
+
'message': string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional details that can help the caller understand or fix the issue.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ModelError
|
|
34
|
+
*/
|
|
35
|
+
'details'?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AssignmentType } from './assignment-type';
|
|
13
|
+
import type { ExpiryDate } from './expiry-date';
|
|
14
|
+
import type { PaymentMethodType } from './payment-method-type';
|
|
15
|
+
/**
|
|
16
|
+
* The details of a payment method.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PaymentMethodDetails
|
|
19
|
+
*/
|
|
20
|
+
export interface PaymentMethodDetails {
|
|
21
|
+
/**
|
|
22
|
+
* The name of the account holder who is registered for the payment method.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof PaymentMethodDetails
|
|
25
|
+
*/
|
|
26
|
+
'accountHolderName'?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The payment method identifier.
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof PaymentMethodDetails
|
|
31
|
+
*/
|
|
32
|
+
'paymentMethodId'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The last three or four digits of the payment method.
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof PaymentMethodDetails
|
|
37
|
+
*/
|
|
38
|
+
'tail'?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {ExpiryDate}
|
|
42
|
+
* @memberof PaymentMethodDetails
|
|
43
|
+
*/
|
|
44
|
+
'expiryDate'?: ExpiryDate;
|
|
45
|
+
/**
|
|
46
|
+
* The two-letter country code in ISO 3166-1 alpha-2 format. For payment methods in the `card` category, the code is for the country where the card was issued. For payment methods in the `bank account` category, the code is for the country where the account is located.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof PaymentMethodDetails
|
|
49
|
+
*/
|
|
50
|
+
'countryCode'?: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {PaymentMethodType}
|
|
54
|
+
* @memberof PaymentMethodDetails
|
|
55
|
+
*/
|
|
56
|
+
'paymentMethodType'?: PaymentMethodType;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {AssignmentType}
|
|
60
|
+
* @memberof PaymentMethodDetails
|
|
61
|
+
*/
|
|
62
|
+
'assignmentType'?: AssignmentType;
|
|
63
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Transfers.
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-06-01
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The type of payment method.
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const PaymentMethodType: {
|
|
18
|
+
readonly BankAccount: "BANK_ACCOUNT";
|
|
19
|
+
readonly Card: "CARD";
|
|
20
|
+
readonly SellerWallet: "SELLER_WALLET";
|
|
21
|
+
};
|
|
22
|
+
export type PaymentMethodType = typeof PaymentMethodType[keyof typeof PaymentMethodType];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import { DefaultApi } from './api-model';
|
|
3
|
+
export declare const clientRateLimits: RateLimit[];
|
|
4
|
+
export declare class FinancesTransfersApiClient extends DefaultApi {
|
|
5
|
+
constructor(configuration: ClientConfiguration);
|
|
6
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sp-api-sdk/finances-transfers-api-2024-06-01",
|
|
3
|
+
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
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": "2.0.0",
|
|
6
|
+
"main": "dist/cjs/index.js",
|
|
7
|
+
"module": "dist/es/index.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"directories": {
|
|
14
|
+
"lib": "dist"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/**/*.js",
|
|
18
|
+
"dist/**/*.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@sp-api-sdk/common": "2.1.7",
|
|
22
|
+
"axios": "^1.7.9"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/bizon/selling-partner-api-sdk.git",
|
|
27
|
+
"directory": "clients/finances-transfers-api-2024-06-01"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/bizon/selling-partner-api-sdk/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/finances-transfers-api-2024-06-01",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"amazon",
|
|
35
|
+
"bizon",
|
|
36
|
+
"marketplace web services",
|
|
37
|
+
"mws",
|
|
38
|
+
"selling partner api",
|
|
39
|
+
"sp api",
|
|
40
|
+
"sp sdk",
|
|
41
|
+
"finances transfers api"
|
|
42
|
+
],
|
|
43
|
+
"gitHead": "14dc1de3723e34f66b078e05f9c7044b22a46c43"
|
|
44
|
+
}
|