From 37d27ba437c0cd6fbff4c2262b782e758e14a008 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 4 Oct 2022 13:12:15 +0200 Subject: restructure api types --- packages/taler-util/src/walletTypes.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'packages/taler-util/src/walletTypes.ts') diff --git a/packages/taler-util/src/walletTypes.ts b/packages/taler-util/src/walletTypes.ts index 64daee776..bb5d4b3a4 100644 --- a/packages/taler-util/src/walletTypes.ts +++ b/packages/taler-util/src/walletTypes.ts @@ -423,11 +423,17 @@ export const codecForPreparePayResult = (): Codec => ) .build("PreparePayResult"); +/** + * Result of a prepare pay operation. + */ export type PreparePayResult = | PreparePayResultInsufficientBalance | PreparePayResultAlreadyConfirmed | PreparePayResultPaymentPossible; +/** + * Payment is possible. + */ export interface PreparePayResultPaymentPossible { status: PreparePayResultType.PaymentPossible; proposalId: string; @@ -604,7 +610,7 @@ export interface KnownBankAccountsInfo { uri: PaytoUri; kyc_completed: boolean; currency: string; - alias: string, + alias: string; } export interface KnownBankAccounts { @@ -1092,9 +1098,9 @@ export interface AddKnownBankAccountsRequest { export const codecForAddKnownBankAccounts = (): Codec => buildCodecForObject() - .property("payto", (codecForString())) - .property("alias", (codecForString())) - .property("currency", (codecForString())) + .property("payto", codecForString()) + .property("alias", codecForString()) + .property("currency", codecForString()) .build("AddKnownBankAccountsRequest"); export interface ForgetKnownBankAccountsRequest { @@ -1104,7 +1110,7 @@ export interface ForgetKnownBankAccountsRequest { export const codecForForgetKnownBankAccounts = (): Codec => buildCodecForObject() - .property("payto", (codecForString())) + .property("payto", codecForString()) .build("ForgetKnownBankAccountsRequest"); export interface GetExchangeWithdrawalInfo { -- cgit v1.2.3