diff options
Diffstat (limited to 'packages/taler-util/src/taler-types.ts')
-rw-r--r-- | packages/taler-util/src/taler-types.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts index ab5951112..295530529 100644 --- a/packages/taler-util/src/taler-types.ts +++ b/packages/taler-util/src/taler-types.ts @@ -840,6 +840,10 @@ export class WireFeesJson { export interface AccountInfo { payto_uri: string; master_sig: string; + // Will become mandatory in later protocol versions + conversion_url?: string; + credit_restrictions?: any; + debit_restrictions?: any; } export interface ExchangeWireJson { @@ -1426,6 +1430,9 @@ export const codecForAccountInfo = (): Codec<AccountInfo> => buildCodecForObject<AccountInfo>() .property("payto_uri", codecForString()) .property("master_sig", codecForString()) + .property("conversion_url", codecOptional(codecForString())) + .property("credit_restrictions", codecForAny()) + .property("debit_restrictions", codecForAny()) .build("AccountInfo"); export const codecForExchangeWireJson = (): Codec<ExchangeWireJson> => |