@emilgroup/payment-sdk 1.22.1-beta.83 → 1.22.1-beta.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +48 -18
- package/api/bank-orders-api.ts +40 -15
- package/api/bank-transaction-api.ts +181 -26
- package/api/billing-addresses-api.ts +40 -15
- package/api/credit-allocation-api.ts +24 -9
- package/api/exceeding-credits-api.ts +240 -6
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +8 -3
- package/api/payment-methods-api.ts +24 -9
- package/api/payment-receipts-api.ts +40 -15
- package/api/payment-reminders-api.ts +32 -12
- package/api/payment-requests-api.ts +52 -27
- package/api/payment-setup-api.ts +16 -6
- package/api/payments-api.ts +46 -16
- package/api/payout-methods-api.ts +48 -18
- package/api/policy-payment-methods-api.ts +24 -9
- package/api/refunds-api.ts +24 -9
- package/api/tenant-bank-account-api.ts +40 -15
- package/api/webhooks-api.ts +2 -2
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +82 -46
- package/dist/api/bank-orders-api.d.ts +5 -5
- package/dist/api/bank-orders-api.js +67 -38
- package/dist/api/bank-transaction-api.d.ts +80 -14
- package/dist/api/bank-transaction-api.js +194 -52
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +71 -39
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +41 -23
- package/dist/api/exceeding-credits-api.d.ts +116 -2
- package/dist/api/exceeding-credits-api.js +226 -15
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +15 -8
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +41 -23
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +67 -38
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +56 -31
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +76 -47
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +30 -16
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +62 -34
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +82 -46
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +41 -23
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +37 -22
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +67 -38
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/bank-transaction-class.d.ts +7 -0
- package/dist/models/bank-transaction-entity.d.ts +7 -0
- package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
- package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
- package/dist/models/create-exceeding-credit-request-dto.js +15 -0
- package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/create-exceeding-credit-response-class.js +15 -0
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-request-dto.d.ts +6 -0
- package/dist/models/create-return-premium-credits-request-dto.d.ts +24 -0
- package/dist/models/create-return-premium-credits-request-dto.js +15 -0
- package/dist/models/create-return-premium-credits-response-class.d.ts +25 -0
- package/dist/models/create-return-premium-credits-response-class.js +15 -0
- package/dist/models/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/exceeding-credit-class.d.ts +25 -2
- package/dist/models/exceeding-credit-class.js +5 -1
- package/dist/models/exceeding-credit-entity.d.ts +31 -2
- package/dist/models/exceeding-credit-entity.js +5 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +6 -18
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +6 -18
- package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
- package/dist/models/payment-class.d.ts +2 -2
- package/dist/models/payment-entity.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +13 -1
- package/dist/models/payment-receipt-entity.d.ts +139 -0
- package/dist/models/payment-receipt-entity.js +20 -0
- package/dist/models/payment-request-class.d.ts +13 -6
- package/dist/models/payment-request-class.js +1 -0
- package/dist/models/payment-request-entity.d.ts +223 -0
- package/dist/models/payment-request-entity.js +39 -0
- package/dist/models/shared-transaction-class.d.ts +6 -0
- package/dist/models/transaction-entity.d.ts +6 -0
- package/models/bank-transaction-class.ts +7 -0
- package/models/bank-transaction-entity.ts +7 -0
- package/models/bank-transaction-invoice-entity.ts +24 -0
- package/models/create-exceeding-credit-request-dto.ts +54 -0
- package/models/create-exceeding-credit-response-class.ts +31 -0
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +3 -3
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-request-request-dto.ts +6 -0
- package/models/create-return-premium-credits-request-dto.ts +30 -0
- package/models/create-return-premium-credits-response-class.ts +31 -0
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- package/models/exceeding-credit-class.ts +26 -2
- package/models/exceeding-credit-entity.ts +32 -2
- package/models/index.ts +8 -0
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
- package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +6 -18
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +6 -18
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +6 -18
- package/models/payment-class-without-expand-properties.ts +2 -2
- package/models/payment-class.ts +2 -2
- package/models/payment-entity.ts +1 -1
- package/models/payment-receipt-class.ts +13 -1
- package/models/payment-receipt-entity.ts +148 -0
- package/models/payment-request-class.ts +13 -6
- package/models/payment-request-entity.ts +233 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,39 @@
|
|
|
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.PaymentRequestEntityStatusEnum = exports.PaymentRequestEntityDomainEntityTypeEnum = exports.PaymentRequestEntityFinancialEntityTypeEnum = exports.PaymentRequestEntityDirectionEnum = void 0;
|
|
17
|
+
exports.PaymentRequestEntityDirectionEnum = {
|
|
18
|
+
Collect: 'collect',
|
|
19
|
+
Disburse: 'disburse'
|
|
20
|
+
};
|
|
21
|
+
exports.PaymentRequestEntityFinancialEntityTypeEnum = {
|
|
22
|
+
ClaimRegulation: 'claim_regulation',
|
|
23
|
+
RefundAllocation: 'refund_allocation',
|
|
24
|
+
CommissionSettlement: 'commission_settlement',
|
|
25
|
+
Other: 'other'
|
|
26
|
+
};
|
|
27
|
+
exports.PaymentRequestEntityDomainEntityTypeEnum = {
|
|
28
|
+
Other: 'other',
|
|
29
|
+
Claim: 'claim',
|
|
30
|
+
Policy: 'policy'
|
|
31
|
+
};
|
|
32
|
+
exports.PaymentRequestEntityStatusEnum = {
|
|
33
|
+
Open: 'open',
|
|
34
|
+
Approved: 'approved',
|
|
35
|
+
Pending: 'pending',
|
|
36
|
+
Paid: 'paid',
|
|
37
|
+
Failed: 'failed',
|
|
38
|
+
Withdrawn: 'withdrawn'
|
|
39
|
+
};
|
|
@@ -69,4 +69,10 @@ export interface SharedTransactionClass {
|
|
|
69
69
|
* @memberof SharedTransactionClass
|
|
70
70
|
*/
|
|
71
71
|
'updatedBy': string;
|
|
72
|
+
/**
|
|
73
|
+
* Code of the bank transaction this transaction was matched from. Absent for payments that did not come from a bank transaction.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof SharedTransactionClass
|
|
76
|
+
*/
|
|
77
|
+
'bankTransactionCode'?: string;
|
|
72
78
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { BankOrderClass } from './bank-order-class';
|
|
17
17
|
import { BankTransactionInvoiceClass } from './bank-transaction-invoice-class';
|
|
18
18
|
import { InvoiceMatchSuggestionClass } from './invoice-match-suggestion-class';
|
|
19
|
+
import { PaymentReceiptClass } from './payment-receipt-class';
|
|
19
20
|
import { SuggestionGenerationProgressClass } from './suggestion-generation-progress-class';
|
|
20
21
|
import { TenantBankAccountClassWithoutExpandProperties } from './tenant-bank-account-class-without-expand-properties';
|
|
21
22
|
|
|
@@ -157,6 +158,12 @@ export interface BankTransactionClass {
|
|
|
157
158
|
* @memberof BankTransactionClass
|
|
158
159
|
*/
|
|
159
160
|
'suggestionGenerationProgress'?: SuggestionGenerationProgressClass;
|
|
161
|
+
/**
|
|
162
|
+
* Payment receipts created by linking this outgoing transaction to payment requests
|
|
163
|
+
* @type {Array<PaymentReceiptClass>}
|
|
164
|
+
* @memberof BankTransactionClass
|
|
165
|
+
*/
|
|
166
|
+
'paymentReceipts'?: Array<PaymentReceiptClass>;
|
|
160
167
|
}
|
|
161
168
|
|
|
162
169
|
export const BankTransactionClassLabelEnum = {
|
|
@@ -17,6 +17,7 @@ import { BankOrderEntity } from './bank-order-entity';
|
|
|
17
17
|
import { BankTransactionInvoiceEntity } from './bank-transaction-invoice-entity';
|
|
18
18
|
import { ExceedingCreditEntity } from './exceeding-credit-entity';
|
|
19
19
|
import { InvoiceMatchSuggestionEntity } from './invoice-match-suggestion-entity';
|
|
20
|
+
import { PaymentReceiptEntity } from './payment-receipt-entity';
|
|
20
21
|
import { SuggestionGenerationProgressEntity } from './suggestion-generation-progress-entity';
|
|
21
22
|
import { TenantBankAccountEntity } from './tenant-bank-account-entity';
|
|
22
23
|
|
|
@@ -140,6 +141,12 @@ export interface BankTransactionEntity {
|
|
|
140
141
|
* @memberof BankTransactionEntity
|
|
141
142
|
*/
|
|
142
143
|
'exceedingCredits': Array<ExceedingCreditEntity>;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {Array<PaymentReceiptEntity>}
|
|
147
|
+
* @memberof BankTransactionEntity
|
|
148
|
+
*/
|
|
149
|
+
'paymentReceipts': Array<PaymentReceiptEntity>;
|
|
143
150
|
/**
|
|
144
151
|
*
|
|
145
152
|
* @type {string}
|
|
@@ -82,6 +82,30 @@ export interface BankTransactionInvoiceEntity {
|
|
|
82
82
|
* @memberof BankTransactionInvoiceEntity
|
|
83
83
|
*/
|
|
84
84
|
'bankTransaction': BankTransactionEntity;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof BankTransactionInvoiceEntity
|
|
89
|
+
*/
|
|
90
|
+
'unlinkCode'?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof BankTransactionInvoiceEntity
|
|
95
|
+
*/
|
|
96
|
+
'unlinkedPaymentCode'?: string | null;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<string>}
|
|
100
|
+
* @memberof BankTransactionInvoiceEntity
|
|
101
|
+
*/
|
|
102
|
+
'unlinkedCreditCodes'?: Array<string> | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof BankTransactionInvoiceEntity
|
|
107
|
+
*/
|
|
108
|
+
'unlinkEventPublishedAt'?: string | null;
|
|
85
109
|
/**
|
|
86
110
|
*
|
|
87
111
|
* @type {string}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CreateExceedingCreditRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateExceedingCreditRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The amount of the credit
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'amount': number;
|
|
29
|
+
/**
|
|
30
|
+
* The description of the credit
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'description'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The policy code of the credit
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'policyCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* The transaction code of the credit
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'bankTransactionCode': string;
|
|
47
|
+
/**
|
|
48
|
+
* The invoice code of the credit
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateExceedingCreditRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'invoiceCode': string;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { ExceedingCreditClass } from './exceeding-credit-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateExceedingCreditResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateExceedingCreditResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Exceeding credit
|
|
26
|
+
* @type {ExceedingCreditClass}
|
|
27
|
+
* @memberof CreateExceedingCreditResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'exceedingCredit': ExceedingCreditClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -33,7 +33,7 @@ export interface CreatePaymentOrderDto {
|
|
|
33
33
|
*/
|
|
34
34
|
'comment'?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The payment date: a calendar date, not a point in time. Send the date alone (`2026-10-10`), which is read as midnight UTC of that day, or a timestamp at midnight UTC (`2026-10-10T00:00:00.000Z`). Timestamps are read as UTC: any other time is stored as the instant it names and books on that instant’s UTC calendar day, so a local midnight east of UTC (`2026-10-10T00:00:00+02:00`) books on the previous day.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreatePaymentOrderDto
|
|
39
39
|
*/
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface CreatePaymentReceiptRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Amount in cents, always positive. In the payment request\'s direction it pays the request, at most what it still has open; in the opposite direction it records money that came back, at most what its receipts have paid.
|
|
25
25
|
* @type {number}
|
|
26
26
|
* @memberof CreatePaymentReceiptRequestDto
|
|
27
27
|
*/
|
|
@@ -33,13 +33,13 @@ export interface CreatePaymentReceiptRequestDto {
|
|
|
33
33
|
*/
|
|
34
34
|
'currency': string;
|
|
35
35
|
/**
|
|
36
|
-
* The flow of the payment: disburse or collect
|
|
36
|
+
* The flow of the payment: disburse or collect. The payment request\'s own direction pays it; the opposite direction records money that came back, for example a returned payout is collect on a disburse request.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreatePaymentReceiptRequestDto
|
|
39
39
|
*/
|
|
40
40
|
'direction': CreatePaymentReceiptRequestDtoDirectionEnum;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* The payment date: a calendar date, not a point in time. Send the date alone (`2026-10-10`), which is read as midnight UTC of that day, or a timestamp at midnight UTC (`2026-10-10T00:00:00.000Z`). Timestamps are read as UTC: any other time is stored as the instant it names and books on that instant’s UTC calendar day, so a local midnight east of UTC (`2026-10-10T00:00:00+02:00`) books on the previous day.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof CreatePaymentReceiptRequestDto
|
|
45
45
|
*/
|
|
@@ -63,7 +63,7 @@ export interface CreatePaymentRequestDto {
|
|
|
63
63
|
*/
|
|
64
64
|
'productSlug'?: string;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* The payment date: a calendar date, not a point in time. Send the date alone (`2026-10-10`), which is read as midnight UTC of that day, or a timestamp at midnight UTC (`2026-10-10T00:00:00.000Z`). Timestamps are read as UTC: any other time is stored as the instant it names and books on that instant’s UTC calendar day, so a local midnight east of UTC (`2026-10-10T00:00:00+02:00`) books on the previous day.
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof CreatePaymentRequestDto
|
|
69
69
|
*/
|
|
@@ -74,6 +74,12 @@ 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;
|
|
77
83
|
/**
|
|
78
84
|
* Code of the partner the payment request was created for.
|
|
79
85
|
* @type {string}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CreateReturnPremiumCreditsRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateReturnPremiumCreditsRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The code of the reversing document (withdrawal, correction or final invoice) to create the return-premium credits for
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateReturnPremiumCreditsRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'reversingInvoiceCode': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { ExceedingCreditClass } from './exceeding-credit-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateReturnPremiumCreditsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateReturnPremiumCreditsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The return-premium credits of the reversing document, one per reversed invoice that gets money back
|
|
26
|
+
* @type {Array<ExceedingCreditClass>}
|
|
27
|
+
* @memberof CreateReturnPremiumCreditsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'exceedingCredits': Array<ExceedingCreditClass>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -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,11 +33,29 @@ export interface ExceedingCreditClass {
|
|
|
33
33
|
*/
|
|
34
34
|
'currency'?: ExceedingCreditClassCurrencyEnum;
|
|
35
35
|
/**
|
|
36
|
-
* The bank transaction code of the credit
|
|
36
|
+
* The bank transaction code of the credit; empty on a return-premium credit, which no bank transaction caused
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof ExceedingCreditClass
|
|
39
39
|
*/
|
|
40
|
-
'bankTransactionCode'
|
|
40
|
+
'bankTransactionCode'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Where the credit comes from: overpayment (the customer paid more than invoiced) or return_premium (a reversing document gave back more than the customer still owes)
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ExceedingCreditClass
|
|
45
|
+
*/
|
|
46
|
+
'origin': ExceedingCreditClassOriginEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The withdrawal, correction or termination invoice that caused a return-premium credit
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ExceedingCreditClass
|
|
51
|
+
*/
|
|
52
|
+
'reversingInvoiceCode'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The number of the invoice that caused a return-premium credit
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ExceedingCreditClass
|
|
57
|
+
*/
|
|
58
|
+
'reversingInvoiceNumber'?: string;
|
|
41
59
|
/**
|
|
42
60
|
* The description of the credit
|
|
43
61
|
* @type {string}
|
|
@@ -127,5 +145,11 @@ export const ExceedingCreditClassCurrencyEnum = {
|
|
|
127
145
|
} as const;
|
|
128
146
|
|
|
129
147
|
export type ExceedingCreditClassCurrencyEnum = typeof ExceedingCreditClassCurrencyEnum[keyof typeof ExceedingCreditClassCurrencyEnum];
|
|
148
|
+
export const ExceedingCreditClassOriginEnum = {
|
|
149
|
+
Overpayment: 'overpayment',
|
|
150
|
+
ReturnPremium: 'return_premium'
|
|
151
|
+
} as const;
|
|
152
|
+
|
|
153
|
+
export type ExceedingCreditClassOriginEnum = typeof ExceedingCreditClassOriginEnum[keyof typeof ExceedingCreditClassOriginEnum];
|
|
130
154
|
|
|
131
155
|
|
|
@@ -63,19 +63,37 @@ export interface ExceedingCreditEntity {
|
|
|
63
63
|
* @type {number}
|
|
64
64
|
* @memberof ExceedingCreditEntity
|
|
65
65
|
*/
|
|
66
|
-
'bankTransactionId'
|
|
66
|
+
'bankTransactionId'?: number;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {BankTransactionEntity}
|
|
70
70
|
* @memberof ExceedingCreditEntity
|
|
71
71
|
*/
|
|
72
|
-
'bankTransaction'
|
|
72
|
+
'bankTransaction'?: BankTransactionEntity;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof ExceedingCreditEntity
|
|
77
77
|
*/
|
|
78
78
|
'bankTransactionCode': string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ExceedingCreditEntity
|
|
83
|
+
*/
|
|
84
|
+
'origin': ExceedingCreditEntityOriginEnum;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ExceedingCreditEntity
|
|
89
|
+
*/
|
|
90
|
+
'reversingInvoiceCode'?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof ExceedingCreditEntity
|
|
95
|
+
*/
|
|
96
|
+
'reversingInvoiceNumber'?: string;
|
|
79
97
|
/**
|
|
80
98
|
*
|
|
81
99
|
* @type {string}
|
|
@@ -136,6 +154,12 @@ export interface ExceedingCreditEntity {
|
|
|
136
154
|
* @memberof ExceedingCreditEntity
|
|
137
155
|
*/
|
|
138
156
|
'tenantHierarchy': string;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {boolean}
|
|
160
|
+
* @memberof ExceedingCreditEntity
|
|
161
|
+
*/
|
|
162
|
+
'createdEventPending': boolean;
|
|
139
163
|
}
|
|
140
164
|
|
|
141
165
|
export const ExceedingCreditEntityCurrencyEnum = {
|
|
@@ -153,5 +177,11 @@ export const ExceedingCreditEntityCurrencyEnum = {
|
|
|
153
177
|
} as const;
|
|
154
178
|
|
|
155
179
|
export type ExceedingCreditEntityCurrencyEnum = typeof ExceedingCreditEntityCurrencyEnum[keyof typeof ExceedingCreditEntityCurrencyEnum];
|
|
180
|
+
export const ExceedingCreditEntityOriginEnum = {
|
|
181
|
+
Overpayment: 'overpayment',
|
|
182
|
+
ReturnPremium: 'return_premium'
|
|
183
|
+
} as const;
|
|
184
|
+
|
|
185
|
+
export type ExceedingCreditEntityOriginEnum = typeof ExceedingCreditEntityOriginEnum[keyof typeof ExceedingCreditEntityOriginEnum];
|
|
156
186
|
|
|
157
187
|
|
package/models/index.ts
CHANGED
|
@@ -31,6 +31,8 @@ export * from './create-billing-address-request-dto';
|
|
|
31
31
|
export * from './create-billing-address-response-class';
|
|
32
32
|
export * from './create-credit-allocation-request-dto';
|
|
33
33
|
export * from './create-credit-allocation-response-class';
|
|
34
|
+
export * from './create-exceeding-credit-request-dto';
|
|
35
|
+
export * from './create-exceeding-credit-response-class';
|
|
34
36
|
export * from './create-payment-method-response-class';
|
|
35
37
|
export * from './create-payment-order-dto';
|
|
36
38
|
export * from './create-payment-order-request-dto';
|
|
@@ -50,6 +52,8 @@ export * from './create-policy-payment-method-response-class';
|
|
|
50
52
|
export * from './create-psp-payment-method-request-dto';
|
|
51
53
|
export * from './create-refund-request-dto';
|
|
52
54
|
export * from './create-refund-response-class';
|
|
55
|
+
export * from './create-return-premium-credits-request-dto';
|
|
56
|
+
export * from './create-return-premium-credits-response-class';
|
|
53
57
|
export * from './create-tenant-bank-account-request-dto';
|
|
54
58
|
export * from './create-tenant-bank-account-response-class';
|
|
55
59
|
export * from './credit-allocation-class';
|
|
@@ -90,6 +94,8 @@ export * from './inline-response503';
|
|
|
90
94
|
export * from './invoice-allocation-dto';
|
|
91
95
|
export * from './invoice-match-suggestion-class';
|
|
92
96
|
export * from './invoice-match-suggestion-entity';
|
|
97
|
+
export * from './link-bank-transaction-payment-requests-request-dto-rest';
|
|
98
|
+
export * from './link-bank-transaction-payment-requests-response-class';
|
|
93
99
|
export * from './link-bank-transaction-request-dto-rest';
|
|
94
100
|
export * from './link-bank-transactions-response-class';
|
|
95
101
|
export * from './list-bank-accounts-response-class';
|
|
@@ -115,8 +121,10 @@ export * from './payment-class-without-expand-properties';
|
|
|
115
121
|
export * from './payment-entity';
|
|
116
122
|
export * from './payment-method-class';
|
|
117
123
|
export * from './payment-receipt-class';
|
|
124
|
+
export * from './payment-receipt-entity';
|
|
118
125
|
export * from './payment-reminder-class';
|
|
119
126
|
export * from './payment-request-class';
|
|
127
|
+
export * from './payment-request-entity';
|
|
120
128
|
export * from './payout-method-class';
|
|
121
129
|
export * from './policy-payment-method-class';
|
|
122
130
|
export * from './primary-bank-account-response-class';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface LinkBankTransactionPaymentRequestsRequestDtoRest
|
|
21
|
+
*/
|
|
22
|
+
export interface LinkBankTransactionPaymentRequestsRequestDtoRest {
|
|
23
|
+
/**
|
|
24
|
+
* 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.
|
|
25
|
+
* @type {Array<string>}
|
|
26
|
+
* @memberof LinkBankTransactionPaymentRequestsRequestDtoRest
|
|
27
|
+
*/
|
|
28
|
+
'paymentRequestCodes': Array<string>;
|
|
29
|
+
/**
|
|
30
|
+
* 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.
|
|
31
|
+
* @type {Array<string>}
|
|
32
|
+
* @memberof LinkBankTransactionPaymentRequestsRequestDtoRest
|
|
33
|
+
*/
|
|
34
|
+
'bankOrderCodes'?: Array<string>;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { BankTransactionClass } from './bank-transaction-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface LinkBankTransactionPaymentRequestsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface LinkBankTransactionPaymentRequestsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The linked bank transaction, with the payment receipts the link created
|
|
26
|
+
* @type {BankTransactionClass}
|
|
27
|
+
* @memberof LinkBankTransactionPaymentRequestsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'bankTransaction': BankTransactionClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -22,17 +22,17 @@ import { BillingAddressClass } from './billing-address-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListBillingAddressesResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* The billing addresses
|
|
26
|
+
* @type {Array<BillingAddressClass>}
|
|
27
27
|
* @memberof ListBillingAddressesResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'items': Array<BillingAddressClass>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof ListBillingAddressesResponseClass
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'nextPageToken': string;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListBillingAddressesResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* Total amount of items.
|
|
44
|
+
* @type {number}
|
|
45
45
|
* @memberof ListBillingAddressesResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'totalItems': number;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,29 +21,17 @@ import { ExceedingCreditClass } from './exceeding-credit-class';
|
|
|
21
21
|
* @interface ListExceedingCreditsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListExceedingCreditsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Next page token.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'nextPageToken': string;
|
|
30
|
-
/**
|
|
31
|
-
* Total amount of items.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'totalItems': number;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListExceedingCreditsResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
24
|
/**
|
|
43
25
|
* The list of exceeding credits.
|
|
44
26
|
* @type {Array<ExceedingCreditClass>}
|
|
45
27
|
* @memberof ListExceedingCreditsResponseClass
|
|
46
28
|
*/
|
|
47
29
|
'items': Array<ExceedingCreditClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListExceedingCreditsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
48
36
|
}
|
|
49
37
|
|