@epilot/pricing-client 3.37.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/openapi.d.ts +33 -0
- package/dist/openapi.json +44 -6
- package/package.json +2 -2
- package/LICENSE +0 -21
package/dist/openapi.d.ts
CHANGED
|
@@ -2212,6 +2212,20 @@ declare namespace Components {
|
|
|
2212
2212
|
*/
|
|
2213
2213
|
cashback_period?: "0" | "12";
|
|
2214
2214
|
active?: boolean;
|
|
2215
|
+
/**
|
|
2216
|
+
* Whether the coupon requires a promo code to be applied
|
|
2217
|
+
*/
|
|
2218
|
+
requires_promo_code?: boolean;
|
|
2219
|
+
/**
|
|
2220
|
+
* The promo codes associated with the coupon
|
|
2221
|
+
*/
|
|
2222
|
+
promo_codes?: PromoCode[];
|
|
2223
|
+
/**
|
|
2224
|
+
* Map of ids of promo codes with their usage count
|
|
2225
|
+
*/
|
|
2226
|
+
promo_code_usage?: {
|
|
2227
|
+
[name: string]: number;
|
|
2228
|
+
};
|
|
2215
2229
|
/**
|
|
2216
2230
|
* The prices associated with the coupon. Will hold price entities if hydrated, relations otherwise.
|
|
2217
2231
|
*/
|
|
@@ -4304,6 +4318,24 @@ declare namespace Components {
|
|
|
4304
4318
|
_updated_at?: string;
|
|
4305
4319
|
}
|
|
4306
4320
|
export type ProductCategory = "power" | "gas";
|
|
4321
|
+
export interface PromoCode {
|
|
4322
|
+
/**
|
|
4323
|
+
* The id of the promo code
|
|
4324
|
+
*/
|
|
4325
|
+
id: string;
|
|
4326
|
+
/**
|
|
4327
|
+
* The code of the promo code
|
|
4328
|
+
*/
|
|
4329
|
+
code: string;
|
|
4330
|
+
/**
|
|
4331
|
+
* Whether the promo code has a usage limit
|
|
4332
|
+
*/
|
|
4333
|
+
has_usage_limit?: boolean;
|
|
4334
|
+
/**
|
|
4335
|
+
* The usage limit of the promo code
|
|
4336
|
+
*/
|
|
4337
|
+
usage_limit?: number | null;
|
|
4338
|
+
}
|
|
4307
4339
|
/**
|
|
4308
4340
|
* The provider entity
|
|
4309
4341
|
*/
|
|
@@ -5571,6 +5603,7 @@ export type PricingDetailsResponse = Components.Schemas.PricingDetailsResponse;
|
|
|
5571
5603
|
export type PricingModel = Components.Schemas.PricingModel;
|
|
5572
5604
|
export type Product = Components.Schemas.Product;
|
|
5573
5605
|
export type ProductCategory = Components.Schemas.ProductCategory;
|
|
5606
|
+
export type PromoCode = Components.Schemas.PromoCode;
|
|
5574
5607
|
export type Provider = Components.Schemas.Provider;
|
|
5575
5608
|
export type RecurrenceAmount = Components.Schemas.RecurrenceAmount;
|
|
5576
5609
|
export type RecurrenceAmountDto = Components.Schemas.RecurrenceAmountDto;
|
package/dist/openapi.json
CHANGED
|
@@ -112,12 +112,6 @@
|
|
|
112
112
|
}
|
|
113
113
|
],
|
|
114
114
|
"servers": [
|
|
115
|
-
{
|
|
116
|
-
"url": "https://pricing-api.sls.epilot.io"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"url": "https://pricing-api.sls.epilot.io"
|
|
120
|
-
},
|
|
121
115
|
{
|
|
122
116
|
"url": "https://pricing-api.sls.epilot.io"
|
|
123
117
|
}
|
|
@@ -5162,6 +5156,24 @@
|
|
|
5162
5156
|
"active": {
|
|
5163
5157
|
"type": "boolean"
|
|
5164
5158
|
},
|
|
5159
|
+
"requires_promo_code": {
|
|
5160
|
+
"type": "boolean",
|
|
5161
|
+
"description": "Whether the coupon requires a promo code to be applied"
|
|
5162
|
+
},
|
|
5163
|
+
"promo_codes": {
|
|
5164
|
+
"type": "array",
|
|
5165
|
+
"description": "The promo codes associated with the coupon",
|
|
5166
|
+
"items": {
|
|
5167
|
+
"$ref": "#/components/schemas/PromoCode"
|
|
5168
|
+
}
|
|
5169
|
+
},
|
|
5170
|
+
"promo_code_usage": {
|
|
5171
|
+
"type": "object",
|
|
5172
|
+
"additionalProperties": {
|
|
5173
|
+
"type": "number"
|
|
5174
|
+
},
|
|
5175
|
+
"description": "Map of ids of promo codes with their usage count"
|
|
5176
|
+
},
|
|
5165
5177
|
"prices": {
|
|
5166
5178
|
"description": "The prices associated with the coupon. Will hold price entities if hydrated, relations otherwise.",
|
|
5167
5179
|
"oneOf": [
|
|
@@ -5212,6 +5224,32 @@
|
|
|
5212
5224
|
}
|
|
5213
5225
|
}
|
|
5214
5226
|
},
|
|
5227
|
+
"PromoCode": {
|
|
5228
|
+
"type": "object",
|
|
5229
|
+
"required": [
|
|
5230
|
+
"id",
|
|
5231
|
+
"code"
|
|
5232
|
+
],
|
|
5233
|
+
"properties": {
|
|
5234
|
+
"id": {
|
|
5235
|
+
"type": "string",
|
|
5236
|
+
"description": "The id of the promo code"
|
|
5237
|
+
},
|
|
5238
|
+
"code": {
|
|
5239
|
+
"type": "string",
|
|
5240
|
+
"description": "The code of the promo code"
|
|
5241
|
+
},
|
|
5242
|
+
"has_usage_limit": {
|
|
5243
|
+
"type": "boolean",
|
|
5244
|
+
"description": "Whether the promo code has a usage limit"
|
|
5245
|
+
},
|
|
5246
|
+
"usage_limit": {
|
|
5247
|
+
"type": "number",
|
|
5248
|
+
"nullable": true,
|
|
5249
|
+
"description": "The usage limit of the promo code"
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5252
|
+
},
|
|
5215
5253
|
"PriceTier": {
|
|
5216
5254
|
"type": "object",
|
|
5217
5255
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.38.0",
|
|
4
4
|
"description": "Client for epilot Pricing APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"webpack": "^5.18.0",
|
|
72
72
|
"webpack-cli": "^4.4.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
75
75
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 epilot GmbH
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|