@epilot/pricing-client 3.11.3 → 3.13.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 CHANGED
@@ -2292,6 +2292,14 @@ declare namespace Components {
2292
2292
  */
2293
2293
  unit_amount_gross?: number;
2294
2294
  total_details?: /* The total details with tax (and discount) aggregated totals. */ TotalDetails;
2295
+ currency?: /**
2296
+ * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2297
+ * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2298
+ *
2299
+ * example:
2300
+ * EUR
2301
+ */
2302
+ Currency;
2295
2303
  }
2296
2304
  /**
2297
2305
  * The product entity
@@ -2412,6 +2420,17 @@ declare namespace Components {
2412
2420
  * Total of all items taxes, with same recurrence.
2413
2421
  */
2414
2422
  amount_tax?: number;
2423
+ /**
2424
+ * Currency
2425
+ */
2426
+ currency?: /**
2427
+ * Three-letter ISO currency code, in lowercase. Must be a supported currency.
2428
+ * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html
2429
+ *
2430
+ * example:
2431
+ * EUR
2432
+ */
2433
+ Currency;
2415
2434
  }
2416
2435
  /**
2417
2436
  * An amount associated with a specific recurrence.
package/dist/openapi.json CHANGED
@@ -2885,6 +2885,10 @@
2885
2885
  "amount_tax": {
2886
2886
  "type": "integer",
2887
2887
  "description": "Total of all items taxes, with same recurrence."
2888
+ },
2889
+ "currency": {
2890
+ "$ref": "#/components/schemas/Currency",
2891
+ "description": "Currency"
2888
2892
  }
2889
2893
  },
2890
2894
  "required": [
@@ -2966,6 +2970,9 @@
2966
2970
  },
2967
2971
  "total_details": {
2968
2972
  "$ref": "#/components/schemas/TotalDetails"
2973
+ },
2974
+ "currency": {
2975
+ "$ref": "#/components/schemas/Currency"
2969
2976
  }
2970
2977
  }
2971
2978
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.11.3",
3
+ "version": "3.13.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,8 @@
23
23
  "scripts": {
24
24
  "test": "jest",
25
25
  "bundle-definition": "webpack",
26
- "openapi": "node ../../scripts/update-openapi.js /Users/juanjoseguevara/Desktop/code/pricing-api/lambda/ApiHandlerFunction/openapi.yml",
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
28
  "typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
28
29
  "build": "tsc && npm run bundle-definition",
29
30
  "build:watch": "npm run build && tsc -w",