@epilot/pricing-client 3.42.0 → 3.43.0-alpha.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 +50 -2
- package/dist/openapi.json +29 -8
- package/package.json +2 -2
- package/LICENSE +0 -21
package/dist/openapi.d.ts
CHANGED
|
@@ -3133,6 +3133,7 @@ declare namespace Components {
|
|
|
3133
3133
|
*
|
|
3134
3134
|
*/
|
|
3135
3135
|
PaymentMethod[];
|
|
3136
|
+
redeemed_promos?: RedeemedPromo[];
|
|
3136
3137
|
_tags?: string[];
|
|
3137
3138
|
}
|
|
3138
3139
|
/**
|
|
@@ -4817,6 +4818,46 @@ declare namespace Components {
|
|
|
4817
4818
|
[key: string]: any;
|
|
4818
4819
|
};
|
|
4819
4820
|
}
|
|
4821
|
+
export interface RedeemedPromo {
|
|
4822
|
+
/**
|
|
4823
|
+
* The promocode inserted by the customer to redeem the promotion
|
|
4824
|
+
*/
|
|
4825
|
+
code?: string;
|
|
4826
|
+
/**
|
|
4827
|
+
* The coupons that got redeemed with received the code
|
|
4828
|
+
*/
|
|
4829
|
+
coupons?: /**
|
|
4830
|
+
* The coupon configuration
|
|
4831
|
+
* example:
|
|
4832
|
+
* {
|
|
4833
|
+
* "_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
4834
|
+
* "_schema": "coupon",
|
|
4835
|
+
* "_org": "org_12345",
|
|
4836
|
+
* "_created_at": "2024-01-15T10:00:00.000Z",
|
|
4837
|
+
* "_updated_at": "2024-01-20T12:00:00.000Z",
|
|
4838
|
+
* "_title": "Sample Coupon",
|
|
4839
|
+
* "name": "Sample Coupon",
|
|
4840
|
+
* "type": "fixed",
|
|
4841
|
+
* "fixed_value": 555,
|
|
4842
|
+
* "fixed_value_currency": "USD",
|
|
4843
|
+
* "fixed_value_decimal": "5.55",
|
|
4844
|
+
* "active": true,
|
|
4845
|
+
* "prices": {
|
|
4846
|
+
* "$relation": [
|
|
4847
|
+
* {
|
|
4848
|
+
* "entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
|
|
4849
|
+
* "_tags": [
|
|
4850
|
+
* "discount",
|
|
4851
|
+
* "special"
|
|
4852
|
+
* ],
|
|
4853
|
+
* "_schema": "price"
|
|
4854
|
+
* }
|
|
4855
|
+
* ]
|
|
4856
|
+
* }
|
|
4857
|
+
* }
|
|
4858
|
+
*/
|
|
4859
|
+
CouponWithoutPromoCodes[];
|
|
4860
|
+
}
|
|
4820
4861
|
export type SalesTax = "nontaxable" | "reduced" | "standard";
|
|
4821
4862
|
export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
|
|
4822
4863
|
export interface SearchExternalCatalogParams {
|
|
@@ -5180,7 +5221,7 @@ declare namespace Paths {
|
|
|
5180
5221
|
*/
|
|
5181
5222
|
timestamp: string; // date-time
|
|
5182
5223
|
/**
|
|
5183
|
-
* Cost in
|
|
5224
|
+
* Cost in Cents, e.g. 123 for 12,3 Cents = 0.123€.
|
|
5184
5225
|
* example:
|
|
5185
5226
|
* 123
|
|
5186
5227
|
*/
|
|
@@ -5285,11 +5326,17 @@ declare namespace Paths {
|
|
|
5285
5326
|
*/
|
|
5286
5327
|
timestamp: string; // date-time
|
|
5287
5328
|
/**
|
|
5288
|
-
* Cost in
|
|
5329
|
+
* Cost in cents, e.g. 123 for 12,3 Cents = 0.123€.
|
|
5289
5330
|
* example:
|
|
5290
5331
|
* 123
|
|
5291
5332
|
*/
|
|
5292
5333
|
unit_amount: number;
|
|
5334
|
+
/**
|
|
5335
|
+
* Cost in decimal format, e.g. 0.123€.
|
|
5336
|
+
* example:
|
|
5337
|
+
* 0.123
|
|
5338
|
+
*/
|
|
5339
|
+
unit_amount_decimal?: string;
|
|
5293
5340
|
}[];
|
|
5294
5341
|
}
|
|
5295
5342
|
export type $400 = Components.Schemas.Error;
|
|
@@ -6038,6 +6085,7 @@ export type Provider = Components.Schemas.Provider;
|
|
|
6038
6085
|
export type RecurrenceAmount = Components.Schemas.RecurrenceAmount;
|
|
6039
6086
|
export type RecurrenceAmountDto = Components.Schemas.RecurrenceAmountDto;
|
|
6040
6087
|
export type RecurrenceAmountWithTax = Components.Schemas.RecurrenceAmountWithTax;
|
|
6088
|
+
export type RedeemedPromo = Components.Schemas.RedeemedPromo;
|
|
6041
6089
|
export type SalesTax = Components.Schemas.SalesTax;
|
|
6042
6090
|
export type SaveIntegrationCredentialsParams = Components.Schemas.SaveIntegrationCredentialsParams;
|
|
6043
6091
|
export type SearchExternalCatalogParams = Components.Schemas.SearchExternalCatalogParams;
|
package/dist/openapi.json
CHANGED
|
@@ -120,12 +120,6 @@
|
|
|
120
120
|
}
|
|
121
121
|
],
|
|
122
122
|
"servers": [
|
|
123
|
-
{
|
|
124
|
-
"url": "https://pricing-api.sls.epilot.io"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"url": "https://pricing-api.sls.epilot.io"
|
|
128
|
-
},
|
|
129
123
|
{
|
|
130
124
|
"url": "https://pricing-api.sls.epilot.io"
|
|
131
125
|
}
|
|
@@ -1292,8 +1286,13 @@
|
|
|
1292
1286
|
},
|
|
1293
1287
|
"unit_amount": {
|
|
1294
1288
|
"type": "integer",
|
|
1295
|
-
"description": "Cost in
|
|
1289
|
+
"description": "Cost in cents, e.g. 123 for 12,3 Cents = 0.123€.",
|
|
1296
1290
|
"example": 123
|
|
1291
|
+
},
|
|
1292
|
+
"unit_amount_decimal": {
|
|
1293
|
+
"type": "string",
|
|
1294
|
+
"description": "Cost in decimal format, e.g. 0.123€.",
|
|
1295
|
+
"example": "0.123"
|
|
1297
1296
|
}
|
|
1298
1297
|
},
|
|
1299
1298
|
"required": [
|
|
@@ -1393,7 +1392,7 @@
|
|
|
1393
1392
|
},
|
|
1394
1393
|
"unit_amount": {
|
|
1395
1394
|
"type": "integer",
|
|
1396
|
-
"description": "Cost in
|
|
1395
|
+
"description": "Cost in Cents, e.g. 123 for 12,3 Cents = 0.123€.",
|
|
1397
1396
|
"example": 123
|
|
1398
1397
|
},
|
|
1399
1398
|
"unit_amount_decimal": {
|
|
@@ -4298,6 +4297,12 @@
|
|
|
4298
4297
|
"$ref": "#/components/schemas/PaymentMethod"
|
|
4299
4298
|
}
|
|
4300
4299
|
},
|
|
4300
|
+
"redeemed_promos": {
|
|
4301
|
+
"type": "array",
|
|
4302
|
+
"items": {
|
|
4303
|
+
"$ref": "#/components/schemas/RedeemedPromo"
|
|
4304
|
+
}
|
|
4305
|
+
},
|
|
4301
4306
|
"_tags": {
|
|
4302
4307
|
"type": "array",
|
|
4303
4308
|
"items": {
|
|
@@ -5650,6 +5655,22 @@
|
|
|
5650
5655
|
"usage_limit": 10
|
|
5651
5656
|
}
|
|
5652
5657
|
},
|
|
5658
|
+
"RedeemedPromo": {
|
|
5659
|
+
"type": "object",
|
|
5660
|
+
"properties": {
|
|
5661
|
+
"code": {
|
|
5662
|
+
"description": "The promocode inserted by the customer to redeem the promotion",
|
|
5663
|
+
"type": "string"
|
|
5664
|
+
},
|
|
5665
|
+
"coupons": {
|
|
5666
|
+
"description": "The coupons that got redeemed with received the code",
|
|
5667
|
+
"type": "array",
|
|
5668
|
+
"items": {
|
|
5669
|
+
"$ref": "#/components/schemas/CouponWithoutPromoCodes"
|
|
5670
|
+
}
|
|
5671
|
+
}
|
|
5672
|
+
}
|
|
5673
|
+
},
|
|
5653
5674
|
"PriceTier": {
|
|
5654
5675
|
"type": "object",
|
|
5655
5676
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.43.0-alpha.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.
|