@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
|
@@ -22,17 +22,17 @@ import { PaymentReceiptClass } from './payment-receipt-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPaymentReceiptsResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* The list of payment receipts.
|
|
26
|
+
* @type {Array<PaymentReceiptClass>}
|
|
27
27
|
* @memberof ListPaymentReceiptsResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'items': Array<PaymentReceiptClass>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof ListPaymentReceiptsResponseClass
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'nextPageToken': string;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListPaymentReceiptsResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* Total amount of items.
|
|
44
|
+
* @type {number}
|
|
45
45
|
* @memberof ListPaymentReceiptsResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'totalItems': number;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,29 +21,17 @@ import { PaymentRequestClass } from './payment-request-class';
|
|
|
21
21
|
* @interface ListPaymentRequestsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPaymentRequestsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Next page token.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ListPaymentRequestsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'nextPageToken': string;
|
|
30
|
-
/**
|
|
31
|
-
* Total amount of items.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ListPaymentRequestsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'totalItems': number;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListPaymentRequestsResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
24
|
/**
|
|
43
25
|
* The list of payment requests.
|
|
44
26
|
* @type {Array<PaymentRequestClass>}
|
|
45
27
|
* @memberof ListPaymentRequestsResponseClass
|
|
46
28
|
*/
|
|
47
29
|
'items': Array<PaymentRequestClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListPaymentRequestsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
48
36
|
}
|
|
49
37
|
|
|
@@ -22,17 +22,17 @@ import { PayoutMethodClass } from './payout-method-class';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface ListPayoutMethodsResponseClass {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* The payout methods
|
|
26
|
+
* @type {Array<PayoutMethodClass>}
|
|
27
27
|
* @memberof ListPayoutMethodsResponseClass
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'items': Array<PayoutMethodClass>;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof ListPayoutMethodsResponseClass
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'nextPageToken': string;
|
|
36
36
|
/**
|
|
37
37
|
* Items per page.
|
|
38
38
|
* @type {number}
|
|
@@ -40,10 +40,10 @@ export interface ListPayoutMethodsResponseClass {
|
|
|
40
40
|
*/
|
|
41
41
|
'itemsPerPage': number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* Total amount of items.
|
|
44
|
+
* @type {number}
|
|
45
45
|
* @memberof ListPayoutMethodsResponseClass
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'totalItems': number;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -21,29 +21,17 @@ import { RefundClass } from './refund-class';
|
|
|
21
21
|
* @interface ListRefundsResponseClass
|
|
22
22
|
*/
|
|
23
23
|
export interface ListRefundsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* Next page token.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ListRefundsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'nextPageToken': string;
|
|
30
|
-
/**
|
|
31
|
-
* Total amount of items.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof ListRefundsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'totalItems': number;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListRefundsResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
24
|
/**
|
|
43
25
|
* The list of refunds.
|
|
44
26
|
* @type {Array<RefundClass>}
|
|
45
27
|
* @memberof ListRefundsResponseClass
|
|
46
28
|
*/
|
|
47
29
|
'items': Array<RefundClass>;
|
|
30
|
+
/**
|
|
31
|
+
* Next page token.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListRefundsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
48
36
|
}
|
|
49
37
|
|
|
@@ -49,7 +49,7 @@ export interface PaymentClassWithoutExpandProperties {
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof PaymentClassWithoutExpandProperties
|
|
51
51
|
*/
|
|
52
|
-
'partnerCode'
|
|
52
|
+
'partnerCode': string;
|
|
53
53
|
/**
|
|
54
54
|
* Amount to be paid in cents. 100 to charge 1€.
|
|
55
55
|
* @type {number}
|
|
@@ -81,7 +81,7 @@ export interface PaymentClassWithoutExpandProperties {
|
|
|
81
81
|
*/
|
|
82
82
|
'productSlug'?: string;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
|
|
85
85
|
* @type {string}
|
|
86
86
|
* @memberof PaymentClassWithoutExpandProperties
|
|
87
87
|
*/
|
package/models/payment-class.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface PaymentClass {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof PaymentClass
|
|
52
52
|
*/
|
|
53
|
-
'partnerCode'
|
|
53
|
+
'partnerCode': string;
|
|
54
54
|
/**
|
|
55
55
|
* Amount to be paid in cents. 100 to charge 1€.
|
|
56
56
|
* @type {number}
|
|
@@ -88,7 +88,7 @@ export interface PaymentClass {
|
|
|
88
88
|
*/
|
|
89
89
|
'productSlug'?: string;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof PaymentClass
|
|
94
94
|
*/
|
package/models/payment-entity.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface PaymentReceiptClass {
|
|
|
51
51
|
*/
|
|
52
52
|
'direction': PaymentReceiptClassDirectionEnum;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The payment date, a calendar date: its UTC calendar day is the day the payment books on. Read it in UTC; converting it to a local time zone shows the previous day west of UTC.
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof PaymentReceiptClass
|
|
57
57
|
*/
|
|
@@ -62,6 +62,12 @@ export interface PaymentReceiptClass {
|
|
|
62
62
|
* @memberof PaymentReceiptClass
|
|
63
63
|
*/
|
|
64
64
|
'paymentRequestCode'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The number of the payment request the payment receipt pays; read from the payment request, not stored on the receipt.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PaymentReceiptClass
|
|
69
|
+
*/
|
|
70
|
+
'paymentRequestNumber'?: string;
|
|
65
71
|
/**
|
|
66
72
|
* The payment service provider that produced the payment receipt.
|
|
67
73
|
* @type {string}
|
|
@@ -74,6 +80,12 @@ export interface PaymentReceiptClass {
|
|
|
74
80
|
* @memberof PaymentReceiptClass
|
|
75
81
|
*/
|
|
76
82
|
'comment'?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The code of the bank transaction whose link created the payment receipt; unset for a receipt created by hand.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof PaymentReceiptClass
|
|
87
|
+
*/
|
|
88
|
+
'bankTransactionCode'?: string;
|
|
77
89
|
/**
|
|
78
90
|
* Time at which the object was created.
|
|
79
91
|
* @type {string}
|
|
@@ -0,0 +1,148 @@
|
|
|
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 { BankTransactionEntity } from './bank-transaction-entity';
|
|
17
|
+
import { PaymentRequestEntity } from './payment-request-entity';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface PaymentReceiptEntity
|
|
23
|
+
*/
|
|
24
|
+
export interface PaymentReceiptEntity {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaymentReceiptEntity
|
|
29
|
+
*/
|
|
30
|
+
'id': number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PaymentReceiptEntity
|
|
35
|
+
*/
|
|
36
|
+
'code': string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaymentReceiptEntity
|
|
41
|
+
*/
|
|
42
|
+
'amount': number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PaymentReceiptEntity
|
|
47
|
+
*/
|
|
48
|
+
'currency': string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PaymentReceiptEntity
|
|
53
|
+
*/
|
|
54
|
+
'direction': PaymentReceiptEntityDirectionEnum;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PaymentReceiptEntity
|
|
59
|
+
*/
|
|
60
|
+
'dateOfPayment': string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PaymentReceiptEntity
|
|
65
|
+
*/
|
|
66
|
+
'paymentRequestCode'?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PaymentReceiptEntity
|
|
71
|
+
*/
|
|
72
|
+
'psp'?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof PaymentReceiptEntity
|
|
77
|
+
*/
|
|
78
|
+
'comment'?: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof PaymentReceiptEntity
|
|
83
|
+
*/
|
|
84
|
+
'paymentRequestNumber'?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {PaymentRequestEntity}
|
|
88
|
+
* @memberof PaymentReceiptEntity
|
|
89
|
+
*/
|
|
90
|
+
'paymentRequest'?: PaymentRequestEntity;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof PaymentReceiptEntity
|
|
95
|
+
*/
|
|
96
|
+
'bankTransactionId'?: number;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof PaymentReceiptEntity
|
|
101
|
+
*/
|
|
102
|
+
'bankTransactionCode'?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {BankTransactionEntity}
|
|
106
|
+
* @memberof PaymentReceiptEntity
|
|
107
|
+
*/
|
|
108
|
+
'bankTransaction'?: BankTransactionEntity;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof PaymentReceiptEntity
|
|
113
|
+
*/
|
|
114
|
+
'createdAt'?: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof PaymentReceiptEntity
|
|
119
|
+
*/
|
|
120
|
+
'updatedAt'?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof PaymentReceiptEntity
|
|
125
|
+
*/
|
|
126
|
+
'deletedAt'?: string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof PaymentReceiptEntity
|
|
131
|
+
*/
|
|
132
|
+
'owner': string;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof PaymentReceiptEntity
|
|
137
|
+
*/
|
|
138
|
+
'tenantHierarchy': string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export const PaymentReceiptEntityDirectionEnum = {
|
|
142
|
+
Collect: 'collect',
|
|
143
|
+
Disburse: 'disburse'
|
|
144
|
+
} as const;
|
|
145
|
+
|
|
146
|
+
export type PaymentReceiptEntityDirectionEnum = typeof PaymentReceiptEntityDirectionEnum[keyof typeof PaymentReceiptEntityDirectionEnum];
|
|
147
|
+
|
|
148
|
+
|
|
@@ -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 bank order that contains this payment request. Absent while the request is in no bank order.
|
|
104
116
|
* @type {string}
|
|
@@ -117,12 +129,6 @@ export interface PaymentRequestClass {
|
|
|
117
129
|
* @memberof PaymentRequestClass
|
|
118
130
|
*/
|
|
119
131
|
'recipientHasBankDetails'?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Code of the partner the payment request was created for.
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof PaymentRequestClass
|
|
124
|
-
*/
|
|
125
|
-
'partnerCode': string;
|
|
126
132
|
/**
|
|
127
133
|
* Code of the payment method used for this payment request.
|
|
128
134
|
* @type {string}
|
|
@@ -164,6 +170,7 @@ export type PaymentRequestClassDirectionEnum = typeof PaymentRequestClassDirecti
|
|
|
164
170
|
export const PaymentRequestClassFinancialEntityTypeEnum = {
|
|
165
171
|
ClaimRegulation: 'claim_regulation',
|
|
166
172
|
RefundAllocation: 'refund_allocation',
|
|
173
|
+
CommissionSettlement: 'commission_settlement',
|
|
167
174
|
Other: 'other'
|
|
168
175
|
} as const;
|
|
169
176
|
|
|
@@ -0,0 +1,233 @@
|
|
|
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 { CreditAllocationEntity } from './credit-allocation-entity';
|
|
17
|
+
import { PaymentReceiptEntity } from './payment-receipt-entity';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface PaymentRequestEntity
|
|
23
|
+
*/
|
|
24
|
+
export interface PaymentRequestEntity {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaymentRequestEntity
|
|
29
|
+
*/
|
|
30
|
+
'id': number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PaymentRequestEntity
|
|
35
|
+
*/
|
|
36
|
+
'code': string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PaymentRequestEntity
|
|
41
|
+
*/
|
|
42
|
+
'paymentRequestNumber': string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof PaymentRequestEntity
|
|
47
|
+
*/
|
|
48
|
+
'amount': number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PaymentRequestEntity
|
|
53
|
+
*/
|
|
54
|
+
'currency': string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PaymentRequestEntity
|
|
59
|
+
*/
|
|
60
|
+
'direction': PaymentRequestEntityDirectionEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PaymentRequestEntity
|
|
65
|
+
*/
|
|
66
|
+
'financialEntityCode': string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PaymentRequestEntity
|
|
71
|
+
*/
|
|
72
|
+
'financialEntityNumber': string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof PaymentRequestEntity
|
|
77
|
+
*/
|
|
78
|
+
'financialEntityType': PaymentRequestEntityFinancialEntityTypeEnum;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof PaymentRequestEntity
|
|
83
|
+
*/
|
|
84
|
+
'domainEntityCode': string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof PaymentRequestEntity
|
|
89
|
+
*/
|
|
90
|
+
'domainEntityNumber': string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof PaymentRequestEntity
|
|
95
|
+
*/
|
|
96
|
+
'domainEntityType': PaymentRequestEntityDomainEntityTypeEnum;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof PaymentRequestEntity
|
|
101
|
+
*/
|
|
102
|
+
'status': PaymentRequestEntityStatusEnum;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof PaymentRequestEntity
|
|
107
|
+
*/
|
|
108
|
+
'partnerCode': string;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof PaymentRequestEntity
|
|
113
|
+
*/
|
|
114
|
+
'paymentMethodCode'?: string;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof PaymentRequestEntity
|
|
119
|
+
*/
|
|
120
|
+
'paymentMethodType'?: string;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof PaymentRequestEntity
|
|
125
|
+
*/
|
|
126
|
+
'paymentMethodPsp'?: string;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof PaymentRequestEntity
|
|
131
|
+
*/
|
|
132
|
+
'settlementCode'?: string;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof PaymentRequestEntity
|
|
137
|
+
*/
|
|
138
|
+
'bankOrderCode'?: string;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof PaymentRequestEntity
|
|
143
|
+
*/
|
|
144
|
+
'bankOrderNumber'?: string;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @type {boolean}
|
|
148
|
+
* @memberof PaymentRequestEntity
|
|
149
|
+
*/
|
|
150
|
+
'recipientHasBankDetails'?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {Array<PaymentReceiptEntity>}
|
|
154
|
+
* @memberof PaymentRequestEntity
|
|
155
|
+
*/
|
|
156
|
+
'paymentReceipts': Array<PaymentReceiptEntity>;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {CreditAllocationEntity}
|
|
160
|
+
* @memberof PaymentRequestEntity
|
|
161
|
+
*/
|
|
162
|
+
'creditAllocation'?: CreditAllocationEntity;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {{ [key: string]: object; }}
|
|
166
|
+
* @memberof PaymentRequestEntity
|
|
167
|
+
*/
|
|
168
|
+
'metadata'?: { [key: string]: object; };
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof PaymentRequestEntity
|
|
173
|
+
*/
|
|
174
|
+
'createdAt': string;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof PaymentRequestEntity
|
|
179
|
+
*/
|
|
180
|
+
'updatedAt': string;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @memberof PaymentRequestEntity
|
|
185
|
+
*/
|
|
186
|
+
'deletedAt'?: string;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof PaymentRequestEntity
|
|
191
|
+
*/
|
|
192
|
+
'owner': string;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof PaymentRequestEntity
|
|
197
|
+
*/
|
|
198
|
+
'tenantHierarchy': string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export const PaymentRequestEntityDirectionEnum = {
|
|
202
|
+
Collect: 'collect',
|
|
203
|
+
Disburse: 'disburse'
|
|
204
|
+
} as const;
|
|
205
|
+
|
|
206
|
+
export type PaymentRequestEntityDirectionEnum = typeof PaymentRequestEntityDirectionEnum[keyof typeof PaymentRequestEntityDirectionEnum];
|
|
207
|
+
export const PaymentRequestEntityFinancialEntityTypeEnum = {
|
|
208
|
+
ClaimRegulation: 'claim_regulation',
|
|
209
|
+
RefundAllocation: 'refund_allocation',
|
|
210
|
+
CommissionSettlement: 'commission_settlement',
|
|
211
|
+
Other: 'other'
|
|
212
|
+
} as const;
|
|
213
|
+
|
|
214
|
+
export type PaymentRequestEntityFinancialEntityTypeEnum = typeof PaymentRequestEntityFinancialEntityTypeEnum[keyof typeof PaymentRequestEntityFinancialEntityTypeEnum];
|
|
215
|
+
export const PaymentRequestEntityDomainEntityTypeEnum = {
|
|
216
|
+
Other: 'other',
|
|
217
|
+
Claim: 'claim',
|
|
218
|
+
Policy: 'policy'
|
|
219
|
+
} as const;
|
|
220
|
+
|
|
221
|
+
export type PaymentRequestEntityDomainEntityTypeEnum = typeof PaymentRequestEntityDomainEntityTypeEnum[keyof typeof PaymentRequestEntityDomainEntityTypeEnum];
|
|
222
|
+
export const PaymentRequestEntityStatusEnum = {
|
|
223
|
+
Open: 'open',
|
|
224
|
+
Approved: 'approved',
|
|
225
|
+
Pending: 'pending',
|
|
226
|
+
Paid: 'paid',
|
|
227
|
+
Failed: 'failed',
|
|
228
|
+
Withdrawn: 'withdrawn'
|
|
229
|
+
} as const;
|
|
230
|
+
|
|
231
|
+
export type PaymentRequestEntityStatusEnum = typeof PaymentRequestEntityStatusEnum[keyof typeof PaymentRequestEntityStatusEnum];
|
|
232
|
+
|
|
233
|
+
|
|
@@ -74,5 +74,11 @@ export interface SharedTransactionClass {
|
|
|
74
74
|
* @memberof SharedTransactionClass
|
|
75
75
|
*/
|
|
76
76
|
'updatedBy': string;
|
|
77
|
+
/**
|
|
78
|
+
* Code of the bank transaction this transaction was matched from. Absent for payments that did not come from a bank transaction.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof SharedTransactionClass
|
|
81
|
+
*/
|
|
82
|
+
'bankTransactionCode'?: string;
|
|
77
83
|
}
|
|
78
84
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/payment-sdk",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.84",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/payment-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "1.
|
|
21
|
+
"axios": "1.20.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
|