@emilgroup/payment-sdk 1.13.1-beta.0 → 1.13.1-beta.2
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/README.md +2 -2
- package/api/bank-accounts-api.ts +24 -24
- package/api/bank-transaction-api.ts +20 -20
- package/api/payment-methods-api.ts +12 -12
- package/api/payment-reminders-api.ts +30 -30
- package/api/payment-setup-api.ts +8 -8
- package/api/payments-api.ts +12 -12
- package/api/refunds-api.ts +12 -12
- package/api/webhooks-api.ts +4 -4
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/bank-accounts-api.d.ts +24 -24
- package/dist/api/bank-accounts-api.js +24 -24
- package/dist/api/bank-transaction-api.d.ts +20 -20
- package/dist/api/bank-transaction-api.js +20 -20
- package/dist/api/payment-methods-api.d.ts +12 -12
- package/dist/api/payment-methods-api.js +12 -12
- package/dist/api/payment-reminders-api.d.ts +26 -26
- package/dist/api/payment-reminders-api.js +25 -25
- package/dist/api/payment-setup-api.d.ts +8 -8
- package/dist/api/payment-setup-api.js +8 -8
- package/dist/api/payments-api.d.ts +12 -12
- package/dist/api/payments-api.js +12 -12
- package/dist/api/refunds-api.d.ts +12 -12
- package/dist/api/refunds-api.js +12 -12
- package/dist/api/webhooks-api.d.ts +4 -4
- package/dist/api/webhooks-api.js +4 -4
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/bank-transaction-class-without-expand-properties.d.ts +2 -8
- package/dist/models/bank-transaction-class.d.ts +2 -8
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +2 -8
- package/models/bank-transaction-class-without-expand-properties.ts +2 -8
- package/models/bank-transaction-class.ts +2 -8
- package/models/unlinked-bank-transaction-response-class.ts +2 -8
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ import { ListRefundsResponseClass } from '../models';
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
24
|
/**
|
|
25
|
-
* This will create a refund in the database.
|
|
25
|
+
* This will create a refund in the database.
|
|
26
26
|
* @summary Create the refund
|
|
27
27
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
28
28
|
* @param {string} [authorization] Bearer Token
|
|
@@ -31,7 +31,7 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
31
31
|
*/
|
|
32
32
|
createRefund: (createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
33
|
/**
|
|
34
|
-
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
34
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
35
35
|
* @summary Retrieve the refund
|
|
36
36
|
* @param {string} code
|
|
37
37
|
* @param {string} [authorization] Bearer Token
|
|
@@ -41,7 +41,7 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
41
41
|
*/
|
|
42
42
|
getRefund: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
43
|
/**
|
|
44
|
-
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
44
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
45
45
|
* @summary List refunds
|
|
46
46
|
* @param {string} [authorization] Bearer Token
|
|
47
47
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
@@ -60,7 +60,7 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
60
60
|
*/
|
|
61
61
|
export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
62
62
|
/**
|
|
63
|
-
* This will create a refund in the database.
|
|
63
|
+
* This will create a refund in the database.
|
|
64
64
|
* @summary Create the refund
|
|
65
65
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
66
66
|
* @param {string} [authorization] Bearer Token
|
|
@@ -69,7 +69,7 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
69
69
|
*/
|
|
70
70
|
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRefundResponseClass>>;
|
|
71
71
|
/**
|
|
72
|
-
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
72
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
73
73
|
* @summary Retrieve the refund
|
|
74
74
|
* @param {string} code
|
|
75
75
|
* @param {string} [authorization] Bearer Token
|
|
@@ -79,7 +79,7 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
79
79
|
*/
|
|
80
80
|
getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>>;
|
|
81
81
|
/**
|
|
82
|
-
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
82
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
83
83
|
* @summary List refunds
|
|
84
84
|
* @param {string} [authorization] Bearer Token
|
|
85
85
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
@@ -98,7 +98,7 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
98
98
|
*/
|
|
99
99
|
export declare const RefundsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
100
100
|
/**
|
|
101
|
-
* This will create a refund in the database.
|
|
101
|
+
* This will create a refund in the database.
|
|
102
102
|
* @summary Create the refund
|
|
103
103
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
104
104
|
* @param {string} [authorization] Bearer Token
|
|
@@ -107,7 +107,7 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
|
|
|
107
107
|
*/
|
|
108
108
|
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<CreateRefundResponseClass>;
|
|
109
109
|
/**
|
|
110
|
-
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
110
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
111
111
|
* @summary Retrieve the refund
|
|
112
112
|
* @param {string} code
|
|
113
113
|
* @param {string} [authorization] Bearer Token
|
|
@@ -117,7 +117,7 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
|
|
|
117
117
|
*/
|
|
118
118
|
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass>;
|
|
119
119
|
/**
|
|
120
|
-
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
120
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
121
121
|
* @summary List refunds
|
|
122
122
|
* @param {string} [authorization] Bearer Token
|
|
123
123
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
@@ -225,7 +225,7 @@ export interface RefundsApiListRefundsRequest {
|
|
|
225
225
|
*/
|
|
226
226
|
export declare class RefundsApi extends BaseAPI {
|
|
227
227
|
/**
|
|
228
|
-
* This will create a refund in the database.
|
|
228
|
+
* This will create a refund in the database.
|
|
229
229
|
* @summary Create the refund
|
|
230
230
|
* @param {RefundsApiCreateRefundRequest} requestParameters Request parameters.
|
|
231
231
|
* @param {*} [options] Override http request option.
|
|
@@ -234,7 +234,7 @@ export declare class RefundsApi extends BaseAPI {
|
|
|
234
234
|
*/
|
|
235
235
|
createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRefundResponseClass, any>>;
|
|
236
236
|
/**
|
|
237
|
-
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
237
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
238
238
|
* @summary Retrieve the refund
|
|
239
239
|
* @param {RefundsApiGetRefundRequest} requestParameters Request parameters.
|
|
240
240
|
* @param {*} [options] Override http request option.
|
|
@@ -243,7 +243,7 @@ export declare class RefundsApi extends BaseAPI {
|
|
|
243
243
|
*/
|
|
244
244
|
getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRefundResponseClass, any>>;
|
|
245
245
|
/**
|
|
246
|
-
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
246
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
247
247
|
* @summary List refunds
|
|
248
248
|
* @param {RefundsApiListRefundsRequest} requestParameters Request parameters.
|
|
249
249
|
* @param {*} [options] Override http request option.
|
package/dist/api/refunds-api.js
CHANGED
|
@@ -93,7 +93,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will create a refund in the database.
|
|
96
|
+
* This will create a refund in the database.
|
|
97
97
|
* @summary Create the refund
|
|
98
98
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -142,7 +142,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
145
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
146
146
|
* @summary Retrieve the refund
|
|
147
147
|
* @param {string} code
|
|
148
148
|
* @param {string} [authorization] Bearer Token
|
|
@@ -194,7 +194,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
197
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
198
198
|
* @summary List refunds
|
|
199
199
|
* @param {string} [authorization] Bearer Token
|
|
200
200
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
@@ -268,7 +268,7 @@ var RefundsApiFp = function (configuration) {
|
|
|
268
268
|
var localVarAxiosParamCreator = (0, exports.RefundsApiAxiosParamCreator)(configuration);
|
|
269
269
|
return {
|
|
270
270
|
/**
|
|
271
|
-
* This will create a refund in the database.
|
|
271
|
+
* This will create a refund in the database.
|
|
272
272
|
* @summary Create the refund
|
|
273
273
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
274
274
|
* @param {string} [authorization] Bearer Token
|
|
@@ -289,7 +289,7 @@ var RefundsApiFp = function (configuration) {
|
|
|
289
289
|
});
|
|
290
290
|
},
|
|
291
291
|
/**
|
|
292
|
-
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
292
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
293
293
|
* @summary Retrieve the refund
|
|
294
294
|
* @param {string} code
|
|
295
295
|
* @param {string} [authorization] Bearer Token
|
|
@@ -311,7 +311,7 @@ var RefundsApiFp = function (configuration) {
|
|
|
311
311
|
});
|
|
312
312
|
},
|
|
313
313
|
/**
|
|
314
|
-
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
314
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
315
315
|
* @summary List refunds
|
|
316
316
|
* @param {string} [authorization] Bearer Token
|
|
317
317
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
@@ -346,7 +346,7 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
|
|
|
346
346
|
var localVarFp = (0, exports.RefundsApiFp)(configuration);
|
|
347
347
|
return {
|
|
348
348
|
/**
|
|
349
|
-
* This will create a refund in the database.
|
|
349
|
+
* This will create a refund in the database.
|
|
350
350
|
* @summary Create the refund
|
|
351
351
|
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
352
352
|
* @param {string} [authorization] Bearer Token
|
|
@@ -357,7 +357,7 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
|
|
|
357
357
|
return localVarFp.createRefund(createRefundRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
358
358
|
},
|
|
359
359
|
/**
|
|
360
|
-
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
360
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
361
361
|
* @summary Retrieve the refund
|
|
362
362
|
* @param {string} code
|
|
363
363
|
* @param {string} [authorization] Bearer Token
|
|
@@ -369,7 +369,7 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
|
|
|
369
369
|
return localVarFp.getRefund(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
370
370
|
},
|
|
371
371
|
/**
|
|
372
|
-
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
372
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
373
373
|
* @summary List refunds
|
|
374
374
|
* @param {string} [authorization] Bearer Token
|
|
375
375
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, status, reason, psp, accountCode, invoiceCode</i>
|
|
@@ -398,7 +398,7 @@ var RefundsApi = /** @class */ (function (_super) {
|
|
|
398
398
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
|
-
* This will create a refund in the database.
|
|
401
|
+
* This will create a refund in the database.
|
|
402
402
|
* @summary Create the refund
|
|
403
403
|
* @param {RefundsApiCreateRefundRequest} requestParameters Request parameters.
|
|
404
404
|
* @param {*} [options] Override http request option.
|
|
@@ -410,7 +410,7 @@ var RefundsApi = /** @class */ (function (_super) {
|
|
|
410
410
|
return (0, exports.RefundsApiFp)(this.configuration).createRefund(requestParameters.createRefundRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
411
411
|
};
|
|
412
412
|
/**
|
|
413
|
-
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
413
|
+
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
414
414
|
* @summary Retrieve the refund
|
|
415
415
|
* @param {RefundsApiGetRefundRequest} requestParameters Request parameters.
|
|
416
416
|
* @param {*} [options] Override http request option.
|
|
@@ -422,7 +422,7 @@ var RefundsApi = /** @class */ (function (_super) {
|
|
|
422
422
|
return (0, exports.RefundsApiFp)(this.configuration).getRefund(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
423
423
|
};
|
|
424
424
|
/**
|
|
425
|
-
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
425
|
+
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
426
426
|
* @summary List refunds
|
|
427
427
|
* @param {RefundsApiListRefundsRequest} requestParameters Request parameters.
|
|
428
428
|
* @param {*} [options] Override http request option.
|
|
@@ -18,7 +18,7 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
20
|
/**
|
|
21
|
-
* This will processes the webhook from external payment service provider.
|
|
21
|
+
* This will processes the webhook from external payment service provider.
|
|
22
22
|
* @summary Handle the webhook from PSP
|
|
23
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.
|
|
@@ -35,7 +35,7 @@ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
37
37
|
/**
|
|
38
|
-
* This will processes the webhook from external payment service provider.
|
|
38
|
+
* This will processes the webhook from external payment service provider.
|
|
39
39
|
* @summary Handle the webhook from PSP
|
|
40
40
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
41
41
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
@@ -52,7 +52,7 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
52
52
|
*/
|
|
53
53
|
export declare const WebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
54
54
|
/**
|
|
55
|
-
* This will processes the webhook from external payment service provider.
|
|
55
|
+
* This will processes the webhook from external payment service provider.
|
|
56
56
|
* @summary Handle the webhook from PSP
|
|
57
57
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
58
58
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
@@ -102,7 +102,7 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
102
102
|
*/
|
|
103
103
|
export declare class WebhooksApi extends BaseAPI {
|
|
104
104
|
/**
|
|
105
|
-
* This will processes the webhook from external payment service provider.
|
|
105
|
+
* This will processes the webhook from external payment service provider.
|
|
106
106
|
* @summary Handle the webhook from PSP
|
|
107
107
|
* @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
|
|
108
108
|
* @param {*} [options] Override http request option.
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -93,7 +93,7 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* This will processes the webhook from external payment service provider.
|
|
96
|
+
* This will processes the webhook from external payment service provider.
|
|
97
97
|
* @summary Handle the webhook from PSP
|
|
98
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.
|
|
@@ -150,7 +150,7 @@ var WebhooksApiFp = function (configuration) {
|
|
|
150
150
|
var localVarAxiosParamCreator = (0, exports.WebhooksApiAxiosParamCreator)(configuration);
|
|
151
151
|
return {
|
|
152
152
|
/**
|
|
153
|
-
* This will processes the webhook from external payment service provider.
|
|
153
|
+
* This will processes the webhook from external payment service provider.
|
|
154
154
|
* @summary Handle the webhook from PSP
|
|
155
155
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
156
156
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
@@ -183,7 +183,7 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
183
183
|
var localVarFp = (0, exports.WebhooksApiFp)(configuration);
|
|
184
184
|
return {
|
|
185
185
|
/**
|
|
186
|
-
* This will processes the webhook from external payment service provider.
|
|
186
|
+
* This will processes the webhook from external payment service provider.
|
|
187
187
|
* @summary Handle the webhook from PSP
|
|
188
188
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
189
189
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
@@ -210,7 +210,7 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
210
210
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
|
-
* This will processes the webhook from external payment service provider.
|
|
213
|
+
* This will processes the webhook from external payment service provider.
|
|
214
214
|
* @summary Handle the webhook from PSP
|
|
215
215
|
* @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
|
|
216
216
|
* @param {*} [options] Override http request option.
|
package/dist/common.js
CHANGED
|
@@ -140,7 +140,7 @@ var setBearerAuthToObject = function (object, configuration) {
|
|
|
140
140
|
_b.label = 4;
|
|
141
141
|
case 4:
|
|
142
142
|
accessToken = _a;
|
|
143
|
-
object["Authorization"] =
|
|
143
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
144
144
|
_b.label = 5;
|
|
145
145
|
case 5: return [2 /*return*/];
|
|
146
146
|
}
|
|
@@ -170,7 +170,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
170
170
|
_b.label = 4;
|
|
171
171
|
case 4:
|
|
172
172
|
localVarAccessTokenValue = _a;
|
|
173
|
-
object["Authorization"] =
|
|
173
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
174
174
|
_b.label = 5;
|
|
175
175
|
case 5: return [2 /*return*/];
|
|
176
176
|
}
|
package/dist/configuration.d.ts
CHANGED
|
@@ -80,4 +80,10 @@ export declare class Configuration {
|
|
|
80
80
|
* @return True if the given MIME is JSON, false otherwise.
|
|
81
81
|
*/
|
|
82
82
|
isJsonMime(mime: string): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Returns "Bearer" token.
|
|
85
|
+
* @param token - access token.
|
|
86
|
+
* @return Bearer token.
|
|
87
|
+
*/
|
|
88
|
+
getBearerToken(token?: string): string;
|
|
83
89
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -39,6 +39,14 @@ var Configuration = /** @class */ (function () {
|
|
|
39
39
|
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
40
40
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Returns "Bearer" token.
|
|
44
|
+
* @param token - access token.
|
|
45
|
+
* @return Bearer token.
|
|
46
|
+
*/
|
|
47
|
+
Configuration.prototype.getBearerToken = function (token) {
|
|
48
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
49
|
+
};
|
|
42
50
|
return Configuration;
|
|
43
51
|
}());
|
|
44
52
|
exports.Configuration = Configuration;
|
|
@@ -40,11 +40,11 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
40
40
|
*/
|
|
41
41
|
'bankAccountNumber': string;
|
|
42
42
|
/**
|
|
43
|
-
* Reference number derived from the MT940
|
|
43
|
+
* Reference number derived from the MT940 swift Insturctions
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'swiftMessageReference'?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Currency of the transaction.
|
|
50
50
|
* @type {string}
|
|
@@ -105,12 +105,6 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
105
105
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
106
106
|
*/
|
|
107
107
|
'isLinked': boolean;
|
|
108
|
-
/**
|
|
109
|
-
* The file format of the bank transaction
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof BankTransactionClassWithoutExpandProperties
|
|
112
|
-
*/
|
|
113
|
-
'importedFrom': string;
|
|
114
108
|
/**
|
|
115
109
|
* Time at which the object was created.
|
|
116
110
|
* @type {string}
|
|
@@ -42,11 +42,11 @@ export interface BankTransactionClass {
|
|
|
42
42
|
*/
|
|
43
43
|
'bankAccountNumber': string;
|
|
44
44
|
/**
|
|
45
|
-
* Reference number derived from the MT940
|
|
45
|
+
* Reference number derived from the MT940 swift Insturctions
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof BankTransactionClass
|
|
48
48
|
*/
|
|
49
|
-
'
|
|
49
|
+
'swiftMessageReference'?: string;
|
|
50
50
|
/**
|
|
51
51
|
* Currency of the transaction.
|
|
52
52
|
* @type {string}
|
|
@@ -119,12 +119,6 @@ export interface BankTransactionClass {
|
|
|
119
119
|
* @memberof BankTransactionClass
|
|
120
120
|
*/
|
|
121
121
|
'linkedTransaction'?: SharedTransactionClass;
|
|
122
|
-
/**
|
|
123
|
-
* The file format of the bank transaction
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof BankTransactionClass
|
|
126
|
-
*/
|
|
127
|
-
'importedFrom': string;
|
|
128
122
|
/**
|
|
129
123
|
* Time at which the object was created.
|
|
130
124
|
* @type {string}
|
|
@@ -40,11 +40,11 @@ export interface UnlinkedBankTransactionResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'bankAccountNumber': string;
|
|
42
42
|
/**
|
|
43
|
-
* Reference number derived from the MT940
|
|
43
|
+
* Reference number derived from the MT940 swift Insturctions
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UnlinkedBankTransactionResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'swiftMessageReference'?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Currency of the transaction.
|
|
50
50
|
* @type {string}
|
|
@@ -87,12 +87,6 @@ export interface UnlinkedBankTransactionResponseClass {
|
|
|
87
87
|
* @memberof UnlinkedBankTransactionResponseClass
|
|
88
88
|
*/
|
|
89
89
|
'isLinked': boolean;
|
|
90
|
-
/**
|
|
91
|
-
* The file format of the bank transaction
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof UnlinkedBankTransactionResponseClass
|
|
94
|
-
*/
|
|
95
|
-
'importedFrom': string;
|
|
96
90
|
/**
|
|
97
91
|
* Time at which the object was created.
|
|
98
92
|
* @type {string}
|
|
@@ -45,11 +45,11 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
45
45
|
*/
|
|
46
46
|
'bankAccountNumber': string;
|
|
47
47
|
/**
|
|
48
|
-
* Reference number derived from the MT940
|
|
48
|
+
* Reference number derived from the MT940 swift Insturctions
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
51
51
|
*/
|
|
52
|
-
'
|
|
52
|
+
'swiftMessageReference'?: string;
|
|
53
53
|
/**
|
|
54
54
|
* Currency of the transaction.
|
|
55
55
|
* @type {string}
|
|
@@ -110,12 +110,6 @@ export interface BankTransactionClassWithoutExpandProperties {
|
|
|
110
110
|
* @memberof BankTransactionClassWithoutExpandProperties
|
|
111
111
|
*/
|
|
112
112
|
'isLinked': boolean;
|
|
113
|
-
/**
|
|
114
|
-
* The file format of the bank transaction
|
|
115
|
-
* @type {string}
|
|
116
|
-
* @memberof BankTransactionClassWithoutExpandProperties
|
|
117
|
-
*/
|
|
118
|
-
'importedFrom': string;
|
|
119
113
|
/**
|
|
120
114
|
* Time at which the object was created.
|
|
121
115
|
* @type {string}
|
|
@@ -47,11 +47,11 @@ export interface BankTransactionClass {
|
|
|
47
47
|
*/
|
|
48
48
|
'bankAccountNumber': string;
|
|
49
49
|
/**
|
|
50
|
-
* Reference number derived from the MT940
|
|
50
|
+
* Reference number derived from the MT940 swift Insturctions
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof BankTransactionClass
|
|
53
53
|
*/
|
|
54
|
-
'
|
|
54
|
+
'swiftMessageReference'?: string;
|
|
55
55
|
/**
|
|
56
56
|
* Currency of the transaction.
|
|
57
57
|
* @type {string}
|
|
@@ -124,12 +124,6 @@ export interface BankTransactionClass {
|
|
|
124
124
|
* @memberof BankTransactionClass
|
|
125
125
|
*/
|
|
126
126
|
'linkedTransaction'?: SharedTransactionClass;
|
|
127
|
-
/**
|
|
128
|
-
* The file format of the bank transaction
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @memberof BankTransactionClass
|
|
131
|
-
*/
|
|
132
|
-
'importedFrom': string;
|
|
133
127
|
/**
|
|
134
128
|
* Time at which the object was created.
|
|
135
129
|
* @type {string}
|
|
@@ -45,11 +45,11 @@ export interface UnlinkedBankTransactionResponseClass {
|
|
|
45
45
|
*/
|
|
46
46
|
'bankAccountNumber': string;
|
|
47
47
|
/**
|
|
48
|
-
* Reference number derived from the MT940
|
|
48
|
+
* Reference number derived from the MT940 swift Insturctions
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof UnlinkedBankTransactionResponseClass
|
|
51
51
|
*/
|
|
52
|
-
'
|
|
52
|
+
'swiftMessageReference'?: string;
|
|
53
53
|
/**
|
|
54
54
|
* Currency of the transaction.
|
|
55
55
|
* @type {string}
|
|
@@ -92,12 +92,6 @@ export interface UnlinkedBankTransactionResponseClass {
|
|
|
92
92
|
* @memberof UnlinkedBankTransactionResponseClass
|
|
93
93
|
*/
|
|
94
94
|
'isLinked': boolean;
|
|
95
|
-
/**
|
|
96
|
-
* The file format of the bank transaction
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof UnlinkedBankTransactionResponseClass
|
|
99
|
-
*/
|
|
100
|
-
'importedFrom': string;
|
|
101
95
|
/**
|
|
102
96
|
* Time at which the object was created.
|
|
103
97
|
* @type {string}
|