@emilgroup/payment-sdk 1.7.0 → 1.7.1-beta.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/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/api/webhooks-api.ts +25 -10
- package/dist/api/webhooks-api.d.ts +16 -7
- package/dist/api/webhooks-api.js +16 -9
- package/dist/models/card-details-dto.d.ts +42 -0
- package/dist/models/card-details-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +97 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +32 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-adyen-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
- package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +7 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
- package/dist/models/payment-method-class.d.ts +6 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -0
- package/dist/models/validate-pspconfig-request-dto.js +2 -1
- package/models/card-details-dto.ts +48 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +106 -0
- package/models/complete-payment-setup-request-dto.ts +7 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
- package/models/index.ts +4 -0
- package/models/initiate-adyen-payment-setup-request-dto.ts +36 -0
- package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
- package/models/initiate-payment-setup-request-dto.ts +7 -0
- package/models/initiate-payment-setup-response-class.ts +7 -0
- package/models/payment-method-class.ts +6 -0
- package/models/validate-pspconfig-request-dto.ts +2 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -24,6 +24,8 @@ models/bank-transaction-class-without-expand-properties.ts
|
|
|
24
24
|
models/bank-transaction-class.ts
|
|
25
25
|
models/billing-profile-dto.ts
|
|
26
26
|
models/billing-profile-limited-response-dto.ts
|
|
27
|
+
models/card-details-dto.ts
|
|
28
|
+
models/complete-adyen-payment-setup-request-dto.ts
|
|
27
29
|
models/complete-braintree-payment-setup-request-dto.ts
|
|
28
30
|
models/complete-payment-setup-request-dto.ts
|
|
29
31
|
models/complete-payment-setup-response-class.ts
|
|
@@ -52,6 +54,8 @@ models/get-refund-response-class.ts
|
|
|
52
54
|
models/get-tenant-bank-account-response-class.ts
|
|
53
55
|
models/import-bank-transactions-response-class.ts
|
|
54
56
|
models/index.ts
|
|
57
|
+
models/initiate-adyen-payment-setup-request-dto.ts
|
|
58
|
+
models/initiate-adyen-payment-setup-response-class.ts
|
|
55
59
|
models/initiate-braintree-payment-setup-request-dto.ts
|
|
56
60
|
models/initiate-braintree-payment-setup-response-class.ts
|
|
57
61
|
models/initiate-payment-setup-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.7.0 --save
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.7.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.7.0
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.7.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/webhooks-api.ts
CHANGED
|
@@ -29,19 +29,22 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
29
29
|
/**
|
|
30
30
|
* This will processes the webhook from external payment service provider.
|
|
31
31
|
* @summary Handle the webhook from PSP
|
|
32
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
32
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
33
33
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
34
34
|
* @param {string} productSlug
|
|
35
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
35
36
|
* @param {*} [options] Override http request option.
|
|
36
37
|
* @throws {RequiredError}
|
|
37
38
|
*/
|
|
38
|
-
postWebhook: async (pspType: string, tenantSlug: string, productSlug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
+
postWebhook: async (pspType: string, tenantSlug: string, productSlug: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
40
|
// verify required parameter 'pspType' is not null or undefined
|
|
40
41
|
assertParamExists('postWebhook', 'pspType', pspType)
|
|
41
42
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
42
43
|
assertParamExists('postWebhook', 'tenantSlug', tenantSlug)
|
|
43
44
|
// verify required parameter 'productSlug' is not null or undefined
|
|
44
45
|
assertParamExists('postWebhook', 'productSlug', productSlug)
|
|
46
|
+
// verify required parameter 'body' is not null or undefined
|
|
47
|
+
assertParamExists('postWebhook', 'body', body)
|
|
45
48
|
const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}`
|
|
46
49
|
.replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
|
|
47
50
|
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
@@ -61,9 +64,12 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
61
64
|
|
|
62
65
|
|
|
63
66
|
|
|
67
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
68
|
+
|
|
64
69
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65
70
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
71
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
72
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
67
73
|
|
|
68
74
|
return {
|
|
69
75
|
url: toPathString(localVarUrlObj),
|
|
@@ -83,14 +89,15 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
|
83
89
|
/**
|
|
84
90
|
* This will processes the webhook from external payment service provider.
|
|
85
91
|
* @summary Handle the webhook from PSP
|
|
86
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
92
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
87
93
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
88
94
|
* @param {string} productSlug
|
|
95
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
89
96
|
* @param {*} [options] Override http request option.
|
|
90
97
|
* @throws {RequiredError}
|
|
91
98
|
*/
|
|
92
|
-
async postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
93
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, options);
|
|
99
|
+
async postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options);
|
|
94
101
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
95
102
|
},
|
|
96
103
|
}
|
|
@@ -106,14 +113,15 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
106
113
|
/**
|
|
107
114
|
* This will processes the webhook from external payment service provider.
|
|
108
115
|
* @summary Handle the webhook from PSP
|
|
109
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
116
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
110
117
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
111
118
|
* @param {string} productSlug
|
|
119
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
112
120
|
* @param {*} [options] Override http request option.
|
|
113
121
|
* @throws {RequiredError}
|
|
114
122
|
*/
|
|
115
|
-
postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: any): AxiosPromise<void> {
|
|
116
|
-
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, options).then((request) => request(axios, basePath));
|
|
123
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void> {
|
|
124
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then((request) => request(axios, basePath));
|
|
117
125
|
},
|
|
118
126
|
};
|
|
119
127
|
};
|
|
@@ -125,7 +133,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
125
133
|
*/
|
|
126
134
|
export interface WebhooksApiPostWebhookRequest {
|
|
127
135
|
/**
|
|
128
|
-
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
136
|
+
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
129
137
|
* @type {string}
|
|
130
138
|
* @memberof WebhooksApiPostWebhook
|
|
131
139
|
*/
|
|
@@ -144,6 +152,13 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
144
152
|
* @memberof WebhooksApiPostWebhook
|
|
145
153
|
*/
|
|
146
154
|
readonly productSlug: string
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
158
|
+
* @type {object}
|
|
159
|
+
* @memberof WebhooksApiPostWebhook
|
|
160
|
+
*/
|
|
161
|
+
readonly body: object
|
|
147
162
|
}
|
|
148
163
|
|
|
149
164
|
/**
|
|
@@ -162,6 +177,6 @@ export class WebhooksApi extends BaseAPI {
|
|
|
162
177
|
* @memberof WebhooksApi
|
|
163
178
|
*/
|
|
164
179
|
public postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig) {
|
|
165
|
-
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, options).then((request) => request(this.axios, this.basePath));
|
|
180
|
+
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
166
181
|
}
|
|
167
182
|
}
|
|
@@ -20,13 +20,14 @@ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
20
20
|
/**
|
|
21
21
|
* This will processes the webhook from external payment service provider.
|
|
22
22
|
* @summary Handle the webhook from PSP
|
|
23
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
23
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
24
24
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
25
25
|
* @param {string} productSlug
|
|
26
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
26
27
|
* @param {*} [options] Override http request option.
|
|
27
28
|
* @throws {RequiredError}
|
|
28
29
|
*/
|
|
29
|
-
postWebhook: (pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
postWebhook: (pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
31
|
};
|
|
31
32
|
/**
|
|
32
33
|
* WebhooksApi - functional programming interface
|
|
@@ -36,13 +37,14 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
36
37
|
/**
|
|
37
38
|
* This will processes the webhook from external payment service provider.
|
|
38
39
|
* @summary Handle the webhook from PSP
|
|
39
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
40
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
40
41
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
41
42
|
* @param {string} productSlug
|
|
43
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
42
44
|
* @param {*} [options] Override http request option.
|
|
43
45
|
* @throws {RequiredError}
|
|
44
46
|
*/
|
|
45
|
-
postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
47
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
46
48
|
};
|
|
47
49
|
/**
|
|
48
50
|
* WebhooksApi - factory interface
|
|
@@ -52,13 +54,14 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
52
54
|
/**
|
|
53
55
|
* This will processes the webhook from external payment service provider.
|
|
54
56
|
* @summary Handle the webhook from PSP
|
|
55
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
57
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
56
58
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
57
59
|
* @param {string} productSlug
|
|
60
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
58
61
|
* @param {*} [options] Override http request option.
|
|
59
62
|
* @throws {RequiredError}
|
|
60
63
|
*/
|
|
61
|
-
postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: any): AxiosPromise<void>;
|
|
64
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
62
65
|
};
|
|
63
66
|
/**
|
|
64
67
|
* Request parameters for postWebhook operation in WebhooksApi.
|
|
@@ -67,7 +70,7 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
67
70
|
*/
|
|
68
71
|
export interface WebhooksApiPostWebhookRequest {
|
|
69
72
|
/**
|
|
70
|
-
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
73
|
+
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
71
74
|
* @type {string}
|
|
72
75
|
* @memberof WebhooksApiPostWebhook
|
|
73
76
|
*/
|
|
@@ -84,6 +87,12 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
84
87
|
* @memberof WebhooksApiPostWebhook
|
|
85
88
|
*/
|
|
86
89
|
readonly productSlug: string;
|
|
90
|
+
/**
|
|
91
|
+
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
92
|
+
* @type {object}
|
|
93
|
+
* @memberof WebhooksApiPostWebhook
|
|
94
|
+
*/
|
|
95
|
+
readonly body: object;
|
|
87
96
|
}
|
|
88
97
|
/**
|
|
89
98
|
* WebhooksApi - object-oriented interface
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -95,13 +95,14 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* This will processes the webhook from external payment service provider.
|
|
97
97
|
* @summary Handle the webhook from PSP
|
|
98
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
98
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
99
99
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
100
100
|
* @param {string} productSlug
|
|
101
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
101
102
|
* @param {*} [options] Override http request option.
|
|
102
103
|
* @throws {RequiredError}
|
|
103
104
|
*/
|
|
104
|
-
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
105
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
105
106
|
if (options === void 0) { options = {}; }
|
|
106
107
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
108
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -112,6 +113,8 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
112
113
|
(0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
|
|
113
114
|
// verify required parameter 'productSlug' is not null or undefined
|
|
114
115
|
(0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
|
|
116
|
+
// verify required parameter 'body' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('postWebhook', 'body', body);
|
|
115
118
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
116
119
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
117
120
|
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
@@ -124,9 +127,11 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
124
127
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
125
128
|
localVarHeaderParameter = {};
|
|
126
129
|
localVarQueryParameter = {};
|
|
130
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
127
131
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
132
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
133
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
130
135
|
return [2 /*return*/, {
|
|
131
136
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
132
137
|
options: localVarRequestOptions,
|
|
@@ -147,18 +152,19 @@ var WebhooksApiFp = function (configuration) {
|
|
|
147
152
|
/**
|
|
148
153
|
* This will processes the webhook from external payment service provider.
|
|
149
154
|
* @summary Handle the webhook from PSP
|
|
150
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
155
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
151
156
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
152
157
|
* @param {string} productSlug
|
|
158
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
153
159
|
* @param {*} [options] Override http request option.
|
|
154
160
|
* @throws {RequiredError}
|
|
155
161
|
*/
|
|
156
|
-
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
162
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
157
163
|
return __awaiter(this, void 0, void 0, function () {
|
|
158
164
|
var localVarAxiosArgs;
|
|
159
165
|
return __generator(this, function (_a) {
|
|
160
166
|
switch (_a.label) {
|
|
161
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, options)];
|
|
167
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options)];
|
|
162
168
|
case 1:
|
|
163
169
|
localVarAxiosArgs = _a.sent();
|
|
164
170
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -179,14 +185,15 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
179
185
|
/**
|
|
180
186
|
* This will processes the webhook from external payment service provider.
|
|
181
187
|
* @summary Handle the webhook from PSP
|
|
182
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
188
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
183
189
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
184
190
|
* @param {string} productSlug
|
|
191
|
+
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
185
192
|
* @param {*} [options] Override http request option.
|
|
186
193
|
* @throws {RequiredError}
|
|
187
194
|
*/
|
|
188
|
-
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
189
|
-
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, options).then(function (request) { return request(axios, basePath); });
|
|
195
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
196
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
190
197
|
},
|
|
191
198
|
};
|
|
192
199
|
};
|
|
@@ -212,7 +219,7 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
212
219
|
*/
|
|
213
220
|
WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
|
|
214
221
|
var _this = this;
|
|
215
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
222
|
+
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
216
223
|
};
|
|
217
224
|
return WebhooksApi;
|
|
218
225
|
}(base_1.BaseAPI));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CardDetailsDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CardDetailsDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CardDetailsDto
|
|
22
|
+
*/
|
|
23
|
+
'encryptedCardNumber': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CardDetailsDto
|
|
28
|
+
*/
|
|
29
|
+
'encryptedExpiryMonth': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CardDetailsDto
|
|
34
|
+
*/
|
|
35
|
+
'encryptedExpiryYear': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CardDetailsDto
|
|
40
|
+
*/
|
|
41
|
+
'encryptedSecurityCode': string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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 });
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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 { CardDetailsDto } from './card-details-dto';
|
|
13
|
+
import { SepaDirectDto } from './sepa-direct-dto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CompleteAdyenPaymentSetupRequestDto
|
|
18
|
+
*/
|
|
19
|
+
export interface CompleteAdyenPaymentSetupRequestDto {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the shopper on Adyen.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
24
|
+
*/
|
|
25
|
+
'shopperReference': string;
|
|
26
|
+
/**
|
|
27
|
+
* The payment method type on Adyen.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
30
|
+
*/
|
|
31
|
+
'paymentMethodType': CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum;
|
|
32
|
+
/**
|
|
33
|
+
* Card details.
|
|
34
|
+
* @type {CardDetailsDto}
|
|
35
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
36
|
+
*/
|
|
37
|
+
'cardDetails'?: CardDetailsDto;
|
|
38
|
+
/**
|
|
39
|
+
* SEPA direct details.
|
|
40
|
+
* @type {SepaDirectDto}
|
|
41
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
42
|
+
*/
|
|
43
|
+
'sepaDetails'?: SepaDirectDto;
|
|
44
|
+
/**
|
|
45
|
+
* Unique identifier of the lead that this object belongs to.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
48
|
+
*/
|
|
49
|
+
'leadCode'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The account\'s type.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
54
|
+
*/
|
|
55
|
+
'accountType': string;
|
|
56
|
+
/**
|
|
57
|
+
* The accounts holder\'s first name.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
60
|
+
*/
|
|
61
|
+
'firstName'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The account holder\'s last name.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
66
|
+
*/
|
|
67
|
+
'lastName'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The account\'s company name.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
72
|
+
*/
|
|
73
|
+
'companyName'?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The account\'s email address
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
78
|
+
*/
|
|
79
|
+
'email': string;
|
|
80
|
+
}
|
|
81
|
+
export declare const CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum: {
|
|
82
|
+
readonly Paypal: "paypal";
|
|
83
|
+
readonly CreditCard: "credit_card";
|
|
84
|
+
readonly SepaDebit: "sepa_debit";
|
|
85
|
+
readonly Sofort: "sofort";
|
|
86
|
+
readonly Card: "card";
|
|
87
|
+
readonly Giropay: "giropay";
|
|
88
|
+
readonly Klarna: "klarna";
|
|
89
|
+
readonly Visa: "visa";
|
|
90
|
+
readonly ApplePay: "apple_pay";
|
|
91
|
+
readonly AndroidPay: "android_pay";
|
|
92
|
+
readonly SamsungPay: "samsung_pay";
|
|
93
|
+
readonly Venmo: "venmo";
|
|
94
|
+
readonly Masterpass: "masterpass";
|
|
95
|
+
readonly B4u: "b4u";
|
|
96
|
+
};
|
|
97
|
+
export type CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum = typeof CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum[keyof typeof CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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.CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum = void 0;
|
|
17
|
+
exports.CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum = {
|
|
18
|
+
Paypal: 'paypal',
|
|
19
|
+
CreditCard: 'credit_card',
|
|
20
|
+
SepaDebit: 'sepa_debit',
|
|
21
|
+
Sofort: 'sofort',
|
|
22
|
+
Card: 'card',
|
|
23
|
+
Giropay: 'giropay',
|
|
24
|
+
Klarna: 'klarna',
|
|
25
|
+
Visa: 'visa',
|
|
26
|
+
ApplePay: 'apple_pay',
|
|
27
|
+
AndroidPay: 'android_pay',
|
|
28
|
+
SamsungPay: 'samsung_pay',
|
|
29
|
+
Venmo: 'venmo',
|
|
30
|
+
Masterpass: 'masterpass',
|
|
31
|
+
B4u: 'b4u'
|
|
32
|
+
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CompleteAdyenPaymentSetupRequestDto } from './complete-adyen-payment-setup-request-dto';
|
|
12
13
|
import { CompleteBraintreePaymentSetupRequestDto } from './complete-braintree-payment-setup-request-dto';
|
|
13
14
|
import { CompleteStripePaymentSetupRequestDto } from './complete-stripe-payment-setup-request-dto';
|
|
14
15
|
/**
|
|
@@ -35,4 +36,10 @@ export interface CompletePaymentSetupRequestDto {
|
|
|
35
36
|
* @memberof CompletePaymentSetupRequestDto
|
|
36
37
|
*/
|
|
37
38
|
'productSlug'?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {CompleteAdyenPaymentSetupRequestDto}
|
|
42
|
+
* @memberof CompletePaymentSetupRequestDto
|
|
43
|
+
*/
|
|
44
|
+
'adyen'?: CompleteAdyenPaymentSetupRequestDto;
|
|
38
45
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { SepaDirectDto } from './sepa-direct-dto';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -57,6 +58,24 @@ export interface CompleteStripePaymentSetupRequestDto {
|
|
|
57
58
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
58
59
|
*/
|
|
59
60
|
'paymentMethodType': CompleteStripePaymentSetupRequestDtoPaymentMethodTypeEnum;
|
|
61
|
+
/**
|
|
62
|
+
* The account\'s type.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
65
|
+
*/
|
|
66
|
+
'accountType'?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The account\'s company name.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
71
|
+
*/
|
|
72
|
+
'companyName'?: string;
|
|
73
|
+
/**
|
|
74
|
+
* SEPA direct details
|
|
75
|
+
* @type {SepaDirectDto}
|
|
76
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
77
|
+
*/
|
|
78
|
+
'sepaDetails'?: SepaDirectDto;
|
|
60
79
|
}
|
|
61
80
|
export declare const CompleteStripePaymentSetupRequestDtoPaymentMethodTypeEnum: {
|
|
62
81
|
readonly Paypal: "paypal";
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from './bank-transaction-class';
|
|
|
4
4
|
export * from './bank-transaction-class-without-expand-properties';
|
|
5
5
|
export * from './billing-profile-dto';
|
|
6
6
|
export * from './billing-profile-limited-response-dto';
|
|
7
|
+
export * from './card-details-dto';
|
|
8
|
+
export * from './complete-adyen-payment-setup-request-dto';
|
|
7
9
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
8
10
|
export * from './complete-payment-setup-request-dto';
|
|
9
11
|
export * from './complete-payment-setup-response-class';
|
|
@@ -31,6 +33,8 @@ export * from './get-payment-response-class';
|
|
|
31
33
|
export * from './get-refund-response-class';
|
|
32
34
|
export * from './get-tenant-bank-account-response-class';
|
|
33
35
|
export * from './import-bank-transactions-response-class';
|
|
36
|
+
export * from './initiate-adyen-payment-setup-request-dto';
|
|
37
|
+
export * from './initiate-adyen-payment-setup-response-class';
|
|
34
38
|
export * from './initiate-braintree-payment-setup-request-dto';
|
|
35
39
|
export * from './initiate-braintree-payment-setup-response-class';
|
|
36
40
|
export * from './initiate-payment-setup-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -20,6 +20,8 @@ __exportStar(require("./bank-transaction-class"), exports);
|
|
|
20
20
|
__exportStar(require("./bank-transaction-class-without-expand-properties"), exports);
|
|
21
21
|
__exportStar(require("./billing-profile-dto"), exports);
|
|
22
22
|
__exportStar(require("./billing-profile-limited-response-dto"), exports);
|
|
23
|
+
__exportStar(require("./card-details-dto"), exports);
|
|
24
|
+
__exportStar(require("./complete-adyen-payment-setup-request-dto"), exports);
|
|
23
25
|
__exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
|
|
24
26
|
__exportStar(require("./complete-payment-setup-request-dto"), exports);
|
|
25
27
|
__exportStar(require("./complete-payment-setup-response-class"), exports);
|
|
@@ -47,6 +49,8 @@ __exportStar(require("./get-payment-response-class"), exports);
|
|
|
47
49
|
__exportStar(require("./get-refund-response-class"), exports);
|
|
48
50
|
__exportStar(require("./get-tenant-bank-account-response-class"), exports);
|
|
49
51
|
__exportStar(require("./import-bank-transactions-response-class"), exports);
|
|
52
|
+
__exportStar(require("./initiate-adyen-payment-setup-request-dto"), exports);
|
|
53
|
+
__exportStar(require("./initiate-adyen-payment-setup-response-class"), exports);
|
|
50
54
|
__exportStar(require("./initiate-braintree-payment-setup-request-dto"), exports);
|
|
51
55
|
__exportStar(require("./initiate-braintree-payment-setup-response-class"), exports);
|
|
52
56
|
__exportStar(require("./initiate-payment-setup-request-dto"), exports);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InitiateAdyenPaymentSetupRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface InitiateAdyenPaymentSetupRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the lead that this object belongs to.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitiateAdyenPaymentSetupRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'leadCode'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the account that this object belongs to.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitiateAdyenPaymentSetupRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'accountCode'?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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 });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InitiateAdyenPaymentSetupResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface InitiateAdyenPaymentSetupResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* The client key associated with the Adyen account.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'clientKey': string;
|
|
24
|
+
/**
|
|
25
|
+
* A unique reference for the shopper.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'shopperReference': string;
|
|
30
|
+
/**
|
|
31
|
+
* The environment in which the payment request is being made (e.g., \"TEST\" or \"LIVE\").
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'environment': string;
|
|
36
|
+
/**
|
|
37
|
+
* The country code associated with the shopper\'s payment details.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'country'?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil Payment Service
|
|
6
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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 });
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InitiateAdyenPaymentSetupRequestDto } from './initiate-adyen-payment-setup-request-dto';
|
|
12
13
|
import { InitiateBraintreePaymentSetupRequestDto } from './initiate-braintree-payment-setup-request-dto';
|
|
13
14
|
import { InitiateStripePaymentSetupRequestDto } from './initiate-stripe-payment-setup-request-dto';
|
|
14
15
|
/**
|
|
@@ -41,6 +42,12 @@ export interface InitiatePaymentSetupRequestDto {
|
|
|
41
42
|
* @memberof InitiatePaymentSetupRequestDto
|
|
42
43
|
*/
|
|
43
44
|
'eis'?: object;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {InitiateAdyenPaymentSetupRequestDto}
|
|
48
|
+
* @memberof InitiatePaymentSetupRequestDto
|
|
49
|
+
*/
|
|
50
|
+
'adyen'?: InitiateAdyenPaymentSetupRequestDto;
|
|
44
51
|
/**
|
|
45
52
|
*
|
|
46
53
|
* @type {string}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InitiateAdyenPaymentSetupResponseClass } from './initiate-adyen-payment-setup-response-class';
|
|
12
13
|
import { InitiateBraintreePaymentSetupResponseClass } from './initiate-braintree-payment-setup-response-class';
|
|
13
14
|
import { InitiateStripePaymentSetupResponseClass } from './initiate-stripe-payment-setup-response-class';
|
|
14
15
|
/**
|
|
@@ -29,4 +30,10 @@ export interface InitiatePaymentSetupResponseClass {
|
|
|
29
30
|
* @memberof InitiatePaymentSetupResponseClass
|
|
30
31
|
*/
|
|
31
32
|
'braintree': InitiateBraintreePaymentSetupResponseClass;
|
|
33
|
+
/**
|
|
34
|
+
* Adyen response after generating client token.
|
|
35
|
+
* @type {InitiateAdyenPaymentSetupResponseClass}
|
|
36
|
+
* @memberof InitiatePaymentSetupResponseClass
|
|
37
|
+
*/
|
|
38
|
+
'adyen': InitiateAdyenPaymentSetupResponseClass;
|
|
32
39
|
}
|
|
@@ -69,6 +69,12 @@ export interface PaymentMethodClass {
|
|
|
69
69
|
* @memberof PaymentMethodClass
|
|
70
70
|
*/
|
|
71
71
|
'productSlug'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Payment data details. Stored only for some payment method types.
|
|
74
|
+
* @type {object}
|
|
75
|
+
* @memberof PaymentMethodClass
|
|
76
|
+
*/
|
|
77
|
+
'details'?: object;
|
|
72
78
|
/**
|
|
73
79
|
* Optional field contain extra information
|
|
74
80
|
* @type {object}
|
|
@@ -39,5 +39,6 @@ export declare const ValidatePSPConfigRequestDtoTypeEnum: {
|
|
|
39
39
|
readonly Stripe: "stripe";
|
|
40
40
|
readonly B4u: "b4u";
|
|
41
41
|
readonly Eis: "eis";
|
|
42
|
+
readonly Adyen: "adyen";
|
|
42
43
|
};
|
|
43
44
|
export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CardDetailsDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CardDetailsDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CardDetailsDto
|
|
27
|
+
*/
|
|
28
|
+
'encryptedCardNumber': string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CardDetailsDto
|
|
33
|
+
*/
|
|
34
|
+
'encryptedExpiryMonth': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CardDetailsDto
|
|
39
|
+
*/
|
|
40
|
+
'encryptedExpiryYear': string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CardDetailsDto
|
|
45
|
+
*/
|
|
46
|
+
'encryptedSecurityCode': string;
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
|
|
16
|
+
import { CardDetailsDto } from './card-details-dto';
|
|
17
|
+
import { SepaDirectDto } from './sepa-direct-dto';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface CompleteAdyenPaymentSetupRequestDto
|
|
23
|
+
*/
|
|
24
|
+
export interface CompleteAdyenPaymentSetupRequestDto {
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for the shopper on Adyen.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'shopperReference': string;
|
|
31
|
+
/**
|
|
32
|
+
* The payment method type on Adyen.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'paymentMethodType': CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum;
|
|
37
|
+
/**
|
|
38
|
+
* Card details.
|
|
39
|
+
* @type {CardDetailsDto}
|
|
40
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'cardDetails'?: CardDetailsDto;
|
|
43
|
+
/**
|
|
44
|
+
* SEPA direct details.
|
|
45
|
+
* @type {SepaDirectDto}
|
|
46
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'sepaDetails'?: SepaDirectDto;
|
|
49
|
+
/**
|
|
50
|
+
* Unique identifier of the lead that this object belongs to.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'leadCode'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The account\'s type.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
59
|
+
*/
|
|
60
|
+
'accountType': string;
|
|
61
|
+
/**
|
|
62
|
+
* The accounts holder\'s first name.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
65
|
+
*/
|
|
66
|
+
'firstName'?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The account holder\'s last name.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
71
|
+
*/
|
|
72
|
+
'lastName'?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The account\'s company name.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
77
|
+
*/
|
|
78
|
+
'companyName'?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The account\'s email address
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
83
|
+
*/
|
|
84
|
+
'email': string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export const CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum = {
|
|
88
|
+
Paypal: 'paypal',
|
|
89
|
+
CreditCard: 'credit_card',
|
|
90
|
+
SepaDebit: 'sepa_debit',
|
|
91
|
+
Sofort: 'sofort',
|
|
92
|
+
Card: 'card',
|
|
93
|
+
Giropay: 'giropay',
|
|
94
|
+
Klarna: 'klarna',
|
|
95
|
+
Visa: 'visa',
|
|
96
|
+
ApplePay: 'apple_pay',
|
|
97
|
+
AndroidPay: 'android_pay',
|
|
98
|
+
SamsungPay: 'samsung_pay',
|
|
99
|
+
Venmo: 'venmo',
|
|
100
|
+
Masterpass: 'masterpass',
|
|
101
|
+
B4u: 'b4u'
|
|
102
|
+
} as const;
|
|
103
|
+
|
|
104
|
+
export type CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum = typeof CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum[keyof typeof CompleteAdyenPaymentSetupRequestDtoPaymentMethodTypeEnum];
|
|
105
|
+
|
|
106
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { CompleteAdyenPaymentSetupRequestDto } from './complete-adyen-payment-setup-request-dto';
|
|
16
17
|
import { CompleteBraintreePaymentSetupRequestDto } from './complete-braintree-payment-setup-request-dto';
|
|
17
18
|
import { CompleteStripePaymentSetupRequestDto } from './complete-stripe-payment-setup-request-dto';
|
|
18
19
|
|
|
@@ -40,5 +41,11 @@ export interface CompletePaymentSetupRequestDto {
|
|
|
40
41
|
* @memberof CompletePaymentSetupRequestDto
|
|
41
42
|
*/
|
|
42
43
|
'productSlug'?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {CompleteAdyenPaymentSetupRequestDto}
|
|
47
|
+
* @memberof CompletePaymentSetupRequestDto
|
|
48
|
+
*/
|
|
49
|
+
'adyen'?: CompleteAdyenPaymentSetupRequestDto;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { SepaDirectDto } from './sepa-direct-dto';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -62,6 +63,24 @@ export interface CompleteStripePaymentSetupRequestDto {
|
|
|
62
63
|
* @memberof CompleteStripePaymentSetupRequestDto
|
|
63
64
|
*/
|
|
64
65
|
'paymentMethodType': CompleteStripePaymentSetupRequestDtoPaymentMethodTypeEnum;
|
|
66
|
+
/**
|
|
67
|
+
* The account\'s type.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'accountType'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The account\'s company name.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'companyName'?: string;
|
|
78
|
+
/**
|
|
79
|
+
* SEPA direct details
|
|
80
|
+
* @type {SepaDirectDto}
|
|
81
|
+
* @memberof CompleteStripePaymentSetupRequestDto
|
|
82
|
+
*/
|
|
83
|
+
'sepaDetails'?: SepaDirectDto;
|
|
65
84
|
}
|
|
66
85
|
|
|
67
86
|
export const CompleteStripePaymentSetupRequestDtoPaymentMethodTypeEnum = {
|
package/models/index.ts
CHANGED
|
@@ -4,6 +4,8 @@ export * from './bank-transaction-class';
|
|
|
4
4
|
export * from './bank-transaction-class-without-expand-properties';
|
|
5
5
|
export * from './billing-profile-dto';
|
|
6
6
|
export * from './billing-profile-limited-response-dto';
|
|
7
|
+
export * from './card-details-dto';
|
|
8
|
+
export * from './complete-adyen-payment-setup-request-dto';
|
|
7
9
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
8
10
|
export * from './complete-payment-setup-request-dto';
|
|
9
11
|
export * from './complete-payment-setup-response-class';
|
|
@@ -31,6 +33,8 @@ export * from './get-payment-response-class';
|
|
|
31
33
|
export * from './get-refund-response-class';
|
|
32
34
|
export * from './get-tenant-bank-account-response-class';
|
|
33
35
|
export * from './import-bank-transactions-response-class';
|
|
36
|
+
export * from './initiate-adyen-payment-setup-request-dto';
|
|
37
|
+
export * from './initiate-adyen-payment-setup-response-class';
|
|
34
38
|
export * from './initiate-braintree-payment-setup-request-dto';
|
|
35
39
|
export * from './initiate-braintree-payment-setup-response-class';
|
|
36
40
|
export * from './initiate-payment-setup-request-dto';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InitiateAdyenPaymentSetupRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface InitiateAdyenPaymentSetupRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier of the lead that this object belongs to.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InitiateAdyenPaymentSetupRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'leadCode'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier of the account that this object belongs to.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InitiateAdyenPaymentSetupRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'accountCode'?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InitiateAdyenPaymentSetupResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface InitiateAdyenPaymentSetupResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* The client key associated with the Adyen account.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'clientKey': string;
|
|
29
|
+
/**
|
|
30
|
+
* A unique reference for the shopper.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'shopperReference': string;
|
|
35
|
+
/**
|
|
36
|
+
* The environment in which the payment request is being made (e.g., \"TEST\" or \"LIVE\").
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
39
|
+
*/
|
|
40
|
+
'environment': string;
|
|
41
|
+
/**
|
|
42
|
+
* The country code associated with the shopper\'s payment details.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof InitiateAdyenPaymentSetupResponseClass
|
|
45
|
+
*/
|
|
46
|
+
'country'?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { InitiateAdyenPaymentSetupRequestDto } from './initiate-adyen-payment-setup-request-dto';
|
|
16
17
|
import { InitiateBraintreePaymentSetupRequestDto } from './initiate-braintree-payment-setup-request-dto';
|
|
17
18
|
import { InitiateStripePaymentSetupRequestDto } from './initiate-stripe-payment-setup-request-dto';
|
|
18
19
|
|
|
@@ -46,6 +47,12 @@ export interface InitiatePaymentSetupRequestDto {
|
|
|
46
47
|
* @memberof InitiatePaymentSetupRequestDto
|
|
47
48
|
*/
|
|
48
49
|
'eis'?: object;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {InitiateAdyenPaymentSetupRequestDto}
|
|
53
|
+
* @memberof InitiatePaymentSetupRequestDto
|
|
54
|
+
*/
|
|
55
|
+
'adyen'?: InitiateAdyenPaymentSetupRequestDto;
|
|
49
56
|
/**
|
|
50
57
|
*
|
|
51
58
|
* @type {string}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { InitiateAdyenPaymentSetupResponseClass } from './initiate-adyen-payment-setup-response-class';
|
|
16
17
|
import { InitiateBraintreePaymentSetupResponseClass } from './initiate-braintree-payment-setup-response-class';
|
|
17
18
|
import { InitiateStripePaymentSetupResponseClass } from './initiate-stripe-payment-setup-response-class';
|
|
18
19
|
|
|
@@ -34,5 +35,11 @@ export interface InitiatePaymentSetupResponseClass {
|
|
|
34
35
|
* @memberof InitiatePaymentSetupResponseClass
|
|
35
36
|
*/
|
|
36
37
|
'braintree': InitiateBraintreePaymentSetupResponseClass;
|
|
38
|
+
/**
|
|
39
|
+
* Adyen response after generating client token.
|
|
40
|
+
* @type {InitiateAdyenPaymentSetupResponseClass}
|
|
41
|
+
* @memberof InitiatePaymentSetupResponseClass
|
|
42
|
+
*/
|
|
43
|
+
'adyen': InitiateAdyenPaymentSetupResponseClass;
|
|
37
44
|
}
|
|
38
45
|
|
|
@@ -74,6 +74,12 @@ export interface PaymentMethodClass {
|
|
|
74
74
|
* @memberof PaymentMethodClass
|
|
75
75
|
*/
|
|
76
76
|
'productSlug'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Payment data details. Stored only for some payment method types.
|
|
79
|
+
* @type {object}
|
|
80
|
+
* @memberof PaymentMethodClass
|
|
81
|
+
*/
|
|
82
|
+
'details'?: object;
|
|
77
83
|
/**
|
|
78
84
|
* Optional field contain extra information
|
|
79
85
|
* @type {object}
|
|
@@ -44,7 +44,8 @@ export const ValidatePSPConfigRequestDtoTypeEnum = {
|
|
|
44
44
|
Braintree: 'braintree',
|
|
45
45
|
Stripe: 'stripe',
|
|
46
46
|
B4u: 'b4u',
|
|
47
|
-
Eis: 'eis'
|
|
47
|
+
Eis: 'eis',
|
|
48
|
+
Adyen: 'adyen'
|
|
48
49
|
} as const;
|
|
49
50
|
|
|
50
51
|
export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
|