@emilgroup/discount-sdk 1.5.1 → 1.7.0
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 +54 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +2 -2
- package/api/campaigns-api.ts +1433 -0
- package/api/default-api.ts +124 -0
- package/api/policy-vouchers-api.ts +999 -0
- package/api/vouchers-api.ts +691 -0
- package/api.ts +33 -0
- package/base.ts +331 -0
- package/common.ts +198 -0
- package/configuration.ts +110 -0
- package/dist/api/campaigns-api.d.ts +808 -0
- package/dist/api/campaigns-api.js +1251 -0
- package/dist/api/default-api.d.ts +70 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/policy-vouchers-api.d.ts +555 -0
- package/dist/api/policy-vouchers-api.js +915 -0
- package/dist/api/vouchers-api.d.ts +393 -0
- package/dist/api/vouchers-api.js +642 -0
- package/dist/api.d.ts +15 -0
- package/dist/api.js +33 -0
- package/dist/base.d.ts +86 -0
- package/dist/base.js +367 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +89 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/campaign-class.d.ts +105 -0
- package/dist/models/campaign-class.js +24 -0
- package/dist/models/charge-policy-voucher-request-dto.d.ts +48 -0
- package/dist/models/charge-policy-voucher-request-dto.js +15 -0
- package/dist/models/charge-policy-voucher-response-class.d.ts +96 -0
- package/dist/models/charge-policy-voucher-response-class.js +21 -0
- package/dist/models/check-account-eligibility-request-dto.d.ts +48 -0
- package/dist/models/check-account-eligibility-request-dto.js +15 -0
- package/dist/models/check-account-eligibility-response-class.d.ts +57 -0
- package/dist/models/check-account-eligibility-response-class.js +24 -0
- package/dist/models/create-campaign-request-dto.d.ts +42 -0
- package/dist/models/create-campaign-request-dto.js +15 -0
- package/dist/models/create-campaign-response-class.d.ts +25 -0
- package/dist/models/create-campaign-response-class.js +15 -0
- package/dist/models/create-eligible-account-request-dto.d.ts +30 -0
- package/dist/models/create-eligible-account-request-dto.js +15 -0
- package/dist/models/create-eligible-account-response-class.d.ts +25 -0
- package/dist/models/create-eligible-account-response-class.js +15 -0
- package/dist/models/create-policy-voucher-request-dto.d.ts +48 -0
- package/dist/models/create-policy-voucher-request-dto.js +15 -0
- package/dist/models/create-policy-voucher-response-class.d.ts +25 -0
- package/dist/models/create-policy-voucher-response-class.js +15 -0
- package/dist/models/create-product-discount-dto.d.ts +48 -0
- package/dist/models/create-product-discount-dto.js +15 -0
- package/dist/models/create-voucher-request-dto.d.ts +66 -0
- package/dist/models/create-voucher-request-dto.js +20 -0
- package/dist/models/create-voucher-response-class.d.ts +25 -0
- package/dist/models/create-voucher-response-class.js +15 -0
- package/dist/models/eligible-account-class.d.ts +78 -0
- package/dist/models/eligible-account-class.js +15 -0
- package/dist/models/get-campaign-response-class.d.ts +25 -0
- package/dist/models/get-campaign-response-class.js +15 -0
- package/dist/models/get-policy-voucher-response-class.d.ts +25 -0
- package/dist/models/get-policy-voucher-response-class.js +15 -0
- package/dist/models/get-voucher-response-class.d.ts +25 -0
- package/dist/models/get-voucher-response-class.js +15 -0
- package/dist/models/index.d.ts +37 -0
- package/dist/models/index.js +53 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-campaigns-response-class.d.ts +43 -0
- package/dist/models/list-campaigns-response-class.js +15 -0
- package/dist/models/list-eligible-accounts-response-class.d.ts +43 -0
- package/dist/models/list-eligible-accounts-response-class.js +15 -0
- package/dist/models/list-policy-vouchers-response-class.d.ts +43 -0
- package/dist/models/list-policy-vouchers-response-class.js +15 -0
- package/dist/models/list-vouchers-response-class.d.ts +43 -0
- package/dist/models/list-vouchers-response-class.js +15 -0
- package/dist/models/policy-voucher-class.d.ts +165 -0
- package/dist/models/policy-voucher-class.js +21 -0
- package/dist/models/policy-voucher-transaction-class.d.ts +126 -0
- package/dist/models/policy-voucher-transaction-class.js +26 -0
- package/dist/models/product-discount-class.d.ts +90 -0
- package/dist/models/product-discount-class.js +15 -0
- package/dist/models/redeem-policy-voucher-request-dto.d.ts +48 -0
- package/dist/models/redeem-policy-voucher-request-dto.js +15 -0
- package/dist/models/redeem-policy-voucher-response-class.d.ts +84 -0
- package/dist/models/redeem-policy-voucher-response-class.js +21 -0
- package/dist/models/update-campaign-request-dto.d.ts +42 -0
- package/dist/models/update-campaign-request-dto.js +15 -0
- package/dist/models/update-campaign-response-class.d.ts +25 -0
- package/dist/models/update-campaign-response-class.js +15 -0
- package/dist/models/update-campaign-status-request-dto.d.ts +33 -0
- package/dist/models/update-campaign-status-request-dto.js +24 -0
- package/dist/models/update-voucher-request-dto.d.ts +60 -0
- package/dist/models/update-voucher-request-dto.js +20 -0
- package/dist/models/update-voucher-response-class.d.ts +25 -0
- package/dist/models/update-voucher-response-class.js +15 -0
- package/dist/models/voucher-class.d.ts +127 -0
- package/dist/models/voucher-class.js +20 -0
- package/dist/models/withdraw-policy-voucher-request-dto.d.ts +36 -0
- package/dist/models/withdraw-policy-voucher-request-dto.js +15 -0
- package/dist/models/withdraw-policy-voucher-response-class.d.ts +78 -0
- package/dist/models/withdraw-policy-voucher-response-class.js +21 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/campaign-class.ts +114 -0
- package/models/charge-policy-voucher-request-dto.ts +54 -0
- package/models/charge-policy-voucher-response-class.ts +105 -0
- package/models/check-account-eligibility-request-dto.ts +54 -0
- package/models/check-account-eligibility-response-class.ts +66 -0
- package/models/create-campaign-request-dto.ts +48 -0
- package/models/create-campaign-response-class.ts +31 -0
- package/models/create-eligible-account-request-dto.ts +36 -0
- package/models/create-eligible-account-response-class.ts +31 -0
- package/models/create-policy-voucher-request-dto.ts +54 -0
- package/models/create-policy-voucher-response-class.ts +31 -0
- package/models/create-product-discount-dto.ts +54 -0
- package/models/create-voucher-request-dto.ts +75 -0
- package/models/create-voucher-response-class.ts +31 -0
- package/models/eligible-account-class.ts +84 -0
- package/models/get-campaign-response-class.ts +31 -0
- package/models/get-policy-voucher-response-class.ts +31 -0
- package/models/get-voucher-response-class.ts +31 -0
- package/models/index.ts +37 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-campaigns-response-class.ts +49 -0
- package/models/list-eligible-accounts-response-class.ts +49 -0
- package/models/list-policy-vouchers-response-class.ts +49 -0
- package/models/list-vouchers-response-class.ts +49 -0
- package/models/policy-voucher-class.ts +174 -0
- package/models/policy-voucher-transaction-class.ts +136 -0
- package/models/product-discount-class.ts +96 -0
- package/models/redeem-policy-voucher-request-dto.ts +54 -0
- package/models/redeem-policy-voucher-response-class.ts +93 -0
- package/models/update-campaign-request-dto.ts +48 -0
- package/models/update-campaign-response-class.ts +31 -0
- package/models/update-campaign-status-request-dto.ts +42 -0
- package/models/update-voucher-request-dto.ts +69 -0
- package/models/update-voucher-response-class.ts +31 -0
- package/models/voucher-class.ts +136 -0
- package/models/withdraw-policy-voucher-request-dto.ts +42 -0
- package/models/withdraw-policy-voucher-response-class.ts +87 -0
- package/package.json +22 -8
- package/tsconfig.json +23 -0
- package/index.js +0 -99
- package/scripts/deploy.js +0 -225
|
@@ -0,0 +1,96 @@
|
|
|
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];
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,57 @@
|
|
|
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];
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|