@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.
Files changed (150) hide show
  1. package/.openapi-generator/FILES +54 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +2 -2
  5. package/api/campaigns-api.ts +1433 -0
  6. package/api/default-api.ts +124 -0
  7. package/api/policy-vouchers-api.ts +999 -0
  8. package/api/vouchers-api.ts +691 -0
  9. package/api.ts +33 -0
  10. package/base.ts +331 -0
  11. package/common.ts +198 -0
  12. package/configuration.ts +110 -0
  13. package/dist/api/campaigns-api.d.ts +808 -0
  14. package/dist/api/campaigns-api.js +1251 -0
  15. package/dist/api/default-api.d.ts +70 -0
  16. package/dist/api/default-api.js +200 -0
  17. package/dist/api/policy-vouchers-api.d.ts +555 -0
  18. package/dist/api/policy-vouchers-api.js +915 -0
  19. package/dist/api/vouchers-api.d.ts +393 -0
  20. package/dist/api/vouchers-api.js +642 -0
  21. package/dist/api.d.ts +15 -0
  22. package/dist/api.js +33 -0
  23. package/dist/base.d.ts +86 -0
  24. package/dist/base.js +367 -0
  25. package/dist/common.d.ts +91 -0
  26. package/dist/common.js +276 -0
  27. package/dist/configuration.d.ts +89 -0
  28. package/dist/configuration.js +52 -0
  29. package/dist/index.d.ts +15 -0
  30. package/dist/index.js +36 -0
  31. package/dist/models/campaign-class.d.ts +105 -0
  32. package/dist/models/campaign-class.js +24 -0
  33. package/dist/models/charge-policy-voucher-request-dto.d.ts +48 -0
  34. package/dist/models/charge-policy-voucher-request-dto.js +15 -0
  35. package/dist/models/charge-policy-voucher-response-class.d.ts +96 -0
  36. package/dist/models/charge-policy-voucher-response-class.js +21 -0
  37. package/dist/models/check-account-eligibility-request-dto.d.ts +48 -0
  38. package/dist/models/check-account-eligibility-request-dto.js +15 -0
  39. package/dist/models/check-account-eligibility-response-class.d.ts +57 -0
  40. package/dist/models/check-account-eligibility-response-class.js +24 -0
  41. package/dist/models/create-campaign-request-dto.d.ts +42 -0
  42. package/dist/models/create-campaign-request-dto.js +15 -0
  43. package/dist/models/create-campaign-response-class.d.ts +25 -0
  44. package/dist/models/create-campaign-response-class.js +15 -0
  45. package/dist/models/create-eligible-account-request-dto.d.ts +30 -0
  46. package/dist/models/create-eligible-account-request-dto.js +15 -0
  47. package/dist/models/create-eligible-account-response-class.d.ts +25 -0
  48. package/dist/models/create-eligible-account-response-class.js +15 -0
  49. package/dist/models/create-policy-voucher-request-dto.d.ts +48 -0
  50. package/dist/models/create-policy-voucher-request-dto.js +15 -0
  51. package/dist/models/create-policy-voucher-response-class.d.ts +25 -0
  52. package/dist/models/create-policy-voucher-response-class.js +15 -0
  53. package/dist/models/create-product-discount-dto.d.ts +48 -0
  54. package/dist/models/create-product-discount-dto.js +15 -0
  55. package/dist/models/create-voucher-request-dto.d.ts +66 -0
  56. package/dist/models/create-voucher-request-dto.js +20 -0
  57. package/dist/models/create-voucher-response-class.d.ts +25 -0
  58. package/dist/models/create-voucher-response-class.js +15 -0
  59. package/dist/models/eligible-account-class.d.ts +78 -0
  60. package/dist/models/eligible-account-class.js +15 -0
  61. package/dist/models/get-campaign-response-class.d.ts +25 -0
  62. package/dist/models/get-campaign-response-class.js +15 -0
  63. package/dist/models/get-policy-voucher-response-class.d.ts +25 -0
  64. package/dist/models/get-policy-voucher-response-class.js +15 -0
  65. package/dist/models/get-voucher-response-class.d.ts +25 -0
  66. package/dist/models/get-voucher-response-class.js +15 -0
  67. package/dist/models/index.d.ts +37 -0
  68. package/dist/models/index.js +53 -0
  69. package/dist/models/inline-response200.d.ts +54 -0
  70. package/dist/models/inline-response200.js +15 -0
  71. package/dist/models/inline-response503.d.ts +54 -0
  72. package/dist/models/inline-response503.js +15 -0
  73. package/dist/models/list-campaigns-response-class.d.ts +43 -0
  74. package/dist/models/list-campaigns-response-class.js +15 -0
  75. package/dist/models/list-eligible-accounts-response-class.d.ts +43 -0
  76. package/dist/models/list-eligible-accounts-response-class.js +15 -0
  77. package/dist/models/list-policy-vouchers-response-class.d.ts +43 -0
  78. package/dist/models/list-policy-vouchers-response-class.js +15 -0
  79. package/dist/models/list-vouchers-response-class.d.ts +43 -0
  80. package/dist/models/list-vouchers-response-class.js +15 -0
  81. package/dist/models/policy-voucher-class.d.ts +165 -0
  82. package/dist/models/policy-voucher-class.js +21 -0
  83. package/dist/models/policy-voucher-transaction-class.d.ts +126 -0
  84. package/dist/models/policy-voucher-transaction-class.js +26 -0
  85. package/dist/models/product-discount-class.d.ts +90 -0
  86. package/dist/models/product-discount-class.js +15 -0
  87. package/dist/models/redeem-policy-voucher-request-dto.d.ts +48 -0
  88. package/dist/models/redeem-policy-voucher-request-dto.js +15 -0
  89. package/dist/models/redeem-policy-voucher-response-class.d.ts +84 -0
  90. package/dist/models/redeem-policy-voucher-response-class.js +21 -0
  91. package/dist/models/update-campaign-request-dto.d.ts +42 -0
  92. package/dist/models/update-campaign-request-dto.js +15 -0
  93. package/dist/models/update-campaign-response-class.d.ts +25 -0
  94. package/dist/models/update-campaign-response-class.js +15 -0
  95. package/dist/models/update-campaign-status-request-dto.d.ts +33 -0
  96. package/dist/models/update-campaign-status-request-dto.js +24 -0
  97. package/dist/models/update-voucher-request-dto.d.ts +60 -0
  98. package/dist/models/update-voucher-request-dto.js +20 -0
  99. package/dist/models/update-voucher-response-class.d.ts +25 -0
  100. package/dist/models/update-voucher-response-class.js +15 -0
  101. package/dist/models/voucher-class.d.ts +127 -0
  102. package/dist/models/voucher-class.js +20 -0
  103. package/dist/models/withdraw-policy-voucher-request-dto.d.ts +36 -0
  104. package/dist/models/withdraw-policy-voucher-request-dto.js +15 -0
  105. package/dist/models/withdraw-policy-voucher-response-class.d.ts +78 -0
  106. package/dist/models/withdraw-policy-voucher-response-class.js +21 -0
  107. package/git_push.sh +57 -0
  108. package/index.ts +19 -0
  109. package/models/campaign-class.ts +114 -0
  110. package/models/charge-policy-voucher-request-dto.ts +54 -0
  111. package/models/charge-policy-voucher-response-class.ts +105 -0
  112. package/models/check-account-eligibility-request-dto.ts +54 -0
  113. package/models/check-account-eligibility-response-class.ts +66 -0
  114. package/models/create-campaign-request-dto.ts +48 -0
  115. package/models/create-campaign-response-class.ts +31 -0
  116. package/models/create-eligible-account-request-dto.ts +36 -0
  117. package/models/create-eligible-account-response-class.ts +31 -0
  118. package/models/create-policy-voucher-request-dto.ts +54 -0
  119. package/models/create-policy-voucher-response-class.ts +31 -0
  120. package/models/create-product-discount-dto.ts +54 -0
  121. package/models/create-voucher-request-dto.ts +75 -0
  122. package/models/create-voucher-response-class.ts +31 -0
  123. package/models/eligible-account-class.ts +84 -0
  124. package/models/get-campaign-response-class.ts +31 -0
  125. package/models/get-policy-voucher-response-class.ts +31 -0
  126. package/models/get-voucher-response-class.ts +31 -0
  127. package/models/index.ts +37 -0
  128. package/models/inline-response200.ts +48 -0
  129. package/models/inline-response503.ts +48 -0
  130. package/models/list-campaigns-response-class.ts +49 -0
  131. package/models/list-eligible-accounts-response-class.ts +49 -0
  132. package/models/list-policy-vouchers-response-class.ts +49 -0
  133. package/models/list-vouchers-response-class.ts +49 -0
  134. package/models/policy-voucher-class.ts +174 -0
  135. package/models/policy-voucher-transaction-class.ts +136 -0
  136. package/models/product-discount-class.ts +96 -0
  137. package/models/redeem-policy-voucher-request-dto.ts +54 -0
  138. package/models/redeem-policy-voucher-response-class.ts +93 -0
  139. package/models/update-campaign-request-dto.ts +48 -0
  140. package/models/update-campaign-response-class.ts +31 -0
  141. package/models/update-campaign-status-request-dto.ts +42 -0
  142. package/models/update-voucher-request-dto.ts +69 -0
  143. package/models/update-voucher-response-class.ts +31 -0
  144. package/models/voucher-class.ts +136 -0
  145. package/models/withdraw-policy-voucher-request-dto.ts +42 -0
  146. package/models/withdraw-policy-voucher-response-class.ts +87 -0
  147. package/package.json +22 -8
  148. package/tsconfig.json +23 -0
  149. package/index.js +0 -99
  150. package/scripts/deploy.js +0 -225
@@ -0,0 +1,66 @@
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];
@@ -0,0 +1,20 @@
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
+ };
@@ -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 { 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
+ }
@@ -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,78 @@
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
+ }
@@ -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 GetCampaignResponseClass
17
+ */
18
+ export interface GetCampaignResponseClass {
19
+ /**
20
+ * campaign
21
+ * @type {CampaignClass}
22
+ * @memberof GetCampaignResponseClass
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,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 GetPolicyVoucherResponseClass
17
+ */
18
+ export interface GetPolicyVoucherResponseClass {
19
+ /**
20
+ * policy voucher
21
+ * @type {PolicyVoucherClass}
22
+ * @memberof GetPolicyVoucherResponseClass
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,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 { 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
+ }
@@ -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,37 @@
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';
@@ -0,0 +1,53 @@
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);
@@ -0,0 +1,54 @@
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
+ }
@@ -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,54 @@
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
+ }
@@ -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,43 @@
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
+ }
@@ -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 });