From 1d5beeebf919396e0b167762bda5059cbb3905ba Mon Sep 17 00:00:00 2001 From: Alexandre Marques Date: Wed, 13 Sep 2023 15:35:15 +0100 Subject: [PATCH] chore: add currency to recurrence amount + bump pricing-client version --- clients/pricing-client/package-lock.json | 4 ++-- clients/pricing-client/package.json | 2 +- clients/pricing-client/src/openapi.d.ts | 11 +++++++++++ clients/pricing-client/src/openapi.json | 4 ++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/clients/pricing-client/package-lock.json b/clients/pricing-client/package-lock.json index 8e938d22..64a20d71 100644 --- a/clients/pricing-client/package-lock.json +++ b/clients/pricing-client/package-lock.json @@ -1,12 +1,12 @@ { "name": "@epilot/pricing-client", - "version": "3.11.3", + "version": "3.12.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@epilot/pricing-client", - "version": "3.11.3", + "version": "3.12.0", "license": "MIT", "dependencies": { "@dazn/lambda-powertools-correlation-ids": "^1.28.1", diff --git a/clients/pricing-client/package.json b/clients/pricing-client/package.json index be5b7a2e..d9e38068 100644 --- a/clients/pricing-client/package.json +++ b/clients/pricing-client/package.json @@ -1,6 +1,6 @@ { "name": "@epilot/pricing-client", - "version": "3.11.3", + "version": "3.12.0", "description": "Client for epilot Pricing APIs", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/clients/pricing-client/src/openapi.d.ts b/clients/pricing-client/src/openapi.d.ts index f5f6b92a..7fcfb719 100644 --- a/clients/pricing-client/src/openapi.d.ts +++ b/clients/pricing-client/src/openapi.d.ts @@ -2412,6 +2412,17 @@ declare namespace Components { * Total of all items taxes, with same recurrence. */ amount_tax?: number; + /** + * Currency + */ + currency?: /** + * Three-letter ISO currency code, in lowercase. Must be a supported currency. + * ISO 4217 CURRENCY CODES as specified in the documentation: https://www.iso.org/iso-4217-currency-codes.html + * + * example: + * EUR + */ + Currency; } /** * An amount associated with a specific recurrence. diff --git a/clients/pricing-client/src/openapi.json b/clients/pricing-client/src/openapi.json index 1289e39f..0d35da5c 100644 --- a/clients/pricing-client/src/openapi.json +++ b/clients/pricing-client/src/openapi.json @@ -2885,6 +2885,10 @@ "amount_tax": { "type": "integer", "description": "Total of all items taxes, with same recurrence." + }, + "currency": { + "$ref": "#/components/schemas/Currency", + "description": "Currency" } }, "required": [