From 473c9a69132c15c6fc15df3185ec7b9e7fdf3113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 29 Oct 2024 21:24:13 +0000 Subject: [PATCH] chore: add support for PAYG billing --- .../src/component/menu/Footer/ApiDetails/ApiDetails.tsx | 6 ++++-- .../component/menu/Footer/ApiDetails/apidetails.helpers.tsx | 1 + frontend/src/interfaces/uiConfig.ts | 1 + src/lib/openapi/spec/ui-config-schema.ts | 6 ++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx b/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx index 8d1017e84e78..a953ecdb7742 100644 --- a/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx +++ b/frontend/src/component/menu/Footer/ApiDetails/ApiDetails.tsx @@ -14,14 +14,16 @@ interface IApiDetailsProps { export const ApiDetails = (props: IApiDetailsProps): ReactElement => { const instanceId = props.uiConfig.versionInfo?.instanceId; const { name, version, buildNumber } = formatCurrentVersion(props.uiConfig); - const environment = props.uiConfig.environment; + const { environment, billing } = props.uiConfig; const updateNotification = formatUpdateNotification(props.uiConfig); const buildInfo = buildNumber ? ({buildNumber}) : ''; return (
- {name} {environment ? environment : ''} {version} {buildInfo} + {name} {environment ? environment : ''}{' '} + {billing === 'pay-as-you-go' ? 'Pay-as-You-Go' : ''} {version}{' '} + {buildInfo}