@emilgroup/discount-sdk 1.4.1-beta.0 → 1.5.1
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/README.md +2 -2
- package/index.js +99 -0
- package/package.json +8 -21
- package/scripts/deploy.js +225 -0
- package/.openapi-generator/FILES +0 -54
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/api/campaigns-api.ts +0 -1433
- package/api/default-api.ts +0 -124
- package/api/policy-vouchers-api.ts +0 -999
- package/api/vouchers-api.ts +0 -691
- package/api.ts +0 -33
- package/base.ts +0 -331
- package/common.ts +0 -198
- package/configuration.ts +0 -110
- package/dist/api/campaigns-api.d.ts +0 -808
- package/dist/api/campaigns-api.js +0 -1251
- package/dist/api/default-api.d.ts +0 -70
- package/dist/api/default-api.js +0 -200
- package/dist/api/policy-vouchers-api.d.ts +0 -555
- package/dist/api/policy-vouchers-api.js +0 -915
- package/dist/api/vouchers-api.d.ts +0 -393
- package/dist/api/vouchers-api.js +0 -642
- package/dist/api.d.ts +0 -15
- package/dist/api.js +0 -33
- package/dist/base.d.ts +0 -86
- package/dist/base.js +0 -367
- package/dist/common.d.ts +0 -91
- package/dist/common.js +0 -276
- package/dist/configuration.d.ts +0 -89
- package/dist/configuration.js +0 -52
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/campaign-class.d.ts +0 -105
- package/dist/models/campaign-class.js +0 -24
- package/dist/models/charge-policy-voucher-request-dto.d.ts +0 -48
- package/dist/models/charge-policy-voucher-request-dto.js +0 -15
- package/dist/models/charge-policy-voucher-response-class.d.ts +0 -96
- package/dist/models/charge-policy-voucher-response-class.js +0 -21
- package/dist/models/check-account-eligibility-request-dto.d.ts +0 -48
- package/dist/models/check-account-eligibility-request-dto.js +0 -15
- package/dist/models/check-account-eligibility-response-class.d.ts +0 -57
- package/dist/models/check-account-eligibility-response-class.js +0 -24
- package/dist/models/create-campaign-request-dto.d.ts +0 -42
- package/dist/models/create-campaign-request-dto.js +0 -15
- package/dist/models/create-campaign-response-class.d.ts +0 -25
- package/dist/models/create-campaign-response-class.js +0 -15
- package/dist/models/create-eligible-account-request-dto.d.ts +0 -30
- package/dist/models/create-eligible-account-request-dto.js +0 -15
- package/dist/models/create-eligible-account-response-class.d.ts +0 -25
- package/dist/models/create-eligible-account-response-class.js +0 -15
- package/dist/models/create-policy-voucher-request-dto.d.ts +0 -48
- package/dist/models/create-policy-voucher-request-dto.js +0 -15
- package/dist/models/create-policy-voucher-response-class.d.ts +0 -25
- package/dist/models/create-policy-voucher-response-class.js +0 -15
- package/dist/models/create-product-discount-dto.d.ts +0 -48
- package/dist/models/create-product-discount-dto.js +0 -15
- package/dist/models/create-voucher-request-dto.d.ts +0 -66
- package/dist/models/create-voucher-request-dto.js +0 -20
- package/dist/models/create-voucher-response-class.d.ts +0 -25
- package/dist/models/create-voucher-response-class.js +0 -15
- package/dist/models/eligible-account-class.d.ts +0 -78
- package/dist/models/eligible-account-class.js +0 -15
- package/dist/models/get-campaign-response-class.d.ts +0 -25
- package/dist/models/get-campaign-response-class.js +0 -15
- package/dist/models/get-policy-voucher-response-class.d.ts +0 -25
- package/dist/models/get-policy-voucher-response-class.js +0 -15
- package/dist/models/get-voucher-response-class.d.ts +0 -25
- package/dist/models/get-voucher-response-class.js +0 -15
- package/dist/models/index.d.ts +0 -37
- package/dist/models/index.js +0 -53
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response200.js +0 -15
- package/dist/models/inline-response503.d.ts +0 -54
- package/dist/models/inline-response503.js +0 -15
- package/dist/models/list-campaigns-response-class.d.ts +0 -43
- package/dist/models/list-campaigns-response-class.js +0 -15
- package/dist/models/list-eligible-accounts-response-class.d.ts +0 -43
- package/dist/models/list-eligible-accounts-response-class.js +0 -15
- package/dist/models/list-policy-vouchers-response-class.d.ts +0 -43
- package/dist/models/list-policy-vouchers-response-class.js +0 -15
- package/dist/models/list-vouchers-response-class.d.ts +0 -43
- package/dist/models/list-vouchers-response-class.js +0 -15
- package/dist/models/policy-voucher-class.d.ts +0 -165
- package/dist/models/policy-voucher-class.js +0 -21
- package/dist/models/policy-voucher-transaction-class.d.ts +0 -126
- package/dist/models/policy-voucher-transaction-class.js +0 -26
- package/dist/models/product-discount-class.d.ts +0 -90
- package/dist/models/product-discount-class.js +0 -15
- package/dist/models/redeem-policy-voucher-request-dto.d.ts +0 -48
- package/dist/models/redeem-policy-voucher-request-dto.js +0 -15
- package/dist/models/redeem-policy-voucher-response-class.d.ts +0 -84
- package/dist/models/redeem-policy-voucher-response-class.js +0 -21
- package/dist/models/update-campaign-request-dto.d.ts +0 -42
- package/dist/models/update-campaign-request-dto.js +0 -15
- package/dist/models/update-campaign-response-class.d.ts +0 -25
- package/dist/models/update-campaign-response-class.js +0 -15
- package/dist/models/update-campaign-status-request-dto.d.ts +0 -33
- package/dist/models/update-campaign-status-request-dto.js +0 -24
- package/dist/models/update-voucher-request-dto.d.ts +0 -60
- package/dist/models/update-voucher-request-dto.js +0 -20
- package/dist/models/update-voucher-response-class.d.ts +0 -25
- package/dist/models/update-voucher-response-class.js +0 -15
- package/dist/models/voucher-class.d.ts +0 -127
- package/dist/models/voucher-class.js +0 -20
- package/dist/models/withdraw-policy-voucher-request-dto.d.ts +0 -36
- package/dist/models/withdraw-policy-voucher-request-dto.js +0 -15
- package/dist/models/withdraw-policy-voucher-response-class.d.ts +0 -78
- package/dist/models/withdraw-policy-voucher-response-class.js +0 -21
- package/git_push.sh +0 -57
- package/index.ts +0 -19
- package/models/campaign-class.ts +0 -114
- package/models/charge-policy-voucher-request-dto.ts +0 -54
- package/models/charge-policy-voucher-response-class.ts +0 -105
- package/models/check-account-eligibility-request-dto.ts +0 -54
- package/models/check-account-eligibility-response-class.ts +0 -66
- package/models/create-campaign-request-dto.ts +0 -48
- package/models/create-campaign-response-class.ts +0 -31
- package/models/create-eligible-account-request-dto.ts +0 -36
- package/models/create-eligible-account-response-class.ts +0 -31
- package/models/create-policy-voucher-request-dto.ts +0 -54
- package/models/create-policy-voucher-response-class.ts +0 -31
- package/models/create-product-discount-dto.ts +0 -54
- package/models/create-voucher-request-dto.ts +0 -75
- package/models/create-voucher-response-class.ts +0 -31
- package/models/eligible-account-class.ts +0 -84
- package/models/get-campaign-response-class.ts +0 -31
- package/models/get-policy-voucher-response-class.ts +0 -31
- package/models/get-voucher-response-class.ts +0 -31
- package/models/index.ts +0 -37
- package/models/inline-response200.ts +0 -48
- package/models/inline-response503.ts +0 -48
- package/models/list-campaigns-response-class.ts +0 -49
- package/models/list-eligible-accounts-response-class.ts +0 -49
- package/models/list-policy-vouchers-response-class.ts +0 -49
- package/models/list-vouchers-response-class.ts +0 -49
- package/models/policy-voucher-class.ts +0 -174
- package/models/policy-voucher-transaction-class.ts +0 -136
- package/models/product-discount-class.ts +0 -96
- package/models/redeem-policy-voucher-request-dto.ts +0 -54
- package/models/redeem-policy-voucher-response-class.ts +0 -93
- package/models/update-campaign-request-dto.ts +0 -48
- package/models/update-campaign-response-class.ts +0 -31
- package/models/update-campaign-status-request-dto.ts +0 -42
- package/models/update-voucher-request-dto.ts +0 -69
- package/models/update-voucher-response-class.ts +0 -31
- package/models/voucher-class.ts +0 -136
- package/models/withdraw-policy-voucher-request-dto.ts +0 -42
- package/models/withdraw-policy-voucher-response-class.ts +0 -87
- package/tsconfig.json +0 -23
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DiscountService
|
|
5
|
-
* The EMIL DiscountService API description
|
|
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 { VoucherClass } from './voucher-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface ListVouchersResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface ListVouchersResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* vouchers
|
|
26
|
-
* @type {Array<VoucherClass>}
|
|
27
|
-
* @memberof ListVouchersResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<VoucherClass>;
|
|
30
|
-
/**
|
|
31
|
-
* Next page token.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ListVouchersResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'nextPageToken': string;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListVouchersResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
|
-
/**
|
|
43
|
-
* Total amount of items.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof ListVouchersResponseClass
|
|
46
|
-
*/
|
|
47
|
-
'totalItems': number;
|
|
48
|
-
}
|
|
49
|
-
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DiscountService
|
|
5
|
-
* The EMIL DiscountService API description
|
|
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 { CampaignClass } from './campaign-class';
|
|
17
|
-
import { PolicyVoucherTransactionClass } from './policy-voucher-transaction-class';
|
|
18
|
-
import { VoucherClass } from './voucher-class';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @export
|
|
23
|
-
* @interface PolicyVoucherClass
|
|
24
|
-
*/
|
|
25
|
-
export interface PolicyVoucherClass {
|
|
26
|
-
/**
|
|
27
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
28
|
-
* @type {number}
|
|
29
|
-
* @memberof PolicyVoucherClass
|
|
30
|
-
*/
|
|
31
|
-
'id': number;
|
|
32
|
-
/**
|
|
33
|
-
* Unique identifier for the object.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof PolicyVoucherClass
|
|
36
|
-
*/
|
|
37
|
-
'code': string;
|
|
38
|
-
/**
|
|
39
|
-
* Customer-defined voucher code
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof PolicyVoucherClass
|
|
42
|
-
*/
|
|
43
|
-
'voucherCode': string;
|
|
44
|
-
/**
|
|
45
|
-
* The unique identifier for the campaign.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof PolicyVoucherClass
|
|
48
|
-
*/
|
|
49
|
-
'campaignSlug': string;
|
|
50
|
-
/**
|
|
51
|
-
* Voucher status
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof PolicyVoucherClass
|
|
54
|
-
*/
|
|
55
|
-
'status': PolicyVoucherClassStatusEnum;
|
|
56
|
-
/**
|
|
57
|
-
* Campaign id
|
|
58
|
-
* @type {number}
|
|
59
|
-
* @memberof PolicyVoucherClass
|
|
60
|
-
*/
|
|
61
|
-
'campaignId': number;
|
|
62
|
-
/**
|
|
63
|
-
* Voucher id
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof PolicyVoucherClass
|
|
66
|
-
*/
|
|
67
|
-
'voucherId': number;
|
|
68
|
-
/**
|
|
69
|
-
* Number of the partner the voucher is used by
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof PolicyVoucherClass
|
|
72
|
-
*/
|
|
73
|
-
'partnerNumber': string;
|
|
74
|
-
/**
|
|
75
|
-
* Slug of the product the voucher is redeemed for
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof PolicyVoucherClass
|
|
78
|
-
*/
|
|
79
|
-
'productSlug': string;
|
|
80
|
-
/**
|
|
81
|
-
* true if the voucher has been redeemed, false otherwise
|
|
82
|
-
* @type {boolean}
|
|
83
|
-
* @memberof PolicyVoucherClass
|
|
84
|
-
*/
|
|
85
|
-
'redeemed': boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Date when the voucher was redeemed
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof PolicyVoucherClass
|
|
90
|
-
*/
|
|
91
|
-
'redeemedAt': string;
|
|
92
|
-
/**
|
|
93
|
-
* The end date of the voucher discount. Calculated based on the policy start date and the voucher duration.
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof PolicyVoucherClass
|
|
96
|
-
*/
|
|
97
|
-
'discountEndDate': string;
|
|
98
|
-
/**
|
|
99
|
-
* The remaining number of months left in the voucher to use
|
|
100
|
-
* @type {number}
|
|
101
|
-
* @memberof PolicyVoucherClass
|
|
102
|
-
*/
|
|
103
|
-
'remainingMonths': number;
|
|
104
|
-
/**
|
|
105
|
-
* The amount (in cents!) of remaining voucher credits
|
|
106
|
-
* @type {number}
|
|
107
|
-
* @memberof PolicyVoucherClass
|
|
108
|
-
*/
|
|
109
|
-
'remainingCredits': number;
|
|
110
|
-
/**
|
|
111
|
-
* List of policy voucher transactions
|
|
112
|
-
* @type {Array<PolicyVoucherTransactionClass>}
|
|
113
|
-
* @memberof PolicyVoucherClass
|
|
114
|
-
*/
|
|
115
|
-
'transactions': Array<PolicyVoucherTransactionClass>;
|
|
116
|
-
/**
|
|
117
|
-
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof PolicyVoucherClass
|
|
120
|
-
*/
|
|
121
|
-
'ern': string;
|
|
122
|
-
/**
|
|
123
|
-
* Time at which the object was created.
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof PolicyVoucherClass
|
|
126
|
-
*/
|
|
127
|
-
'createdAt': string;
|
|
128
|
-
/**
|
|
129
|
-
* Time at which the object was updated.
|
|
130
|
-
* @type {string}
|
|
131
|
-
* @memberof PolicyVoucherClass
|
|
132
|
-
*/
|
|
133
|
-
'updatedAt': string;
|
|
134
|
-
/**
|
|
135
|
-
* Identifier of the user who created the record.
|
|
136
|
-
* @type {string}
|
|
137
|
-
* @memberof PolicyVoucherClass
|
|
138
|
-
*/
|
|
139
|
-
'createdBy': string;
|
|
140
|
-
/**
|
|
141
|
-
* Identifier of the user who last updated the record.
|
|
142
|
-
* @type {string}
|
|
143
|
-
* @memberof PolicyVoucherClass
|
|
144
|
-
*/
|
|
145
|
-
'updatedBy': string;
|
|
146
|
-
/**
|
|
147
|
-
* Campaign version
|
|
148
|
-
* @type {number}
|
|
149
|
-
* @memberof PolicyVoucherClass
|
|
150
|
-
*/
|
|
151
|
-
'version': number;
|
|
152
|
-
/**
|
|
153
|
-
* Campaign
|
|
154
|
-
* @type {CampaignClass}
|
|
155
|
-
* @memberof PolicyVoucherClass
|
|
156
|
-
*/
|
|
157
|
-
'campaign': CampaignClass;
|
|
158
|
-
/**
|
|
159
|
-
* Voucher
|
|
160
|
-
* @type {VoucherClass}
|
|
161
|
-
* @memberof PolicyVoucherClass
|
|
162
|
-
*/
|
|
163
|
-
'voucher': VoucherClass;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export const PolicyVoucherClassStatusEnum = {
|
|
167
|
-
Redeemable: 'REDEEMABLE',
|
|
168
|
-
Active: 'ACTIVE',
|
|
169
|
-
Used: 'USED'
|
|
170
|
-
} as const;
|
|
171
|
-
|
|
172
|
-
export type PolicyVoucherClassStatusEnum = typeof PolicyVoucherClassStatusEnum[keyof typeof PolicyVoucherClassStatusEnum];
|
|
173
|
-
|
|
174
|
-
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DiscountService
|
|
5
|
-
* The EMIL DiscountService API description
|
|
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 PolicyVoucherTransactionClass
|
|
21
|
-
*/
|
|
22
|
-
export interface PolicyVoucherTransactionClass {
|
|
23
|
-
/**
|
|
24
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof PolicyVoucherTransactionClass
|
|
27
|
-
*/
|
|
28
|
-
'id': number;
|
|
29
|
-
/**
|
|
30
|
-
* Unique identifier for the object.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof PolicyVoucherTransactionClass
|
|
33
|
-
*/
|
|
34
|
-
'code': string;
|
|
35
|
-
/**
|
|
36
|
-
* Policy voucher id
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof PolicyVoucherTransactionClass
|
|
39
|
-
*/
|
|
40
|
-
'policyVoucherId': number;
|
|
41
|
-
/**
|
|
42
|
-
* Invoice number
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof PolicyVoucherTransactionClass
|
|
45
|
-
*/
|
|
46
|
-
'invoiceNumber': string;
|
|
47
|
-
/**
|
|
48
|
-
* Policy number
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof PolicyVoucherTransactionClass
|
|
51
|
-
*/
|
|
52
|
-
'policyNumber': string;
|
|
53
|
-
/**
|
|
54
|
-
* The transaction amount (in cents!) the voucher credits were descreased by
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof PolicyVoucherTransactionClass
|
|
57
|
-
*/
|
|
58
|
-
'amount': number;
|
|
59
|
-
/**
|
|
60
|
-
* The number of months the voucher months were descreased by
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @memberof PolicyVoucherTransactionClass
|
|
63
|
-
*/
|
|
64
|
-
'months': number;
|
|
65
|
-
/**
|
|
66
|
-
* The amount (in cents!) of remaining voucher credits BEFORE the transaction
|
|
67
|
-
* @type {number}
|
|
68
|
-
* @memberof PolicyVoucherTransactionClass
|
|
69
|
-
*/
|
|
70
|
-
'oldRemainingCredits': number;
|
|
71
|
-
/**
|
|
72
|
-
* The amount (in cents!) of remaining voucher credits AFTER the transaction
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof PolicyVoucherTransactionClass
|
|
75
|
-
*/
|
|
76
|
-
'newRemainingCredits': number;
|
|
77
|
-
/**
|
|
78
|
-
* The number of remaining months to charge the voucher BEFORE the transaction
|
|
79
|
-
* @type {number}
|
|
80
|
-
* @memberof PolicyVoucherTransactionClass
|
|
81
|
-
*/
|
|
82
|
-
'oldRemainingMonths': number;
|
|
83
|
-
/**
|
|
84
|
-
* The number of remaining months to charge the voucher AFTER the transaction
|
|
85
|
-
* @type {number}
|
|
86
|
-
* @memberof PolicyVoucherTransactionClass
|
|
87
|
-
*/
|
|
88
|
-
'newRemainingMonths': number;
|
|
89
|
-
/**
|
|
90
|
-
* Voucher status BEFORE the transaction
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof PolicyVoucherTransactionClass
|
|
93
|
-
*/
|
|
94
|
-
'oldStatus': PolicyVoucherTransactionClassOldStatusEnum;
|
|
95
|
-
/**
|
|
96
|
-
* Voucher status AFTER the transaction
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof PolicyVoucherTransactionClass
|
|
99
|
-
*/
|
|
100
|
-
'newStatus': PolicyVoucherTransactionClassNewStatusEnum;
|
|
101
|
-
/**
|
|
102
|
-
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
103
|
-
* @type {string}
|
|
104
|
-
* @memberof PolicyVoucherTransactionClass
|
|
105
|
-
*/
|
|
106
|
-
'ern': string;
|
|
107
|
-
/**
|
|
108
|
-
* Time at which the object was created.
|
|
109
|
-
* @type {string}
|
|
110
|
-
* @memberof PolicyVoucherTransactionClass
|
|
111
|
-
*/
|
|
112
|
-
'createdAt': string;
|
|
113
|
-
/**
|
|
114
|
-
* Identifier of the user who created the record.
|
|
115
|
-
* @type {string}
|
|
116
|
-
* @memberof PolicyVoucherTransactionClass
|
|
117
|
-
*/
|
|
118
|
-
'createdBy': string;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export const PolicyVoucherTransactionClassOldStatusEnum = {
|
|
122
|
-
Redeemable: 'REDEEMABLE',
|
|
123
|
-
Active: 'ACTIVE',
|
|
124
|
-
Used: 'USED'
|
|
125
|
-
} as const;
|
|
126
|
-
|
|
127
|
-
export type PolicyVoucherTransactionClassOldStatusEnum = typeof PolicyVoucherTransactionClassOldStatusEnum[keyof typeof PolicyVoucherTransactionClassOldStatusEnum];
|
|
128
|
-
export const PolicyVoucherTransactionClassNewStatusEnum = {
|
|
129
|
-
Redeemable: 'REDEEMABLE',
|
|
130
|
-
Active: 'ACTIVE',
|
|
131
|
-
Used: 'USED'
|
|
132
|
-
} as const;
|
|
133
|
-
|
|
134
|
-
export type PolicyVoucherTransactionClassNewStatusEnum = typeof PolicyVoucherTransactionClassNewStatusEnum[keyof typeof PolicyVoucherTransactionClassNewStatusEnum];
|
|
135
|
-
|
|
136
|
-
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DiscountService
|
|
5
|
-
* The EMIL DiscountService API description
|
|
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 ProductDiscountClass
|
|
21
|
-
*/
|
|
22
|
-
export interface ProductDiscountClass {
|
|
23
|
-
/**
|
|
24
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof ProductDiscountClass
|
|
27
|
-
*/
|
|
28
|
-
'id': number;
|
|
29
|
-
/**
|
|
30
|
-
* The slug of the product this discount applies to.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof ProductDiscountClass
|
|
33
|
-
*/
|
|
34
|
-
'productSlug': string;
|
|
35
|
-
/**
|
|
36
|
-
* The unique identifier of the voucher this discount applies to.
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof ProductDiscountClass
|
|
39
|
-
*/
|
|
40
|
-
'voucherId': number;
|
|
41
|
-
/**
|
|
42
|
-
* The monthly price of the product (in cents).
|
|
43
|
-
* @type {number}
|
|
44
|
-
* @memberof ProductDiscountClass
|
|
45
|
-
*/
|
|
46
|
-
'monthlyPrice': number;
|
|
47
|
-
/**
|
|
48
|
-
* The total discount amount for the product (in cents).
|
|
49
|
-
* @type {number}
|
|
50
|
-
* @memberof ProductDiscountClass
|
|
51
|
-
*/
|
|
52
|
-
'totalDiscount': number;
|
|
53
|
-
/**
|
|
54
|
-
* The number of months this discount will be applied.
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof ProductDiscountClass
|
|
57
|
-
*/
|
|
58
|
-
'discountMonths': number;
|
|
59
|
-
/**
|
|
60
|
-
* The monthly discount applied to the product (in cents).
|
|
61
|
-
* @type {number}
|
|
62
|
-
* @memberof ProductDiscountClass
|
|
63
|
-
*/
|
|
64
|
-
'monthlyDiscountApplied': number;
|
|
65
|
-
/**
|
|
66
|
-
* Time at which the object was created.
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof ProductDiscountClass
|
|
69
|
-
*/
|
|
70
|
-
'createdAt': string;
|
|
71
|
-
/**
|
|
72
|
-
* Time at which the object was updated.
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof ProductDiscountClass
|
|
75
|
-
*/
|
|
76
|
-
'updatedAt': string;
|
|
77
|
-
/**
|
|
78
|
-
* Identifier of the user who created the record.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof ProductDiscountClass
|
|
81
|
-
*/
|
|
82
|
-
'createdBy': string;
|
|
83
|
-
/**
|
|
84
|
-
* Identifier of the user who last updated the record.
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof ProductDiscountClass
|
|
87
|
-
*/
|
|
88
|
-
'updatedBy': string;
|
|
89
|
-
/**
|
|
90
|
-
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof ProductDiscountClass
|
|
93
|
-
*/
|
|
94
|
-
'ern': string;
|
|
95
|
-
}
|
|
96
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DiscountService
|
|
5
|
-
* The EMIL DiscountService API description
|
|
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 RedeemPolicyVoucherRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface RedeemPolicyVoucherRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* Customer-defined voucher code
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof RedeemPolicyVoucherRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'voucherCode': string;
|
|
29
|
-
/**
|
|
30
|
-
* Slug of the campaign the voucher is used for
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof RedeemPolicyVoucherRequestDto
|
|
33
|
-
*/
|
|
34
|
-
'campaignSlug': string;
|
|
35
|
-
/**
|
|
36
|
-
* Number of the partner the voucher is used by
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof RedeemPolicyVoucherRequestDto
|
|
39
|
-
*/
|
|
40
|
-
'partnerNumber': string;
|
|
41
|
-
/**
|
|
42
|
-
* Slug of the product the voucher is redeemed for
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof RedeemPolicyVoucherRequestDto
|
|
45
|
-
*/
|
|
46
|
-
'productSlug': string;
|
|
47
|
-
/**
|
|
48
|
-
* The yearly premium of the policy (in cents). This value is required to ensure accurate discount calculations, especially in edge cases where the total premium is less than the discount. It helps prevent situations where the discount would exceed the actual premium amount.
|
|
49
|
-
* @type {number}
|
|
50
|
-
* @memberof RedeemPolicyVoucherRequestDto
|
|
51
|
-
*/
|
|
52
|
-
'yearlyPremium': number;
|
|
53
|
-
}
|
|
54
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DiscountService
|
|
5
|
-
* The EMIL DiscountService API description
|
|
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 RedeemPolicyVoucherResponseClass
|
|
21
|
-
*/
|
|
22
|
-
export interface RedeemPolicyVoucherResponseClass {
|
|
23
|
-
/**
|
|
24
|
-
* Unique identifier of the transaction that this object belongs to.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
27
|
-
*/
|
|
28
|
-
'transactionCode': string;
|
|
29
|
-
/**
|
|
30
|
-
* Transaction date
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
33
|
-
*/
|
|
34
|
-
'transactionDate': string;
|
|
35
|
-
/**
|
|
36
|
-
* Unique identifier for the object.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
39
|
-
*/
|
|
40
|
-
'code': string;
|
|
41
|
-
/**
|
|
42
|
-
* Voucher status
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
45
|
-
*/
|
|
46
|
-
'status': RedeemPolicyVoucherResponseClassStatusEnum;
|
|
47
|
-
/**
|
|
48
|
-
* Customer-defined voucher code
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
51
|
-
*/
|
|
52
|
-
'voucherCode': string;
|
|
53
|
-
/**
|
|
54
|
-
* Slug of the product the voucher is redeemed for
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
57
|
-
*/
|
|
58
|
-
'productSlug': string;
|
|
59
|
-
/**
|
|
60
|
-
* Code of the customer the voucher is used by
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
63
|
-
*/
|
|
64
|
-
'partnerNumber': string;
|
|
65
|
-
/**
|
|
66
|
-
* The remaining number of months left in the voucher to use
|
|
67
|
-
* @type {number}
|
|
68
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
69
|
-
*/
|
|
70
|
-
'remainingMonths': number;
|
|
71
|
-
/**
|
|
72
|
-
* The amount (in cents!) of remaining voucher credits
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
75
|
-
*/
|
|
76
|
-
'remainingCredits': number;
|
|
77
|
-
/**
|
|
78
|
-
* The yearly premium of the policy
|
|
79
|
-
* @type {number}
|
|
80
|
-
* @memberof RedeemPolicyVoucherResponseClass
|
|
81
|
-
*/
|
|
82
|
-
'yearlyPremium': number;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export const RedeemPolicyVoucherResponseClassStatusEnum = {
|
|
86
|
-
Redeemable: 'REDEEMABLE',
|
|
87
|
-
Active: 'ACTIVE',
|
|
88
|
-
Used: 'USED'
|
|
89
|
-
} as const;
|
|
90
|
-
|
|
91
|
-
export type RedeemPolicyVoucherResponseClassStatusEnum = typeof RedeemPolicyVoucherResponseClassStatusEnum[keyof typeof RedeemPolicyVoucherResponseClassStatusEnum];
|
|
92
|
-
|
|
93
|
-
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DiscountService
|
|
5
|
-
* The EMIL DiscountService API description
|
|
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 UpdateCampaignRequestDto
|
|
21
|
-
*/
|
|
22
|
-
export interface UpdateCampaignRequestDto {
|
|
23
|
-
/**
|
|
24
|
-
* The name of the campaign.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof UpdateCampaignRequestDto
|
|
27
|
-
*/
|
|
28
|
-
'name': string;
|
|
29
|
-
/**
|
|
30
|
-
* A unique identifier for the campaign.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof UpdateCampaignRequestDto
|
|
33
|
-
*/
|
|
34
|
-
'slug': string;
|
|
35
|
-
/**
|
|
36
|
-
* The date when the campaign becomes active. Must be before the end date.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof UpdateCampaignRequestDto
|
|
39
|
-
*/
|
|
40
|
-
'startDate': string;
|
|
41
|
-
/**
|
|
42
|
-
* The date when the campaign expires. Must be after the start date.
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof UpdateCampaignRequestDto
|
|
45
|
-
*/
|
|
46
|
-
'endDate': string;
|
|
47
|
-
}
|
|
48
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL DiscountService
|
|
5
|
-
* The EMIL DiscountService API description
|
|
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 { CampaignClass } from './campaign-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface UpdateCampaignResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface UpdateCampaignResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The updated campaign.
|
|
26
|
-
* @type {CampaignClass}
|
|
27
|
-
* @memberof UpdateCampaignResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'campaign': CampaignClass;
|
|
30
|
-
}
|
|
31
|
-
|