aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-11-01 15:36:10 +0100
committerFlorian Dold <florian@dold.me>2022-11-01 15:36:10 +0100
commitab48d3df6ed738251ffdb8c028ceb0d981534137 (patch)
treea317858bbd07c4adbada60d557cb6985551b177f
parentd63a773bf5f3b74040e094a94afb732be7218106 (diff)
downloadwallet-core-ab48d3df6ed738251ffdb8c028ceb0d981534137.tar.xz
-rename
-rw-r--r--packages/taler-util/src/wallet-types.ts4
-rw-r--r--packages/taler-wallet-core/src/operations/common.ts4
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
index 3eafe7522..24a97ba12 100644
--- 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
index 3ac003da3..e29065390 100644
--- 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)
: [],
};