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