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

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