@emilgroup/payment-sdk 1.22.0 → 1.22.1-beta.1

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 +113 -12
  4. package/api/webhooks-api.ts +125 -14
  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 +67 -12
  8. package/dist/api/payment-requests-api.js +101 -9
  9. package/dist/api/webhooks-api.d.ts +73 -9
  10. package/dist/api/webhooks-api.js +100 -11
  11. package/dist/models/bank-transaction-entity.d.ts +4 -2
  12. package/dist/models/create-payment-order-dto.d.ts +4 -2
  13. package/dist/models/create-payment-order-request-dto.d.ts +4 -2
  14. package/dist/models/create-payment-request-dto.d.ts +4 -2
  15. package/dist/models/create-payment-request-request-dto.d.ts +16 -2
  16. package/dist/models/credit-allocation-class.d.ts +6 -0
  17. package/dist/models/credit-allocation-entity.d.ts +6 -0
  18. package/dist/models/invoice-match-suggestion-entity.d.ts +4 -2
  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 +5 -3
  22. package/dist/models/payment-request-class.d.ts +16 -2
  23. package/dist/models/validate-pspconfig-request-dto.d.ts +4 -2
  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 +14 -2
  29. package/models/credit-allocation-class.ts +6 -0
  30. package/models/credit-allocation-entity.ts +6 -0
  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 +14 -2
  36. package/models/validate-pspconfig-request-dto.ts +2 -2
  37. package/package.json +1 -1
@@ -97,12 +97,11 @@ 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
101
100
  * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
102
101
  * @param {*} [options] Override http request option.
103
102
  * @throws {RequiredError}
104
103
  */
105
- postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
104
+ postWebhook: function (pspType, tenantSlug, body, options) {
106
105
  if (options === void 0) { options = {}; }
107
106
  return __awaiter(_this, void 0, void 0, function () {
108
107
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -111,10 +110,54 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
111
110
  (0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
112
111
  // verify required parameter 'tenantSlug' is not null or undefined
113
112
  (0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
114
- // verify required parameter 'productSlug' is not null or undefined
115
- (0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
116
113
  // verify required parameter 'body' is not null or undefined
117
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
+ // verify required parameter 'productSlug' is not null or undefined
158
+ (0, common_1.assertParamExists)('postWebhookWithProductSlug', 'productSlug', productSlug);
159
+ // verify required parameter 'body' is not null or undefined
160
+ (0, common_1.assertParamExists)('postWebhookWithProductSlug', 'body', body);
118
161
  localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
119
162
  .replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
120
163
  .replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
@@ -154,17 +197,39 @@ var WebhooksApiFp = function (configuration) {
154
197
  * @summary Handle the webhook from PSP
155
198
  * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
156
199
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
157
- * @param {string} productSlug
158
200
  * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
159
201
  * @param {*} [options] Override http request option.
160
202
  * @throws {RequiredError}
161
203
  */
162
- postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
204
+ postWebhook: function (pspType, tenantSlug, body, options) {
163
205
  return __awaiter(this, void 0, void 0, function () {
164
206
  var localVarAxiosArgs;
165
207
  return __generator(this, function (_a) {
166
208
  switch (_a.label) {
167
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options)];
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)];
168
233
  case 1:
169
234
  localVarAxiosArgs = _a.sent();
170
235
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -187,13 +252,25 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
187
252
  * @summary Handle the webhook from PSP
188
253
  * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
189
254
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
190
- * @param {string} productSlug
191
255
  * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
192
256
  * @param {*} [options] Override http request option.
193
257
  * @throws {RequiredError}
194
258
  */
195
- postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
196
- return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
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); });
197
274
  },
198
275
  };
199
276
  };
@@ -219,7 +296,19 @@ var WebhooksApi = /** @class */ (function (_super) {
219
296
  */
220
297
  WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
221
298
  var _this = this;
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); });
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); });
223
312
  };
224
313
  return WebhooksApi;
225
314
  }(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'?: object;
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 {object}
44
+ * @type {{ [key: string]: string; }}
45
45
  * @memberof CreatePaymentOrderDto
46
46
  */
47
- 'metadata': object;
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 {object}
44
+ * @type {{ [key: string]: string; }}
45
45
  * @memberof CreatePaymentOrderRequestDto
46
46
  */
47
- 'metadata': object;
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 {object}
50
+ * @type {{ [key: string]: string; }}
51
51
  * @memberof CreatePaymentRequestDto
52
52
  */
53
- 'metadata': object;
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'?: object;
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}
@@ -28,6 +28,12 @@ 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;
31
37
  /**
32
38
  *
33
39
  * @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'?: object;
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'?: 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,10 +84,12 @@ export interface PaymentEntity {
84
84
  'transactions': Array<TransactionEntity>;
85
85
  /**
86
86
  *
87
- * @type {object}
87
+ * @type {{ [key: string]: string; }}
88
88
  * @memberof PaymentEntity
89
89
  */
90
- 'metadata': object;
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'?: object;
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 {object}
26
+ * @type {{ [key: string]: string; }}
27
27
  * @memberof ValidatePSPConfigRequestDto
28
28
  */
29
- 'apiKeys': object;
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 {object}
49
+ * @type {{ [key: string]: string; }}
50
50
  * @memberof CreatePaymentOrderDto
51
51
  */
52
- 'metadata': object;
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 {object}
49
+ * @type {{ [key: string]: string; }}
50
50
  * @memberof CreatePaymentOrderRequestDto
51
51
  */
52
- 'metadata': object;
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 {object}
55
+ * @type {{ [key: string]: string; }}
56
56
  * @memberof CreatePaymentRequestDto
57
57
  */
58
- 'metadata': object;
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}
@@ -33,6 +33,12 @@ 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;
36
42
  /**
37
43
  *
38
44
  * @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'?: 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 {object}
92
+ * @type {{ [key: string]: string; }}
93
93
  * @memberof PaymentEntity
94
94
  */
95
- 'metadata': object;
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 {object}
31
+ * @type {{ [key: string]: string; }}
32
32
  * @memberof ValidatePSPConfigRequestDto
33
33
  */
34
- 'apiKeys': object;
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>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk",
3
- "version": "1.22.0",
3
+ "version": "1.22.1-beta.1",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [