@emilgroup/payment-sdk-node 1.23.1-beta.2 → 1.23.1-beta.21

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 (45) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/api/ibanvalidator-api.ts +169 -0
  4. package/api/payment-requests-api.ts +697 -0
  5. package/api.ts +4 -0
  6. package/dist/api/ibanvalidator-api.d.ts +97 -0
  7. package/dist/api/ibanvalidator-api.js +228 -0
  8. package/dist/api/payment-requests-api.d.ts +393 -0
  9. package/dist/api/payment-requests-api.js +648 -0
  10. package/dist/api.d.ts +2 -0
  11. package/dist/api.js +2 -0
  12. package/dist/models/bank-data-class.d.ts +36 -0
  13. package/dist/models/bank-data-class.js +15 -0
  14. package/dist/models/create-payment-request-request-dto.d.ts +103 -0
  15. package/dist/models/create-payment-request-request-dto.js +32 -0
  16. package/dist/models/create-payment-request-response-class.d.ts +25 -0
  17. package/dist/models/create-payment-request-response-class.js +15 -0
  18. package/dist/models/get-payment-request-response-class.d.ts +25 -0
  19. package/dist/models/get-payment-request-response-class.js +15 -0
  20. package/dist/models/index.d.ts +10 -0
  21. package/dist/models/index.js +10 -0
  22. package/dist/models/list-payment-requests-response-class.d.ts +31 -0
  23. package/dist/models/list-payment-requests-response-class.js +15 -0
  24. package/dist/models/payment-request-class.d.ts +148 -0
  25. package/dist/models/payment-request-class.js +40 -0
  26. package/dist/models/update-payment-request-request-dto.d.ts +39 -0
  27. package/dist/models/update-payment-request-request-dto.js +24 -0
  28. package/dist/models/update-payment-request-response-class.d.ts +25 -0
  29. package/dist/models/update-payment-request-response-class.js +15 -0
  30. package/dist/models/validate-iban-request-dto.d.ts +24 -0
  31. package/dist/models/validate-iban-request-dto.js +15 -0
  32. package/dist/models/validate-iban-response-class.d.ts +31 -0
  33. package/dist/models/validate-iban-response-class.js +15 -0
  34. package/models/bank-data-class.ts +42 -0
  35. package/models/create-payment-request-request-dto.ts +114 -0
  36. package/models/create-payment-request-response-class.ts +31 -0
  37. package/models/get-payment-request-response-class.ts +31 -0
  38. package/models/index.ts +10 -0
  39. package/models/list-payment-requests-response-class.ts +37 -0
  40. package/models/payment-request-class.ts +160 -0
  41. package/models/update-payment-request-request-dto.ts +48 -0
  42. package/models/update-payment-request-response-class.ts +31 -0
  43. package/models/validate-iban-request-dto.ts +30 -0
  44. package/models/validate-iban-response-class.ts +37 -0
  45. package/package.json +1 -1
@@ -0,0 +1,39 @@
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 UpdatePaymentRequestRequestDto
16
+ */
17
+ export interface UpdatePaymentRequestRequestDto {
18
+ /**
19
+ * Unique identifier for the object.
20
+ * @type {string}
21
+ * @memberof UpdatePaymentRequestRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * New status for the payment request. Valid statuses: open, approved, pending, succeeded, failed, withdrawn
26
+ * @type {string}
27
+ * @memberof UpdatePaymentRequestRequestDto
28
+ */
29
+ 'status': UpdatePaymentRequestRequestDtoStatusEnum;
30
+ }
31
+ export declare const UpdatePaymentRequestRequestDtoStatusEnum: {
32
+ readonly Open: "open";
33
+ readonly Approved: "approved";
34
+ readonly Pending: "pending";
35
+ readonly Succeeded: "succeeded";
36
+ readonly Failed: "failed";
37
+ readonly Withdrawn: "withdrawn";
38
+ };
39
+ export type UpdatePaymentRequestRequestDtoStatusEnum = typeof UpdatePaymentRequestRequestDtoStatusEnum[keyof typeof UpdatePaymentRequestRequestDtoStatusEnum];
@@ -0,0 +1,24 @@
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.UpdatePaymentRequestRequestDtoStatusEnum = void 0;
17
+ exports.UpdatePaymentRequestRequestDtoStatusEnum = {
18
+ Open: 'open',
19
+ Approved: 'approved',
20
+ Pending: 'pending',
21
+ Succeeded: 'succeeded',
22
+ Failed: 'failed',
23
+ Withdrawn: 'withdrawn'
24
+ };
@@ -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 { PaymentRequestClass } from './payment-request-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdatePaymentRequestResponseClass
17
+ */
18
+ export interface UpdatePaymentRequestResponseClass {
19
+ /**
20
+ * The updated payment request with the new status.
21
+ * @type {PaymentRequestClass}
22
+ * @memberof UpdatePaymentRequestResponseClass
23
+ */
24
+ 'paymentRequest': PaymentRequestClass;
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 });
@@ -0,0 +1,24 @@
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 ValidateIbanRequestDto
16
+ */
17
+ export interface ValidateIbanRequestDto {
18
+ /**
19
+ * iban
20
+ * @type {string}
21
+ * @memberof ValidateIbanRequestDto
22
+ */
23
+ 'iban': string;
24
+ }
@@ -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,31 @@
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 { BankDataClass } from './bank-data-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ValidateIbanResponseClass
17
+ */
18
+ export interface ValidateIbanResponseClass {
19
+ /**
20
+ * valid
21
+ * @type {boolean}
22
+ * @memberof ValidateIbanResponseClass
23
+ */
24
+ 'valid': boolean;
25
+ /**
26
+ * bankData
27
+ * @type {BankDataClass}
28
+ * @memberof ValidateIbanResponseClass
29
+ */
30
+ 'bankData'?: BankDataClass;
31
+ }
@@ -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,42 @@
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 BankDataClass
21
+ */
22
+ export interface BankDataClass {
23
+ /**
24
+ * BIC
25
+ * @type {string}
26
+ * @memberof BankDataClass
27
+ */
28
+ 'bic': string;
29
+ /**
30
+ * Bank name
31
+ * @type {string}
32
+ * @memberof BankDataClass
33
+ */
34
+ 'name': string;
35
+ /**
36
+ * Bank code
37
+ * @type {string}
38
+ * @memberof BankDataClass
39
+ */
40
+ 'code': string;
41
+ }
42
+
@@ -0,0 +1,114 @@
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 CreatePaymentRequestRequestDto
21
+ */
22
+ export interface CreatePaymentRequestRequestDto {
23
+ /**
24
+ * Payment amount in cents. 100 to charge 1€.
25
+ * @type {number}
26
+ * @memberof CreatePaymentRequestRequestDto
27
+ */
28
+ 'amount': number;
29
+ /**
30
+ * Currency code for the payment request (ISO 4217 format).
31
+ * @type {string}
32
+ * @memberof CreatePaymentRequestRequestDto
33
+ */
34
+ 'currency': string;
35
+ /**
36
+ * Direction of the payment request. Collect for incoming payments, Disburse for outgoing payments.
37
+ * @type {string}
38
+ * @memberof CreatePaymentRequestRequestDto
39
+ */
40
+ 'direction': CreatePaymentRequestRequestDtoDirectionEnum;
41
+ /**
42
+ * Code of the financial entity (e.g., invoice code, claim adjustment code) that this payment request is associated with.
43
+ * @type {string}
44
+ * @memberof CreatePaymentRequestRequestDto
45
+ */
46
+ 'financialEntityCode': string;
47
+ /**
48
+ * Number of the financial entity (e.g., invoice number, claim adjustment number).
49
+ * @type {string}
50
+ * @memberof CreatePaymentRequestRequestDto
51
+ */
52
+ 'financialEntityNumber': string;
53
+ /**
54
+ * Type of the financial entity (e.g., invoice, claim_adjustment).
55
+ * @type {string}
56
+ * @memberof CreatePaymentRequestRequestDto
57
+ */
58
+ 'financialEntityType': CreatePaymentRequestRequestDtoFinancialEntityTypeEnum;
59
+ /**
60
+ * Code of the domain entity (e.g., policy code, claim code) that this payment request is associated with.
61
+ * @type {string}
62
+ * @memberof CreatePaymentRequestRequestDto
63
+ */
64
+ 'domainEntityCode': string;
65
+ /**
66
+ * Number of the domain entity (e.g., policy number, claim number).
67
+ * @type {string}
68
+ * @memberof CreatePaymentRequestRequestDto
69
+ */
70
+ 'domainEntityNumber': string;
71
+ /**
72
+ * Type of the domain entity (e.g., policy, claim).
73
+ * @type {string}
74
+ * @memberof CreatePaymentRequestRequestDto
75
+ */
76
+ 'domainEntityType': CreatePaymentRequestRequestDtoDomainEntityTypeEnum;
77
+ /**
78
+ * Code of the payment method to be used for this payment request. If not provided, a default payment method may be selected.
79
+ * @type {string}
80
+ * @memberof CreatePaymentRequestRequestDto
81
+ */
82
+ 'paymentMethodCode'?: string;
83
+ /**
84
+ * Optional field containing extra information about the payment request.
85
+ * @type {object}
86
+ * @memberof CreatePaymentRequestRequestDto
87
+ */
88
+ 'metadata'?: object;
89
+ }
90
+
91
+ export const CreatePaymentRequestRequestDtoDirectionEnum = {
92
+ Collect: 'collect',
93
+ Disburse: 'disburse'
94
+ } as const;
95
+
96
+ export type CreatePaymentRequestRequestDtoDirectionEnum = typeof CreatePaymentRequestRequestDtoDirectionEnum[keyof typeof CreatePaymentRequestRequestDtoDirectionEnum];
97
+ export const CreatePaymentRequestRequestDtoFinancialEntityTypeEnum = {
98
+ ClaimAdjustment: 'claim_adjustment',
99
+ CommissionSettlement: 'commission_settlement',
100
+ Invoice: 'invoice',
101
+ Other: 'other'
102
+ } as const;
103
+
104
+ export type CreatePaymentRequestRequestDtoFinancialEntityTypeEnum = typeof CreatePaymentRequestRequestDtoFinancialEntityTypeEnum[keyof typeof CreatePaymentRequestRequestDtoFinancialEntityTypeEnum];
105
+ export const CreatePaymentRequestRequestDtoDomainEntityTypeEnum = {
106
+ Other: 'other',
107
+ Claim: 'claim',
108
+ Premium: 'premium',
109
+ Commission: 'commission'
110
+ } as const;
111
+
112
+ export type CreatePaymentRequestRequestDtoDomainEntityTypeEnum = typeof CreatePaymentRequestRequestDtoDomainEntityTypeEnum[keyof typeof CreatePaymentRequestRequestDtoDomainEntityTypeEnum];
113
+
114
+
@@ -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 { PaymentRequestClass } from './payment-request-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreatePaymentRequestResponseClass
22
+ */
23
+ export interface CreatePaymentRequestResponseClass {
24
+ /**
25
+ * The created payment request with all its details.
26
+ * @type {PaymentRequestClass}
27
+ * @memberof CreatePaymentRequestResponseClass
28
+ */
29
+ 'paymentRequest': PaymentRequestClass;
30
+ }
31
+
@@ -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 { PaymentRequestClass } from './payment-request-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface GetPaymentRequestResponseClass
22
+ */
23
+ export interface GetPaymentRequestResponseClass {
24
+ /**
25
+ * The payment request retrieved by its code.
26
+ * @type {PaymentRequestClass}
27
+ * @memberof GetPaymentRequestResponseClass
28
+ */
29
+ 'paymentRequest': PaymentRequestClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './activate-policy-payment-method-request-dto';
2
2
  export * from './bank-account-class';
3
3
  export * from './bank-account-class-without-expand-properties';
4
+ export * from './bank-data-class';
4
5
  export * from './bank-order-class';
5
6
  export * from './bank-order-entity';
6
7
  export * from './bank-order-xml-file-class';
@@ -36,6 +37,8 @@ export * from './create-payment-order-request-dto';
36
37
  export * from './create-payment-reminder-request-dto';
37
38
  export * from './create-payment-reminder-response-class';
38
39
  export * from './create-payment-request-dto';
40
+ export * from './create-payment-request-request-dto';
41
+ export * from './create-payment-request-response-class';
39
42
  export * from './create-payment-response-class';
40
43
  export * from './create-payout-method-request-dto';
41
44
  export * from './create-payout-method-response-class';
@@ -63,6 +66,7 @@ export * from './get-credit-allocation-response-class';
63
66
  export * from './get-exceeding-credit-response-class';
64
67
  export * from './get-payment-method-response-class';
65
68
  export * from './get-payment-reminder-response-class';
69
+ export * from './get-payment-request-response-class';
66
70
  export * from './get-payment-response-class';
67
71
  export * from './get-payout-method-response-class';
68
72
  export * from './get-refund-response-class';
@@ -92,6 +96,7 @@ export * from './list-credit-allocations-response-class';
92
96
  export * from './list-exceeding-credits-response-class';
93
97
  export * from './list-payment-methods-response-class';
94
98
  export * from './list-payment-reminders-response-class';
99
+ export * from './list-payment-requests-response-class';
95
100
  export * from './list-payments-response-class';
96
101
  export * from './list-payout-methods-response-class';
97
102
  export * from './list-policy-payment-methods-response-class';
@@ -105,6 +110,7 @@ export * from './payment-class-without-expand-properties';
105
110
  export * from './payment-entity';
106
111
  export * from './payment-method-class';
107
112
  export * from './payment-reminder-class';
113
+ export * from './payment-request-class';
108
114
  export * from './payout-method-class';
109
115
  export * from './policy-payment-method-class';
110
116
  export * from './primary-bank-account-response-class';
@@ -129,6 +135,10 @@ export * from './update-bank-order-request-dto';
129
135
  export * from './update-bank-order-response-class';
130
136
  export * from './update-billing-address-request-dto';
131
137
  export * from './update-billing-address-response-class';
138
+ export * from './update-payment-request-request-dto';
139
+ export * from './update-payment-request-response-class';
132
140
  export * from './update-tenant-bank-account-response-class';
133
141
  export * from './update-tenant-bank-account-rest-request-dto';
142
+ export * from './validate-iban-request-dto';
143
+ export * from './validate-iban-response-class';
134
144
  export * from './validate-pspconfig-request-dto';
@@ -0,0 +1,37 @@
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 { PaymentRequestClass } from './payment-request-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListPaymentRequestsResponseClass
22
+ */
23
+ export interface ListPaymentRequestsResponseClass {
24
+ /**
25
+ * The list of payment requests.
26
+ * @type {Array<PaymentRequestClass>}
27
+ * @memberof ListPaymentRequestsResponseClass
28
+ */
29
+ 'items': Array<PaymentRequestClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListPaymentRequestsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ }
37
+
@@ -0,0 +1,160 @@
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 PaymentRequestClass
21
+ */
22
+ export interface PaymentRequestClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof PaymentRequestClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof PaymentRequestClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * Payment request number.
37
+ * @type {string}
38
+ * @memberof PaymentRequestClass
39
+ */
40
+ 'paymentRequestNumber': string;
41
+ /**
42
+ * Payment amount in cents. 100 represents 1€.
43
+ * @type {number}
44
+ * @memberof PaymentRequestClass
45
+ */
46
+ 'amount': number;
47
+ /**
48
+ * Currency code for the payment request.
49
+ * @type {string}
50
+ * @memberof PaymentRequestClass
51
+ */
52
+ 'currency': string;
53
+ /**
54
+ * Direction of the payment request. Collect for incoming payments, Disburse for outgoing payments.
55
+ * @type {string}
56
+ * @memberof PaymentRequestClass
57
+ */
58
+ 'direction': PaymentRequestClassDirectionEnum;
59
+ /**
60
+ * Code of the financial entity (e.g., invoice code, claim adjustment code) that this payment request is associated with.
61
+ * @type {string}
62
+ * @memberof PaymentRequestClass
63
+ */
64
+ 'financialEntityCode': string;
65
+ /**
66
+ * Number of the financial entity (e.g., invoice number, claim adjustment number).
67
+ * @type {string}
68
+ * @memberof PaymentRequestClass
69
+ */
70
+ 'financialEntityNumber': string;
71
+ /**
72
+ * Type of the financial entity (e.g., invoice, claim_adjustment).
73
+ * @type {string}
74
+ * @memberof PaymentRequestClass
75
+ */
76
+ 'financialEntityType': PaymentRequestClassFinancialEntityTypeEnum;
77
+ /**
78
+ * Code of the domain entity (e.g., policy code, claim code) that this payment request is associated with.
79
+ * @type {string}
80
+ * @memberof PaymentRequestClass
81
+ */
82
+ 'domainEntityCode': string;
83
+ /**
84
+ * Number of the domain entity (e.g., policy number, claim number).
85
+ * @type {string}
86
+ * @memberof PaymentRequestClass
87
+ */
88
+ 'domainEntityNumber': string;
89
+ /**
90
+ * Type of the domain entity (e.g., policy, claim).
91
+ * @type {string}
92
+ * @memberof PaymentRequestClass
93
+ */
94
+ 'domainEntityType': PaymentRequestClassDomainEntityTypeEnum;
95
+ /**
96
+ * Current status of the payment request. Valid statuses: open, approved, pending, succeeded, failed, withdrawn.
97
+ * @type {string}
98
+ * @memberof PaymentRequestClass
99
+ */
100
+ 'status': PaymentRequestClassStatusEnum;
101
+ /**
102
+ * Code of the payment method used for this payment request.
103
+ * @type {string}
104
+ * @memberof PaymentRequestClass
105
+ */
106
+ 'paymentMethodCode'?: string;
107
+ /**
108
+ * Type of the payment method (e.g., sepa_debit, credit_card, bank_transfer).
109
+ * @type {string}
110
+ * @memberof PaymentRequestClass
111
+ */
112
+ 'paymentMethodType'?: string;
113
+ /**
114
+ * Payment Service Provider (PSP) used for processing the payment (e.g., stripe, braintree, adyen, eis).
115
+ * @type {string}
116
+ * @memberof PaymentRequestClass
117
+ */
118
+ 'paymentMethodPsp'?: string;
119
+ /**
120
+ * Optional field containing extra information about the payment request.
121
+ * @type {object}
122
+ * @memberof PaymentRequestClass
123
+ */
124
+ 'metadata'?: object;
125
+ }
126
+
127
+ export const PaymentRequestClassDirectionEnum = {
128
+ Collect: 'collect',
129
+ Disburse: 'disburse'
130
+ } as const;
131
+
132
+ export type PaymentRequestClassDirectionEnum = typeof PaymentRequestClassDirectionEnum[keyof typeof PaymentRequestClassDirectionEnum];
133
+ export const PaymentRequestClassFinancialEntityTypeEnum = {
134
+ ClaimAdjustment: 'claim_adjustment',
135
+ CommissionSettlement: 'commission_settlement',
136
+ Invoice: 'invoice',
137
+ Other: 'other'
138
+ } as const;
139
+
140
+ export type PaymentRequestClassFinancialEntityTypeEnum = typeof PaymentRequestClassFinancialEntityTypeEnum[keyof typeof PaymentRequestClassFinancialEntityTypeEnum];
141
+ export const PaymentRequestClassDomainEntityTypeEnum = {
142
+ Other: 'other',
143
+ Claim: 'claim',
144
+ Premium: 'premium',
145
+ Commission: 'commission'
146
+ } as const;
147
+
148
+ export type PaymentRequestClassDomainEntityTypeEnum = typeof PaymentRequestClassDomainEntityTypeEnum[keyof typeof PaymentRequestClassDomainEntityTypeEnum];
149
+ export const PaymentRequestClassStatusEnum = {
150
+ Open: 'open',
151
+ Approved: 'approved',
152
+ Pending: 'pending',
153
+ Succeeded: 'succeeded',
154
+ Failed: 'failed',
155
+ Withdrawn: 'withdrawn'
156
+ } as const;
157
+
158
+ export type PaymentRequestClassStatusEnum = typeof PaymentRequestClassStatusEnum[keyof typeof PaymentRequestClassStatusEnum];
159
+
160
+