@emilgroup/payment-sdk-node 1.26.0 → 1.28.1-beta.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 +113 -12
- package/api/webhooks-api.ts +125 -14
- 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 +67 -12
- package/dist/api/payment-requests-api.js +101 -9
- package/dist/api/webhooks-api.d.ts +73 -9
- package/dist/api/webhooks-api.js +100 -11
- package/dist/models/bank-transaction-entity.d.ts +4 -2
- package/dist/models/create-payment-order-dto.d.ts +4 -2
- package/dist/models/create-payment-order-request-dto.d.ts +4 -2
- package/dist/models/create-payment-request-dto.d.ts +4 -2
- package/dist/models/create-payment-request-request-dto.d.ts +16 -2
- package/dist/models/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/invoice-match-suggestion-entity.d.ts +4 -2
- 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 +5 -3
- package/dist/models/payment-request-class.d.ts +16 -2
- package/dist/models/validate-pspconfig-request-dto.d.ts +4 -2
- 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 +14 -2
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- 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 +14 -2
- package/models/validate-pspconfig-request-dto.ts +2 -2
- package/package.json +1 -1
package/dist/api/webhooks-api.js
CHANGED
|
@@ -101,12 +101,11 @@ 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
|
|
105
104
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
106
105
|
* @param {*} [options] Override http request option.
|
|
107
106
|
* @throws {RequiredError}
|
|
108
107
|
*/
|
|
109
|
-
postWebhook: function (pspType, tenantSlug,
|
|
108
|
+
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
110
109
|
if (options === void 0) { options = {}; }
|
|
111
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
112
111
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -115,10 +114,54 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
115
114
|
(0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
|
|
116
115
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
117
116
|
(0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
|
|
118
|
-
// verify required parameter 'productSlug' is not null or undefined
|
|
119
|
-
(0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
|
|
120
117
|
// verify required parameter 'body' is not null or undefined
|
|
121
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
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
162
|
+
(0, common_1.assertParamExists)('postWebhookWithProductSlug', 'productSlug', productSlug);
|
|
163
|
+
// verify required parameter 'body' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('postWebhookWithProductSlug', 'body', body);
|
|
122
165
|
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
123
166
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
124
167
|
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
@@ -158,17 +201,39 @@ var WebhooksApiFp = function (configuration) {
|
|
|
158
201
|
* @summary Handle the webhook from PSP
|
|
159
202
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
160
203
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
161
|
-
* @param {string} productSlug
|
|
162
204
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
163
205
|
* @param {*} [options] Override http request option.
|
|
164
206
|
* @throws {RequiredError}
|
|
165
207
|
*/
|
|
166
|
-
postWebhook: function (pspType, tenantSlug,
|
|
208
|
+
postWebhook: function (pspType, tenantSlug, body, options) {
|
|
167
209
|
return __awaiter(this, void 0, void 0, function () {
|
|
168
210
|
var localVarAxiosArgs;
|
|
169
211
|
return __generator(this, function (_a) {
|
|
170
212
|
switch (_a.label) {
|
|
171
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug,
|
|
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)];
|
|
172
237
|
case 1:
|
|
173
238
|
localVarAxiosArgs = _a.sent();
|
|
174
239
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -191,13 +256,25 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
191
256
|
* @summary Handle the webhook from PSP
|
|
192
257
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
|
|
193
258
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
194
|
-
* @param {string} productSlug
|
|
195
259
|
* @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
|
|
196
260
|
* @param {*} [options] Override http request option.
|
|
197
261
|
* @throws {RequiredError}
|
|
198
262
|
*/
|
|
199
|
-
postWebhook: function (pspType, tenantSlug,
|
|
200
|
-
return localVarFp.postWebhook(pspType, tenantSlug,
|
|
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); });
|
|
201
278
|
},
|
|
202
279
|
};
|
|
203
280
|
};
|
|
@@ -223,7 +300,19 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
223
300
|
*/
|
|
224
301
|
WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
|
|
225
302
|
var _this = this;
|
|
226
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.
|
|
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); });
|
|
227
316
|
};
|
|
228
317
|
return WebhooksApi;
|
|
229
318
|
}(base_1.BaseAPI));
|
|
@@ -95,10 +95,12 @@ export interface BankTransactionEntity {
|
|
|
95
95
|
'transactionReference': string;
|
|
96
96
|
/**
|
|
97
97
|
*
|
|
98
|
-
* @type {object}
|
|
98
|
+
* @type {{ [key: string]: object; }}
|
|
99
99
|
* @memberof BankTransactionEntity
|
|
100
100
|
*/
|
|
101
|
-
'metadata'?:
|
|
101
|
+
'metadata'?: {
|
|
102
|
+
[key: string]: object;
|
|
103
|
+
};
|
|
102
104
|
/**
|
|
103
105
|
*
|
|
104
106
|
* @type {string}
|
|
@@ -41,8 +41,10 @@ export interface CreatePaymentOrderDto {
|
|
|
41
41
|
'referenceNumber'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Optional field contain extra information.
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {{ [key: string]: string; }}
|
|
45
45
|
* @memberof CreatePaymentOrderDto
|
|
46
46
|
*/
|
|
47
|
-
'metadata':
|
|
47
|
+
'metadata': {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
48
50
|
}
|
|
@@ -41,8 +41,10 @@ export interface CreatePaymentOrderRequestDto {
|
|
|
41
41
|
'referenceNumber'?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {{ [key: string]: string; }}
|
|
45
45
|
* @memberof CreatePaymentOrderRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'metadata':
|
|
47
|
+
'metadata': {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
48
50
|
}
|
|
@@ -47,10 +47,12 @@ export interface CreatePaymentRequestDto {
|
|
|
47
47
|
'invoiceIds': Array<number>;
|
|
48
48
|
/**
|
|
49
49
|
* Optional field contain extra information.
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {{ [key: string]: string; }}
|
|
51
51
|
* @memberof CreatePaymentRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'metadata':
|
|
53
|
+
'metadata': {
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
};
|
|
54
56
|
/**
|
|
55
57
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
56
58
|
* @type {string}
|
|
@@ -69,6 +69,18 @@ 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;
|
|
72
84
|
/**
|
|
73
85
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
74
86
|
* @type {string}
|
|
@@ -77,10 +89,12 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
77
89
|
'paymentMethodCode'?: string;
|
|
78
90
|
/**
|
|
79
91
|
* Optional field containing extra information about the payment request.
|
|
80
|
-
* @type {object}
|
|
92
|
+
* @type {{ [key: string]: object; }}
|
|
81
93
|
* @memberof CreatePaymentRequestRequestDto
|
|
82
94
|
*/
|
|
83
|
-
'metadata'?:
|
|
95
|
+
'metadata'?: {
|
|
96
|
+
[key: string]: object;
|
|
97
|
+
};
|
|
84
98
|
}
|
|
85
99
|
export declare const CreatePaymentRequestRequestDtoDirectionEnum: {
|
|
86
100
|
readonly Collect: "collect";
|
|
@@ -34,6 +34,12 @@ 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;
|
|
37
43
|
/**
|
|
38
44
|
* Policy code associated with the credit.
|
|
39
45
|
* @type {string}
|
|
@@ -54,10 +54,12 @@ export interface InvoiceMatchSuggestionEntity {
|
|
|
54
54
|
'confidenceScore': number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {object}
|
|
57
|
+
* @type {{ [key: string]: object; }}
|
|
58
58
|
* @memberof InvoiceMatchSuggestionEntity
|
|
59
59
|
*/
|
|
60
|
-
'matchCriteria'?:
|
|
60
|
+
'matchCriteria'?: {
|
|
61
|
+
[key: string]: object;
|
|
62
|
+
};
|
|
61
63
|
/**
|
|
62
64
|
*
|
|
63
65
|
* @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,10 +84,12 @@ export interface PaymentEntity {
|
|
|
84
84
|
'transactions': Array<TransactionEntity>;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
|
-
* @type {
|
|
87
|
+
* @type {{ [key: string]: string; }}
|
|
88
88
|
* @memberof PaymentEntity
|
|
89
89
|
*/
|
|
90
|
-
'metadata':
|
|
90
|
+
'metadata': {
|
|
91
|
+
[key: string]: string;
|
|
92
|
+
};
|
|
91
93
|
/**
|
|
92
94
|
*
|
|
93
95
|
* @type {string}
|
|
@@ -94,6 +94,18 @@ 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;
|
|
97
109
|
/**
|
|
98
110
|
* Code of the payment method used for this payment request.
|
|
99
111
|
* @type {string}
|
|
@@ -114,10 +126,12 @@ export interface PaymentRequestClass {
|
|
|
114
126
|
'paymentMethodPsp'?: string;
|
|
115
127
|
/**
|
|
116
128
|
* Optional field containing extra information about the payment request.
|
|
117
|
-
* @type {object}
|
|
129
|
+
* @type {{ [key: string]: object; }}
|
|
118
130
|
* @memberof PaymentRequestClass
|
|
119
131
|
*/
|
|
120
|
-
'metadata'?:
|
|
132
|
+
'metadata'?: {
|
|
133
|
+
[key: string]: object;
|
|
134
|
+
};
|
|
121
135
|
/**
|
|
122
136
|
* The list of payment receipts.
|
|
123
137
|
* @type {Array<PaymentReceiptClass>}
|
|
@@ -23,10 +23,12 @@ 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 {{ [key: string]: string; }}
|
|
27
27
|
* @memberof ValidatePSPConfigRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'apiKeys':
|
|
29
|
+
'apiKeys': {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
30
32
|
/**
|
|
31
33
|
* List of payment methods that should be accepted by the payment service provider.
|
|
32
34
|
* @type {Array<string>}
|
|
@@ -100,10 +100,10 @@ export interface BankTransactionEntity {
|
|
|
100
100
|
'transactionReference': string;
|
|
101
101
|
/**
|
|
102
102
|
*
|
|
103
|
-
* @type {object}
|
|
103
|
+
* @type {{ [key: string]: object; }}
|
|
104
104
|
* @memberof BankTransactionEntity
|
|
105
105
|
*/
|
|
106
|
-
'metadata'?: object;
|
|
106
|
+
'metadata'?: { [key: string]: 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 {{ [key: string]: string; }}
|
|
50
50
|
* @memberof CreatePaymentOrderDto
|
|
51
51
|
*/
|
|
52
|
-
'metadata':
|
|
52
|
+
'metadata': { [key: string]: string; };
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -46,9 +46,9 @@ export interface CreatePaymentOrderRequestDto {
|
|
|
46
46
|
'referenceNumber'?: string;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
|
-
* @type {
|
|
49
|
+
* @type {{ [key: string]: string; }}
|
|
50
50
|
* @memberof CreatePaymentOrderRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'metadata':
|
|
52
|
+
'metadata': { [key: string]: string; };
|
|
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 {{ [key: string]: string; }}
|
|
56
56
|
* @memberof CreatePaymentRequestDto
|
|
57
57
|
*/
|
|
58
|
-
'metadata':
|
|
58
|
+
'metadata': { [key: string]: string; };
|
|
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,6 +74,18 @@ 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;
|
|
77
89
|
/**
|
|
78
90
|
* Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
|
|
79
91
|
* @type {string}
|
|
@@ -82,10 +94,10 @@ export interface CreatePaymentRequestRequestDto {
|
|
|
82
94
|
'paymentMethodCode'?: string;
|
|
83
95
|
/**
|
|
84
96
|
* Optional field containing extra information about the payment request.
|
|
85
|
-
* @type {object}
|
|
97
|
+
* @type {{ [key: string]: object; }}
|
|
86
98
|
* @memberof CreatePaymentRequestRequestDto
|
|
87
99
|
*/
|
|
88
|
-
'metadata'?: object;
|
|
100
|
+
'metadata'?: { [key: string]: object; };
|
|
89
101
|
}
|
|
90
102
|
|
|
91
103
|
export const CreatePaymentRequestRequestDtoDirectionEnum = {
|
|
@@ -39,6 +39,12 @@ 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;
|
|
42
48
|
/**
|
|
43
49
|
* Policy code associated with the credit.
|
|
44
50
|
* @type {string}
|
|
@@ -59,10 +59,10 @@ export interface InvoiceMatchSuggestionEntity {
|
|
|
59
59
|
'confidenceScore': number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
|
-
* @type {object}
|
|
62
|
+
* @type {{ [key: string]: object; }}
|
|
63
63
|
* @memberof InvoiceMatchSuggestionEntity
|
|
64
64
|
*/
|
|
65
|
-
'matchCriteria'?: object;
|
|
65
|
+
'matchCriteria'?: { [key: string]: 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 {{ [key: string]: string; }}
|
|
93
93
|
* @memberof PaymentEntity
|
|
94
94
|
*/
|
|
95
|
-
'metadata':
|
|
95
|
+
'metadata': { [key: string]: string; };
|
|
96
96
|
/**
|
|
97
97
|
*
|
|
98
98
|
* @type {string}
|
|
@@ -99,6 +99,18 @@ 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;
|
|
102
114
|
/**
|
|
103
115
|
* Code of the payment method used for this payment request.
|
|
104
116
|
* @type {string}
|
|
@@ -119,10 +131,10 @@ export interface PaymentRequestClass {
|
|
|
119
131
|
'paymentMethodPsp'?: string;
|
|
120
132
|
/**
|
|
121
133
|
* Optional field containing extra information about the payment request.
|
|
122
|
-
* @type {object}
|
|
134
|
+
* @type {{ [key: string]: object; }}
|
|
123
135
|
* @memberof PaymentRequestClass
|
|
124
136
|
*/
|
|
125
|
-
'metadata'?: object;
|
|
137
|
+
'metadata'?: { [key: string]: object; };
|
|
126
138
|
/**
|
|
127
139
|
* The list of payment receipts.
|
|
128
140
|
* @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 {{ [key: string]: string; }}
|
|
32
32
|
* @memberof ValidatePSPConfigRequestDto
|
|
33
33
|
*/
|
|
34
|
-
'apiKeys':
|
|
34
|
+
'apiKeys': { [key: string]: string; };
|
|
35
35
|
/**
|
|
36
36
|
* List of payment methods that should be accepted by the payment service provider.
|
|
37
37
|
* @type {Array<string>}
|