@emilgroup/payment-sdk-node 1.23.1-beta.99 → 1.26.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/README.md +2 -2
- package/api/payment-reminders-api.ts +12 -12
- package/api/payment-requests-api.ts +0 -101
- package/api/webhooks-api.ts +19 -143
- package/dist/api/payment-reminders-api.d.ts +12 -12
- package/dist/api/payment-reminders-api.js +9 -9
- package/dist/api/payment-requests-api.d.ts +0 -55
- package/dist/api/payment-requests-api.js +0 -92
- package/dist/api/webhooks-api.d.ts +12 -85
- package/dist/api/webhooks-api.js +12 -107
- package/dist/models/create-payment-request-request-dto.d.ts +2 -10
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +6 -18
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +6 -18
- package/dist/models/payment-request-class.d.ts +2 -4
- package/models/create-payment-request-request-dto.ts +2 -8
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +6 -18
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +6 -18
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +6 -18
- package/models/payment-request-class.ts +2 -2
- package/package.json +1 -1
|
@@ -32,15 +32,6 @@ export declare const PaymentRequestsApiAxiosParamCreator: (configuration?: Confi
|
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
34
|
createPaymentRequest: (createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
-
/**
|
|
36
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
37
|
-
* @summary Delete the payment request
|
|
38
|
-
* @param {string} code Unique identifier for the object.
|
|
39
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
*/
|
|
43
|
-
deletePaymentRequest: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
35
|
/**
|
|
45
36
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
46
37
|
* @summary Retrieve the payment request
|
|
@@ -91,15 +82,6 @@ export declare const PaymentRequestsApiFp: (configuration?: Configuration) => {
|
|
|
91
82
|
* @throws {RequiredError}
|
|
92
83
|
*/
|
|
93
84
|
createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentRequestResponseClass>>;
|
|
94
|
-
/**
|
|
95
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
96
|
-
* @summary Delete the payment request
|
|
97
|
-
* @param {string} code Unique identifier for the object.
|
|
98
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
|
-
* @param {*} [options] Override http request option.
|
|
100
|
-
* @throws {RequiredError}
|
|
101
|
-
*/
|
|
102
|
-
deletePaymentRequest(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
103
85
|
/**
|
|
104
86
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
105
87
|
* @summary Retrieve the payment request
|
|
@@ -150,15 +132,6 @@ export declare const PaymentRequestsApiFactory: (configuration?: Configuration,
|
|
|
150
132
|
* @throws {RequiredError}
|
|
151
133
|
*/
|
|
152
134
|
createPaymentRequest(createPaymentRequestRequestDto: CreatePaymentRequestRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentRequestResponseClass>;
|
|
153
|
-
/**
|
|
154
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
155
|
-
* @summary Delete the payment request
|
|
156
|
-
* @param {string} code Unique identifier for the object.
|
|
157
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
|
-
* @param {*} [options] Override http request option.
|
|
159
|
-
* @throws {RequiredError}
|
|
160
|
-
*/
|
|
161
|
-
deletePaymentRequest(code: string, authorization?: string, options?: any): AxiosPromise<object>;
|
|
162
135
|
/**
|
|
163
136
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
164
137
|
* @summary Retrieve the payment request
|
|
@@ -214,25 +187,6 @@ export interface PaymentRequestsApiCreatePaymentRequestRequest {
|
|
|
214
187
|
*/
|
|
215
188
|
readonly authorization?: string;
|
|
216
189
|
}
|
|
217
|
-
/**
|
|
218
|
-
* Request parameters for deletePaymentRequest operation in PaymentRequestsApi.
|
|
219
|
-
* @export
|
|
220
|
-
* @interface PaymentRequestsApiDeletePaymentRequestRequest
|
|
221
|
-
*/
|
|
222
|
-
export interface PaymentRequestsApiDeletePaymentRequestRequest {
|
|
223
|
-
/**
|
|
224
|
-
* Unique identifier for the object.
|
|
225
|
-
* @type {string}
|
|
226
|
-
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
227
|
-
*/
|
|
228
|
-
readonly code: string;
|
|
229
|
-
/**
|
|
230
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
231
|
-
* @type {string}
|
|
232
|
-
* @memberof PaymentRequestsApiDeletePaymentRequest
|
|
233
|
-
*/
|
|
234
|
-
readonly authorization?: string;
|
|
235
|
-
}
|
|
236
190
|
/**
|
|
237
191
|
* Request parameters for getPaymentRequest operation in PaymentRequestsApi.
|
|
238
192
|
* @export
|
|
@@ -354,15 +308,6 @@ export declare class PaymentRequestsApi extends BaseAPI {
|
|
|
354
308
|
* @memberof PaymentRequestsApi
|
|
355
309
|
*/
|
|
356
310
|
createPaymentRequest(requestParameters: PaymentRequestsApiCreatePaymentRequestRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentRequestResponseClass, any, {}>>;
|
|
357
|
-
/**
|
|
358
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
359
|
-
* @summary Delete the payment request
|
|
360
|
-
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
361
|
-
* @param {*} [options] Override http request option.
|
|
362
|
-
* @throws {RequiredError}
|
|
363
|
-
* @memberof PaymentRequestsApi
|
|
364
|
-
*/
|
|
365
|
-
deletePaymentRequest(requestParameters: PaymentRequestsApiDeletePaymentRequestRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
366
311
|
/**
|
|
367
312
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
368
313
|
* @summary Retrieve the payment request
|
|
@@ -145,54 +145,6 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
-
/**
|
|
149
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
150
|
-
* @summary Delete the payment request
|
|
151
|
-
* @param {string} code Unique identifier for the object.
|
|
152
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
-
* @param {*} [options] Override http request option.
|
|
154
|
-
* @throws {RequiredError}
|
|
155
|
-
*/
|
|
156
|
-
deletePaymentRequest: function (code, authorization, options) {
|
|
157
|
-
if (options === void 0) { options = {}; }
|
|
158
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0:
|
|
163
|
-
// verify required parameter 'code' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('deletePaymentRequest', 'code', code);
|
|
165
|
-
localVarPath = "/paymentservice/v1/payment-requests/{code}"
|
|
166
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
-
if (configuration) {
|
|
169
|
-
baseOptions = configuration.baseOptions;
|
|
170
|
-
baseAccessToken = configuration.accessToken;
|
|
171
|
-
}
|
|
172
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
173
|
-
localVarHeaderParameter = {};
|
|
174
|
-
localVarQueryParameter = {};
|
|
175
|
-
// authentication bearer required
|
|
176
|
-
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
178
|
-
case 1:
|
|
179
|
-
// authentication bearer required
|
|
180
|
-
// http bearer authentication required
|
|
181
|
-
_a.sent();
|
|
182
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
|
-
}
|
|
185
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
-
return [2 /*return*/, {
|
|
189
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
-
options: localVarRequestOptions,
|
|
191
|
-
}];
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
});
|
|
195
|
-
},
|
|
196
148
|
/**
|
|
197
149
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
198
150
|
* @summary Retrieve the payment request
|
|
@@ -403,27 +355,6 @@ var PaymentRequestsApiFp = function (configuration) {
|
|
|
403
355
|
});
|
|
404
356
|
});
|
|
405
357
|
},
|
|
406
|
-
/**
|
|
407
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
408
|
-
* @summary Delete the payment request
|
|
409
|
-
* @param {string} code Unique identifier for the object.
|
|
410
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
|
-
* @param {*} [options] Override http request option.
|
|
412
|
-
* @throws {RequiredError}
|
|
413
|
-
*/
|
|
414
|
-
deletePaymentRequest: function (code, authorization, options) {
|
|
415
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
416
|
-
var localVarAxiosArgs;
|
|
417
|
-
return __generator(this, function (_a) {
|
|
418
|
-
switch (_a.label) {
|
|
419
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePaymentRequest(code, authorization, options)];
|
|
420
|
-
case 1:
|
|
421
|
-
localVarAxiosArgs = _a.sent();
|
|
422
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
423
|
-
}
|
|
424
|
-
});
|
|
425
|
-
});
|
|
426
|
-
},
|
|
427
358
|
/**
|
|
428
359
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
429
360
|
* @summary Retrieve the payment request
|
|
@@ -516,17 +447,6 @@ var PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
|
516
447
|
createPaymentRequest: function (createPaymentRequestRequestDto, authorization, options) {
|
|
517
448
|
return localVarFp.createPaymentRequest(createPaymentRequestRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
518
449
|
},
|
|
519
|
-
/**
|
|
520
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
521
|
-
* @summary Delete the payment request
|
|
522
|
-
* @param {string} code Unique identifier for the object.
|
|
523
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
524
|
-
* @param {*} [options] Override http request option.
|
|
525
|
-
* @throws {RequiredError}
|
|
526
|
-
*/
|
|
527
|
-
deletePaymentRequest: function (code, authorization, options) {
|
|
528
|
-
return localVarFp.deletePaymentRequest(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
529
|
-
},
|
|
530
450
|
/**
|
|
531
451
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
532
452
|
* @summary Retrieve the payment request
|
|
@@ -594,18 +514,6 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
|
|
|
594
514
|
var _this = this;
|
|
595
515
|
return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
516
|
};
|
|
597
|
-
/**
|
|
598
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
599
|
-
* @summary Delete the payment request
|
|
600
|
-
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
601
|
-
* @param {*} [options] Override http request option.
|
|
602
|
-
* @throws {RequiredError}
|
|
603
|
-
* @memberof PaymentRequestsApi
|
|
604
|
-
*/
|
|
605
|
-
PaymentRequestsApi.prototype.deletePaymentRequest = function (requestParameters, options) {
|
|
606
|
-
var _this = this;
|
|
607
|
-
return (0, exports.PaymentRequestsApiFp)(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
|
-
};
|
|
609
517
|
/**
|
|
610
518
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
611
519
|
* @summary Retrieve the payment request
|
|
@@ -27,18 +27,7 @@ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
33
|
-
* @summary Handle the webhook from PSP
|
|
34
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
35
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
36
|
-
* @param {string} productSlug
|
|
37
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
38
|
-
* @param {*} [options] Override http request option.
|
|
39
|
-
* @throws {RequiredError}
|
|
40
|
-
*/
|
|
41
|
-
postWebhook1: (pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
postWebhook: (pspType: string, tenantSlug: string, productSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
31
|
};
|
|
43
32
|
/**
|
|
44
33
|
* WebhooksApi - functional programming interface
|
|
@@ -55,18 +44,7 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
55
44
|
* @param {*} [options] Override http request option.
|
|
56
45
|
* @throws {RequiredError}
|
|
57
46
|
*/
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
61
|
-
* @summary Handle the webhook from PSP
|
|
62
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
63
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
64
|
-
* @param {string} productSlug
|
|
65
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
66
|
-
* @param {*} [options] Override http request option.
|
|
67
|
-
* @throws {RequiredError}
|
|
68
|
-
*/
|
|
69
|
-
postWebhook1(pspType: string, tenantSlug: string, productSlug: string, body: object, 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>>;
|
|
70
48
|
};
|
|
71
49
|
/**
|
|
72
50
|
* WebhooksApi - factory interface
|
|
@@ -83,78 +61,36 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
83
61
|
* @param {*} [options] Override http request option.
|
|
84
62
|
* @throws {RequiredError}
|
|
85
63
|
*/
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
89
|
-
* @summary Handle the webhook from PSP
|
|
90
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
91
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
92
|
-
* @param {string} productSlug
|
|
93
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
94
|
-
* @param {*} [options] Override http request option.
|
|
95
|
-
* @throws {RequiredError}
|
|
96
|
-
*/
|
|
97
|
-
postWebhook1(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
64
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
98
65
|
};
|
|
99
66
|
/**
|
|
100
|
-
* Request parameters for
|
|
67
|
+
* Request parameters for postWebhook operation in WebhooksApi.
|
|
101
68
|
* @export
|
|
102
|
-
* @interface
|
|
69
|
+
* @interface WebhooksApiPostWebhookRequest
|
|
103
70
|
*/
|
|
104
|
-
export interface
|
|
71
|
+
export interface WebhooksApiPostWebhookRequest {
|
|
105
72
|
/**
|
|
106
73
|
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
107
74
|
* @type {string}
|
|
108
|
-
* @memberof
|
|
75
|
+
* @memberof WebhooksApiPostWebhook
|
|
109
76
|
*/
|
|
110
77
|
readonly pspType: string;
|
|
111
78
|
/**
|
|
112
79
|
* Unique slug identifier representing a tenant.
|
|
113
80
|
* @type {string}
|
|
114
|
-
* @memberof
|
|
81
|
+
* @memberof WebhooksApiPostWebhook
|
|
115
82
|
*/
|
|
116
83
|
readonly tenantSlug: string;
|
|
117
84
|
/**
|
|
118
85
|
*
|
|
119
86
|
* @type {string}
|
|
120
|
-
* @memberof
|
|
87
|
+
* @memberof WebhooksApiPostWebhook
|
|
121
88
|
*/
|
|
122
89
|
readonly productSlug: string;
|
|
123
90
|
/**
|
|
124
91
|
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
125
92
|
* @type {object}
|
|
126
|
-
* @memberof
|
|
127
|
-
*/
|
|
128
|
-
readonly body: object;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Request parameters for postWebhook1 operation in WebhooksApi.
|
|
132
|
-
* @export
|
|
133
|
-
* @interface WebhooksApiPostWebhook1Request
|
|
134
|
-
*/
|
|
135
|
-
export interface WebhooksApiPostWebhook1Request {
|
|
136
|
-
/**
|
|
137
|
-
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
138
|
-
* @type {string}
|
|
139
|
-
* @memberof WebhooksApiPostWebhook1
|
|
140
|
-
*/
|
|
141
|
-
readonly pspType: string;
|
|
142
|
-
/**
|
|
143
|
-
* Unique slug identifier representing a tenant.
|
|
144
|
-
* @type {string}
|
|
145
|
-
* @memberof WebhooksApiPostWebhook1
|
|
146
|
-
*/
|
|
147
|
-
readonly tenantSlug: string;
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @type {string}
|
|
151
|
-
* @memberof WebhooksApiPostWebhook1
|
|
152
|
-
*/
|
|
153
|
-
readonly productSlug: string;
|
|
154
|
-
/**
|
|
155
|
-
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
156
|
-
* @type {object}
|
|
157
|
-
* @memberof WebhooksApiPostWebhook1
|
|
93
|
+
* @memberof WebhooksApiPostWebhook
|
|
158
94
|
*/
|
|
159
95
|
readonly body: object;
|
|
160
96
|
}
|
|
@@ -168,19 +104,10 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
168
104
|
/**
|
|
169
105
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
170
106
|
* @summary Handle the webhook from PSP
|
|
171
|
-
* @param {
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @throws {RequiredError}
|
|
174
|
-
* @memberof WebhooksApi
|
|
175
|
-
*/
|
|
176
|
-
postWebhook0(requestParameters: WebhooksApiPostWebhook0Request, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
177
|
-
/**
|
|
178
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
179
|
-
* @summary Handle the webhook from PSP
|
|
180
|
-
* @param {WebhooksApiPostWebhook1Request} requestParameters Request parameters.
|
|
107
|
+
* @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
|
|
181
108
|
* @param {*} [options] Override http request option.
|
|
182
109
|
* @throws {RequiredError}
|
|
183
110
|
* @memberof WebhooksApi
|
|
184
111
|
*/
|
|
185
|
-
|
|
112
|
+
postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
186
113
|
}
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -106,66 +106,19 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
107
107
|
* @throws {RequiredError}
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
110
110
|
if (options === void 0) { options = {}; }
|
|
111
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
112
112
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
113
|
return __generator(this, function (_a) {
|
|
114
114
|
// verify required parameter 'pspType' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('
|
|
115
|
+
(0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
|
|
116
116
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
117
|
-
(0, common_1.assertParamExists)('
|
|
117
|
+
(0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
|
|
118
118
|
// verify required parameter 'productSlug' is not null or undefined
|
|
119
|
-
(0, common_1.assertParamExists)('
|
|
119
|
+
(0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
|
|
120
120
|
// verify required parameter 'body' is not null or undefined
|
|
121
|
-
(0, common_1.assertParamExists)('
|
|
122
|
-
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}"
|
|
123
|
-
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
124
|
-
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
125
|
-
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
126
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
127
|
-
if (configuration) {
|
|
128
|
-
baseOptions = configuration.baseOptions;
|
|
129
|
-
baseAccessToken = configuration.accessToken;
|
|
130
|
-
}
|
|
131
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
132
|
-
localVarHeaderParameter = {};
|
|
133
|
-
localVarQueryParameter = {};
|
|
134
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
139
|
-
return [2 /*return*/, {
|
|
140
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
-
options: localVarRequestOptions,
|
|
142
|
-
}];
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
},
|
|
146
|
-
/**
|
|
147
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
148
|
-
* @summary Handle the webhook from PSP
|
|
149
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
150
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
151
|
-
* @param {string} productSlug
|
|
152
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
153
|
-
* @param {*} [options] Override http request option.
|
|
154
|
-
* @throws {RequiredError}
|
|
155
|
-
*/
|
|
156
|
-
postWebhook1: function (pspType, tenantSlug, productSlug, body, options) {
|
|
157
|
-
if (options === void 0) { options = {}; }
|
|
158
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
// verify required parameter 'pspType' is not null or undefined
|
|
162
|
-
(0, common_1.assertParamExists)('postWebhook1', 'pspType', pspType);
|
|
163
|
-
// verify required parameter 'tenantSlug' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('postWebhook1', 'tenantSlug', tenantSlug);
|
|
165
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
166
|
-
(0, common_1.assertParamExists)('postWebhook1', 'productSlug', productSlug);
|
|
167
|
-
// verify required parameter 'body' is not null or undefined
|
|
168
|
-
(0, common_1.assertParamExists)('postWebhook1', 'body', body);
|
|
121
|
+
(0, common_1.assertParamExists)('postWebhook', 'body', body);
|
|
169
122
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
170
123
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
171
124
|
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
@@ -210,35 +163,12 @@ var WebhooksApiFp = function (configuration) {
|
|
|
210
163
|
* @param {*} [options] Override http request option.
|
|
211
164
|
* @throws {RequiredError}
|
|
212
165
|
*/
|
|
213
|
-
|
|
166
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
214
167
|
return __awaiter(this, void 0, void 0, function () {
|
|
215
168
|
var localVarAxiosArgs;
|
|
216
169
|
return __generator(this, function (_a) {
|
|
217
170
|
switch (_a.label) {
|
|
218
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
219
|
-
case 1:
|
|
220
|
-
localVarAxiosArgs = _a.sent();
|
|
221
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
});
|
|
225
|
-
},
|
|
226
|
-
/**
|
|
227
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
228
|
-
* @summary Handle the webhook from PSP
|
|
229
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
230
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
231
|
-
* @param {string} productSlug
|
|
232
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
233
|
-
* @param {*} [options] Override http request option.
|
|
234
|
-
* @throws {RequiredError}
|
|
235
|
-
*/
|
|
236
|
-
postWebhook1: function (pspType, tenantSlug, productSlug, body, options) {
|
|
237
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
238
|
-
var localVarAxiosArgs;
|
|
239
|
-
return __generator(this, function (_a) {
|
|
240
|
-
switch (_a.label) {
|
|
241
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook1(pspType, tenantSlug, productSlug, body, options)];
|
|
171
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options)];
|
|
242
172
|
case 1:
|
|
243
173
|
localVarAxiosArgs = _a.sent();
|
|
244
174
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -266,21 +196,8 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
266
196
|
* @param {*} [options] Override http request option.
|
|
267
197
|
* @throws {RequiredError}
|
|
268
198
|
*/
|
|
269
|
-
|
|
270
|
-
return localVarFp.
|
|
271
|
-
},
|
|
272
|
-
/**
|
|
273
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
274
|
-
* @summary Handle the webhook from PSP
|
|
275
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
276
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
277
|
-
* @param {string} productSlug
|
|
278
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
279
|
-
* @param {*} [options] Override http request option.
|
|
280
|
-
* @throws {RequiredError}
|
|
281
|
-
*/
|
|
282
|
-
postWebhook1: function (pspType, tenantSlug, productSlug, body, options) {
|
|
283
|
-
return localVarFp.postWebhook1(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
199
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
200
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
284
201
|
},
|
|
285
202
|
};
|
|
286
203
|
};
|
|
@@ -299,26 +216,14 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
299
216
|
/**
|
|
300
217
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
301
218
|
* @summary Handle the webhook from PSP
|
|
302
|
-
* @param {
|
|
303
|
-
* @param {*} [options] Override http request option.
|
|
304
|
-
* @throws {RequiredError}
|
|
305
|
-
* @memberof WebhooksApi
|
|
306
|
-
*/
|
|
307
|
-
WebhooksApi.prototype.postWebhook0 = function (requestParameters, options) {
|
|
308
|
-
var _this = this;
|
|
309
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook0(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
310
|
-
};
|
|
311
|
-
/**
|
|
312
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
313
|
-
* @summary Handle the webhook from PSP
|
|
314
|
-
* @param {WebhooksApiPostWebhook1Request} requestParameters Request parameters.
|
|
219
|
+
* @param {WebhooksApiPostWebhookRequest} requestParameters Request parameters.
|
|
315
220
|
* @param {*} [options] Override http request option.
|
|
316
221
|
* @throws {RequiredError}
|
|
317
222
|
* @memberof WebhooksApi
|
|
318
223
|
*/
|
|
319
|
-
WebhooksApi.prototype.
|
|
224
|
+
WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
|
|
320
225
|
var _this = this;
|
|
321
|
-
return (0, exports.WebhooksApiFp)(this.configuration).
|
|
226
|
+
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); });
|
|
322
227
|
};
|
|
323
228
|
return WebhooksApi;
|
|
324
229
|
}(base_1.BaseAPI));
|
|
@@ -69,12 +69,6 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
69
69
|
* @memberof CreatePaymentRequestRequestDto
|
|
70
70
|
*/
|
|
71
71
|
'domainEntityType': CreatePaymentRequestRequestDtoDomainEntityTypeEnum;
|
|
72
|
-
/**
|
|
73
|
-
* Code of the settlement the payment request was created for.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
76
|
-
*/
|
|
77
|
-
'settlementCode'?: string;
|
|
78
72
|
/**
|
|
79
73
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
80
74
|
* @type {string}
|
|
@@ -83,12 +77,10 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
83
77
|
'paymentMethodCode'?: string;
|
|
84
78
|
/**
|
|
85
79
|
* Optional field containing extra information about the payment request.
|
|
86
|
-
* @type {
|
|
80
|
+
* @type {object}
|
|
87
81
|
* @memberof CreatePaymentRequestRequestDto
|
|
88
82
|
*/
|
|
89
|
-
'metadata'?:
|
|
90
|
-
[key: string]: object;
|
|
91
|
-
};
|
|
83
|
+
'metadata'?: object;
|
|
92
84
|
}
|
|
93
85
|
export declare const CreatePaymentRequestRequestDtoDirectionEnum: {
|
|
94
86
|
readonly Collect: "collect";
|
|
@@ -17,17 +17,17 @@ import { BillingAddressClass } from './billing-address-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface ListBillingAddressesResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
20
|
+
* The billing addresses
|
|
21
|
+
* @type {Array<BillingAddressClass>}
|
|
22
22
|
* @memberof ListBillingAddressesResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'
|
|
24
|
+
'items': Array<BillingAddressClass>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {
|
|
26
|
+
* Next page token.
|
|
27
|
+
* @type {string}
|
|
28
28
|
* @memberof ListBillingAddressesResponseClass
|
|
29
29
|
*/
|
|
30
|
-
'
|
|
30
|
+
'nextPageToken': string;
|
|
31
31
|
/**
|
|
32
32
|
* Items per page.
|
|
33
33
|
* @type {number}
|
|
@@ -35,9 +35,9 @@ export interface ListBillingAddressesResponseClass {
|
|
|
35
35
|
*/
|
|
36
36
|
'itemsPerPage': number;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {
|
|
38
|
+
* Total amount of items.
|
|
39
|
+
* @type {number}
|
|
40
40
|
* @memberof ListBillingAddressesResponseClass
|
|
41
41
|
*/
|
|
42
|
-
'
|
|
42
|
+
'totalItems': number;
|
|
43
43
|
}
|
|
@@ -16,28 +16,16 @@ import { ExceedingCreditClass } from './exceeding-credit-class';
|
|
|
16
16
|
* @interface ListExceedingCreditsResponseClass
|
|
17
17
|
*/
|
|
18
18
|
export interface ListExceedingCreditsResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* Next page token.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'nextPageToken': string;
|
|
25
|
-
/**
|
|
26
|
-
* Total amount of items.
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
29
|
-
*/
|
|
30
|
-
'totalItems': number;
|
|
31
|
-
/**
|
|
32
|
-
* Items per page.
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
35
|
-
*/
|
|
36
|
-
'itemsPerPage': number;
|
|
37
19
|
/**
|
|
38
20
|
* The list of exceeding credits.
|
|
39
21
|
* @type {Array<ExceedingCreditClass>}
|
|
40
22
|
* @memberof ListExceedingCreditsResponseClass
|
|
41
23
|
*/
|
|
42
24
|
'items': Array<ExceedingCreditClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Next page token.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken': string;
|
|
43
31
|
}
|