-rename
This commit is contained in:
parent
d63a773bf5
commit
ab48d3df6e
@ -919,7 +919,7 @@ export interface ExchangeListItem {
|
|||||||
paytoUris: string[];
|
paytoUris: string[];
|
||||||
tosStatus: ExchangeTosStatus;
|
tosStatus: ExchangeTosStatus;
|
||||||
exchangeStatus: ExchangeEntryStatus;
|
exchangeStatus: ExchangeEntryStatus;
|
||||||
supportedAgeGroups: number[];
|
ageRestrictionOptions: number[];
|
||||||
/**
|
/**
|
||||||
* Permanently added to the wallet, as opposed to just
|
* Permanently added to the wallet, as opposed to just
|
||||||
* temporarily queried.
|
* temporarily queried.
|
||||||
@ -999,7 +999,7 @@ export const codecForExchangeListItem = (): Codec<ExchangeListItem> =>
|
|||||||
.property("tosStatus", codecForAny())
|
.property("tosStatus", codecForAny())
|
||||||
.property("exchangeStatus", codecForAny())
|
.property("exchangeStatus", codecForAny())
|
||||||
.property("permanent", codecForBoolean())
|
.property("permanent", codecForBoolean())
|
||||||
.property("supportedAgeGroups", codecForList(codecForNumber()))
|
.property("ageRestrictionOptions", codecForList(codecForNumber()))
|
||||||
.build("ExchangeListItem");
|
.build("ExchangeListItem");
|
||||||
|
|
||||||
export const codecForExchangesListResponse = (): Codec<ExchangesListResponse> =>
|
export const codecForExchangesListResponse = (): Codec<ExchangesListResponse> =>
|
||||||
|
@ -366,7 +366,7 @@ export function makeExchangeListItem(
|
|||||||
paytoUris: [],
|
paytoUris: [],
|
||||||
exchangeStatus: ExchangeEntryStatus.Unknown,
|
exchangeStatus: ExchangeEntryStatus.Unknown,
|
||||||
permanent: r.permanent,
|
permanent: r.permanent,
|
||||||
supportedAgeGroups: [],
|
ageRestrictionOptions: [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
let exchangeStatus;
|
let exchangeStatus;
|
||||||
@ -378,7 +378,7 @@ export function makeExchangeListItem(
|
|||||||
paytoUris: exchangeDetails.wireInfo.accounts.map((x) => x.payto_uri),
|
paytoUris: exchangeDetails.wireInfo.accounts.map((x) => x.payto_uri),
|
||||||
exchangeStatus,
|
exchangeStatus,
|
||||||
permanent: r.permanent,
|
permanent: r.permanent,
|
||||||
supportedAgeGroups: exchangeDetails.ageMask
|
ageRestrictionOptions: exchangeDetails.ageMask
|
||||||
? AgeRestriction.getAgeGroupsFromMask(exchangeDetails.ageMask)
|
? AgeRestriction.getAgeGroupsFromMask(exchangeDetails.ageMask)
|
||||||
: [],
|
: [],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user