@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,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 { PolicyVoucherClass } from './policy-voucher-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface CreatePolicyVoucherResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface CreatePolicyVoucherResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* policy voucher
|
|
26
|
-
* @type {PolicyVoucherClass}
|
|
27
|
-
* @memberof CreatePolicyVoucherResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'policyVoucher': PolicyVoucherClass;
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -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 CreateProductDiscountDto
|
|
21
|
-
*/
|
|
22
|
-
export interface CreateProductDiscountDto {
|
|
23
|
-
/**
|
|
24
|
-
* The slug of the product this discount applies to.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof CreateProductDiscountDto
|
|
27
|
-
*/
|
|
28
|
-
'productSlug': string;
|
|
29
|
-
/**
|
|
30
|
-
* The number of months this discount will be applied.
|
|
31
|
-
* @type {number}
|
|
32
|
-
* @memberof CreateProductDiscountDto
|
|
33
|
-
*/
|
|
34
|
-
'discountMonths'?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The monthly price of the product (in cents).
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof CreateProductDiscountDto
|
|
39
|
-
*/
|
|
40
|
-
'monthlyPrice'?: number;
|
|
41
|
-
/**
|
|
42
|
-
* 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).
|
|
43
|
-
* @type {number}
|
|
44
|
-
* @memberof CreateProductDiscountDto
|
|
45
|
-
*/
|
|
46
|
-
'totalDiscount'?: number;
|
|
47
|
-
/**
|
|
48
|
-
* 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).
|
|
49
|
-
* @type {number}
|
|
50
|
-
* @memberof CreateProductDiscountDto
|
|
51
|
-
*/
|
|
52
|
-
'monthlyDiscountApplied'?: number;
|
|
53
|
-
}
|
|
54
|
-
|
|
@@ -1,75 +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 { CreateProductDiscountDto } from './create-product-discount-dto';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface CreateVoucherRequestDto
|
|
22
|
-
*/
|
|
23
|
-
export interface CreateVoucherRequestDto {
|
|
24
|
-
/**
|
|
25
|
-
* A unique code that identifies this voucher. This code will be used for redemption.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateVoucherRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'voucherCode': string;
|
|
30
|
-
/**
|
|
31
|
-
* The slug of the campaign this voucher belongs to. Must match an existing campaign.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreateVoucherRequestDto
|
|
34
|
-
*/
|
|
35
|
-
'campaignSlug': string;
|
|
36
|
-
/**
|
|
37
|
-
* The duration in months for which the discount will be applied. Must be at least 1 month.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof CreateVoucherRequestDto
|
|
40
|
-
*/
|
|
41
|
-
'discountPeriodMonths': number;
|
|
42
|
-
/**
|
|
43
|
-
* The type of discount to be applied. Can be either absolute (fixed amount) or relative (percentage).
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CreateVoucherRequestDto
|
|
46
|
-
*/
|
|
47
|
-
'discountType': CreateVoucherRequestDtoDiscountTypeEnum;
|
|
48
|
-
/**
|
|
49
|
-
* The value of the discount. For absolute discounts: fixed amount in cents (integer). For relative discounts: percentage with max 2 decimals (1-100).
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof CreateVoucherRequestDto
|
|
52
|
-
*/
|
|
53
|
-
'discountValue': number;
|
|
54
|
-
/**
|
|
55
|
-
* If true, this voucher cannot be combined with other discounts. Defaults to false if not specified.
|
|
56
|
-
* @type {boolean}
|
|
57
|
-
* @memberof CreateVoucherRequestDto
|
|
58
|
-
*/
|
|
59
|
-
'isExclusive'?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* A list of product-specific discount configurations.
|
|
62
|
-
* @type {Array<CreateProductDiscountDto>}
|
|
63
|
-
* @memberof CreateVoucherRequestDto
|
|
64
|
-
*/
|
|
65
|
-
'productDiscounts': Array<CreateProductDiscountDto>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export const CreateVoucherRequestDtoDiscountTypeEnum = {
|
|
69
|
-
Absolute: 'ABSOLUTE',
|
|
70
|
-
Relative: 'RELATIVE'
|
|
71
|
-
} as const;
|
|
72
|
-
|
|
73
|
-
export type CreateVoucherRequestDtoDiscountTypeEnum = typeof CreateVoucherRequestDtoDiscountTypeEnum[keyof typeof CreateVoucherRequestDtoDiscountTypeEnum];
|
|
74
|
-
|
|
75
|
-
|
|
@@ -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 { VoucherClass } from './voucher-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface CreateVoucherResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface CreateVoucherResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* The created voucher.
|
|
26
|
-
* @type {VoucherClass}
|
|
27
|
-
* @memberof CreateVoucherResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'voucher': VoucherClass;
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -1,84 +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 EligibleAccountClass
|
|
21
|
-
*/
|
|
22
|
-
export interface EligibleAccountClass {
|
|
23
|
-
/**
|
|
24
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
-
* @type {number}
|
|
26
|
-
* @memberof EligibleAccountClass
|
|
27
|
-
*/
|
|
28
|
-
'id': number;
|
|
29
|
-
/**
|
|
30
|
-
* Unique identifier for the object.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof EligibleAccountClass
|
|
33
|
-
*/
|
|
34
|
-
'code': string;
|
|
35
|
-
/**
|
|
36
|
-
* The unique identifier of the campaign that this account is eligible for.
|
|
37
|
-
* @type {number}
|
|
38
|
-
* @memberof EligibleAccountClass
|
|
39
|
-
*/
|
|
40
|
-
'campaignId': number;
|
|
41
|
-
/**
|
|
42
|
-
* The unique identifier of the partner account that is eligible to redeem a voucher from this campaign.
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof EligibleAccountClass
|
|
45
|
-
*/
|
|
46
|
-
'partnerNumber': string;
|
|
47
|
-
/**
|
|
48
|
-
* The voucher code that this eligible account can use to redeem a discount from the campaign
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof EligibleAccountClass
|
|
51
|
-
*/
|
|
52
|
-
'voucherCode': string;
|
|
53
|
-
/**
|
|
54
|
-
* Time at which the object was created.
|
|
55
|
-
* @type {string}
|
|
56
|
-
* @memberof EligibleAccountClass
|
|
57
|
-
*/
|
|
58
|
-
'createdAt': string;
|
|
59
|
-
/**
|
|
60
|
-
* Time at which the object was updated.
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof EligibleAccountClass
|
|
63
|
-
*/
|
|
64
|
-
'updatedAt': string;
|
|
65
|
-
/**
|
|
66
|
-
* Identifier of the user who created the record.
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof EligibleAccountClass
|
|
69
|
-
*/
|
|
70
|
-
'createdBy': string;
|
|
71
|
-
/**
|
|
72
|
-
* Identifier of the user who last updated the record.
|
|
73
|
-
* @type {string}
|
|
74
|
-
* @memberof EligibleAccountClass
|
|
75
|
-
*/
|
|
76
|
-
'updatedBy': string;
|
|
77
|
-
/**
|
|
78
|
-
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof EligibleAccountClass
|
|
81
|
-
*/
|
|
82
|
-
'ern': string;
|
|
83
|
-
}
|
|
84
|
-
|
|
@@ -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 GetCampaignResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface GetCampaignResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* campaign
|
|
26
|
-
* @type {CampaignClass}
|
|
27
|
-
* @memberof GetCampaignResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'campaign': CampaignClass;
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -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 { PolicyVoucherClass } from './policy-voucher-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface GetPolicyVoucherResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface GetPolicyVoucherResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* policy voucher
|
|
26
|
-
* @type {PolicyVoucherClass}
|
|
27
|
-
* @memberof GetPolicyVoucherResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'policyVoucher': PolicyVoucherClass;
|
|
30
|
-
}
|
|
31
|
-
|
|
@@ -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 { VoucherClass } from './voucher-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface GetVoucherResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface GetVoucherResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* voucher
|
|
26
|
-
* @type {VoucherClass}
|
|
27
|
-
* @memberof GetVoucherResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'voucher': VoucherClass;
|
|
30
|
-
}
|
|
31
|
-
|
package/models/index.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export * from './campaign-class';
|
|
2
|
-
export * from './charge-policy-voucher-request-dto';
|
|
3
|
-
export * from './charge-policy-voucher-response-class';
|
|
4
|
-
export * from './check-account-eligibility-request-dto';
|
|
5
|
-
export * from './check-account-eligibility-response-class';
|
|
6
|
-
export * from './create-campaign-request-dto';
|
|
7
|
-
export * from './create-campaign-response-class';
|
|
8
|
-
export * from './create-eligible-account-request-dto';
|
|
9
|
-
export * from './create-eligible-account-response-class';
|
|
10
|
-
export * from './create-policy-voucher-request-dto';
|
|
11
|
-
export * from './create-policy-voucher-response-class';
|
|
12
|
-
export * from './create-product-discount-dto';
|
|
13
|
-
export * from './create-voucher-request-dto';
|
|
14
|
-
export * from './create-voucher-response-class';
|
|
15
|
-
export * from './eligible-account-class';
|
|
16
|
-
export * from './get-campaign-response-class';
|
|
17
|
-
export * from './get-policy-voucher-response-class';
|
|
18
|
-
export * from './get-voucher-response-class';
|
|
19
|
-
export * from './inline-response200';
|
|
20
|
-
export * from './inline-response503';
|
|
21
|
-
export * from './list-campaigns-response-class';
|
|
22
|
-
export * from './list-eligible-accounts-response-class';
|
|
23
|
-
export * from './list-policy-vouchers-response-class';
|
|
24
|
-
export * from './list-vouchers-response-class';
|
|
25
|
-
export * from './policy-voucher-class';
|
|
26
|
-
export * from './policy-voucher-transaction-class';
|
|
27
|
-
export * from './product-discount-class';
|
|
28
|
-
export * from './redeem-policy-voucher-request-dto';
|
|
29
|
-
export * from './redeem-policy-voucher-response-class';
|
|
30
|
-
export * from './update-campaign-request-dto';
|
|
31
|
-
export * from './update-campaign-response-class';
|
|
32
|
-
export * from './update-campaign-status-request-dto';
|
|
33
|
-
export * from './update-voucher-request-dto';
|
|
34
|
-
export * from './update-voucher-response-class';
|
|
35
|
-
export * from './voucher-class';
|
|
36
|
-
export * from './withdraw-policy-voucher-request-dto';
|
|
37
|
-
export * from './withdraw-policy-voucher-response-class';
|
|
@@ -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 InlineResponse200
|
|
21
|
-
*/
|
|
22
|
-
export interface InlineResponse200 {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof InlineResponse200
|
|
27
|
-
*/
|
|
28
|
-
'status'?: string;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
32
|
-
* @memberof InlineResponse200
|
|
33
|
-
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
|
-
* @memberof InlineResponse200
|
|
39
|
-
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
|
-
* @memberof InlineResponse200
|
|
45
|
-
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
47
|
-
}
|
|
48
|
-
|
|
@@ -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 InlineResponse503
|
|
21
|
-
*/
|
|
22
|
-
export interface InlineResponse503 {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof InlineResponse503
|
|
27
|
-
*/
|
|
28
|
-
'status'?: string;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
32
|
-
* @memberof InlineResponse503
|
|
33
|
-
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
38
|
-
* @memberof InlineResponse503
|
|
39
|
-
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]: object; }; } | null;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
44
|
-
* @memberof InlineResponse503
|
|
45
|
-
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]: object; }; };
|
|
47
|
-
}
|
|
48
|
-
|
|
@@ -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 { CampaignClass } from './campaign-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface ListCampaignsResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface ListCampaignsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* campaigns
|
|
26
|
-
* @type {Array<CampaignClass>}
|
|
27
|
-
* @memberof ListCampaignsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<CampaignClass>;
|
|
30
|
-
/**
|
|
31
|
-
* Next page token.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ListCampaignsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'nextPageToken': string;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListCampaignsResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
|
-
/**
|
|
43
|
-
* Total amount of items.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof ListCampaignsResponseClass
|
|
46
|
-
*/
|
|
47
|
-
'totalItems': number;
|
|
48
|
-
}
|
|
49
|
-
|
|
@@ -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 { EligibleAccountClass } from './eligible-account-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface ListEligibleAccountsResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface ListEligibleAccountsResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* eligible accounts
|
|
26
|
-
* @type {Array<EligibleAccountClass>}
|
|
27
|
-
* @memberof ListEligibleAccountsResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<EligibleAccountClass>;
|
|
30
|
-
/**
|
|
31
|
-
* Next page token.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ListEligibleAccountsResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'nextPageToken': string;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListEligibleAccountsResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
|
-
/**
|
|
43
|
-
* Total amount of items.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof ListEligibleAccountsResponseClass
|
|
46
|
-
*/
|
|
47
|
-
'totalItems': number;
|
|
48
|
-
}
|
|
49
|
-
|
|
@@ -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 { PolicyVoucherClass } from './policy-voucher-class';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface ListPolicyVouchersResponseClass
|
|
22
|
-
*/
|
|
23
|
-
export interface ListPolicyVouchersResponseClass {
|
|
24
|
-
/**
|
|
25
|
-
* policy vouchers
|
|
26
|
-
* @type {Array<PolicyVoucherClass>}
|
|
27
|
-
* @memberof ListPolicyVouchersResponseClass
|
|
28
|
-
*/
|
|
29
|
-
'items': Array<PolicyVoucherClass>;
|
|
30
|
-
/**
|
|
31
|
-
* Next page token.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ListPolicyVouchersResponseClass
|
|
34
|
-
*/
|
|
35
|
-
'nextPageToken': string;
|
|
36
|
-
/**
|
|
37
|
-
* Items per page.
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListPolicyVouchersResponseClass
|
|
40
|
-
*/
|
|
41
|
-
'itemsPerPage': number;
|
|
42
|
-
/**
|
|
43
|
-
* Total amount of items.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof ListPolicyVouchersResponseClass
|
|
46
|
-
*/
|
|
47
|
-
'totalItems': number;
|
|
48
|
-
}
|
|
49
|
-
|