@emilgroup/payment-sdk 1.22.1-beta.72 → 1.22.1-beta.73

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 (30) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/bank-transaction-api.ts +130 -8
  4. package/dist/api/bank-transaction-api.d.ts +74 -8
  5. package/dist/api/bank-transaction-api.js +108 -6
  6. package/dist/models/bank-transaction-class.d.ts +7 -0
  7. package/dist/models/bank-transaction-entity.d.ts +7 -0
  8. package/dist/models/index.d.ts +4 -0
  9. package/dist/models/index.js +4 -0
  10. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
  11. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
  12. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
  13. package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
  14. package/dist/models/payment-receipt-class.d.ts +12 -0
  15. package/dist/models/payment-receipt-entity.d.ts +139 -0
  16. package/dist/models/payment-receipt-entity.js +20 -0
  17. package/dist/models/payment-request-class.d.ts +1 -0
  18. package/dist/models/payment-request-class.js +1 -0
  19. package/dist/models/payment-request-entity.d.ts +223 -0
  20. package/dist/models/payment-request-entity.js +39 -0
  21. package/models/bank-transaction-class.ts +7 -0
  22. package/models/bank-transaction-entity.ts +7 -0
  23. package/models/index.ts +4 -0
  24. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
  25. package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
  26. package/models/payment-receipt-class.ts +12 -0
  27. package/models/payment-receipt-entity.ts +148 -0
  28. package/models/payment-request-class.ts +1 -0
  29. package/models/payment-request-entity.ts +233 -0
  30. package/package.json +1 -1
@@ -148,7 +148,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
148
148
  * @summary Retrieve the bank transaction
149
149
  * @param {string} code
150
150
  * @param {string} [authorization] Bearer Token
151
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
151
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
152
152
  * @param {*} [options] Override http request option.
153
153
  * @throws {RequiredError}
154
154
  */
@@ -307,6 +307,62 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
307
307
  });
308
308
  });
309
309
  },
310
+ /**
311
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
312
+ * @summary Link bank transaction to payment requests
313
+ * @param {string} code Code of the outgoing bank transaction to link
314
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
315
+ * @param {string} [authorization] Bearer Token
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
320
+ if (options === void 0) { options = {}; }
321
+ return __awaiter(_this, void 0, void 0, function () {
322
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
323
+ return __generator(this, function (_a) {
324
+ switch (_a.label) {
325
+ case 0:
326
+ // verify required parameter 'code' is not null or undefined
327
+ (0, common_1.assertParamExists)('linkBankTransactionPaymentRequests', 'code', code);
328
+ // verify required parameter 'linkBankTransactionPaymentRequestsRequestDtoRest' is not null or undefined
329
+ (0, common_1.assertParamExists)('linkBankTransactionPaymentRequests', 'linkBankTransactionPaymentRequestsRequestDtoRest', linkBankTransactionPaymentRequestsRequestDtoRest);
330
+ localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link-payment-requests"
331
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
332
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
333
+ if (configuration) {
334
+ baseOptions = configuration.baseOptions;
335
+ baseAccessToken = configuration.accessToken;
336
+ }
337
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
338
+ localVarHeaderParameter = {};
339
+ localVarQueryParameter = {};
340
+ // authentication bearer required
341
+ // http bearer authentication required
342
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
343
+ // Only Authorization falls back to the configured token; an empty value is never sent.
344
+ ];
345
+ case 1:
346
+ // authentication bearer required
347
+ // http bearer authentication required
348
+ _a.sent();
349
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
350
+ if (authorizationValue) {
351
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
352
+ }
353
+ localVarHeaderParameter['Content-Type'] = 'application/json';
354
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
355
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
357
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionPaymentRequestsRequestDtoRest, localVarRequestOptions, configuration);
358
+ return [2 /*return*/, {
359
+ url: (0, common_1.toPathString)(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ }];
362
+ }
363
+ });
364
+ });
365
+ },
310
366
  /**
311
367
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
312
368
  * @summary List bank transactions
@@ -316,7 +372,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
316
372
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
317
373
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
318
374
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
319
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
375
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
320
376
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
321
377
  * @param {*} [options] Override http request option.
322
378
  * @throws {RequiredError}
@@ -467,7 +523,7 @@ var BankTransactionApiFp = function (configuration) {
467
523
  * @summary Retrieve the bank transaction
468
524
  * @param {string} code
469
525
  * @param {string} [authorization] Bearer Token
470
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
526
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
471
527
  * @param {*} [options] Override http request option.
472
528
  * @throws {RequiredError}
473
529
  */
@@ -527,6 +583,28 @@ var BankTransactionApiFp = function (configuration) {
527
583
  });
528
584
  });
529
585
  },
586
+ /**
587
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
588
+ * @summary Link bank transaction to payment requests
589
+ * @param {string} code Code of the outgoing bank transaction to link
590
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
591
+ * @param {string} [authorization] Bearer Token
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
596
+ return __awaiter(this, void 0, void 0, function () {
597
+ var localVarAxiosArgs;
598
+ return __generator(this, function (_a) {
599
+ switch (_a.label) {
600
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options)];
601
+ case 1:
602
+ localVarAxiosArgs = _a.sent();
603
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
604
+ }
605
+ });
606
+ });
607
+ },
530
608
  /**
531
609
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
532
610
  * @summary List bank transactions
@@ -536,7 +614,7 @@ var BankTransactionApiFp = function (configuration) {
536
614
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
537
615
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
538
616
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
539
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
617
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
540
618
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
541
619
  * @param {*} [options] Override http request option.
542
620
  * @throws {RequiredError}
@@ -601,7 +679,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
601
679
  * @summary Retrieve the bank transaction
602
680
  * @param {string} code
603
681
  * @param {string} [authorization] Bearer Token
604
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
682
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
605
683
  * @param {*} [options] Override http request option.
606
684
  * @throws {RequiredError}
607
685
  */
@@ -631,6 +709,18 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
631
709
  linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
632
710
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
633
711
  },
712
+ /**
713
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
714
+ * @summary Link bank transaction to payment requests
715
+ * @param {string} code Code of the outgoing bank transaction to link
716
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
717
+ * @param {string} [authorization] Bearer Token
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ */
721
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
722
+ return localVarFp.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
723
+ },
634
724
  /**
635
725
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
636
726
  * @summary List bank transactions
@@ -640,7 +730,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
640
730
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
641
731
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
642
732
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
643
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
733
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
644
734
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
645
735
  * @param {*} [options] Override http request option.
646
736
  * @throws {RequiredError}
@@ -721,6 +811,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
721
811
  var _this = this;
722
812
  return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
723
813
  };
814
+ /**
815
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
816
+ * @summary Link bank transaction to payment requests
817
+ * @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ * @memberof BankTransactionApi
821
+ */
822
+ BankTransactionApi.prototype.linkBankTransactionPaymentRequests = function (requestParameters, options) {
823
+ var _this = this;
824
+ return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransactionPaymentRequests(requestParameters.code, requestParameters.linkBankTransactionPaymentRequestsRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
825
+ };
724
826
  /**
725
827
  * Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
726
828
  * @summary List bank transactions
@@ -12,6 +12,7 @@
12
12
  import { BankOrderClass } from './bank-order-class';
13
13
  import { BankTransactionInvoiceClass } from './bank-transaction-invoice-class';
14
14
  import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
15
+ import { PaymentReceiptClass } from './payment-receipt-class';
15
16
  import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
16
17
  import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
17
18
  /**
@@ -152,6 +153,12 @@ export interface BankTransactionClass {
152
153
  * @memberof BankTransactionClass
153
154
  */
154
155
  'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
156
+ /**
157
+ * Payment receipts created by linking this outgoing transaction to payment requests
158
+ * @type {Array<PaymentReceiptClass>}
159
+ * @memberof BankTransactionClass
160
+ */
161
+ 'paymentReceipts'?: Array<PaymentReceiptClass>;
155
162
  }
156
163
  export declare const BankTransactionClassLabelEnum: {
157
164
  readonly Automated: "automated";
@@ -13,6 +13,7 @@ import { BankOrderEntity } from './bank-order-entity';
13
13
  import { BankTransactionInvoiceEntity } from './bank-transaction-invoice-entity';
14
14
  import { ExceedingCreditEntity } from './exceeding-credit-entity';
15
15
  import { InvoiceMatchSuggestionEntity } from './invoice-match-suggestion-entity';
16
+ import { PaymentReceiptEntity } from './payment-receipt-entity';
16
17
  import { SuggestionGenerationProgressEntity } from './suggestion-generation-progress-entity';
17
18
  import { TenantBankAccountEntity } from './tenant-bank-account-entity';
18
19
  /**
@@ -137,6 +138,12 @@ export interface BankTransactionEntity {
137
138
  * @memberof BankTransactionEntity
138
139
  */
139
140
  'exceedingCredits': Array<ExceedingCreditEntity>;
141
+ /**
142
+ *
143
+ * @type {Array<PaymentReceiptEntity>}
144
+ * @memberof BankTransactionEntity
145
+ */
146
+ 'paymentReceipts': Array<PaymentReceiptEntity>;
140
147
  /**
141
148
  *
142
149
  * @type {string}
@@ -92,6 +92,8 @@ export * from './inline-response503';
92
92
  export * from './invoice-allocation-dto';
93
93
  export * from './invoice-match-suggestion-class';
94
94
  export * from './invoice-match-suggestion-entity';
95
+ export * from './link-bank-transaction-payment-requests-request-dto-rest';
96
+ export * from './link-bank-transaction-payment-requests-response-class';
95
97
  export * from './link-bank-transaction-request-dto-rest';
96
98
  export * from './link-bank-transactions-response-class';
97
99
  export * from './list-bank-accounts-response-class';
@@ -117,8 +119,10 @@ export * from './payment-class-without-expand-properties';
117
119
  export * from './payment-entity';
118
120
  export * from './payment-method-class';
119
121
  export * from './payment-receipt-class';
122
+ export * from './payment-receipt-entity';
120
123
  export * from './payment-reminder-class';
121
124
  export * from './payment-request-class';
125
+ export * from './payment-request-entity';
122
126
  export * from './payout-method-class';
123
127
  export * from './policy-payment-method-class';
124
128
  export * from './primary-bank-account-response-class';
@@ -108,6 +108,8 @@ __exportStar(require("./inline-response503"), exports);
108
108
  __exportStar(require("./invoice-allocation-dto"), exports);
109
109
  __exportStar(require("./invoice-match-suggestion-class"), exports);
110
110
  __exportStar(require("./invoice-match-suggestion-entity"), exports);
111
+ __exportStar(require("./link-bank-transaction-payment-requests-request-dto-rest"), exports);
112
+ __exportStar(require("./link-bank-transaction-payment-requests-response-class"), exports);
111
113
  __exportStar(require("./link-bank-transaction-request-dto-rest"), exports);
112
114
  __exportStar(require("./link-bank-transactions-response-class"), exports);
113
115
  __exportStar(require("./list-bank-accounts-response-class"), exports);
@@ -133,8 +135,10 @@ __exportStar(require("./payment-class-without-expand-properties"), exports);
133
135
  __exportStar(require("./payment-entity"), exports);
134
136
  __exportStar(require("./payment-method-class"), exports);
135
137
  __exportStar(require("./payment-receipt-class"), exports);
138
+ __exportStar(require("./payment-receipt-entity"), exports);
136
139
  __exportStar(require("./payment-reminder-class"), exports);
137
140
  __exportStar(require("./payment-request-class"), exports);
141
+ __exportStar(require("./payment-request-entity"), exports);
138
142
  __exportStar(require("./payout-method-class"), exports);
139
143
  __exportStar(require("./policy-payment-method-class"), exports);
140
144
  __exportStar(require("./primary-bank-account-response-class"), exports);
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LinkBankTransactionPaymentRequestsRequestDtoRest
16
+ */
17
+ export interface LinkBankTransactionPaymentRequestsRequestDtoRest {
18
+ /**
19
+ * Codes of the open payout payment requests the outgoing bank transaction paid; up to 1000, no duplicates, empty when only bank orders are linked. Together with the payment requests of the bank orders their amounts must add up to the transaction amount.
20
+ * @type {Array<string>}
21
+ * @memberof LinkBankTransactionPaymentRequestsRequestDtoRest
22
+ */
23
+ 'paymentRequestCodes': Array<string>;
24
+ /**
25
+ * Codes of payout bank orders the transaction paid whole: the link pays every open payment request each order holds in the transaction currency. Up to 1000, no duplicates; a payment request may not also be listed in paymentRequestCodes.
26
+ * @type {Array<string>}
27
+ * @memberof LinkBankTransactionPaymentRequestsRequestDtoRest
28
+ */
29
+ 'bankOrderCodes'?: Array<string>;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { BankTransactionClass } from './bank-transaction-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LinkBankTransactionPaymentRequestsResponseClass
17
+ */
18
+ export interface LinkBankTransactionPaymentRequestsResponseClass {
19
+ /**
20
+ * The linked bank transaction, with the payment receipts the link created
21
+ * @type {BankTransactionClass}
22
+ * @memberof LinkBankTransactionPaymentRequestsResponseClass
23
+ */
24
+ 'bankTransaction': BankTransactionClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -57,6 +57,12 @@ export interface PaymentReceiptClass {
57
57
  * @memberof PaymentReceiptClass
58
58
  */
59
59
  'paymentRequestCode'?: string;
60
+ /**
61
+ * The number of the payment request the payment receipt pays; read from the payment request, not stored on the receipt.
62
+ * @type {string}
63
+ * @memberof PaymentReceiptClass
64
+ */
65
+ 'paymentRequestNumber'?: string;
60
66
  /**
61
67
  * The payment service provider that produced the payment receipt.
62
68
  * @type {string}
@@ -69,6 +75,12 @@ export interface PaymentReceiptClass {
69
75
  * @memberof PaymentReceiptClass
70
76
  */
71
77
  'comment'?: string;
78
+ /**
79
+ * The code of the bank transaction whose link created the payment receipt; unset for a receipt created by hand.
80
+ * @type {string}
81
+ * @memberof PaymentReceiptClass
82
+ */
83
+ 'bankTransactionCode'?: string;
72
84
  /**
73
85
  * Time at which the object was created.
74
86
  * @type {string}
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { BankTransactionEntity } from './bank-transaction-entity';
13
+ import { PaymentRequestEntity } from './payment-request-entity';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaymentReceiptEntity
18
+ */
19
+ export interface PaymentReceiptEntity {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof PaymentReceiptEntity
24
+ */
25
+ 'id': number;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PaymentReceiptEntity
30
+ */
31
+ 'code': string;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof PaymentReceiptEntity
36
+ */
37
+ 'amount': number;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof PaymentReceiptEntity
42
+ */
43
+ 'currency': string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PaymentReceiptEntity
48
+ */
49
+ 'direction': PaymentReceiptEntityDirectionEnum;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof PaymentReceiptEntity
54
+ */
55
+ 'dateOfPayment': string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof PaymentReceiptEntity
60
+ */
61
+ 'paymentRequestCode'?: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof PaymentReceiptEntity
66
+ */
67
+ 'psp'?: string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof PaymentReceiptEntity
72
+ */
73
+ 'comment'?: string;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof PaymentReceiptEntity
78
+ */
79
+ 'paymentRequestNumber'?: string;
80
+ /**
81
+ *
82
+ * @type {PaymentRequestEntity}
83
+ * @memberof PaymentReceiptEntity
84
+ */
85
+ 'paymentRequest'?: PaymentRequestEntity;
86
+ /**
87
+ *
88
+ * @type {number}
89
+ * @memberof PaymentReceiptEntity
90
+ */
91
+ 'bankTransactionId'?: number;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof PaymentReceiptEntity
96
+ */
97
+ 'bankTransactionCode'?: string;
98
+ /**
99
+ *
100
+ * @type {BankTransactionEntity}
101
+ * @memberof PaymentReceiptEntity
102
+ */
103
+ 'bankTransaction'?: BankTransactionEntity;
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof PaymentReceiptEntity
108
+ */
109
+ 'createdAt'?: string;
110
+ /**
111
+ *
112
+ * @type {string}
113
+ * @memberof PaymentReceiptEntity
114
+ */
115
+ 'updatedAt'?: string;
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof PaymentReceiptEntity
120
+ */
121
+ 'deletedAt'?: string;
122
+ /**
123
+ *
124
+ * @type {string}
125
+ * @memberof PaymentReceiptEntity
126
+ */
127
+ 'owner': string;
128
+ /**
129
+ *
130
+ * @type {string}
131
+ * @memberof PaymentReceiptEntity
132
+ */
133
+ 'tenantHierarchy': string;
134
+ }
135
+ export declare const PaymentReceiptEntityDirectionEnum: {
136
+ readonly Collect: "collect";
137
+ readonly Disburse: "disburse";
138
+ };
139
+ export type PaymentReceiptEntityDirectionEnum = typeof PaymentReceiptEntityDirectionEnum[keyof typeof PaymentReceiptEntityDirectionEnum];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PaymentReceiptEntityDirectionEnum = void 0;
17
+ exports.PaymentReceiptEntityDirectionEnum = {
18
+ Collect: 'collect',
19
+ Disburse: 'disburse'
20
+ };
@@ -165,6 +165,7 @@ export type PaymentRequestClassDirectionEnum = typeof PaymentRequestClassDirecti
165
165
  export declare const PaymentRequestClassFinancialEntityTypeEnum: {
166
166
  readonly ClaimRegulation: "claim_regulation";
167
167
  readonly RefundAllocation: "refund_allocation";
168
+ readonly CommissionSettlement: "commission_settlement";
168
169
  readonly Other: "other";
169
170
  };
170
171
  export type PaymentRequestClassFinancialEntityTypeEnum = typeof PaymentRequestClassFinancialEntityTypeEnum[keyof typeof PaymentRequestClassFinancialEntityTypeEnum];
@@ -21,6 +21,7 @@ exports.PaymentRequestClassDirectionEnum = {
21
21
  exports.PaymentRequestClassFinancialEntityTypeEnum = {
22
22
  ClaimRegulation: 'claim_regulation',
23
23
  RefundAllocation: 'refund_allocation',
24
+ CommissionSettlement: 'commission_settlement',
24
25
  Other: 'other'
25
26
  };
26
27
  exports.PaymentRequestClassDomainEntityTypeEnum = {