@epilot/pricing-client 3.20.0 → 3.21.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/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
  *
@@ -2046,15 +2047,20 @@ declare namespace Components {
2046
2047
  * One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
2047
2048
  */
2048
2049
  type?: "one_time" | "recurring";
2050
+ /**
2051
+ * The price billing period.
2052
+ */
2053
+ billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
2049
2054
  /**
2050
2055
  * Describes how to compute the price per period. Either `per_unit`, `tiered_graduated` or `tiered_volume`.
2051
2056
  * - `per_unit` indicates that the fixed amount (specified in unit_amount or unit_amount_decimal) will be charged per unit in quantity
2052
2057
  * - `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
2058
  * - `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
2059
  * - `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.
2060
+ * - `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.
2055
2061
  *
2056
2062
  */
2057
- pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
2063
+ pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
2058
2064
  }
2059
2065
  /**
2060
2066
  * Represents a price input to the pricing library.
@@ -2200,6 +2206,10 @@ declare namespace Components {
2200
2206
  * One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
2201
2207
  */
2202
2208
  type?: "one_time" | "recurring";
2209
+ /**
2210
+ * The price billing period.
2211
+ */
2212
+ billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
2203
2213
  /**
2204
2214
  * The unit amount value
2205
2215
  */
@@ -2226,9 +2236,10 @@ declare namespace Components {
2226
2236
  * - `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
2237
  * - `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
2238
  * - `tiered_flatfee` indicates that the unit pricing will be computed using tiers attribute. The customer pays the same unit price for all purchased units.
2239
+ * - `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.
2229
2240
  *
2230
2241
  */
2231
- pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
2242
+ pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
2232
2243
  /**
2233
2244
  * The snapshot of the price linked to the price item.
2234
2245
  * example:
@@ -2252,9 +2263,10 @@ declare namespace Components {
2252
2263
  * - `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
2264
  * - `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
2265
  * - `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.
2266
+ * - `external_getag` indicates that the price is influenced by aquisition fees provided by GetAG.
2255
2267
  *
2256
2268
  */
2257
- pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee";
2269
+ pricing_model: "per_unit" | "tiered_graduated" | "tiered_volume" | "tiered_flatfee" | "external_getag";
2258
2270
  /**
2259
2271
  * Defines an array of tiers. Each tier has an upper bound, an unit amount and a flat fee.
2260
2272
  *
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": {
@@ -3100,6 +3101,17 @@
3100
3101
  "recurring"
3101
3102
  ]
3102
3103
  },
3104
+ "billing_period": {
3105
+ "type": "string",
3106
+ "description": "The price billing period.",
3107
+ "enum": [
3108
+ "weekly",
3109
+ "monthly",
3110
+ "every_quarter",
3111
+ "every_6_months",
3112
+ "yearly"
3113
+ ]
3114
+ },
3103
3115
  "unit_amount": {
3104
3116
  "type": "integer",
3105
3117
  "description": "The unit amount value"
@@ -3117,12 +3129,13 @@
3117
3129
  },
3118
3130
  "pricing_model": {
3119
3131
  "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",
3132
+ "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
3133
  "enum": [
3122
3134
  "per_unit",
3123
3135
  "tiered_graduated",
3124
3136
  "tiered_volume",
3125
- "tiered_flatfee"
3137
+ "tiered_flatfee",
3138
+ "external_getag"
3126
3139
  ]
3127
3140
  },
3128
3141
  "_price": {
@@ -3582,14 +3595,26 @@
3582
3595
  "recurring"
3583
3596
  ]
3584
3597
  },
3598
+ "billing_period": {
3599
+ "type": "string",
3600
+ "description": "The price billing period.",
3601
+ "enum": [
3602
+ "weekly",
3603
+ "monthly",
3604
+ "every_quarter",
3605
+ "every_6_months",
3606
+ "yearly"
3607
+ ]
3608
+ },
3585
3609
  "pricing_model": {
3586
3610
  "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",
3611
+ "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
3612
  "enum": [
3589
3613
  "per_unit",
3590
3614
  "tiered_graduated",
3591
3615
  "tiered_volume",
3592
- "tiered_flatfee"
3616
+ "tiered_flatfee",
3617
+ "external_getag"
3593
3618
  ]
3594
3619
  }
3595
3620
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.20.0",
3
+ "version": "3.21.1",
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": "node ../../scripts/update-openapi.js ../../../pricing-api/lambda/ApiHandlerFunction/openapi.yml",
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",