@epilot/pricing-client 3.20.0 → 3.21.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 +8 -4
- package/dist/openapi.json +9 -6
- package/package.json +2 -2
package/dist/openapi.d.ts
CHANGED
|
@@ -1691,9 +1691,10 @@ declare namespace Components {
|
|
|
1691
1691
|
* - `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.
|
|
1692
1692
|
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
1693
1693
|
* - `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.
|
|
1694
|
+
* - `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.
|
|
1694
1695
|
*
|
|
1695
1696
|
*/
|
|
1696
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
1697
|
+
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
|
|
1697
1698
|
/**
|
|
1698
1699
|
* Defines an array of tiers. Each tier has an upper bound, an unit amount and a flat fee.
|
|
1699
1700
|
*
|
|
@@ -2052,9 +2053,10 @@ declare namespace Components {
|
|
|
2052
2053
|
* - `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.
|
|
2053
2054
|
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2054
2055
|
* - `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.
|
|
2056
|
+
* - `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.
|
|
2055
2057
|
*
|
|
2056
2058
|
*/
|
|
2057
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
2059
|
+
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
|
|
2058
2060
|
}
|
|
2059
2061
|
/**
|
|
2060
2062
|
* Represents a price input to the pricing library.
|
|
@@ -2226,9 +2228,10 @@ declare namespace Components {
|
|
|
2226
2228
|
* - `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.
|
|
2227
2229
|
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2228
2230
|
* - `tiered_flatfee` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2231
|
+
* - `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.
|
|
2229
2232
|
*
|
|
2230
2233
|
*/
|
|
2231
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
2234
|
+
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
|
|
2232
2235
|
/**
|
|
2233
2236
|
* The snapshot of the price linked to the price item.
|
|
2234
2237
|
* example:
|
|
@@ -2252,9 +2255,10 @@ declare namespace Components {
|
|
|
2252
2255
|
* - `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.
|
|
2253
2256
|
* - `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
|
|
2254
2257
|
* - `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.
|
|
2258
|
+
* - `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.
|
|
2255
2259
|
*
|
|
2256
2260
|
*/
|
|
2257
|
-
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
|
|
2261
|
+
pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
|
|
2258
2262
|
/**
|
|
2259
2263
|
* Defines an array of tiers. Each tier has an upper bound, an unit amount and a flat fee.
|
|
2260
2264
|
*
|
package/dist/openapi.json
CHANGED
|
@@ -2002,12 +2002,13 @@
|
|
|
2002
2002
|
},
|
|
2003
2003
|
"pricing_model": {
|
|
2004
2004
|
"type": "string",
|
|
2005
|
-
"description": "Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.\n- `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity\n- `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.\n- `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n- `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.\n",
|
|
2005
|
+
"description": "Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.\n- `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity\n- `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.\n- `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n- `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.\n- `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.\n",
|
|
2006
2006
|
"enum": [
|
|
2007
2007
|
"per_unit",
|
|
2008
2008
|
"tiered_graduated",
|
|
2009
2009
|
"tiered_volume",
|
|
2010
|
-
"tiered_flatfee"
|
|
2010
|
+
"tiered_flatfee",
|
|
2011
|
+
"external_getag"
|
|
2011
2012
|
]
|
|
2012
2013
|
},
|
|
2013
2014
|
"tiers": {
|
|
@@ -3117,12 +3118,13 @@
|
|
|
3117
3118
|
},
|
|
3118
3119
|
"pricing_model": {
|
|
3119
3120
|
"type": "string",
|
|
3120
|
-
"description": "Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.\n- `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity\n- `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.\n- `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n- `tiered_flatfee` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n",
|
|
3121
|
+
"description": "Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.\n- `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity\n- `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.\n- `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n- `tiered_flatfee` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n- `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.\n",
|
|
3121
3122
|
"enum": [
|
|
3122
3123
|
"per_unit",
|
|
3123
3124
|
"tiered_graduated",
|
|
3124
3125
|
"tiered_volume",
|
|
3125
|
-
"tiered_flatfee"
|
|
3126
|
+
"tiered_flatfee",
|
|
3127
|
+
"external_getag"
|
|
3126
3128
|
]
|
|
3127
3129
|
},
|
|
3128
3130
|
"_price": {
|
|
@@ -3584,12 +3586,13 @@
|
|
|
3584
3586
|
},
|
|
3585
3587
|
"pricing_model": {
|
|
3586
3588
|
"type": "string",
|
|
3587
|
-
"description": "Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.\n- `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity\n- `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.\n- `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n- `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.\n",
|
|
3589
|
+
"description": "Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.\n- `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity\n- `tiered_graduated` indicates that the unit pricing will be computed using tiers attribute. The customer pays the price per unit in every range their purchase rises through.\n- `tiered_volume` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.\n- `tiered_flatfee` While similar to tiered_volume, tiered flat fee charges for the same price (flat) for the entire range instead using the unit price to multiply the quantity.\n- `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.\n",
|
|
3588
3590
|
"enum": [
|
|
3589
3591
|
"per_unit",
|
|
3590
3592
|
"tiered_graduated",
|
|
3591
3593
|
"tiered_volume",
|
|
3592
|
-
"tiered_flatfee"
|
|
3594
|
+
"tiered_flatfee",
|
|
3595
|
+
"external_getag"
|
|
3593
3596
|
]
|
|
3594
3597
|
}
|
|
3595
3598
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/pricing-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "Client for epilot Pricing APIs",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test": "jest",
|
|
25
25
|
"bundle-definition": "webpack",
|
|
26
26
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/pricing-api.yaml",
|
|
27
|
-
"openapi:local": "
|
|
27
|
+
"openapi:local": "npx openapicmd read --json ../../../pricing-api/lambda/ApiHandlerFunction/openapi.yml > ./src/openapi.json",
|
|
28
28
|
"typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
|
|
29
29
|
"build": "tsc && npm run bundle-definition",
|
|
30
30
|
"build:watch": "npm run build && tsc -w",
|