@emilgroup/payment-sdk-node 1.23.1-beta.98 → 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 +12 -113
- 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 +12 -67
- package/dist/api/payment-requests-api.js +9 -101
- package/dist/api/webhooks-api.d.ts +9 -73
- package/dist/api/webhooks-api.js +11 -100
- package/dist/models/bank-transaction-entity.d.ts +2 -4
- package/dist/models/create-payment-order-dto.d.ts +2 -4
- package/dist/models/create-payment-order-request-dto.d.ts +2 -4
- package/dist/models/create-payment-request-dto.d.ts +2 -4
- package/dist/models/create-payment-request-request-dto.d.ts +2 -16
- package/dist/models/credit-allocation-class.d.ts +0 -6
- package/dist/models/credit-allocation-entity.d.ts +0 -6
- package/dist/models/invoice-match-suggestion-entity.d.ts +2 -4
- package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-entity.d.ts +3 -5
- package/dist/models/payment-request-class.d.ts +2 -16
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -4
- package/models/bank-transaction-entity.ts +2 -2
- package/models/create-payment-order-dto.ts +2 -2
- package/models/create-payment-order-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +2 -2
- package/models/create-payment-request-request-dto.ts +2 -14
- package/models/credit-allocation-class.ts +0 -6
- package/models/credit-allocation-entity.ts +0 -6
- package/models/invoice-match-suggestion-entity.ts +2 -2
- package/models/payment-class-without-expand-properties.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-entity.ts +3 -3
- package/models/payment-request-class.ts +2 -14
- package/models/validate-pspconfig-request-dto.ts +2 -2
- package/package.json +1 -1
package/dist/api/webhooks-api.js
CHANGED
|
@@ -101,11 +101,12 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
* @summary Handle the webhook from PSP
|
|
102
102
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
103
103
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
104
|
+
* @param {string} productSlug
|
|
104
105
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
105
106
|
* @param {*} [options] Override http request option.
|
|
106
107
|
* @throws {RequiredError}
|
|
107
108
|
*/
|
|
108
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
109
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
109
110
|
if (options === void 0) { options = {}; }
|
|
110
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
112
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -114,54 +115,10 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
114
115
|
(0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
|
|
115
116
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
116
117
|
(0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
|
|
117
|
-
// verify required parameter 'body' is not null or undefined
|
|
118
|
-
(0, common_1.assertParamExists)('postWebhook', 'body', body);
|
|
119
|
-
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}"
|
|
120
|
-
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
121
|
-
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)));
|
|
122
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
|
-
if (configuration) {
|
|
124
|
-
baseOptions = configuration.baseOptions;
|
|
125
|
-
baseAccessToken = configuration.accessToken;
|
|
126
|
-
}
|
|
127
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
128
|
-
localVarHeaderParameter = {};
|
|
129
|
-
localVarQueryParameter = {};
|
|
130
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
135
|
-
return [2 /*return*/, {
|
|
136
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
-
options: localVarRequestOptions,
|
|
138
|
-
}];
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
},
|
|
142
|
-
/**
|
|
143
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
144
|
-
* @summary Handle the webhook from PSP
|
|
145
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
146
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
147
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
148
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
149
|
-
* @param {*} [options] Override http request option.
|
|
150
|
-
* @throws {RequiredError}
|
|
151
|
-
*/
|
|
152
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, 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
|
-
// verify required parameter 'pspType' is not null or undefined
|
|
158
|
-
(0, common_1.assertParamExists)('postWebhookWithProductSlug', 'pspType', pspType);
|
|
159
|
-
// verify required parameter 'tenantSlug' is not null or undefined
|
|
160
|
-
(0, common_1.assertParamExists)('postWebhookWithProductSlug', 'tenantSlug', tenantSlug);
|
|
161
118
|
// verify required parameter 'productSlug' is not null or undefined
|
|
162
|
-
(0, common_1.assertParamExists)('
|
|
119
|
+
(0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
|
|
163
120
|
// verify required parameter 'body' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('
|
|
121
|
+
(0, common_1.assertParamExists)('postWebhook', 'body', body);
|
|
165
122
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
166
123
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
167
124
|
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
@@ -201,39 +158,17 @@ var WebhooksApiFp = function (configuration) {
|
|
|
201
158
|
* @summary Handle the webhook from PSP
|
|
202
159
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
203
160
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
161
|
+
* @param {string} productSlug
|
|
204
162
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
205
163
|
* @param {*} [options] Override http request option.
|
|
206
164
|
* @throws {RequiredError}
|
|
207
165
|
*/
|
|
208
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
166
|
+
postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
|
|
209
167
|
return __awaiter(this, void 0, void 0, function () {
|
|
210
168
|
var localVarAxiosArgs;
|
|
211
169
|
return __generator(this, function (_a) {
|
|
212
170
|
switch (_a.label) {
|
|
213
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, body, options)];
|
|
214
|
-
case 1:
|
|
215
|
-
localVarAxiosArgs = _a.sent();
|
|
216
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
},
|
|
221
|
-
/**
|
|
222
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
223
|
-
* @summary Handle the webhook from PSP
|
|
224
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
225
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
226
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
227
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
228
|
-
* @param {*} [options] Override http request option.
|
|
229
|
-
* @throws {RequiredError}
|
|
230
|
-
*/
|
|
231
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
|
|
232
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
233
|
-
var localVarAxiosArgs;
|
|
234
|
-
return __generator(this, function (_a) {
|
|
235
|
-
switch (_a.label) {
|
|
236
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options)];
|
|
171
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options)];
|
|
237
172
|
case 1:
|
|
238
173
|
localVarAxiosArgs = _a.sent();
|
|
239
174
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -256,25 +191,13 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
256
191
|
* @summary Handle the webhook from PSP
|
|
257
192
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
258
193
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
194
|
+
* @param {string} productSlug
|
|
259
195
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
260
196
|
* @param {*} [options] Override http request option.
|
|
261
197
|
* @throws {RequiredError}
|
|
262
198
|
*/
|
|
263
|
-
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
264
|
-
return localVarFp.postWebhook(pspType, tenantSlug, body, options).then(function (request) { return request(axios, basePath); });
|
|
265
|
-
},
|
|
266
|
-
/**
|
|
267
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
268
|
-
* @summary Handle the webhook from PSP
|
|
269
|
-
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
270
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
271
|
-
* @param {string} productSlug Optional product slug associated with the webhook.
|
|
272
|
-
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
273
|
-
* @param {*} [options] Override http request option.
|
|
274
|
-
* @throws {RequiredError}
|
|
275
|
-
*/
|
|
276
|
-
postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
|
|
277
|
-
return localVarFp.postWebhookWithProductSlug(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); });
|
|
278
201
|
},
|
|
279
202
|
};
|
|
280
203
|
};
|
|
@@ -300,19 +223,7 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
300
223
|
*/
|
|
301
224
|
WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
|
|
302
225
|
var _this = this;
|
|
303
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
304
|
-
};
|
|
305
|
-
/**
|
|
306
|
-
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
307
|
-
* @summary Handle the webhook from PSP
|
|
308
|
-
* @param {WebhooksApiPostWebhookWithProductSlugRequest} requestParameters Request parameters.
|
|
309
|
-
* @param {*} [options] Override http request option.
|
|
310
|
-
* @throws {RequiredError}
|
|
311
|
-
* @memberof WebhooksApi
|
|
312
|
-
*/
|
|
313
|
-
WebhooksApi.prototype.postWebhookWithProductSlug = function (requestParameters, options) {
|
|
314
|
-
var _this = this;
|
|
315
|
-
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); });
|
|
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); });
|
|
316
227
|
};
|
|
317
228
|
return WebhooksApi;
|
|
318
229
|
}(base_1.BaseAPI));
|
|
@@ -95,12 +95,10 @@ export interface BankTransactionEntity {
|
|
|
95
95
|
'transactionReference': string;
|
|
96
96
|
/**
|
|
97
97
|
*
|
|
98
|
-
* @type {
|
|
98
|
+
* @type {object}
|
|
99
99
|
* @memberof BankTransactionEntity
|
|
100
100
|
*/
|
|
101
|
-
'metadata'?:
|
|
102
|
-
[key: string]: object;
|
|
103
|
-
};
|
|
101
|
+
'metadata'?: object;
|
|
104
102
|
/**
|
|
105
103
|
*
|
|
106
104
|
* @type {string}
|
|
@@ -41,10 +41,8 @@ export interface CreatePaymentOrderDto {
|
|
|
41
41
|
'referenceNumber'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Optional field contain extra information.
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {object}
|
|
45
45
|
* @memberof CreatePaymentOrderDto
|
|
46
46
|
*/
|
|
47
|
-
'metadata':
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
};
|
|
47
|
+
'metadata': object;
|
|
50
48
|
}
|
|
@@ -41,10 +41,8 @@ export interface CreatePaymentOrderRequestDto {
|
|
|
41
41
|
'referenceNumber'?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {object}
|
|
45
45
|
* @memberof CreatePaymentOrderRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'metadata':
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
};
|
|
47
|
+
'metadata': object;
|
|
50
48
|
}
|
|
@@ -47,12 +47,10 @@ export interface CreatePaymentRequestDto {
|
|
|
47
47
|
'invoiceIds': Array<number>;
|
|
48
48
|
/**
|
|
49
49
|
* Optional field contain extra information.
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {object}
|
|
51
51
|
* @memberof CreatePaymentRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'metadata':
|
|
54
|
-
[key: string]: string;
|
|
55
|
-
};
|
|
53
|
+
'metadata': object;
|
|
56
54
|
/**
|
|
57
55
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
58
56
|
* @type {string}
|
|
@@ -69,18 +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
|
-
/**
|
|
79
|
-
* Code of the partner the payment request was created for.
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
82
|
-
*/
|
|
83
|
-
'partnerCode': string;
|
|
84
72
|
/**
|
|
85
73
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
86
74
|
* @type {string}
|
|
@@ -89,12 +77,10 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
89
77
|
'paymentMethodCode'?: string;
|
|
90
78
|
/**
|
|
91
79
|
* Optional field containing extra information about the payment request.
|
|
92
|
-
* @type {
|
|
80
|
+
* @type {object}
|
|
93
81
|
* @memberof CreatePaymentRequestRequestDto
|
|
94
82
|
*/
|
|
95
|
-
'metadata'?:
|
|
96
|
-
[key: string]: object;
|
|
97
|
-
};
|
|
83
|
+
'metadata'?: object;
|
|
98
84
|
}
|
|
99
85
|
export declare const CreatePaymentRequestRequestDtoDirectionEnum: {
|
|
100
86
|
readonly Collect: "collect";
|
|
@@ -34,12 +34,6 @@ export interface CreditAllocationClass {
|
|
|
34
34
|
* @memberof CreditAllocationClass
|
|
35
35
|
*/
|
|
36
36
|
'exceedingCreditCodes': Array<string>;
|
|
37
|
-
/**
|
|
38
|
-
* Partner code derived from the policy related to the exceeding credits.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreditAllocationClass
|
|
41
|
-
*/
|
|
42
|
-
'partnerCode': string;
|
|
43
37
|
/**
|
|
44
38
|
* Policy code associated with the credit.
|
|
45
39
|
* @type {string}
|
|
@@ -54,12 +54,10 @@ export interface InvoiceMatchSuggestionEntity {
|
|
|
54
54
|
'confidenceScore': number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {object}
|
|
58
58
|
* @memberof InvoiceMatchSuggestionEntity
|
|
59
59
|
*/
|
|
60
|
-
'matchCriteria'?:
|
|
61
|
-
[key: string]: object;
|
|
62
|
-
};
|
|
60
|
+
'matchCriteria'?: object;
|
|
63
61
|
/**
|
|
64
62
|
*
|
|
65
63
|
* @type {string}
|
|
@@ -44,7 +44,7 @@ export interface PaymentClassWithoutExpandProperties {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof PaymentClassWithoutExpandProperties
|
|
46
46
|
*/
|
|
47
|
-
'partnerCode'
|
|
47
|
+
'partnerCode'?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Amount to be paid in cents. 100 to charge 1€.
|
|
50
50
|
* @type {number}
|
|
@@ -51,7 +51,7 @@ export interface PaymentEntity {
|
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof PaymentEntity
|
|
53
53
|
*/
|
|
54
|
-
'partnerCode'
|
|
54
|
+
'partnerCode'?: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -84,12 +84,10 @@ export interface PaymentEntity {
|
|
|
84
84
|
'transactions': Array<TransactionEntity>;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
|
-
* @type {
|
|
87
|
+
* @type {object}
|
|
88
88
|
* @memberof PaymentEntity
|
|
89
89
|
*/
|
|
90
|
-
'metadata':
|
|
91
|
-
[key: string]: string;
|
|
92
|
-
};
|
|
90
|
+
'metadata': object;
|
|
93
91
|
/**
|
|
94
92
|
*
|
|
95
93
|
* @type {string}
|
|
@@ -94,18 +94,6 @@ export interface PaymentRequestClass {
|
|
|
94
94
|
* @memberof PaymentRequestClass
|
|
95
95
|
*/
|
|
96
96
|
'status': PaymentRequestClassStatusEnum;
|
|
97
|
-
/**
|
|
98
|
-
* Code of the settlement the payment request was created for.
|
|
99
|
-
* @type {string}
|
|
100
|
-
* @memberof PaymentRequestClass
|
|
101
|
-
*/
|
|
102
|
-
'settlementCode'?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Code of the partner the payment request was created for.
|
|
105
|
-
* @type {string}
|
|
106
|
-
* @memberof PaymentRequestClass
|
|
107
|
-
*/
|
|
108
|
-
'partnerCode': string;
|
|
109
97
|
/**
|
|
110
98
|
* Code of the payment method used for this payment request.
|
|
111
99
|
* @type {string}
|
|
@@ -126,12 +114,10 @@ export interface PaymentRequestClass {
|
|
|
126
114
|
'paymentMethodPsp'?: string;
|
|
127
115
|
/**
|
|
128
116
|
* Optional field containing extra information about the payment request.
|
|
129
|
-
* @type {
|
|
117
|
+
* @type {object}
|
|
130
118
|
* @memberof PaymentRequestClass
|
|
131
119
|
*/
|
|
132
|
-
'metadata'?:
|
|
133
|
-
[key: string]: object;
|
|
134
|
-
};
|
|
120
|
+
'metadata'?: object;
|
|
135
121
|
/**
|
|
136
122
|
* The list of payment receipts.
|
|
137
123
|
* @type {Array<PaymentReceiptClass>}
|
|
@@ -23,12 +23,10 @@ export interface ValidatePSPConfigRequestDto {
|
|
|
23
23
|
'type': ValidatePSPConfigRequestDtoTypeEnum;
|
|
24
24
|
/**
|
|
25
25
|
* Map containing various necessary keys to properly use the payment service provider. In the form of <api key name, api key value>.
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {object}
|
|
27
27
|
* @memberof ValidatePSPConfigRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'apiKeys':
|
|
30
|
-
[key: string]: string;
|
|
31
|
-
};
|
|
29
|
+
'apiKeys': object;
|
|
32
30
|
/**
|
|
33
31
|
* List of payment methods that should be accepted by the payment service provider.
|
|
34
32
|
* @type {Array<string>}
|
|
@@ -100,10 +100,10 @@ export interface BankTransactionEntity {
|
|
|
100
100
|
'transactionReference': string;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
|
-
* @type {
|
|
103
|
+
* @type {object}
|
|
104
104
|
* @memberof BankTransactionEntity
|
|
105
105
|
*/
|
|
106
|
-
'metadata'?:
|
|
106
|
+
'metadata'?: object;
|
|
107
107
|
/**
|
|
108
108
|
*
|
|
109
109
|
* @type {string}
|
|
@@ -46,9 +46,9 @@ export interface CreatePaymentOrderDto {
|
|
|
46
46
|
'referenceNumber'?: string;
|
|
47
47
|
/**
|
|
48
48
|
* Optional field contain extra information.
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {object}
|
|
50
50
|
* @memberof CreatePaymentOrderDto
|
|
51
51
|
*/
|
|
52
|
-
'metadata':
|
|
52
|
+
'metadata': object;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -46,9 +46,9 @@ export interface CreatePaymentOrderRequestDto {
|
|
|
46
46
|
'referenceNumber'?: string;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {object}
|
|
50
50
|
* @memberof CreatePaymentOrderRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'metadata':
|
|
52
|
+
'metadata': object;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -52,10 +52,10 @@ export interface CreatePaymentRequestDto {
|
|
|
52
52
|
'invoiceIds': Array<number>;
|
|
53
53
|
/**
|
|
54
54
|
* Optional field contain extra information.
|
|
55
|
-
* @type {
|
|
55
|
+
* @type {object}
|
|
56
56
|
* @memberof CreatePaymentRequestDto
|
|
57
57
|
*/
|
|
58
|
-
'metadata':
|
|
58
|
+
'metadata': object;
|
|
59
59
|
/**
|
|
60
60
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
61
61
|
* @type {string}
|
|
@@ -74,18 +74,6 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
74
74
|
* @memberof CreatePaymentRequestRequestDto
|
|
75
75
|
*/
|
|
76
76
|
'domainEntityType': CreatePaymentRequestRequestDtoDomainEntityTypeEnum;
|
|
77
|
-
/**
|
|
78
|
-
* Code of the settlement the payment request was created for.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
81
|
-
*/
|
|
82
|
-
'settlementCode'?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Code of the partner the payment request was created for.
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof CreatePaymentRequestRequestDto
|
|
87
|
-
*/
|
|
88
|
-
'partnerCode': string;
|
|
89
77
|
/**
|
|
90
78
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
91
79
|
* @type {string}
|
|
@@ -94,10 +82,10 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
94
82
|
'paymentMethodCode'?: string;
|
|
95
83
|
/**
|
|
96
84
|
* Optional field containing extra information about the payment request.
|
|
97
|
-
* @type {
|
|
85
|
+
* @type {object}
|
|
98
86
|
* @memberof CreatePaymentRequestRequestDto
|
|
99
87
|
*/
|
|
100
|
-
'metadata'?:
|
|
88
|
+
'metadata'?: object;
|
|
101
89
|
}
|
|
102
90
|
|
|
103
91
|
export const CreatePaymentRequestRequestDtoDirectionEnum = {
|
|
@@ -39,12 +39,6 @@ export interface CreditAllocationClass {
|
|
|
39
39
|
* @memberof CreditAllocationClass
|
|
40
40
|
*/
|
|
41
41
|
'exceedingCreditCodes': Array<string>;
|
|
42
|
-
/**
|
|
43
|
-
* Partner code derived from the policy related to the exceeding credits.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CreditAllocationClass
|
|
46
|
-
*/
|
|
47
|
-
'partnerCode': string;
|
|
48
42
|
/**
|
|
49
43
|
* Policy code associated with the credit.
|
|
50
44
|
* @type {string}
|
|
@@ -59,10 +59,10 @@ export interface InvoiceMatchSuggestionEntity {
|
|
|
59
59
|
'confidenceScore': number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {object}
|
|
63
63
|
* @memberof InvoiceMatchSuggestionEntity
|
|
64
64
|
*/
|
|
65
|
-
'matchCriteria'?:
|
|
65
|
+
'matchCriteria'?: object;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -49,7 +49,7 @@ export interface PaymentClassWithoutExpandProperties {
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof PaymentClassWithoutExpandProperties
|
|
51
51
|
*/
|
|
52
|
-
'partnerCode'
|
|
52
|
+
'partnerCode'?: string;
|
|
53
53
|
/**
|
|
54
54
|
* Amount to be paid in cents. 100 to charge 1€.
|
|
55
55
|
* @type {number}
|
package/models/payment-class.ts
CHANGED
package/models/payment-entity.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface PaymentEntity {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof PaymentEntity
|
|
58
58
|
*/
|
|
59
|
-
'partnerCode'
|
|
59
|
+
'partnerCode'?: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -89,10 +89,10 @@ export interface PaymentEntity {
|
|
|
89
89
|
'transactions': Array<TransactionEntity>;
|
|
90
90
|
/**
|
|
91
91
|
*
|
|
92
|
-
* @type {
|
|
92
|
+
* @type {object}
|
|
93
93
|
* @memberof PaymentEntity
|
|
94
94
|
*/
|
|
95
|
-
'metadata':
|
|
95
|
+
'metadata': object;
|
|
96
96
|
/**
|
|
97
97
|
*
|
|
98
98
|
* @type {string}
|
|
@@ -99,18 +99,6 @@ export interface PaymentRequestClass {
|
|
|
99
99
|
* @memberof PaymentRequestClass
|
|
100
100
|
*/
|
|
101
101
|
'status': PaymentRequestClassStatusEnum;
|
|
102
|
-
/**
|
|
103
|
-
* Code of the settlement the payment request was created for.
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof PaymentRequestClass
|
|
106
|
-
*/
|
|
107
|
-
'settlementCode'?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Code of the partner the payment request was created for.
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof PaymentRequestClass
|
|
112
|
-
*/
|
|
113
|
-
'partnerCode': string;
|
|
114
102
|
/**
|
|
115
103
|
* Code of the payment method used for this payment request.
|
|
116
104
|
* @type {string}
|
|
@@ -131,10 +119,10 @@ export interface PaymentRequestClass {
|
|
|
131
119
|
'paymentMethodPsp'?: string;
|
|
132
120
|
/**
|
|
133
121
|
* Optional field containing extra information about the payment request.
|
|
134
|
-
* @type {
|
|
122
|
+
* @type {object}
|
|
135
123
|
* @memberof PaymentRequestClass
|
|
136
124
|
*/
|
|
137
|
-
'metadata'?:
|
|
125
|
+
'metadata'?: object;
|
|
138
126
|
/**
|
|
139
127
|
* The list of payment receipts.
|
|
140
128
|
* @type {Array<PaymentReceiptClass>}
|
|
@@ -28,10 +28,10 @@ export interface ValidatePSPConfigRequestDto {
|
|
|
28
28
|
'type': ValidatePSPConfigRequestDtoTypeEnum;
|
|
29
29
|
/**
|
|
30
30
|
* Map containing various necessary keys to properly use the payment service provider. In the form of <api key name, api key value>.
|
|
31
|
-
* @type {
|
|
31
|
+
* @type {object}
|
|
32
32
|
* @memberof ValidatePSPConfigRequestDto
|
|
33
33
|
*/
|
|
34
|
-
'apiKeys':
|
|
34
|
+
'apiKeys': object;
|
|
35
35
|
/**
|
|
36
36
|
* List of payment methods that should be accepted by the payment service provider.
|
|
37
37
|
* @type {Array<string>}
|