@emilgroup/discount-sdk 1.5.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 (149) hide show
  1. package/index.js +99 -0
  2. package/package.json +8 -21
  3. package/scripts/deploy.js +225 -0
  4. package/.openapi-generator/FILES +0 -54
  5. package/.openapi-generator/VERSION +0 -1
  6. package/.openapi-generator-ignore +0 -23
  7. package/api/campaigns-api.ts +0 -1433
  8. package/api/default-api.ts +0 -124
  9. package/api/policy-vouchers-api.ts +0 -999
  10. package/api/vouchers-api.ts +0 -691
  11. package/api.ts +0 -33
  12. package/base.ts +0 -331
  13. package/common.ts +0 -198
  14. package/configuration.ts +0 -110
  15. package/dist/api/campaigns-api.d.ts +0 -808
  16. package/dist/api/campaigns-api.js +0 -1251
  17. package/dist/api/default-api.d.ts +0 -70
  18. package/dist/api/default-api.js +0 -200
  19. package/dist/api/policy-vouchers-api.d.ts +0 -555
  20. package/dist/api/policy-vouchers-api.js +0 -915
  21. package/dist/api/vouchers-api.d.ts +0 -393
  22. package/dist/api/vouchers-api.js +0 -642
  23. package/dist/api.d.ts +0 -15
  24. package/dist/api.js +0 -33
  25. package/dist/base.d.ts +0 -86
  26. package/dist/base.js +0 -367
  27. package/dist/common.d.ts +0 -91
  28. package/dist/common.js +0 -276
  29. package/dist/configuration.d.ts +0 -89
  30. package/dist/configuration.js +0 -52
  31. package/dist/index.d.ts +0 -15
  32. package/dist/index.js +0 -36
  33. package/dist/models/campaign-class.d.ts +0 -105
  34. package/dist/models/campaign-class.js +0 -24
  35. package/dist/models/charge-policy-voucher-request-dto.d.ts +0 -48
  36. package/dist/models/charge-policy-voucher-request-dto.js +0 -15
  37. package/dist/models/charge-policy-voucher-response-class.d.ts +0 -96
  38. package/dist/models/charge-policy-voucher-response-class.js +0 -21
  39. package/dist/models/check-account-eligibility-request-dto.d.ts +0 -48
  40. package/dist/models/check-account-eligibility-request-dto.js +0 -15
  41. package/dist/models/check-account-eligibility-response-class.d.ts +0 -57
  42. package/dist/models/check-account-eligibility-response-class.js +0 -24
  43. package/dist/models/create-campaign-request-dto.d.ts +0 -42
  44. package/dist/models/create-campaign-request-dto.js +0 -15
  45. package/dist/models/create-campaign-response-class.d.ts +0 -25
  46. package/dist/models/create-campaign-response-class.js +0 -15
  47. package/dist/models/create-eligible-account-request-dto.d.ts +0 -30
  48. package/dist/models/create-eligible-account-request-dto.js +0 -15
  49. package/dist/models/create-eligible-account-response-class.d.ts +0 -25
  50. package/dist/models/create-eligible-account-response-class.js +0 -15
  51. package/dist/models/create-policy-voucher-request-dto.d.ts +0 -48
  52. package/dist/models/create-policy-voucher-request-dto.js +0 -15
  53. package/dist/models/create-policy-voucher-response-class.d.ts +0 -25
  54. package/dist/models/create-policy-voucher-response-class.js +0 -15
  55. package/dist/models/create-product-discount-dto.d.ts +0 -48
  56. package/dist/models/create-product-discount-dto.js +0 -15
  57. package/dist/models/create-voucher-request-dto.d.ts +0 -66
  58. package/dist/models/create-voucher-request-dto.js +0 -20
  59. package/dist/models/create-voucher-response-class.d.ts +0 -25
  60. package/dist/models/create-voucher-response-class.js +0 -15
  61. package/dist/models/eligible-account-class.d.ts +0 -78
  62. package/dist/models/eligible-account-class.js +0 -15
  63. package/dist/models/get-campaign-response-class.d.ts +0 -25
  64. package/dist/models/get-campaign-response-class.js +0 -15
  65. package/dist/models/get-policy-voucher-response-class.d.ts +0 -25
  66. package/dist/models/get-policy-voucher-response-class.js +0 -15
  67. package/dist/models/get-voucher-response-class.d.ts +0 -25
  68. package/dist/models/get-voucher-response-class.js +0 -15
  69. package/dist/models/index.d.ts +0 -37
  70. package/dist/models/index.js +0 -53
  71. package/dist/models/inline-response200.d.ts +0 -54
  72. package/dist/models/inline-response200.js +0 -15
  73. package/dist/models/inline-response503.d.ts +0 -54
  74. package/dist/models/inline-response503.js +0 -15
  75. package/dist/models/list-campaigns-response-class.d.ts +0 -43
  76. package/dist/models/list-campaigns-response-class.js +0 -15
  77. package/dist/models/list-eligible-accounts-response-class.d.ts +0 -43
  78. package/dist/models/list-eligible-accounts-response-class.js +0 -15
  79. package/dist/models/list-policy-vouchers-response-class.d.ts +0 -43
  80. package/dist/models/list-policy-vouchers-response-class.js +0 -15
  81. package/dist/models/list-vouchers-response-class.d.ts +0 -43
  82. package/dist/models/list-vouchers-response-class.js +0 -15
  83. package/dist/models/policy-voucher-class.d.ts +0 -165
  84. package/dist/models/policy-voucher-class.js +0 -21
  85. package/dist/models/policy-voucher-transaction-class.d.ts +0 -126
  86. package/dist/models/policy-voucher-transaction-class.js +0 -26
  87. package/dist/models/product-discount-class.d.ts +0 -90
  88. package/dist/models/product-discount-class.js +0 -15
  89. package/dist/models/redeem-policy-voucher-request-dto.d.ts +0 -48
  90. package/dist/models/redeem-policy-voucher-request-dto.js +0 -15
  91. package/dist/models/redeem-policy-voucher-response-class.d.ts +0 -84
  92. package/dist/models/redeem-policy-voucher-response-class.js +0 -21
  93. package/dist/models/update-campaign-request-dto.d.ts +0 -42
  94. package/dist/models/update-campaign-request-dto.js +0 -15
  95. package/dist/models/update-campaign-response-class.d.ts +0 -25
  96. package/dist/models/update-campaign-response-class.js +0 -15
  97. package/dist/models/update-campaign-status-request-dto.d.ts +0 -33
  98. package/dist/models/update-campaign-status-request-dto.js +0 -24
  99. package/dist/models/update-voucher-request-dto.d.ts +0 -60
  100. package/dist/models/update-voucher-request-dto.js +0 -20
  101. package/dist/models/update-voucher-response-class.d.ts +0 -25
  102. package/dist/models/update-voucher-response-class.js +0 -15
  103. package/dist/models/voucher-class.d.ts +0 -127
  104. package/dist/models/voucher-class.js +0 -20
  105. package/dist/models/withdraw-policy-voucher-request-dto.d.ts +0 -36
  106. package/dist/models/withdraw-policy-voucher-request-dto.js +0 -15
  107. package/dist/models/withdraw-policy-voucher-response-class.d.ts +0 -78
  108. package/dist/models/withdraw-policy-voucher-response-class.js +0 -21
  109. package/git_push.sh +0 -57
  110. package/index.ts +0 -19
  111. package/models/campaign-class.ts +0 -114
  112. package/models/charge-policy-voucher-request-dto.ts +0 -54
  113. package/models/charge-policy-voucher-response-class.ts +0 -105
  114. package/models/check-account-eligibility-request-dto.ts +0 -54
  115. package/models/check-account-eligibility-response-class.ts +0 -66
  116. package/models/create-campaign-request-dto.ts +0 -48
  117. package/models/create-campaign-response-class.ts +0 -31
  118. package/models/create-eligible-account-request-dto.ts +0 -36
  119. package/models/create-eligible-account-response-class.ts +0 -31
  120. package/models/create-policy-voucher-request-dto.ts +0 -54
  121. package/models/create-policy-voucher-response-class.ts +0 -31
  122. package/models/create-product-discount-dto.ts +0 -54
  123. package/models/create-voucher-request-dto.ts +0 -75
  124. package/models/create-voucher-response-class.ts +0 -31
  125. package/models/eligible-account-class.ts +0 -84
  126. package/models/get-campaign-response-class.ts +0 -31
  127. package/models/get-policy-voucher-response-class.ts +0 -31
  128. package/models/get-voucher-response-class.ts +0 -31
  129. package/models/index.ts +0 -37
  130. package/models/inline-response200.ts +0 -48
  131. package/models/inline-response503.ts +0 -48
  132. package/models/list-campaigns-response-class.ts +0 -49
  133. package/models/list-eligible-accounts-response-class.ts +0 -49
  134. package/models/list-policy-vouchers-response-class.ts +0 -49
  135. package/models/list-vouchers-response-class.ts +0 -49
  136. package/models/policy-voucher-class.ts +0 -174
  137. package/models/policy-voucher-transaction-class.ts +0 -136
  138. package/models/product-discount-class.ts +0 -96
  139. package/models/redeem-policy-voucher-request-dto.ts +0 -54
  140. package/models/redeem-policy-voucher-response-class.ts +0 -93
  141. package/models/update-campaign-request-dto.ts +0 -48
  142. package/models/update-campaign-response-class.ts +0 -31
  143. package/models/update-campaign-status-request-dto.ts +0 -42
  144. package/models/update-voucher-request-dto.ts +0 -69
  145. package/models/update-voucher-response-class.ts +0 -31
  146. package/models/voucher-class.ts +0 -136
  147. package/models/withdraw-policy-voucher-request-dto.ts +0 -42
  148. package/models/withdraw-policy-voucher-response-class.ts +0 -87
  149. package/tsconfig.json +0 -23
@@ -1,96 +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 ChargePolicyVoucherResponseClass
16
- */
17
- export interface ChargePolicyVoucherResponseClass {
18
- /**
19
- * Unique identifier of the transaction that this object belongs to.
20
- * @type {string}
21
- * @memberof ChargePolicyVoucherResponseClass
22
- */
23
- 'transactionCode': string;
24
- /**
25
- * Transaction date
26
- * @type {string}
27
- * @memberof ChargePolicyVoucherResponseClass
28
- */
29
- 'transactionDate': string;
30
- /**
31
- * Unique identifier for the object.
32
- * @type {string}
33
- * @memberof ChargePolicyVoucherResponseClass
34
- */
35
- 'code': string;
36
- /**
37
- * Voucher status
38
- * @type {string}
39
- * @memberof ChargePolicyVoucherResponseClass
40
- */
41
- 'status': ChargePolicyVoucherResponseClassStatusEnum;
42
- /**
43
- * Customer-defined voucher code
44
- * @type {string}
45
- * @memberof ChargePolicyVoucherResponseClass
46
- */
47
- 'voucherCode': string;
48
- /**
49
- * Slug of the product the voucher is redeemed for
50
- * @type {string}
51
- * @memberof ChargePolicyVoucherResponseClass
52
- */
53
- 'productSlug': string;
54
- /**
55
- * Number of the partner the voucher is used by
56
- * @type {string}
57
- * @memberof ChargePolicyVoucherResponseClass
58
- */
59
- 'partnerNumber': string;
60
- /**
61
- * The remaining number of months left in the voucher to use
62
- * @type {number}
63
- * @memberof ChargePolicyVoucherResponseClass
64
- */
65
- 'remainingMonths': number;
66
- /**
67
- * The amount (in cents!) of remaining voucher credits
68
- * @type {number}
69
- * @memberof ChargePolicyVoucherResponseClass
70
- */
71
- 'remainingCredits': number;
72
- /**
73
- * The yearly premium of the policy
74
- * @type {number}
75
- * @memberof ChargePolicyVoucherResponseClass
76
- */
77
- 'yearlyPremium': number;
78
- /**
79
- * The amount charged for the voucher (monthly policy voucher discount)
80
- * @type {number}
81
- * @memberof ChargePolicyVoucherResponseClass
82
- */
83
- 'chargedAmount': number;
84
- /**
85
- * The end date of the voucher discount. Calculated based on the policy start date and the voucher duration.
86
- * @type {string}
87
- * @memberof ChargePolicyVoucherResponseClass
88
- */
89
- 'discountEndDate': string;
90
- }
91
- export declare const ChargePolicyVoucherResponseClassStatusEnum: {
92
- readonly Redeemable: "REDEEMABLE";
93
- readonly Active: "ACTIVE";
94
- readonly Used: "USED";
95
- };
96
- export type ChargePolicyVoucherResponseClassStatusEnum = typeof ChargePolicyVoucherResponseClassStatusEnum[keyof typeof ChargePolicyVoucherResponseClassStatusEnum];
@@ -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.ChargePolicyVoucherResponseClassStatusEnum = void 0;
17
- exports.ChargePolicyVoucherResponseClassStatusEnum = {
18
- Redeemable: 'REDEEMABLE',
19
- Active: 'ACTIVE',
20
- Used: 'USED'
21
- };
@@ -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 CheckAccountEligibilityRequestDto
16
- */
17
- export interface CheckAccountEligibilityRequestDto {
18
- /**
19
- * The voucher code to check eligibility for
20
- * @type {string}
21
- * @memberof CheckAccountEligibilityRequestDto
22
- */
23
- 'voucherCode': string;
24
- /**
25
- * The partner number to check eligibility for
26
- * @type {string}
27
- * @memberof CheckAccountEligibilityRequestDto
28
- */
29
- 'partnerNumber': string;
30
- /**
31
- * The product slug to check eligibility for
32
- * @type {string}
33
- * @memberof CheckAccountEligibilityRequestDto
34
- */
35
- 'productSlug': string;
36
- /**
37
- * The campaign slug to check eligibility for
38
- * @type {string}
39
- * @memberof CheckAccountEligibilityRequestDto
40
- */
41
- 'campaignSlug': string;
42
- /**
43
- * The original yearly amount before applying any discount (in cents)
44
- * @type {number}
45
- * @memberof CheckAccountEligibilityRequestDto
46
- */
47
- 'yearlyAmount'?: 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 });
@@ -1,57 +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 CheckAccountEligibilityResponseClass
16
- */
17
- export interface CheckAccountEligibilityResponseClass {
18
- /**
19
- * The eligibility status of the account
20
- * @type {boolean}
21
- * @memberof CheckAccountEligibilityResponseClass
22
- */
23
- 'eligible': boolean;
24
- /**
25
- * The error code if the account is not eligible
26
- * @type {string}
27
- * @memberof CheckAccountEligibilityResponseClass
28
- */
29
- 'errorCode': CheckAccountEligibilityResponseClassErrorCodeEnum;
30
- /**
31
- * The total discount amount applied to the original price (in cents)
32
- * @type {number}
33
- * @memberof CheckAccountEligibilityResponseClass
34
- */
35
- 'totalDiscount': number;
36
- /**
37
- * The monthly discount amount applied to the original price (in cents)
38
- * @type {number}
39
- * @memberof CheckAccountEligibilityResponseClass
40
- */
41
- 'monthlyDiscount': number;
42
- /**
43
- * The number of months the discount is applied
44
- * @type {number}
45
- * @memberof CheckAccountEligibilityResponseClass
46
- */
47
- 'discountMonths': number;
48
- }
49
- export declare const CheckAccountEligibilityResponseClassErrorCodeEnum: {
50
- readonly NA: "n/A";
51
- readonly ErrorCampaignOver: "error_campaign_over";
52
- readonly ErrorVoucherAlreadyRedeemed: "error_voucher_already_redeemed";
53
- readonly ErrorCustomerHasNoVoucher: "error_customer_has_no_voucher";
54
- readonly ErrorVoucherIsExclusive: "error_voucher_is_exclusive";
55
- readonly ErrorProductNotAllowed: "error_product_not_allowed";
56
- };
57
- export type CheckAccountEligibilityResponseClassErrorCodeEnum = typeof CheckAccountEligibilityResponseClassErrorCodeEnum[keyof typeof CheckAccountEligibilityResponseClassErrorCodeEnum];
@@ -1,24 +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.CheckAccountEligibilityResponseClassErrorCodeEnum = void 0;
17
- exports.CheckAccountEligibilityResponseClassErrorCodeEnum = {
18
- NA: 'n/A',
19
- ErrorCampaignOver: 'error_campaign_over',
20
- ErrorVoucherAlreadyRedeemed: 'error_voucher_already_redeemed',
21
- ErrorCustomerHasNoVoucher: 'error_customer_has_no_voucher',
22
- ErrorVoucherIsExclusive: 'error_voucher_is_exclusive',
23
- ErrorProductNotAllowed: 'error_product_not_allowed'
24
- };
@@ -1,42 +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 CreateCampaignRequestDto
16
- */
17
- export interface CreateCampaignRequestDto {
18
- /**
19
- * The name of the campaign.
20
- * @type {string}
21
- * @memberof CreateCampaignRequestDto
22
- */
23
- 'name': string;
24
- /**
25
- * A unique identifier for the campaign.
26
- * @type {string}
27
- * @memberof CreateCampaignRequestDto
28
- */
29
- 'slug': string;
30
- /**
31
- * The date when the campaign becomes active. Must be today or a future date, and must be before the end date.
32
- * @type {string}
33
- * @memberof CreateCampaignRequestDto
34
- */
35
- 'startDate': string;
36
- /**
37
- * The date when the campaign expires. Must be after the start date.
38
- * @type {string}
39
- * @memberof CreateCampaignRequestDto
40
- */
41
- 'endDate': string;
42
- }
@@ -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,25 +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
- /**
14
- *
15
- * @export
16
- * @interface CreateCampaignResponseClass
17
- */
18
- export interface CreateCampaignResponseClass {
19
- /**
20
- * The created campaign.
21
- * @type {CampaignClass}
22
- * @memberof CreateCampaignResponseClass
23
- */
24
- 'campaign': CampaignClass;
25
- }
@@ -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,30 +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 CreateEligibleAccountRequestDto
16
- */
17
- export interface CreateEligibleAccountRequestDto {
18
- /**
19
- * The unique code of the voucher that will be assigned to this account. This code will be used for redemption.
20
- * @type {string}
21
- * @memberof CreateEligibleAccountRequestDto
22
- */
23
- 'voucherCode': string;
24
- /**
25
- * The unique identifier of the partner account that will be eligible to redeem the voucher.
26
- * @type {string}
27
- * @memberof CreateEligibleAccountRequestDto
28
- */
29
- 'partnerNumber': string;
30
- }
@@ -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,25 +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 CreateEligibleAccountResponseClass
17
- */
18
- export interface CreateEligibleAccountResponseClass {
19
- /**
20
- * The account that has been marked as eligible to redeem a voucher from a specific campaign.
21
- * @type {EligibleAccountClass}
22
- * @memberof CreateEligibleAccountResponseClass
23
- */
24
- 'eligibleAccount': EligibleAccountClass;
25
- }
@@ -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 CreatePolicyVoucherRequestDto
16
- */
17
- export interface CreatePolicyVoucherRequestDto {
18
- /**
19
- * Customer-defined voucher code
20
- * @type {string}
21
- * @memberof CreatePolicyVoucherRequestDto
22
- */
23
- 'voucherCode': string;
24
- /**
25
- * Slug of the campaign the voucher is used for
26
- * @type {string}
27
- * @memberof CreatePolicyVoucherRequestDto
28
- */
29
- 'campaignSlug': string;
30
- /**
31
- * Number of the partner the voucher is used by
32
- * @type {string}
33
- * @memberof CreatePolicyVoucherRequestDto
34
- */
35
- 'partnerNumber': string;
36
- /**
37
- * Slug of the product the voucher is redeemed for
38
- * @type {string}
39
- * @memberof CreatePolicyVoucherRequestDto
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 CreatePolicyVoucherRequestDto
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 });
@@ -1,25 +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 CreatePolicyVoucherResponseClass
17
- */
18
- export interface CreatePolicyVoucherResponseClass {
19
- /**
20
- * policy voucher
21
- * @type {PolicyVoucherClass}
22
- * @memberof CreatePolicyVoucherResponseClass
23
- */
24
- 'policyVoucher': PolicyVoucherClass;
25
- }
@@ -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 CreateProductDiscountDto
16
- */
17
- export interface CreateProductDiscountDto {
18
- /**
19
- * The slug of the product this discount applies to.
20
- * @type {string}
21
- * @memberof CreateProductDiscountDto
22
- */
23
- 'productSlug': string;
24
- /**
25
- * The number of months this discount will be applied.
26
- * @type {number}
27
- * @memberof CreateProductDiscountDto
28
- */
29
- 'discountMonths'?: number;
30
- /**
31
- * The monthly price of the product (in cents).
32
- * @type {number}
33
- * @memberof CreateProductDiscountDto
34
- */
35
- 'monthlyPrice'?: number;
36
- /**
37
- * The total discount amount for the product. For absolute discounts: fixed amount in cents (integer). For relative discounts: percentage with max 2 decimals (1-100).
38
- * @type {number}
39
- * @memberof CreateProductDiscountDto
40
- */
41
- 'totalDiscount'?: number;
42
- /**
43
- * The monthly discount applied to the product. For absolute discounts: fixed amount in cents (integer). For relative discounts: percentage with max 2 decimals (1-100).
44
- * @type {number}
45
- * @memberof CreateProductDiscountDto
46
- */
47
- 'monthlyDiscountApplied'?: 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 });