@emilgroup/payment-sdk 1.16.1-beta.97 → 1.19.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 +14 -125
- 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 +9 -73
- package/dist/api/webhooks-api.js +11 -100
- 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
|
|
@@ -141,54 +141,6 @@ var PaymentRequestsApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
});
|
|
142
142
|
});
|
|
143
143
|
},
|
|
144
|
-
/**
|
|
145
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
146
|
-
* @summary Delete the payment request
|
|
147
|
-
* @param {string} code Unique identifier for the object.
|
|
148
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
-
* @param {*} [options] Override http request option.
|
|
150
|
-
* @throws {RequiredError}
|
|
151
|
-
*/
|
|
152
|
-
deletePaymentRequest: function (code, authorization, options) {
|
|
153
|
-
if (options === void 0) { options = {}; }
|
|
154
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
return __generator(this, function (_a) {
|
|
157
|
-
switch (_a.label) {
|
|
158
|
-
case 0:
|
|
159
|
-
// verify required parameter 'code' is not null or undefined
|
|
160
|
-
(0, common_1.assertParamExists)('deletePaymentRequest', 'code', code);
|
|
161
|
-
localVarPath = "/paymentservice/v1/payment-requests/{code}"
|
|
162
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
|
-
if (configuration) {
|
|
165
|
-
baseOptions = configuration.baseOptions;
|
|
166
|
-
baseAccessToken = configuration.accessToken;
|
|
167
|
-
}
|
|
168
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
169
|
-
localVarHeaderParameter = {};
|
|
170
|
-
localVarQueryParameter = {};
|
|
171
|
-
// authentication bearer required
|
|
172
|
-
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
174
|
-
case 1:
|
|
175
|
-
// authentication bearer required
|
|
176
|
-
// http bearer authentication required
|
|
177
|
-
_a.sent();
|
|
178
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
|
-
}
|
|
181
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
-
return [2 /*return*/, {
|
|
185
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
186
|
-
options: localVarRequestOptions,
|
|
187
|
-
}];
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
},
|
|
192
144
|
/**
|
|
193
145
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
194
146
|
* @summary Retrieve the payment request
|
|
@@ -399,27 +351,6 @@ var PaymentRequestsApiFp = function (configuration) {
|
|
|
399
351
|
});
|
|
400
352
|
});
|
|
401
353
|
},
|
|
402
|
-
/**
|
|
403
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
404
|
-
* @summary Delete the payment request
|
|
405
|
-
* @param {string} code Unique identifier for the object.
|
|
406
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
407
|
-
* @param {*} [options] Override http request option.
|
|
408
|
-
* @throws {RequiredError}
|
|
409
|
-
*/
|
|
410
|
-
deletePaymentRequest: function (code, authorization, options) {
|
|
411
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
412
|
-
var localVarAxiosArgs;
|
|
413
|
-
return __generator(this, function (_a) {
|
|
414
|
-
switch (_a.label) {
|
|
415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePaymentRequest(code, authorization, options)];
|
|
416
|
-
case 1:
|
|
417
|
-
localVarAxiosArgs = _a.sent();
|
|
418
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
});
|
|
422
|
-
},
|
|
423
354
|
/**
|
|
424
355
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
425
356
|
* @summary Retrieve the payment request
|
|
@@ -512,17 +443,6 @@ var PaymentRequestsApiFactory = function (configuration, basePath, axios) {
|
|
|
512
443
|
createPaymentRequest: function (createPaymentRequestRequestDto, authorization, options) {
|
|
513
444
|
return localVarFp.createPaymentRequest(createPaymentRequestRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
514
445
|
},
|
|
515
|
-
/**
|
|
516
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
517
|
-
* @summary Delete the payment request
|
|
518
|
-
* @param {string} code Unique identifier for the object.
|
|
519
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
520
|
-
* @param {*} [options] Override http request option.
|
|
521
|
-
* @throws {RequiredError}
|
|
522
|
-
*/
|
|
523
|
-
deletePaymentRequest: function (code, authorization, options) {
|
|
524
|
-
return localVarFp.deletePaymentRequest(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
525
|
-
},
|
|
526
446
|
/**
|
|
527
447
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
528
448
|
* @summary Retrieve the payment request
|
|
@@ -590,18 +510,6 @@ var PaymentRequestsApi = /** @class */ (function (_super) {
|
|
|
590
510
|
var _this = this;
|
|
591
511
|
return (0, exports.PaymentRequestsApiFp)(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
592
512
|
};
|
|
593
|
-
/**
|
|
594
|
-
* This will delete payment request. **Required Permissions** \"payment-management.payments.delete\"
|
|
595
|
-
* @summary Delete the payment request
|
|
596
|
-
* @param {PaymentRequestsApiDeletePaymentRequestRequest} requestParameters Request parameters.
|
|
597
|
-
* @param {*} [options] Override http request option.
|
|
598
|
-
* @throws {RequiredError}
|
|
599
|
-
* @memberof PaymentRequestsApi
|
|
600
|
-
*/
|
|
601
|
-
PaymentRequestsApi.prototype.deletePaymentRequest = function (requestParameters, options) {
|
|
602
|
-
var _this = this;
|
|
603
|
-
return (0, exports.PaymentRequestsApiFp)(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
604
|
-
};
|
|
605
513
|
/**
|
|
606
514
|
* This will get payment request. **Required Permissions** \"payment-management.payments.view\"
|
|
607
515
|
* @summary Retrieve the payment request
|
|
@@ -22,22 +22,12 @@ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
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.
|
|
25
|
+
* @param {string} productSlug
|
|
25
26
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
26
27
|
* @param {*} [options] Override http request option.
|
|
27
28
|
* @throws {RequiredError}
|
|
28
29
|
*/
|
|
29
|
-
postWebhook: (pspType: string, tenantSlug: string, body: object, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
-
/**
|
|
31
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
32
|
-
* @summary Handle the webhook from PSP
|
|
33
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
34
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
35
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
36
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
37
|
-
* @param {*} [options] Override http request option.
|
|
38
|
-
* @throws {RequiredError}
|
|
39
|
-
*/
|
|
40
|
-
postWebhookWithProductSlug: (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>;
|
|
41
31
|
};
|
|
42
32
|
/**
|
|
43
33
|
* WebhooksApi - functional programming interface
|
|
@@ -49,22 +39,12 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
49
39
|
* @summary Handle the webhook from PSP
|
|
50
40
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
51
41
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
42
|
+
* @param {string} productSlug
|
|
52
43
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
53
44
|
* @param {*} [options] Override http request option.
|
|
54
45
|
* @throws {RequiredError}
|
|
55
46
|
*/
|
|
56
|
-
postWebhook(pspType: string, tenantSlug: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
57
|
-
/**
|
|
58
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
59
|
-
* @summary Handle the webhook from PSP
|
|
60
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
61
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
62
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
63
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
postWebhookWithProductSlug(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>>;
|
|
68
48
|
};
|
|
69
49
|
/**
|
|
70
50
|
* WebhooksApi - factory interface
|
|
@@ -76,22 +56,12 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
76
56
|
* @summary Handle the webhook from PSP
|
|
77
57
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
78
58
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
59
|
+
* @param {string} productSlug
|
|
79
60
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
80
61
|
* @param {*} [options] Override http request option.
|
|
81
62
|
* @throws {RequiredError}
|
|
82
63
|
*/
|
|
83
|
-
postWebhook(pspType: string, tenantSlug: string, body: object, options?: any): AxiosPromise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
86
|
-
* @summary Handle the webhook from PSP
|
|
87
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
88
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
89
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
90
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
*/
|
|
94
|
-
postWebhookWithProductSlug(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>;
|
|
95
65
|
};
|
|
96
66
|
/**
|
|
97
67
|
* Request parameters for postWebhook operation in WebhooksApi.
|
|
@@ -112,40 +82,15 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
112
82
|
*/
|
|
113
83
|
readonly tenantSlug: string;
|
|
114
84
|
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {object}
|
|
117
|
-
* @memberof WebhooksApiPostWebhook
|
|
118
|
-
*/
|
|
119
|
-
readonly body: object;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Request parameters for postWebhookWithProductSlug operation in WebhooksApi.
|
|
123
|
-
* @export
|
|
124
|
-
* @interface WebhooksApiPostWebhookWithProductSlugRequest
|
|
125
|
-
*/
|
|
126
|
-
export interface WebhooksApiPostWebhookWithProductSlugRequest {
|
|
127
|
-
/**
|
|
128
|
-
* The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
131
|
-
*/
|
|
132
|
-
readonly pspType: string;
|
|
133
|
-
/**
|
|
134
|
-
* Unique slug identifier representing a tenant.
|
|
135
|
-
* @type {string}
|
|
136
|
-
* @memberof WebhooksApiPostWebhookWithProductSlug
|
|
137
|
-
*/
|
|
138
|
-
readonly tenantSlug: string;
|
|
139
|
-
/**
|
|
140
|
-
* Optional product slug associated with the webhook.
|
|
85
|
+
*
|
|
141
86
|
* @type {string}
|
|
142
|
-
* @memberof
|
|
87
|
+
* @memberof WebhooksApiPostWebhook
|
|
143
88
|
*/
|
|
144
89
|
readonly productSlug: string;
|
|
145
90
|
/**
|
|
146
91
|
* Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
147
92
|
* @type {object}
|
|
148
|
-
* @memberof
|
|
93
|
+
* @memberof WebhooksApiPostWebhook
|
|
149
94
|
*/
|
|
150
95
|
readonly body: object;
|
|
151
96
|
}
|
|
@@ -165,13 +110,4 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
165
110
|
* @memberof WebhooksApi
|
|
166
111
|
*/
|
|
167
112
|
postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
168
|
-
/**
|
|
169
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
170
|
-
* @summary Handle the webhook from PSP
|
|
171
|
-
* @param {WebhooksApiPostWebhookWithProductSlugRequest} requestParameters Request parameters.
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @throws {RequiredError}
|
|
174
|
-
* @memberof WebhooksApi
|
|
175
|
-
*/
|
|
176
|
-
postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
177
113
|
}
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -97,11 +97,12 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
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.
|
|
100
|
+
* @param {string} productSlug
|
|
100
101
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
101
102
|
* @param {*} [options] Override http request option.
|
|
102
103
|
* @throws {RequiredError}
|
|
103
104
|
*/
|
|
104
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
105
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
105
106
|
if (options === void 0) { options = {}; }
|
|
106
107
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
108
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -110,54 +111,10 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
110
111
|
(0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
|
|
111
112
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
112
113
|
(0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
|
|
113
|
-
// verify required parameter 'body' is not null or undefined
|
|
114
|
-
(0, common_1.assertParamExists)('postWebhook', 'body', body);
|
|
115
|
-
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}"
|
|
116
|
-
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
117
|
-
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)));
|
|
118
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
|
-
if (configuration) {
|
|
120
|
-
baseOptions = configuration.baseOptions;
|
|
121
|
-
baseAccessToken = configuration.accessToken;
|
|
122
|
-
}
|
|
123
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
124
|
-
localVarHeaderParameter = {};
|
|
125
|
-
localVarQueryParameter = {};
|
|
126
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
127
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
131
|
-
return [2 /*return*/, {
|
|
132
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
|
-
options: localVarRequestOptions,
|
|
134
|
-
}];
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
},
|
|
138
|
-
/**
|
|
139
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
140
|
-
* @summary Handle the webhook from PSP
|
|
141
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
142
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
143
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
144
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
145
|
-
* @param {*} [options] Override http request option.
|
|
146
|
-
* @throws {RequiredError}
|
|
147
|
-
*/
|
|
148
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
|
|
149
|
-
if (options === void 0) { options = {}; }
|
|
150
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
151
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
152
|
-
return __generator(this, function (_a) {
|
|
153
|
-
// verify required parameter 'pspType' is not null or undefined
|
|
154
|
-
(0, common_1.assertParamExists)('postWebhookWithProductSlug', 'pspType', pspType);
|
|
155
|
-
// verify required parameter 'tenantSlug' is not null or undefined
|
|
156
|
-
(0, common_1.assertParamExists)('postWebhookWithProductSlug', 'tenantSlug', tenantSlug);
|
|
157
114
|
// verify required parameter 'productSlug' is not null or undefined
|
|
158
|
-
(0, common_1.assertParamExists)('
|
|
115
|
+
(0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
|
|
159
116
|
// verify required parameter 'body' is not null or undefined
|
|
160
|
-
(0, common_1.assertParamExists)('
|
|
117
|
+
(0, common_1.assertParamExists)('postWebhook', 'body', body);
|
|
161
118
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
162
119
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
163
120
|
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
@@ -197,39 +154,17 @@ var WebhooksApiFp = function (configuration) {
|
|
|
197
154
|
* @summary Handle the webhook from PSP
|
|
198
155
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
199
156
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
157
|
+
* @param {string} productSlug
|
|
200
158
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
201
159
|
* @param {*} [options] Override http request option.
|
|
202
160
|
* @throws {RequiredError}
|
|
203
161
|
*/
|
|
204
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
162
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
205
163
|
return __awaiter(this, void 0, void 0, function () {
|
|
206
164
|
var localVarAxiosArgs;
|
|
207
165
|
return __generator(this, function (_a) {
|
|
208
166
|
switch (_a.label) {
|
|
209
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, body, options)];
|
|
210
|
-
case 1:
|
|
211
|
-
localVarAxiosArgs = _a.sent();
|
|
212
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
},
|
|
217
|
-
/**
|
|
218
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
219
|
-
* @summary Handle the webhook from PSP
|
|
220
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
221
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
222
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
223
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
224
|
-
* @param {*} [options] Override http request option.
|
|
225
|
-
* @throws {RequiredError}
|
|
226
|
-
*/
|
|
227
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
|
|
228
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
229
|
-
var localVarAxiosArgs;
|
|
230
|
-
return __generator(this, function (_a) {
|
|
231
|
-
switch (_a.label) {
|
|
232
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options)];
|
|
167
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options)];
|
|
233
168
|
case 1:
|
|
234
169
|
localVarAxiosArgs = _a.sent();
|
|
235
170
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -252,25 +187,13 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
252
187
|
* @summary Handle the webhook from PSP
|
|
253
188
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
254
189
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
190
|
+
* @param {string} productSlug
|
|
255
191
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
256
192
|
* @param {*} [options] Override http request option.
|
|
257
193
|
* @throws {RequiredError}
|
|
258
194
|
*/
|
|
259
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
260
|
-
return localVarFp.postWebhook(pspType, tenantSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
261
|
-
},
|
|
262
|
-
/**
|
|
263
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
264
|
-
* @summary Handle the webhook from PSP
|
|
265
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
266
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
267
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
268
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
269
|
-
* @param {*} [options] Override http request option.
|
|
270
|
-
* @throws {RequiredError}
|
|
271
|
-
*/
|
|
272
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
|
|
273
|
-
return localVarFp.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
195
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
196
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
274
197
|
},
|
|
275
198
|
};
|
|
276
199
|
};
|
|
@@ -296,19 +219,7 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
296
219
|
*/
|
|
297
220
|
WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
|
|
298
221
|
var _this = this;
|
|
299
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
300
|
-
};
|
|
301
|
-
/**
|
|
302
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
303
|
-
* @summary Handle the webhook from PSP
|
|
304
|
-
* @param {WebhooksApiPostWebhookWithProductSlugRequest} requestParameters Request parameters.
|
|
305
|
-
* @param {*} [options] Override http request option.
|
|
306
|
-
* @throws {RequiredError}
|
|
307
|
-
* @memberof WebhooksApi
|
|
308
|
-
*/
|
|
309
|
-
WebhooksApi.prototype.postWebhookWithProductSlug = function (requestParameters, options) {
|
|
310
|
-
var _this = this;
|
|
311
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhookWithProductSlug(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
222
|
+
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
312
223
|
};
|
|
313
224
|
return WebhooksApi;
|
|
314
225
|
}(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
|
}
|
|
@@ -17,17 +17,17 @@ import { PaymentReceiptClass } from './payment-receipt-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface ListPaymentReceiptsResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
20
|
+
* The list of payment receipts.
|
|
21
|
+
* @type {Array<PaymentReceiptClass>}
|
|
22
22
|
* @memberof ListPaymentReceiptsResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'
|
|
24
|
+
'items': Array<PaymentReceiptClass>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {
|
|
26
|
+
* Next page token.
|
|
27
|
+
* @type {string}
|
|
28
28
|
* @memberof ListPaymentReceiptsResponseClass
|
|
29
29
|
*/
|
|
30
|
-
'
|
|
30
|
+
'nextPageToken': string;
|
|
31
31
|
/**
|
|
32
32
|
* Items per page.
|
|
33
33
|
* @type {number}
|
|
@@ -35,9 +35,9 @@ export interface ListPaymentReceiptsResponseClass {
|
|
|
35
35
|
*/
|
|
36
36
|
'itemsPerPage': number;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {
|
|
38
|
+
* Total amount of items.
|
|
39
|
+
* @type {number}
|
|
40
40
|
* @memberof ListPaymentReceiptsResponseClass
|
|
41
41
|
*/
|
|
42
|
-
'
|
|
42
|
+
'totalItems': number;
|
|
43
43
|
}
|