@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
package/models/index.ts CHANGED
@@ -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';
@@ -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,122 @@
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 amount in cents. 100 represents 1€.
37
+ * @type {number}
38
+ * @memberof PaymentRequestClass
39
+ */
40
+ 'amount': number;
41
+ /**
42
+ * Currency code for the payment request.
43
+ * @type {string}
44
+ * @memberof PaymentRequestClass
45
+ */
46
+ 'currency': string;
47
+ /**
48
+ * Direction of the payment request. Collect for incoming payments, Disburse for outgoing payments.
49
+ * @type {string}
50
+ * @memberof PaymentRequestClass
51
+ */
52
+ 'direction': PaymentRequestClassDirectionEnum;
53
+ /**
54
+ * Code of the source entity (e.g., invoice code, claim code) that this payment request is associated with.
55
+ * @type {string}
56
+ * @memberof PaymentRequestClass
57
+ */
58
+ 'sourceEntityCode'?: string;
59
+ /**
60
+ * Type of the payment request. Defines the business context or purpose of the payment.
61
+ * @type {string}
62
+ * @memberof PaymentRequestClass
63
+ */
64
+ 'type': PaymentRequestClassTypeEnum;
65
+ /**
66
+ * Current status of the payment request. Valid statuses: open, approved, in_progress, succeeded, failed, cancelled.
67
+ * @type {string}
68
+ * @memberof PaymentRequestClass
69
+ */
70
+ 'status': PaymentRequestClassStatusEnum;
71
+ /**
72
+ * Code of the payment method used for this payment request.
73
+ * @type {string}
74
+ * @memberof PaymentRequestClass
75
+ */
76
+ 'paymentMethodCode'?: string;
77
+ /**
78
+ * Type of the payment method (e.g., sepa_debit, credit_card, bank_transfer).
79
+ * @type {string}
80
+ * @memberof PaymentRequestClass
81
+ */
82
+ 'paymentMethodType'?: string;
83
+ /**
84
+ * Payment Service Provider (PSP) used for processing the payment (e.g., stripe, braintree, adyen, eis).
85
+ * @type {string}
86
+ * @memberof PaymentRequestClass
87
+ */
88
+ 'paymentMethodPsp'?: string;
89
+ /**
90
+ * Optional field containing extra information about the payment request.
91
+ * @type {object}
92
+ * @memberof PaymentRequestClass
93
+ */
94
+ 'metadata'?: object;
95
+ }
96
+
97
+ export const PaymentRequestClassDirectionEnum = {
98
+ Collect: 'collect',
99
+ Disburse: 'disburse'
100
+ } as const;
101
+
102
+ export type PaymentRequestClassDirectionEnum = typeof PaymentRequestClassDirectionEnum[keyof typeof PaymentRequestClassDirectionEnum];
103
+ export const PaymentRequestClassTypeEnum = {
104
+ Other: 'other',
105
+ Claim: 'claim',
106
+ Premium: 'premium',
107
+ Commission: 'commission'
108
+ } as const;
109
+
110
+ export type PaymentRequestClassTypeEnum = typeof PaymentRequestClassTypeEnum[keyof typeof PaymentRequestClassTypeEnum];
111
+ export const PaymentRequestClassStatusEnum = {
112
+ Open: 'open',
113
+ Approved: 'approved',
114
+ InProgress: 'in_progress',
115
+ Succeeded: 'succeeded',
116
+ Failed: 'failed',
117
+ Cancelled: 'cancelled'
118
+ } as const;
119
+
120
+ export type PaymentRequestClassStatusEnum = typeof PaymentRequestClassStatusEnum[keyof typeof PaymentRequestClassStatusEnum];
121
+
122
+
@@ -0,0 +1,48 @@
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 UpdatePaymentRequestRequestDto
21
+ */
22
+ export interface UpdatePaymentRequestRequestDto {
23
+ /**
24
+ * Unique identifier for the object.
25
+ * @type {string}
26
+ * @memberof UpdatePaymentRequestRequestDto
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * New status for the payment request. Valid statuses: open, approved, in_progress, succeeded, failed, cancelled
31
+ * @type {string}
32
+ * @memberof UpdatePaymentRequestRequestDto
33
+ */
34
+ 'status': UpdatePaymentRequestRequestDtoStatusEnum;
35
+ }
36
+
37
+ export const UpdatePaymentRequestRequestDtoStatusEnum = {
38
+ Open: 'open',
39
+ Approved: 'approved',
40
+ InProgress: 'in_progress',
41
+ Succeeded: 'succeeded',
42
+ Failed: 'failed',
43
+ Cancelled: 'cancelled'
44
+ } as const;
45
+
46
+ export type UpdatePaymentRequestRequestDtoStatusEnum = typeof UpdatePaymentRequestRequestDtoStatusEnum[keyof typeof UpdatePaymentRequestRequestDtoStatusEnum];
47
+
48
+
@@ -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 UpdatePaymentRequestResponseClass
22
+ */
23
+ export interface UpdatePaymentRequestResponseClass {
24
+ /**
25
+ * The updated payment request with the new status.
26
+ * @type {PaymentRequestClass}
27
+ * @memberof UpdatePaymentRequestResponseClass
28
+ */
29
+ 'paymentRequest': PaymentRequestClass;
30
+ }
31
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.23.1-beta.2",
3
+ "version": "1.23.1-beta.4",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [