@emilgroup/payment-sdk 1.6.1-beta.9 → 1.7.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 +0 -4
- package/README.md +2 -2
- package/api/webhooks-api.ts +10 -25
- package/dist/api/webhooks-api.d.ts +7 -16
- package/dist/api/webhooks-api.js +9 -16
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -7
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -7
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -7
- package/dist/models/validate-pspconfig-request-dto.d.ts +0 -1
- package/dist/models/validate-pspconfig-request-dto.js +1 -2
- package/models/complete-payment-setup-request-dto.ts +0 -7
- package/models/index.ts +0 -4
- package/models/initiate-payment-setup-request-dto.ts +0 -7
- package/models/initiate-payment-setup-response-class.ts +0 -7
- package/models/validate-pspconfig-request-dto.ts +1 -2
- package/package.json +1 -1
- package/dist/models/card-details-dto.d.ts +0 -42
- package/dist/models/card-details-dto.js +0 -15
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +0 -97
- package/dist/models/complete-adyen-payment-setup-request-dto.js +0 -32
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-adyen-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +0 -42
- package/dist/models/initiate-adyen-payment-setup-response-class.js +0 -15
- package/models/card-details-dto.ts +0 -48
- package/models/complete-adyen-payment-setup-request-dto.ts +0 -106
- package/models/initiate-adyen-payment-setup-request-dto.ts +0 -36
- package/models/initiate-adyen-payment-setup-response-class.ts +0 -48
package/.openapi-generator/FILES
CHANGED
|
@@ -24,8 +24,6 @@ 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
|
|
29
27
|
models/complete-braintree-payment-setup-request-dto.ts
|
|
30
28
|
models/complete-payment-setup-request-dto.ts
|
|
31
29
|
models/complete-payment-setup-response-class.ts
|
|
@@ -54,8 +52,6 @@ models/get-refund-response-class.ts
|
|
|
54
52
|
models/get-tenant-bank-account-response-class.ts
|
|
55
53
|
models/import-bank-transactions-response-class.ts
|
|
56
54
|
models/index.ts
|
|
57
|
-
models/initiate-adyen-payment-setup-request-dto.ts
|
|
58
|
-
models/initiate-adyen-payment-setup-response-class.ts
|
|
59
55
|
models/initiate-braintree-payment-setup-request-dto.ts
|
|
60
56
|
models/initiate-braintree-payment-setup-response-class.ts
|
|
61
57
|
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.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.7.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.7.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/webhooks-api.ts
CHANGED
|
@@ -29,22 +29,19 @@ 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
|
|
32
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</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.
|
|
36
35
|
* @param {*} [options] Override http request option.
|
|
37
36
|
* @throws {RequiredError}
|
|
38
37
|
*/
|
|
39
|
-
postWebhook: async (pspType: string, tenantSlug: string, productSlug: string,
|
|
38
|
+
postWebhook: async (pspType: string, tenantSlug: string, productSlug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
39
|
// verify required parameter 'pspType' is not null or undefined
|
|
41
40
|
assertParamExists('postWebhook', 'pspType', pspType)
|
|
42
41
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
43
42
|
assertParamExists('postWebhook', 'tenantSlug', tenantSlug)
|
|
44
43
|
// verify required parameter 'productSlug' is not null or undefined
|
|
45
44
|
assertParamExists('postWebhook', 'productSlug', productSlug)
|
|
46
|
-
// verify required parameter 'body' is not null or undefined
|
|
47
|
-
assertParamExists('postWebhook', 'body', body)
|
|
48
45
|
const localVarPath = `/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}`
|
|
49
46
|
.replace(`{${"pspType"}}`, encodeURIComponent(String(pspType)))
|
|
50
47
|
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)))
|
|
@@ -64,12 +61,9 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
64
61
|
|
|
65
62
|
|
|
66
63
|
|
|
67
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
68
|
-
|
|
69
64
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
70
65
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
71
66
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
72
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
73
67
|
|
|
74
68
|
return {
|
|
75
69
|
url: toPathString(localVarUrlObj),
|
|
@@ -89,15 +83,14 @@ export const WebhooksApiFp = function(configuration?: Configuration) {
|
|
|
89
83
|
/**
|
|
90
84
|
* This will processes the webhook from external payment service provider.
|
|
91
85
|
* @summary Handle the webhook from PSP
|
|
92
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis
|
|
86
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
93
87
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
94
88
|
* @param {string} productSlug
|
|
95
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
96
89
|
* @param {*} [options] Override http request option.
|
|
97
90
|
* @throws {RequiredError}
|
|
98
91
|
*/
|
|
99
|
-
async postWebhook(pspType: string, tenantSlug: string, productSlug: string,
|
|
100
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug,
|
|
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);
|
|
101
94
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
102
95
|
},
|
|
103
96
|
}
|
|
@@ -113,15 +106,14 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
113
106
|
/**
|
|
114
107
|
* This will processes the webhook from external payment service provider.
|
|
115
108
|
* @summary Handle the webhook from PSP
|
|
116
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis
|
|
109
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
117
110
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
118
111
|
* @param {string} productSlug
|
|
119
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
120
112
|
* @param {*} [options] Override http request option.
|
|
121
113
|
* @throws {RequiredError}
|
|
122
114
|
*/
|
|
123
|
-
postWebhook(pspType: string, tenantSlug: string, productSlug: string,
|
|
124
|
-
return localVarFp.postWebhook(pspType, tenantSlug, productSlug,
|
|
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));
|
|
125
117
|
},
|
|
126
118
|
};
|
|
127
119
|
};
|
|
@@ -133,7 +125,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP
|
|
|
133
125
|
*/
|
|
134
126
|
export interface WebhooksApiPostWebhookRequest {
|
|
135
127
|
/**
|
|
136
|
-
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis
|
|
128
|
+
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
137
129
|
* @type {string}
|
|
138
130
|
* @memberof WebhooksApiPostWebhook
|
|
139
131
|
*/
|
|
@@ -152,13 +144,6 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
152
144
|
* @memberof WebhooksApiPostWebhook
|
|
153
145
|
*/
|
|
154
146
|
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
|
|
162
147
|
}
|
|
163
148
|
|
|
164
149
|
/**
|
|
@@ -177,6 +162,6 @@ export class WebhooksApi extends BaseAPI {
|
|
|
177
162
|
* @memberof WebhooksApi
|
|
178
163
|
*/
|
|
179
164
|
public postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig) {
|
|
180
|
-
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug,
|
|
165
|
+
return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, options).then((request) => request(this.axios, this.basePath));
|
|
181
166
|
}
|
|
182
167
|
}
|
|
@@ -20,14 +20,13 @@ 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
|
|
23
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</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.
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
postWebhook: (pspType: string, tenantSlug: string, productSlug: string,
|
|
29
|
+
postWebhook: (pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
30
|
};
|
|
32
31
|
/**
|
|
33
32
|
* WebhooksApi - functional programming interface
|
|
@@ -37,14 +36,13 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
37
36
|
/**
|
|
38
37
|
* This will processes the webhook from external payment service provider.
|
|
39
38
|
* @summary Handle the webhook from PSP
|
|
40
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis
|
|
39
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
41
40
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
42
41
|
* @param {string} productSlug
|
|
43
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
44
42
|
* @param {*} [options] Override http request option.
|
|
45
43
|
* @throws {RequiredError}
|
|
46
44
|
*/
|
|
47
|
-
postWebhook(pspType: string, tenantSlug: string, productSlug: string,
|
|
45
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
48
46
|
};
|
|
49
47
|
/**
|
|
50
48
|
* WebhooksApi - factory interface
|
|
@@ -54,14 +52,13 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
54
52
|
/**
|
|
55
53
|
* This will processes the webhook from external payment service provider.
|
|
56
54
|
* @summary Handle the webhook from PSP
|
|
57
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis
|
|
55
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
58
56
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
59
57
|
* @param {string} productSlug
|
|
60
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
61
58
|
* @param {*} [options] Override http request option.
|
|
62
59
|
* @throws {RequiredError}
|
|
63
60
|
*/
|
|
64
|
-
postWebhook(pspType: string, tenantSlug: string, productSlug: string,
|
|
61
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: any): AxiosPromise<void>;
|
|
65
62
|
};
|
|
66
63
|
/**
|
|
67
64
|
* Request parameters for postWebhook operation in WebhooksApi.
|
|
@@ -70,7 +67,7 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
70
67
|
*/
|
|
71
68
|
export interface WebhooksApiPostWebhookRequest {
|
|
72
69
|
/**
|
|
73
|
-
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis
|
|
70
|
+
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
74
71
|
* @type {string}
|
|
75
72
|
* @memberof WebhooksApiPostWebhook
|
|
76
73
|
*/
|
|
@@ -87,12 +84,6 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
87
84
|
* @memberof WebhooksApiPostWebhook
|
|
88
85
|
*/
|
|
89
86
|
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;
|
|
96
87
|
}
|
|
97
88
|
/**
|
|
98
89
|
* WebhooksApi - object-oriented interface
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -95,14 +95,13 @@ 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
|
|
98
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</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.
|
|
102
101
|
* @param {*} [options] Override http request option.
|
|
103
102
|
* @throws {RequiredError}
|
|
104
103
|
*/
|
|
105
|
-
postWebhook: function (pspType, tenantSlug, productSlug,
|
|
104
|
+
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
106
105
|
if (options === void 0) { options = {}; }
|
|
107
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
108
107
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -113,8 +112,6 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
113
112
|
(0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
|
|
114
113
|
// verify required parameter 'productSlug' is not null or undefined
|
|
115
114
|
(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);
|
|
118
115
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
119
116
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
120
117
|
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
@@ -127,11 +124,9 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
127
124
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
128
125
|
localVarHeaderParameter = {};
|
|
129
126
|
localVarQueryParameter = {};
|
|
130
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
127
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
128
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
129
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
135
130
|
return [2 /*return*/, {
|
|
136
131
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
132
|
options: localVarRequestOptions,
|
|
@@ -152,19 +147,18 @@ var WebhooksApiFp = function (configuration) {
|
|
|
152
147
|
/**
|
|
153
148
|
* This will processes the webhook from external payment service provider.
|
|
154
149
|
* @summary Handle the webhook from PSP
|
|
155
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis
|
|
150
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
156
151
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
157
152
|
* @param {string} productSlug
|
|
158
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
159
153
|
* @param {*} [options] Override http request option.
|
|
160
154
|
* @throws {RequiredError}
|
|
161
155
|
*/
|
|
162
|
-
postWebhook: function (pspType, tenantSlug, productSlug,
|
|
156
|
+
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
163
157
|
return __awaiter(this, void 0, void 0, function () {
|
|
164
158
|
var localVarAxiosArgs;
|
|
165
159
|
return __generator(this, function (_a) {
|
|
166
160
|
switch (_a.label) {
|
|
167
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug,
|
|
161
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, options)];
|
|
168
162
|
case 1:
|
|
169
163
|
localVarAxiosArgs = _a.sent();
|
|
170
164
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -185,15 +179,14 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
185
179
|
/**
|
|
186
180
|
* This will processes the webhook from external payment service provider.
|
|
187
181
|
* @summary Handle the webhook from PSP
|
|
188
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis
|
|
182
|
+
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
189
183
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
190
184
|
* @param {string} productSlug
|
|
191
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
192
185
|
* @param {*} [options] Override http request option.
|
|
193
186
|
* @throws {RequiredError}
|
|
194
187
|
*/
|
|
195
|
-
postWebhook: function (pspType, tenantSlug, productSlug,
|
|
196
|
-
return localVarFp.postWebhook(pspType, tenantSlug, productSlug,
|
|
188
|
+
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
189
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, options).then(function (request) { return request(axios, basePath); });
|
|
197
190
|
},
|
|
198
191
|
};
|
|
199
192
|
};
|
|
@@ -219,7 +212,7 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
219
212
|
*/
|
|
220
213
|
WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
|
|
221
214
|
var _this = this;
|
|
222
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug,
|
|
215
|
+
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
223
216
|
};
|
|
224
217
|
return WebhooksApi;
|
|
225
218
|
}(base_1.BaseAPI));
|
|
@@ -9,7 +9,6 @@
|
|
|
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';
|
|
13
12
|
import { CompleteBraintreePaymentSetupRequestDto } from './complete-braintree-payment-setup-request-dto';
|
|
14
13
|
import { CompleteStripePaymentSetupRequestDto } from './complete-stripe-payment-setup-request-dto';
|
|
15
14
|
/**
|
|
@@ -36,10 +35,4 @@ export interface CompletePaymentSetupRequestDto {
|
|
|
36
35
|
* @memberof CompletePaymentSetupRequestDto
|
|
37
36
|
*/
|
|
38
37
|
'productSlug'?: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {CompleteAdyenPaymentSetupRequestDto}
|
|
42
|
-
* @memberof CompletePaymentSetupRequestDto
|
|
43
|
-
*/
|
|
44
|
-
'adyen'?: CompleteAdyenPaymentSetupRequestDto;
|
|
45
38
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -4,8 +4,6 @@ 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';
|
|
9
7
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
10
8
|
export * from './complete-payment-setup-request-dto';
|
|
11
9
|
export * from './complete-payment-setup-response-class';
|
|
@@ -33,8 +31,6 @@ export * from './get-payment-response-class';
|
|
|
33
31
|
export * from './get-refund-response-class';
|
|
34
32
|
export * from './get-tenant-bank-account-response-class';
|
|
35
33
|
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';
|
|
38
34
|
export * from './initiate-braintree-payment-setup-request-dto';
|
|
39
35
|
export * from './initiate-braintree-payment-setup-response-class';
|
|
40
36
|
export * from './initiate-payment-setup-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -20,8 +20,6 @@ __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);
|
|
25
23
|
__exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
|
|
26
24
|
__exportStar(require("./complete-payment-setup-request-dto"), exports);
|
|
27
25
|
__exportStar(require("./complete-payment-setup-response-class"), exports);
|
|
@@ -49,8 +47,6 @@ __exportStar(require("./get-payment-response-class"), exports);
|
|
|
49
47
|
__exportStar(require("./get-refund-response-class"), exports);
|
|
50
48
|
__exportStar(require("./get-tenant-bank-account-response-class"), exports);
|
|
51
49
|
__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);
|
|
54
50
|
__exportStar(require("./initiate-braintree-payment-setup-request-dto"), exports);
|
|
55
51
|
__exportStar(require("./initiate-braintree-payment-setup-response-class"), exports);
|
|
56
52
|
__exportStar(require("./initiate-payment-setup-request-dto"), exports);
|
|
@@ -9,7 +9,6 @@
|
|
|
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';
|
|
13
12
|
import { InitiateBraintreePaymentSetupRequestDto } from './initiate-braintree-payment-setup-request-dto';
|
|
14
13
|
import { InitiateStripePaymentSetupRequestDto } from './initiate-stripe-payment-setup-request-dto';
|
|
15
14
|
/**
|
|
@@ -42,12 +41,6 @@ export interface InitiatePaymentSetupRequestDto {
|
|
|
42
41
|
* @memberof InitiatePaymentSetupRequestDto
|
|
43
42
|
*/
|
|
44
43
|
'eis'?: object;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {InitiateAdyenPaymentSetupRequestDto}
|
|
48
|
-
* @memberof InitiatePaymentSetupRequestDto
|
|
49
|
-
*/
|
|
50
|
-
'adyen'?: InitiateAdyenPaymentSetupRequestDto;
|
|
51
44
|
/**
|
|
52
45
|
*
|
|
53
46
|
* @type {string}
|
|
@@ -9,7 +9,6 @@
|
|
|
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';
|
|
13
12
|
import { InitiateBraintreePaymentSetupResponseClass } from './initiate-braintree-payment-setup-response-class';
|
|
14
13
|
import { InitiateStripePaymentSetupResponseClass } from './initiate-stripe-payment-setup-response-class';
|
|
15
14
|
/**
|
|
@@ -30,10 +29,4 @@ export interface InitiatePaymentSetupResponseClass {
|
|
|
30
29
|
* @memberof InitiatePaymentSetupResponseClass
|
|
31
30
|
*/
|
|
32
31
|
'braintree': InitiateBraintreePaymentSetupResponseClass;
|
|
33
|
-
/**
|
|
34
|
-
* Adyen response after generating client token.
|
|
35
|
-
* @type {InitiateAdyenPaymentSetupResponseClass}
|
|
36
|
-
* @memberof InitiatePaymentSetupResponseClass
|
|
37
|
-
*/
|
|
38
|
-
'adyen': InitiateAdyenPaymentSetupResponseClass;
|
|
39
32
|
}
|
|
@@ -39,6 +39,5 @@ export declare const ValidatePSPConfigRequestDtoTypeEnum: {
|
|
|
39
39
|
readonly Stripe: "stripe";
|
|
40
40
|
readonly B4u: "b4u";
|
|
41
41
|
readonly Eis: "eis";
|
|
42
|
-
readonly Adyen: "adyen";
|
|
43
42
|
};
|
|
44
43
|
export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { CompleteAdyenPaymentSetupRequestDto } from './complete-adyen-payment-setup-request-dto';
|
|
17
16
|
import { CompleteBraintreePaymentSetupRequestDto } from './complete-braintree-payment-setup-request-dto';
|
|
18
17
|
import { CompleteStripePaymentSetupRequestDto } from './complete-stripe-payment-setup-request-dto';
|
|
19
18
|
|
|
@@ -41,11 +40,5 @@ export interface CompletePaymentSetupRequestDto {
|
|
|
41
40
|
* @memberof CompletePaymentSetupRequestDto
|
|
42
41
|
*/
|
|
43
42
|
'productSlug'?: string;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {CompleteAdyenPaymentSetupRequestDto}
|
|
47
|
-
* @memberof CompletePaymentSetupRequestDto
|
|
48
|
-
*/
|
|
49
|
-
'adyen'?: CompleteAdyenPaymentSetupRequestDto;
|
|
50
43
|
}
|
|
51
44
|
|
package/models/index.ts
CHANGED
|
@@ -4,8 +4,6 @@ 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';
|
|
9
7
|
export * from './complete-braintree-payment-setup-request-dto';
|
|
10
8
|
export * from './complete-payment-setup-request-dto';
|
|
11
9
|
export * from './complete-payment-setup-response-class';
|
|
@@ -33,8 +31,6 @@ export * from './get-payment-response-class';
|
|
|
33
31
|
export * from './get-refund-response-class';
|
|
34
32
|
export * from './get-tenant-bank-account-response-class';
|
|
35
33
|
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';
|
|
38
34
|
export * from './initiate-braintree-payment-setup-request-dto';
|
|
39
35
|
export * from './initiate-braintree-payment-setup-response-class';
|
|
40
36
|
export * from './initiate-payment-setup-request-dto';
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { InitiateAdyenPaymentSetupRequestDto } from './initiate-adyen-payment-setup-request-dto';
|
|
17
16
|
import { InitiateBraintreePaymentSetupRequestDto } from './initiate-braintree-payment-setup-request-dto';
|
|
18
17
|
import { InitiateStripePaymentSetupRequestDto } from './initiate-stripe-payment-setup-request-dto';
|
|
19
18
|
|
|
@@ -47,12 +46,6 @@ export interface InitiatePaymentSetupRequestDto {
|
|
|
47
46
|
* @memberof InitiatePaymentSetupRequestDto
|
|
48
47
|
*/
|
|
49
48
|
'eis'?: object;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {InitiateAdyenPaymentSetupRequestDto}
|
|
53
|
-
* @memberof InitiatePaymentSetupRequestDto
|
|
54
|
-
*/
|
|
55
|
-
'adyen'?: InitiateAdyenPaymentSetupRequestDto;
|
|
56
49
|
/**
|
|
57
50
|
*
|
|
58
51
|
* @type {string}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { InitiateAdyenPaymentSetupResponseClass } from './initiate-adyen-payment-setup-response-class';
|
|
17
16
|
import { InitiateBraintreePaymentSetupResponseClass } from './initiate-braintree-payment-setup-response-class';
|
|
18
17
|
import { InitiateStripePaymentSetupResponseClass } from './initiate-stripe-payment-setup-response-class';
|
|
19
18
|
|
|
@@ -35,11 +34,5 @@ export interface InitiatePaymentSetupResponseClass {
|
|
|
35
34
|
* @memberof InitiatePaymentSetupResponseClass
|
|
36
35
|
*/
|
|
37
36
|
'braintree': InitiateBraintreePaymentSetupResponseClass;
|
|
38
|
-
/**
|
|
39
|
-
* Adyen response after generating client token.
|
|
40
|
-
* @type {InitiateAdyenPaymentSetupResponseClass}
|
|
41
|
-
* @memberof InitiatePaymentSetupResponseClass
|
|
42
|
-
*/
|
|
43
|
-
'adyen': InitiateAdyenPaymentSetupResponseClass;
|
|
44
37
|
}
|
|
45
38
|
|
|
@@ -44,8 +44,7 @@ export const ValidatePSPConfigRequestDtoTypeEnum = {
|
|
|
44
44
|
Braintree: 'braintree',
|
|
45
45
|
Stripe: 'stripe',
|
|
46
46
|
B4u: 'b4u',
|
|
47
|
-
Eis: 'eis'
|
|
48
|
-
Adyen: 'adyen'
|
|
47
|
+
Eis: 'eis'
|
|
49
48
|
} as const;
|
|
50
49
|
|
|
51
50
|
export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
|
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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 });
|
|
@@ -1,97 +0,0 @@
|
|
|
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
|
-
* Unique identifier of the lead that this object belongs to.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
36
|
-
*/
|
|
37
|
-
'leadCode'?: string;
|
|
38
|
-
/**
|
|
39
|
-
* The account\'s type.
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
42
|
-
*/
|
|
43
|
-
'accountType': string;
|
|
44
|
-
/**
|
|
45
|
-
* The accounts holder\'s first name.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
48
|
-
*/
|
|
49
|
-
'firstName'?: string;
|
|
50
|
-
/**
|
|
51
|
-
* The account holder\'s last name.
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
54
|
-
*/
|
|
55
|
-
'lastName'?: string;
|
|
56
|
-
/**
|
|
57
|
-
* The account\'s company name.
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
60
|
-
*/
|
|
61
|
-
'companyName'?: string;
|
|
62
|
-
/**
|
|
63
|
-
* The account\'s email address
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
66
|
-
*/
|
|
67
|
-
'email': string;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {CardDetailsDto}
|
|
71
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
72
|
-
*/
|
|
73
|
-
'cardDetails'?: CardDetailsDto;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {SepaDirectDto}
|
|
77
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
78
|
-
*/
|
|
79
|
-
'sepaDetails'?: SepaDirectDto;
|
|
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];
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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 });
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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 });
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
* Unique identifier of the lead that this object belongs to.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
41
|
-
*/
|
|
42
|
-
'leadCode'?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The account\'s type.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
47
|
-
*/
|
|
48
|
-
'accountType': string;
|
|
49
|
-
/**
|
|
50
|
-
* The accounts holder\'s first name.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
53
|
-
*/
|
|
54
|
-
'firstName'?: string;
|
|
55
|
-
/**
|
|
56
|
-
* The account holder\'s last name.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
59
|
-
*/
|
|
60
|
-
'lastName'?: string;
|
|
61
|
-
/**
|
|
62
|
-
* The account\'s company name.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
65
|
-
*/
|
|
66
|
-
'companyName'?: string;
|
|
67
|
-
/**
|
|
68
|
-
* The account\'s email address
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
71
|
-
*/
|
|
72
|
-
'email': string;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {CardDetailsDto}
|
|
76
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
77
|
-
*/
|
|
78
|
-
'cardDetails'?: CardDetailsDto;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {SepaDirectDto}
|
|
82
|
-
* @memberof CompleteAdyenPaymentSetupRequestDto
|
|
83
|
-
*/
|
|
84
|
-
'sepaDetails'?: SepaDirectDto;
|
|
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
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
|