taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit ab48d3df6ed738251ffdb8c028ceb0d981534137
parent d63a773bf5f3b74040e094a94afb732be7218106
Author: Florian Dold <florian@dold.me>
Date:   Tue,  1 Nov 2022 15:36:10 +0100

-rename

Diffstat:
Mpackages/taler-util/src/wallet-types.ts | 4++--
Mpackages/taler-wallet-core/src/operations/common.ts | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts @@ -919,7 +919,7 @@ export interface ExchangeListItem { paytoUris: string[]; tosStatus: ExchangeTosStatus; exchangeStatus: ExchangeEntryStatus; - supportedAgeGroups: number[]; + ageRestrictionOptions: number[]; /** * Permanently added to the wallet, as opposed to just * temporarily queried. @@ -999,7 +999,7 @@ export const codecForExchangeListItem = (): Codec<ExchangeListItem> => .property("tosStatus", codecForAny()) .property("exchangeStatus", codecForAny()) .property("permanent", codecForBoolean()) - .property("supportedAgeGroups", codecForList(codecForNumber())) + .property("ageRestrictionOptions", codecForList(codecForNumber())) .build("ExchangeListItem"); export const codecForExchangesListResponse = (): Codec<ExchangesListResponse> => diff --git a/packages/taler-wallet-core/src/operations/common.ts b/packages/taler-wallet-core/src/operations/common.ts @@ -366,7 +366,7 @@ export function makeExchangeListItem( paytoUris: [], exchangeStatus: ExchangeEntryStatus.Unknown, permanent: r.permanent, - supportedAgeGroups: [], + ageRestrictionOptions: [], }; } let exchangeStatus; @@ -378,7 +378,7 @@ export function makeExchangeListItem( paytoUris: exchangeDetails.wireInfo.accounts.map((x) => x.payto_uri), exchangeStatus, permanent: r.permanent, - supportedAgeGroups: exchangeDetails.ageMask + ageRestrictionOptions: exchangeDetails.ageMask ? AgeRestriction.getAgeGroupsFromMask(exchangeDetails.ageMask) : [], };