@emilgroup/payment-sdk 1.14.1-beta.50 → 1.14.1-beta.52
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 +6 -0
- package/README.md +2 -2
- package/api/credit-allocation-api.ts +456 -0
- package/api.ts +2 -0
- package/dist/api/credit-allocation-api.d.ts +263 -0
- package/dist/api/credit-allocation-api.js +445 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/billing-address-dto.d.ts +2 -16
- package/dist/models/billing-address-dto.js +0 -14
- package/dist/models/create-credit-allocation-request-dto.d.ts +54 -0
- package/dist/models/create-credit-allocation-request-dto.js +21 -0
- package/dist/models/create-credit-allocation-response-class.d.ts +25 -0
- package/dist/models/create-credit-allocation-response-class.js +15 -0
- package/dist/models/credit-allocation-class.d.ts +115 -0
- package/dist/models/credit-allocation-class.js +21 -0
- package/dist/models/exceeding-credit-class.d.ts +6 -0
- package/dist/models/get-credit-allocation-response-class.d.ts +25 -0
- package/dist/models/get-credit-allocation-response-class.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/list-credit-allocations-response-class.d.ts +43 -0
- package/dist/models/list-credit-allocations-response-class.js +15 -0
- package/models/billing-address-dto.ts +2 -19
- package/models/create-credit-allocation-request-dto.ts +63 -0
- package/models/create-credit-allocation-response-class.ts +31 -0
- package/models/credit-allocation-class.ts +124 -0
- package/models/exceeding-credit-class.ts +6 -0
- package/models/get-credit-allocation-response-class.ts +31 -0
- package/models/index.ts +5 -0
- package/models/list-credit-allocations-response-class.ts +49 -0
- package/package.json +1 -1
|
@@ -0,0 +1,115 @@
|
|
|
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 { ExceedingCreditClass } from './exceeding-credit-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreditAllocationClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreditAllocationClass {
|
|
19
|
+
/**
|
|
20
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CreditAllocationClass
|
|
23
|
+
*/
|
|
24
|
+
'id': number;
|
|
25
|
+
/**
|
|
26
|
+
* Code of the credit allocation.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreditAllocationClass
|
|
29
|
+
*/
|
|
30
|
+
'code': string;
|
|
31
|
+
/**
|
|
32
|
+
* Codes of the exceeding credits that were allocated.
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof CreditAllocationClass
|
|
35
|
+
*/
|
|
36
|
+
'exceedingCreditCodes': Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Policy code associated with the credit.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreditAllocationClass
|
|
41
|
+
*/
|
|
42
|
+
'policyCode': string;
|
|
43
|
+
/**
|
|
44
|
+
* Policy number associated with the credit.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreditAllocationClass
|
|
47
|
+
*/
|
|
48
|
+
'policyNumber': string;
|
|
49
|
+
/**
|
|
50
|
+
* Amount of the credit allocation in cents.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof CreditAllocationClass
|
|
53
|
+
*/
|
|
54
|
+
'allocationAmount': number;
|
|
55
|
+
/**
|
|
56
|
+
* Currency of the credit allocation.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CreditAllocationClass
|
|
59
|
+
*/
|
|
60
|
+
'allocationCurrency': string;
|
|
61
|
+
/**
|
|
62
|
+
* Type of credit allocation.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CreditAllocationClass
|
|
65
|
+
*/
|
|
66
|
+
'allocationType': CreditAllocationClassAllocationTypeEnum;
|
|
67
|
+
/**
|
|
68
|
+
* Financial account code used for the allocation.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CreditAllocationClass
|
|
71
|
+
*/
|
|
72
|
+
'financialAccountCode'?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Booking date of the credit allocation.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CreditAllocationClass
|
|
77
|
+
*/
|
|
78
|
+
'bookingDate'?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Time at which the object was created.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CreditAllocationClass
|
|
83
|
+
*/
|
|
84
|
+
'createdAt': string;
|
|
85
|
+
/**
|
|
86
|
+
* Time at which the object was updated.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CreditAllocationClass
|
|
89
|
+
*/
|
|
90
|
+
'updatedAt': string;
|
|
91
|
+
/**
|
|
92
|
+
* Identifier of the user who created the record.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof CreditAllocationClass
|
|
95
|
+
*/
|
|
96
|
+
'createdBy': string;
|
|
97
|
+
/**
|
|
98
|
+
* Identifier of the user who last updated the record.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof CreditAllocationClass
|
|
101
|
+
*/
|
|
102
|
+
'updatedBy': string;
|
|
103
|
+
/**
|
|
104
|
+
* List of exceeding credits associated with this allocation.
|
|
105
|
+
* @type {Array<ExceedingCreditClass>}
|
|
106
|
+
* @memberof CreditAllocationClass
|
|
107
|
+
*/
|
|
108
|
+
'exceedingCredits'?: Array<ExceedingCreditClass>;
|
|
109
|
+
}
|
|
110
|
+
export declare const CreditAllocationClassAllocationTypeEnum: {
|
|
111
|
+
readonly NextInvoice: "next_invoice";
|
|
112
|
+
readonly LastInvoice: "last_invoice";
|
|
113
|
+
readonly SeparateRefund: "separate_refund";
|
|
114
|
+
};
|
|
115
|
+
export type CreditAllocationClassAllocationTypeEnum = typeof CreditAllocationClassAllocationTypeEnum[keyof typeof CreditAllocationClassAllocationTypeEnum];
|
|
@@ -0,0 +1,21 @@
|
|
|
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.CreditAllocationClassAllocationTypeEnum = void 0;
|
|
17
|
+
exports.CreditAllocationClassAllocationTypeEnum = {
|
|
18
|
+
NextInvoice: 'next_invoice',
|
|
19
|
+
LastInvoice: 'last_invoice',
|
|
20
|
+
SeparateRefund: 'separate_refund'
|
|
21
|
+
};
|
|
@@ -75,6 +75,12 @@ export interface ExceedingCreditClass {
|
|
|
75
75
|
* @memberof ExceedingCreditClass
|
|
76
76
|
*/
|
|
77
77
|
'policyCode': string;
|
|
78
|
+
/**
|
|
79
|
+
* The allocation ID if this credit has been allocated.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof ExceedingCreditClass
|
|
82
|
+
*/
|
|
83
|
+
'allocationId'?: number;
|
|
78
84
|
/**
|
|
79
85
|
* Time at which the object was created.
|
|
80
86
|
* @type {string}
|
|
@@ -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 { CreditAllocationClass } from './credit-allocation-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCreditAllocationResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCreditAllocationResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Credit allocation entry.
|
|
21
|
+
* @type {CreditAllocationClass}
|
|
22
|
+
* @memberof GetCreditAllocationResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'creditAllocation': CreditAllocationClass;
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export * from './create-bank-account-request-dto';
|
|
|
21
21
|
export * from './create-bank-account-response-class';
|
|
22
22
|
export * from './create-bank-order-request-dto';
|
|
23
23
|
export * from './create-bank-order-response-class';
|
|
24
|
+
export * from './create-credit-allocation-request-dto';
|
|
25
|
+
export * from './create-credit-allocation-response-class';
|
|
24
26
|
export * from './create-payment-method-response-class';
|
|
25
27
|
export * from './create-payment-order-dto';
|
|
26
28
|
export * from './create-payment-order-request-dto';
|
|
@@ -35,6 +37,7 @@ export * from './create-refund-request-dto';
|
|
|
35
37
|
export * from './create-refund-response-class';
|
|
36
38
|
export * from './create-tenant-bank-account-request-dto';
|
|
37
39
|
export * from './create-tenant-bank-account-response-class';
|
|
40
|
+
export * from './credit-allocation-class';
|
|
38
41
|
export * from './deactivate-payment-reminder-request-dto';
|
|
39
42
|
export * from './deactivate-payment-reminder-response-class';
|
|
40
43
|
export * from './deactivated-payment-reminder-class';
|
|
@@ -45,6 +48,7 @@ export * from './generate-invoice-match-suggestions-response-class';
|
|
|
45
48
|
export * from './get-bank-account-response-class';
|
|
46
49
|
export * from './get-bank-order-response-class';
|
|
47
50
|
export * from './get-bank-transactions-response-class';
|
|
51
|
+
export * from './get-credit-allocation-response-class';
|
|
48
52
|
export * from './get-exceeding-credit-response-class';
|
|
49
53
|
export * from './get-payment-method-response-class';
|
|
50
54
|
export * from './get-payment-reminder-response-class';
|
|
@@ -70,6 +74,7 @@ export * from './link-bank-transactions-response-class';
|
|
|
70
74
|
export * from './list-bank-accounts-response-class';
|
|
71
75
|
export * from './list-bank-orders-response-class';
|
|
72
76
|
export * from './list-bank-transactions-response-class';
|
|
77
|
+
export * from './list-credit-allocations-response-class';
|
|
73
78
|
export * from './list-exceeding-credits-response-class';
|
|
74
79
|
export * from './list-payment-methods-response-class';
|
|
75
80
|
export * from './list-payment-reminders-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -37,6 +37,8 @@ __exportStar(require("./create-bank-account-request-dto"), exports);
|
|
|
37
37
|
__exportStar(require("./create-bank-account-response-class"), exports);
|
|
38
38
|
__exportStar(require("./create-bank-order-request-dto"), exports);
|
|
39
39
|
__exportStar(require("./create-bank-order-response-class"), exports);
|
|
40
|
+
__exportStar(require("./create-credit-allocation-request-dto"), exports);
|
|
41
|
+
__exportStar(require("./create-credit-allocation-response-class"), exports);
|
|
40
42
|
__exportStar(require("./create-payment-method-response-class"), exports);
|
|
41
43
|
__exportStar(require("./create-payment-order-dto"), exports);
|
|
42
44
|
__exportStar(require("./create-payment-order-request-dto"), exports);
|
|
@@ -51,6 +53,7 @@ __exportStar(require("./create-refund-request-dto"), exports);
|
|
|
51
53
|
__exportStar(require("./create-refund-response-class"), exports);
|
|
52
54
|
__exportStar(require("./create-tenant-bank-account-request-dto"), exports);
|
|
53
55
|
__exportStar(require("./create-tenant-bank-account-response-class"), exports);
|
|
56
|
+
__exportStar(require("./credit-allocation-class"), exports);
|
|
54
57
|
__exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
|
|
55
58
|
__exportStar(require("./deactivate-payment-reminder-response-class"), exports);
|
|
56
59
|
__exportStar(require("./deactivated-payment-reminder-class"), exports);
|
|
@@ -61,6 +64,7 @@ __exportStar(require("./generate-invoice-match-suggestions-response-class"), exp
|
|
|
61
64
|
__exportStar(require("./get-bank-account-response-class"), exports);
|
|
62
65
|
__exportStar(require("./get-bank-order-response-class"), exports);
|
|
63
66
|
__exportStar(require("./get-bank-transactions-response-class"), exports);
|
|
67
|
+
__exportStar(require("./get-credit-allocation-response-class"), exports);
|
|
64
68
|
__exportStar(require("./get-exceeding-credit-response-class"), exports);
|
|
65
69
|
__exportStar(require("./get-payment-method-response-class"), exports);
|
|
66
70
|
__exportStar(require("./get-payment-reminder-response-class"), exports);
|
|
@@ -86,6 +90,7 @@ __exportStar(require("./link-bank-transactions-response-class"), exports);
|
|
|
86
90
|
__exportStar(require("./list-bank-accounts-response-class"), exports);
|
|
87
91
|
__exportStar(require("./list-bank-orders-response-class"), exports);
|
|
88
92
|
__exportStar(require("./list-bank-transactions-response-class"), exports);
|
|
93
|
+
__exportStar(require("./list-credit-allocations-response-class"), exports);
|
|
89
94
|
__exportStar(require("./list-exceeding-credits-response-class"), exports);
|
|
90
95
|
__exportStar(require("./list-payment-methods-response-class"), exports);
|
|
91
96
|
__exportStar(require("./list-payment-reminders-response-class"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { CreditAllocationClass } from './credit-allocation-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListCreditAllocationsResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListCreditAllocationsResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* List of credit allocation entries.
|
|
21
|
+
* @type {Array<CreditAllocationClass>}
|
|
22
|
+
* @memberof ListCreditAllocationsResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'items': Array<CreditAllocationClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Next page token for pagination.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ListCreditAllocationsResponseClass
|
|
29
|
+
*/
|
|
30
|
+
'nextPageToken': string;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ListCreditAllocationsResponseClass
|
|
35
|
+
*/
|
|
36
|
+
'itemsPerPage': number;
|
|
37
|
+
/**
|
|
38
|
+
* Total number of items.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ListCreditAllocationsResponseClass
|
|
41
|
+
*/
|
|
42
|
+
'totalItems': number;
|
|
43
|
+
}
|
|
@@ -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 });
|
|
@@ -57,27 +57,10 @@ export interface BillingAddressDto {
|
|
|
57
57
|
*/
|
|
58
58
|
'city': string;
|
|
59
59
|
/**
|
|
60
|
-
* Country for billing address
|
|
60
|
+
* Country code for billing address
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof BillingAddressDto
|
|
63
63
|
*/
|
|
64
|
-
'
|
|
64
|
+
'countryCode'?: string;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export const BillingAddressDtoCountryEnum = {
|
|
68
|
-
De: 'DE',
|
|
69
|
-
Us: 'US',
|
|
70
|
-
Gb: 'GB',
|
|
71
|
-
Ch: 'CH',
|
|
72
|
-
Pl: 'PL',
|
|
73
|
-
Au: 'AU',
|
|
74
|
-
Ca: 'CA',
|
|
75
|
-
Dk: 'DK',
|
|
76
|
-
Hu: 'HU',
|
|
77
|
-
No: 'NO',
|
|
78
|
-
Se: 'SE'
|
|
79
|
-
} as const;
|
|
80
|
-
|
|
81
|
-
export type BillingAddressDtoCountryEnum = typeof BillingAddressDtoCountryEnum[keyof typeof BillingAddressDtoCountryEnum];
|
|
82
|
-
|
|
83
|
-
|
|
@@ -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}
|
|
@@ -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 GetCreditAllocationResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface GetCreditAllocationResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Credit allocation entry.
|
|
26
|
+
* @type {CreditAllocationClass}
|
|
27
|
+
* @memberof GetCreditAllocationResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'creditAllocation': CreditAllocationClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/index.ts
CHANGED
|
@@ -21,6 +21,8 @@ export * from './create-bank-account-request-dto';
|
|
|
21
21
|
export * from './create-bank-account-response-class';
|
|
22
22
|
export * from './create-bank-order-request-dto';
|
|
23
23
|
export * from './create-bank-order-response-class';
|
|
24
|
+
export * from './create-credit-allocation-request-dto';
|
|
25
|
+
export * from './create-credit-allocation-response-class';
|
|
24
26
|
export * from './create-payment-method-response-class';
|
|
25
27
|
export * from './create-payment-order-dto';
|
|
26
28
|
export * from './create-payment-order-request-dto';
|
|
@@ -35,6 +37,7 @@ export * from './create-refund-request-dto';
|
|
|
35
37
|
export * from './create-refund-response-class';
|
|
36
38
|
export * from './create-tenant-bank-account-request-dto';
|
|
37
39
|
export * from './create-tenant-bank-account-response-class';
|
|
40
|
+
export * from './credit-allocation-class';
|
|
38
41
|
export * from './deactivate-payment-reminder-request-dto';
|
|
39
42
|
export * from './deactivate-payment-reminder-response-class';
|
|
40
43
|
export * from './deactivated-payment-reminder-class';
|
|
@@ -45,6 +48,7 @@ export * from './generate-invoice-match-suggestions-response-class';
|
|
|
45
48
|
export * from './get-bank-account-response-class';
|
|
46
49
|
export * from './get-bank-order-response-class';
|
|
47
50
|
export * from './get-bank-transactions-response-class';
|
|
51
|
+
export * from './get-credit-allocation-response-class';
|
|
48
52
|
export * from './get-exceeding-credit-response-class';
|
|
49
53
|
export * from './get-payment-method-response-class';
|
|
50
54
|
export * from './get-payment-reminder-response-class';
|
|
@@ -70,6 +74,7 @@ export * from './link-bank-transactions-response-class';
|
|
|
70
74
|
export * from './list-bank-accounts-response-class';
|
|
71
75
|
export * from './list-bank-orders-response-class';
|
|
72
76
|
export * from './list-bank-transactions-response-class';
|
|
77
|
+
export * from './list-credit-allocations-response-class';
|
|
73
78
|
export * from './list-exceeding-credits-response-class';
|
|
74
79
|
export * from './list-payment-methods-response-class';
|
|
75
80
|
export * from './list-payment-reminders-response-class';
|