@emilgroup/payment-sdk 1.14.1-beta.49 → 1.14.1-beta.51

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 (32) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/credit-allocation-api.ts +165 -0
  4. package/api/policy-payment-methods-api.ts +23 -6
  5. package/api.ts +2 -0
  6. package/dist/api/credit-allocation-api.d.ts +97 -0
  7. package/dist/api/credit-allocation-api.js +224 -0
  8. package/dist/api/policy-payment-methods-api.d.ts +13 -3
  9. package/dist/api/policy-payment-methods-api.js +13 -6
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
  13. package/dist/models/activate-policy-payment-method-request-dto.js +15 -0
  14. package/dist/models/billing-address-dto.d.ts +2 -16
  15. package/dist/models/billing-address-dto.js +0 -14
  16. package/dist/models/create-credit-allocation-request-dto.d.ts +54 -0
  17. package/dist/models/create-credit-allocation-request-dto.js +21 -0
  18. package/dist/models/create-credit-allocation-response-class.d.ts +25 -0
  19. package/dist/models/create-credit-allocation-response-class.js +15 -0
  20. package/dist/models/credit-allocation-class.d.ts +115 -0
  21. package/dist/models/credit-allocation-class.js +21 -0
  22. package/dist/models/exceeding-credit-class.d.ts +6 -0
  23. package/dist/models/index.d.ts +4 -0
  24. package/dist/models/index.js +4 -0
  25. package/models/activate-policy-payment-method-request-dto.ts +30 -0
  26. package/models/billing-address-dto.ts +2 -19
  27. package/models/create-credit-allocation-request-dto.ts +63 -0
  28. package/models/create-credit-allocation-response-class.ts +31 -0
  29. package/models/credit-allocation-class.ts +124 -0
  30. package/models/exceeding-credit-class.ts +6 -0
  31. package/models/index.ts +4 -0
  32. package/package.json +1 -1
@@ -0,0 +1,63 @@
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 CreateCreditAllocationRequestDto
21
+ */
22
+ export interface CreateCreditAllocationRequestDto {
23
+ /**
24
+ * Codes of the exceeding credits to allocate.
25
+ * @type {Array<string>}
26
+ * @memberof CreateCreditAllocationRequestDto
27
+ */
28
+ 'exceedingCreditCodes': Array<string>;
29
+ /**
30
+ * Financial account code to use for the refund. Required only when allocationType is \"separate_refund\".
31
+ * @type {string}
32
+ * @memberof CreateCreditAllocationRequestDto
33
+ */
34
+ 'financialAccountCode'?: string;
35
+ /**
36
+ * Type of credit allocation.
37
+ * @type {string}
38
+ * @memberof CreateCreditAllocationRequestDto
39
+ */
40
+ 'allocationType': CreateCreditAllocationRequestDtoAllocationTypeEnum;
41
+ /**
42
+ * Amount of the credit allocation in cents.
43
+ * @type {number}
44
+ * @memberof CreateCreditAllocationRequestDto
45
+ */
46
+ 'allocationAmount': number;
47
+ /**
48
+ * Booking date of the credit allocation.
49
+ * @type {string}
50
+ * @memberof CreateCreditAllocationRequestDto
51
+ */
52
+ 'bookingDate'?: string;
53
+ }
54
+
55
+ export const CreateCreditAllocationRequestDtoAllocationTypeEnum = {
56
+ NextInvoice: 'next_invoice',
57
+ LastInvoice: 'last_invoice',
58
+ SeparateRefund: 'separate_refund'
59
+ } as const;
60
+
61
+ export type CreateCreditAllocationRequestDtoAllocationTypeEnum = typeof CreateCreditAllocationRequestDtoAllocationTypeEnum[keyof typeof CreateCreditAllocationRequestDtoAllocationTypeEnum];
62
+
63
+
@@ -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 { CreditAllocationClass } from './credit-allocation-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCreditAllocationResponseClass
22
+ */
23
+ export interface CreateCreditAllocationResponseClass {
24
+ /**
25
+ * Credit allocation created.
26
+ * @type {CreditAllocationClass}
27
+ * @memberof CreateCreditAllocationResponseClass
28
+ */
29
+ 'creditAllocation'?: CreditAllocationClass;
30
+ }
31
+
@@ -0,0 +1,124 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { ExceedingCreditClass } from './exceeding-credit-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreditAllocationClass
22
+ */
23
+ export interface CreditAllocationClass {
24
+ /**
25
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
26
+ * @type {number}
27
+ * @memberof CreditAllocationClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * Code of the credit allocation.
32
+ * @type {string}
33
+ * @memberof CreditAllocationClass
34
+ */
35
+ 'code': string;
36
+ /**
37
+ * Codes of the exceeding credits that were allocated.
38
+ * @type {Array<string>}
39
+ * @memberof CreditAllocationClass
40
+ */
41
+ 'exceedingCreditCodes': Array<string>;
42
+ /**
43
+ * Policy code associated with the credit.
44
+ * @type {string}
45
+ * @memberof CreditAllocationClass
46
+ */
47
+ 'policyCode': string;
48
+ /**
49
+ * Policy number associated with the credit.
50
+ * @type {string}
51
+ * @memberof CreditAllocationClass
52
+ */
53
+ 'policyNumber': string;
54
+ /**
55
+ * Amount of the credit allocation in cents.
56
+ * @type {number}
57
+ * @memberof CreditAllocationClass
58
+ */
59
+ 'allocationAmount': number;
60
+ /**
61
+ * Currency of the credit allocation.
62
+ * @type {string}
63
+ * @memberof CreditAllocationClass
64
+ */
65
+ 'allocationCurrency': string;
66
+ /**
67
+ * Type of credit allocation.
68
+ * @type {string}
69
+ * @memberof CreditAllocationClass
70
+ */
71
+ 'allocationType': CreditAllocationClassAllocationTypeEnum;
72
+ /**
73
+ * Financial account code used for the allocation.
74
+ * @type {string}
75
+ * @memberof CreditAllocationClass
76
+ */
77
+ 'financialAccountCode'?: string;
78
+ /**
79
+ * Booking date of the credit allocation.
80
+ * @type {string}
81
+ * @memberof CreditAllocationClass
82
+ */
83
+ 'bookingDate'?: string;
84
+ /**
85
+ * Time at which the object was created.
86
+ * @type {string}
87
+ * @memberof CreditAllocationClass
88
+ */
89
+ 'createdAt': string;
90
+ /**
91
+ * Time at which the object was updated.
92
+ * @type {string}
93
+ * @memberof CreditAllocationClass
94
+ */
95
+ 'updatedAt': string;
96
+ /**
97
+ * Identifier of the user who created the record.
98
+ * @type {string}
99
+ * @memberof CreditAllocationClass
100
+ */
101
+ 'createdBy': string;
102
+ /**
103
+ * Identifier of the user who last updated the record.
104
+ * @type {string}
105
+ * @memberof CreditAllocationClass
106
+ */
107
+ 'updatedBy': string;
108
+ /**
109
+ * List of exceeding credits associated with this allocation.
110
+ * @type {Array<ExceedingCreditClass>}
111
+ * @memberof CreditAllocationClass
112
+ */
113
+ 'exceedingCredits'?: Array<ExceedingCreditClass>;
114
+ }
115
+
116
+ export const CreditAllocationClassAllocationTypeEnum = {
117
+ NextInvoice: 'next_invoice',
118
+ LastInvoice: 'last_invoice',
119
+ SeparateRefund: 'separate_refund'
120
+ } as const;
121
+
122
+ export type CreditAllocationClassAllocationTypeEnum = typeof CreditAllocationClassAllocationTypeEnum[keyof typeof CreditAllocationClassAllocationTypeEnum];
123
+
124
+
@@ -80,6 +80,12 @@ export interface ExceedingCreditClass {
80
80
  * @memberof ExceedingCreditClass
81
81
  */
82
82
  'policyCode': string;
83
+ /**
84
+ * The allocation ID if this credit has been allocated.
85
+ * @type {number}
86
+ * @memberof ExceedingCreditClass
87
+ */
88
+ 'allocationId'?: number;
83
89
  /**
84
90
  * Time at which the object was created.
85
91
  * @type {string}
package/models/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './activate-policy-payment-method-request-dto';
1
2
  export * from './bank-account-class';
2
3
  export * from './bank-account-class-without-expand-properties';
3
4
  export * from './bank-order-class';
@@ -20,6 +21,8 @@ export * from './create-bank-account-request-dto';
20
21
  export * from './create-bank-account-response-class';
21
22
  export * from './create-bank-order-request-dto';
22
23
  export * from './create-bank-order-response-class';
24
+ export * from './create-credit-allocation-request-dto';
25
+ export * from './create-credit-allocation-response-class';
23
26
  export * from './create-payment-method-response-class';
24
27
  export * from './create-payment-order-dto';
25
28
  export * from './create-payment-order-request-dto';
@@ -34,6 +37,7 @@ export * from './create-refund-request-dto';
34
37
  export * from './create-refund-response-class';
35
38
  export * from './create-tenant-bank-account-request-dto';
36
39
  export * from './create-tenant-bank-account-response-class';
40
+ export * from './credit-allocation-class';
37
41
  export * from './deactivate-payment-reminder-request-dto';
38
42
  export * from './deactivate-payment-reminder-response-class';
39
43
  export * from './deactivated-payment-reminder-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk",
3
- "version": "1.14.1-beta.49",
3
+ "version": "1.14.1-beta.51",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [