@emilgroup/payment-sdk 1.16.1-beta.98 → 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.
Files changed (37) hide show
  1. package/README.md +2 -2
  2. package/api/payment-reminders-api.ts +12 -12
  3. package/api/payment-requests-api.ts +12 -113
  4. package/api/webhooks-api.ts +14 -125
  5. package/dist/api/payment-reminders-api.d.ts +12 -12
  6. package/dist/api/payment-reminders-api.js +9 -9
  7. package/dist/api/payment-requests-api.d.ts +12 -67
  8. package/dist/api/payment-requests-api.js +9 -101
  9. package/dist/api/webhooks-api.d.ts +9 -73
  10. package/dist/api/webhooks-api.js +11 -100
  11. package/dist/models/bank-transaction-entity.d.ts +2 -4
  12. package/dist/models/create-payment-order-dto.d.ts +2 -4
  13. package/dist/models/create-payment-order-request-dto.d.ts +2 -4
  14. package/dist/models/create-payment-request-dto.d.ts +2 -4
  15. package/dist/models/create-payment-request-request-dto.d.ts +2 -16
  16. package/dist/models/credit-allocation-class.d.ts +0 -6
  17. package/dist/models/credit-allocation-entity.d.ts +0 -6
  18. package/dist/models/invoice-match-suggestion-entity.d.ts +2 -4
  19. package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
  20. package/dist/models/payment-class.d.ts +1 -1
  21. package/dist/models/payment-entity.d.ts +3 -5
  22. package/dist/models/payment-request-class.d.ts +2 -16
  23. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -4
  24. package/models/bank-transaction-entity.ts +2 -2
  25. package/models/create-payment-order-dto.ts +2 -2
  26. package/models/create-payment-order-request-dto.ts +2 -2
  27. package/models/create-payment-request-dto.ts +2 -2
  28. package/models/create-payment-request-request-dto.ts +2 -14
  29. package/models/credit-allocation-class.ts +0 -6
  30. package/models/credit-allocation-entity.ts +0 -6
  31. package/models/invoice-match-suggestion-entity.ts +2 -2
  32. package/models/payment-class-without-expand-properties.ts +1 -1
  33. package/models/payment-class.ts +1 -1
  34. package/models/payment-entity.ts +3 -3
  35. package/models/payment-request-class.ts +2 -14
  36. package/models/validate-pspconfig-request-dto.ts +2 -2
  37. package/package.json +1 -1
@@ -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)('postWebhookWithProductSlug', 'productSlug', productSlug);
115
+ (0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
159
116
  // verify required parameter 'body' is not null or undefined
160
- (0, common_1.assertParamExists)('postWebhookWithProductSlug', 'body', body);
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));
@@ -95,12 +95,10 @@ export interface BankTransactionEntity {
95
95
  'transactionReference': string;
96
96
  /**
97
97
  *
98
- * @type {{ [key: string]: object; }}
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 {{ [key: string]: string; }}
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 {{ [key: string]: string; }}
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 {{ [key: string]: string; }}
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 {{ [key: string]: object; }}
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}
@@ -28,12 +28,6 @@ export interface CreditAllocationEntity {
28
28
  * @memberof CreditAllocationEntity
29
29
  */
30
30
  'code': string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof CreditAllocationEntity
35
- */
36
- 'partnerCode': string;
37
31
  /**
38
32
  *
39
33
  * @type {string}
@@ -54,12 +54,10 @@ export interface InvoiceMatchSuggestionEntity {
54
54
  'confidenceScore': number;
55
55
  /**
56
56
  *
57
- * @type {{ [key: string]: object; }}
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': string;
47
+ 'partnerCode'?: string;
48
48
  /**
49
49
  * Amount to be paid in cents. 100 to charge 1€.
50
50
  * @type {number}
@@ -45,7 +45,7 @@ export interface PaymentClass {
45
45
  * @type {string}
46
46
  * @memberof PaymentClass
47
47
  */
48
- 'partnerCode': string;
48
+ 'partnerCode'?: string;
49
49
  /**
50
50
  * Amount to be paid in cents. 100 to charge 1€.
51
51
  * @type {number}
@@ -51,7 +51,7 @@ export interface PaymentEntity {
51
51
  * @type {string}
52
52
  * @memberof PaymentEntity
53
53
  */
54
- 'partnerCode': string;
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 {{ [key: string]: string; }}
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 {{ [key: string]: object; }}
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 {{ [key: string]: string; }}
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 {{ [key: string]: object; }}
103
+ * @type {object}
104
104
  * @memberof BankTransactionEntity
105
105
  */
106
- 'metadata'?: { [key: string]: object; };
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 {{ [key: string]: string; }}
49
+ * @type {object}
50
50
  * @memberof CreatePaymentOrderDto
51
51
  */
52
- 'metadata': { [key: string]: string; };
52
+ 'metadata': object;
53
53
  }
54
54
 
@@ -46,9 +46,9 @@ export interface CreatePaymentOrderRequestDto {
46
46
  'referenceNumber'?: string;
47
47
  /**
48
48
  *
49
- * @type {{ [key: string]: string; }}
49
+ * @type {object}
50
50
  * @memberof CreatePaymentOrderRequestDto
51
51
  */
52
- 'metadata': { [key: string]: string; };
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 {{ [key: string]: string; }}
55
+ * @type {object}
56
56
  * @memberof CreatePaymentRequestDto
57
57
  */
58
- 'metadata': { [key: string]: string; };
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 {{ [key: string]: object; }}
85
+ * @type {object}
98
86
  * @memberof CreatePaymentRequestRequestDto
99
87
  */
100
- 'metadata'?: { [key: string]: object; };
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}
@@ -33,12 +33,6 @@ export interface CreditAllocationEntity {
33
33
  * @memberof CreditAllocationEntity
34
34
  */
35
35
  'code': string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof CreditAllocationEntity
40
- */
41
- 'partnerCode': string;
42
36
  /**
43
37
  *
44
38
  * @type {string}
@@ -59,10 +59,10 @@ export interface InvoiceMatchSuggestionEntity {
59
59
  'confidenceScore': number;
60
60
  /**
61
61
  *
62
- * @type {{ [key: string]: object; }}
62
+ * @type {object}
63
63
  * @memberof InvoiceMatchSuggestionEntity
64
64
  */
65
- 'matchCriteria'?: { [key: string]: object; };
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': string;
52
+ 'partnerCode'?: string;
53
53
  /**
54
54
  * Amount to be paid in cents. 100 to charge 1€.
55
55
  * @type {number}
@@ -50,7 +50,7 @@ export interface PaymentClass {
50
50
  * @type {string}
51
51
  * @memberof PaymentClass
52
52
  */
53
- 'partnerCode': string;
53
+ 'partnerCode'?: string;
54
54
  /**
55
55
  * Amount to be paid in cents. 100 to charge 1€.
56
56
  * @type {number}
@@ -56,7 +56,7 @@ export interface PaymentEntity {
56
56
  * @type {string}
57
57
  * @memberof PaymentEntity
58
58
  */
59
- 'partnerCode': string;
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 {{ [key: string]: string; }}
92
+ * @type {object}
93
93
  * @memberof PaymentEntity
94
94
  */
95
- 'metadata': { [key: string]: string; };
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 {{ [key: string]: object; }}
122
+ * @type {object}
135
123
  * @memberof PaymentRequestClass
136
124
  */
137
- 'metadata'?: { [key: string]: object; };
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 {{ [key: string]: string; }}
31
+ * @type {object}
32
32
  * @memberof ValidatePSPConfigRequestDto
33
33
  */
34
- 'apiKeys': { [key: string]: string; };
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>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk",
3
- "version": "1.16.1-beta.98",
3
+ "version": "1.19.0",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [