@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,66 +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 { CreateProductDiscountDto } from './create-product-discount-dto';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateVoucherRequestDto
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateVoucherRequestDto {
|
|
19
|
-
/**
|
|
20
|
-
* A unique code that identifies this voucher. This code will be used for redemption.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateVoucherRequestDto
|
|
23
|
-
*/
|
|
24
|
-
'voucherCode': string;
|
|
25
|
-
/**
|
|
26
|
-
* The slug of the campaign this voucher belongs to. Must match an existing campaign.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateVoucherRequestDto
|
|
29
|
-
*/
|
|
30
|
-
'campaignSlug': string;
|
|
31
|
-
/**
|
|
32
|
-
* The duration in months for which the discount will be applied. Must be at least 1 month.
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof CreateVoucherRequestDto
|
|
35
|
-
*/
|
|
36
|
-
'discountPeriodMonths': number;
|
|
37
|
-
/**
|
|
38
|
-
* The type of discount to be applied. Can be either absolute (fixed amount) or relative (percentage).
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreateVoucherRequestDto
|
|
41
|
-
*/
|
|
42
|
-
'discountType': CreateVoucherRequestDtoDiscountTypeEnum;
|
|
43
|
-
/**
|
|
44
|
-
* The value of the discount. For absolute discounts: fixed amount in cents (integer). For relative discounts: percentage with max 2 decimals (1-100).
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof CreateVoucherRequestDto
|
|
47
|
-
*/
|
|
48
|
-
'discountValue': number;
|
|
49
|
-
/**
|
|
50
|
-
* If true, this voucher cannot be combined with other discounts. Defaults to false if not specified.
|
|
51
|
-
* @type {boolean}
|
|
52
|
-
* @memberof CreateVoucherRequestDto
|
|
53
|
-
*/
|
|
54
|
-
'isExclusive'?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* A list of product-specific discount configurations.
|
|
57
|
-
* @type {Array<CreateProductDiscountDto>}
|
|
58
|
-
* @memberof CreateVoucherRequestDto
|
|
59
|
-
*/
|
|
60
|
-
'productDiscounts': Array<CreateProductDiscountDto>;
|
|
61
|
-
}
|
|
62
|
-
export declare const CreateVoucherRequestDtoDiscountTypeEnum: {
|
|
63
|
-
readonly Absolute: "ABSOLUTE";
|
|
64
|
-
readonly Relative: "RELATIVE";
|
|
65
|
-
};
|
|
66
|
-
export type CreateVoucherRequestDtoDiscountTypeEnum = typeof CreateVoucherRequestDtoDiscountTypeEnum[keyof typeof CreateVoucherRequestDtoDiscountTypeEnum];
|
|
@@ -1,20 +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.CreateVoucherRequestDtoDiscountTypeEnum = void 0;
|
|
17
|
-
exports.CreateVoucherRequestDtoDiscountTypeEnum = {
|
|
18
|
-
Absolute: 'ABSOLUTE',
|
|
19
|
-
Relative: 'RELATIVE'
|
|
20
|
-
};
|
|
@@ -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 { VoucherClass } from './voucher-class';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateVoucherResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateVoucherResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* The created voucher.
|
|
21
|
-
* @type {VoucherClass}
|
|
22
|
-
* @memberof CreateVoucherResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'voucher': VoucherClass;
|
|
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,78 +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 EligibleAccountClass
|
|
16
|
-
*/
|
|
17
|
-
export interface EligibleAccountClass {
|
|
18
|
-
/**
|
|
19
|
-
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof EligibleAccountClass
|
|
22
|
-
*/
|
|
23
|
-
'id': number;
|
|
24
|
-
/**
|
|
25
|
-
* Unique identifier for the object.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof EligibleAccountClass
|
|
28
|
-
*/
|
|
29
|
-
'code': string;
|
|
30
|
-
/**
|
|
31
|
-
* The unique identifier of the campaign that this account is eligible for.
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof EligibleAccountClass
|
|
34
|
-
*/
|
|
35
|
-
'campaignId': number;
|
|
36
|
-
/**
|
|
37
|
-
* The unique identifier of the partner account that is eligible to redeem a voucher from this campaign.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof EligibleAccountClass
|
|
40
|
-
*/
|
|
41
|
-
'partnerNumber': string;
|
|
42
|
-
/**
|
|
43
|
-
* The voucher code that this eligible account can use to redeem a discount from the campaign
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof EligibleAccountClass
|
|
46
|
-
*/
|
|
47
|
-
'voucherCode': string;
|
|
48
|
-
/**
|
|
49
|
-
* Time at which the object was created.
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof EligibleAccountClass
|
|
52
|
-
*/
|
|
53
|
-
'createdAt': string;
|
|
54
|
-
/**
|
|
55
|
-
* Time at which the object was updated.
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof EligibleAccountClass
|
|
58
|
-
*/
|
|
59
|
-
'updatedAt': string;
|
|
60
|
-
/**
|
|
61
|
-
* Identifier of the user who created the record.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof EligibleAccountClass
|
|
64
|
-
*/
|
|
65
|
-
'createdBy': string;
|
|
66
|
-
/**
|
|
67
|
-
* Identifier of the user who last updated the record.
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof EligibleAccountClass
|
|
70
|
-
*/
|
|
71
|
-
'updatedBy': string;
|
|
72
|
-
/**
|
|
73
|
-
* Emil Resources Names (ERN) identifies the most specific owner of a resource.
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof EligibleAccountClass
|
|
76
|
-
*/
|
|
77
|
-
'ern': string;
|
|
78
|
-
}
|
|
@@ -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 GetCampaignResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface GetCampaignResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* campaign
|
|
21
|
-
* @type {CampaignClass}
|
|
22
|
-
* @memberof GetCampaignResponseClass
|
|
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,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 GetPolicyVoucherResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface GetPolicyVoucherResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* policy voucher
|
|
21
|
-
* @type {PolicyVoucherClass}
|
|
22
|
-
* @memberof GetPolicyVoucherResponseClass
|
|
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,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 { VoucherClass } from './voucher-class';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface GetVoucherResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface GetVoucherResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* voucher
|
|
21
|
-
* @type {VoucherClass}
|
|
22
|
-
* @memberof GetVoucherResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'voucher': VoucherClass;
|
|
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 });
|
package/dist/models/index.d.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';
|
package/dist/models/index.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./campaign-class"), exports);
|
|
18
|
-
__exportStar(require("./charge-policy-voucher-request-dto"), exports);
|
|
19
|
-
__exportStar(require("./charge-policy-voucher-response-class"), exports);
|
|
20
|
-
__exportStar(require("./check-account-eligibility-request-dto"), exports);
|
|
21
|
-
__exportStar(require("./check-account-eligibility-response-class"), exports);
|
|
22
|
-
__exportStar(require("./create-campaign-request-dto"), exports);
|
|
23
|
-
__exportStar(require("./create-campaign-response-class"), exports);
|
|
24
|
-
__exportStar(require("./create-eligible-account-request-dto"), exports);
|
|
25
|
-
__exportStar(require("./create-eligible-account-response-class"), exports);
|
|
26
|
-
__exportStar(require("./create-policy-voucher-request-dto"), exports);
|
|
27
|
-
__exportStar(require("./create-policy-voucher-response-class"), exports);
|
|
28
|
-
__exportStar(require("./create-product-discount-dto"), exports);
|
|
29
|
-
__exportStar(require("./create-voucher-request-dto"), exports);
|
|
30
|
-
__exportStar(require("./create-voucher-response-class"), exports);
|
|
31
|
-
__exportStar(require("./eligible-account-class"), exports);
|
|
32
|
-
__exportStar(require("./get-campaign-response-class"), exports);
|
|
33
|
-
__exportStar(require("./get-policy-voucher-response-class"), exports);
|
|
34
|
-
__exportStar(require("./get-voucher-response-class"), exports);
|
|
35
|
-
__exportStar(require("./inline-response200"), exports);
|
|
36
|
-
__exportStar(require("./inline-response503"), exports);
|
|
37
|
-
__exportStar(require("./list-campaigns-response-class"), exports);
|
|
38
|
-
__exportStar(require("./list-eligible-accounts-response-class"), exports);
|
|
39
|
-
__exportStar(require("./list-policy-vouchers-response-class"), exports);
|
|
40
|
-
__exportStar(require("./list-vouchers-response-class"), exports);
|
|
41
|
-
__exportStar(require("./policy-voucher-class"), exports);
|
|
42
|
-
__exportStar(require("./policy-voucher-transaction-class"), exports);
|
|
43
|
-
__exportStar(require("./product-discount-class"), exports);
|
|
44
|
-
__exportStar(require("./redeem-policy-voucher-request-dto"), exports);
|
|
45
|
-
__exportStar(require("./redeem-policy-voucher-response-class"), exports);
|
|
46
|
-
__exportStar(require("./update-campaign-request-dto"), exports);
|
|
47
|
-
__exportStar(require("./update-campaign-response-class"), exports);
|
|
48
|
-
__exportStar(require("./update-campaign-status-request-dto"), exports);
|
|
49
|
-
__exportStar(require("./update-voucher-request-dto"), exports);
|
|
50
|
-
__exportStar(require("./update-voucher-response-class"), exports);
|
|
51
|
-
__exportStar(require("./voucher-class"), exports);
|
|
52
|
-
__exportStar(require("./withdraw-policy-voucher-request-dto"), exports);
|
|
53
|
-
__exportStar(require("./withdraw-policy-voucher-response-class"), exports);
|
|
@@ -1,54 +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 InlineResponse200
|
|
16
|
-
*/
|
|
17
|
-
export interface InlineResponse200 {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof InlineResponse200
|
|
22
|
-
*/
|
|
23
|
-
'status'?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
27
|
-
* @memberof InlineResponse200
|
|
28
|
-
*/
|
|
29
|
-
'info'?: {
|
|
30
|
-
[key: string]: {
|
|
31
|
-
[key: string]: object;
|
|
32
|
-
};
|
|
33
|
-
} | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
37
|
-
* @memberof InlineResponse200
|
|
38
|
-
*/
|
|
39
|
-
'error'?: {
|
|
40
|
-
[key: string]: {
|
|
41
|
-
[key: string]: object;
|
|
42
|
-
};
|
|
43
|
-
} | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
47
|
-
* @memberof InlineResponse200
|
|
48
|
-
*/
|
|
49
|
-
'details'?: {
|
|
50
|
-
[key: string]: {
|
|
51
|
-
[key: string]: object;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -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,54 +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 InlineResponse503
|
|
16
|
-
*/
|
|
17
|
-
export interface InlineResponse503 {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof InlineResponse503
|
|
22
|
-
*/
|
|
23
|
-
'status'?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
27
|
-
* @memberof InlineResponse503
|
|
28
|
-
*/
|
|
29
|
-
'info'?: {
|
|
30
|
-
[key: string]: {
|
|
31
|
-
[key: string]: object;
|
|
32
|
-
};
|
|
33
|
-
} | null;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
37
|
-
* @memberof InlineResponse503
|
|
38
|
-
*/
|
|
39
|
-
'error'?: {
|
|
40
|
-
[key: string]: {
|
|
41
|
-
[key: string]: object;
|
|
42
|
-
};
|
|
43
|
-
} | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {{ [key: string]: { [key: string]: object; }; }}
|
|
47
|
-
* @memberof InlineResponse503
|
|
48
|
-
*/
|
|
49
|
-
'details'?: {
|
|
50
|
-
[key: string]: {
|
|
51
|
-
[key: string]: object;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL DiscountService
|
|
6
|
-
* The EMIL DiscountService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL DiscountService
|
|
3
|
-
* The EMIL DiscountService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { CampaignClass } from './campaign-class';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ListCampaignsResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface ListCampaignsResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* campaigns
|
|
21
|
-
* @type {Array<CampaignClass>}
|
|
22
|
-
* @memberof ListCampaignsResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'items': Array<CampaignClass>;
|
|
25
|
-
/**
|
|
26
|
-
* Next page token.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof ListCampaignsResponseClass
|
|
29
|
-
*/
|
|
30
|
-
'nextPageToken': string;
|
|
31
|
-
/**
|
|
32
|
-
* Items per page.
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof ListCampaignsResponseClass
|
|
35
|
-
*/
|
|
36
|
-
'itemsPerPage': number;
|
|
37
|
-
/**
|
|
38
|
-
* Total amount of items.
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof ListCampaignsResponseClass
|
|
41
|
-
*/
|
|
42
|
-
'totalItems': number;
|
|
43
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* EMIL DiscountService
|
|
6
|
-
* The EMIL DiscountService API description
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: kontakt@emil.de
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|