diff options
author | Florian Dold <florian@dold.me> | 2020-12-14 16:45:15 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2020-12-14 16:45:15 +0100 |
commit | f332d61fb68fbc394f31337ddeb7d1fc114772d0 (patch) | |
tree | eeb9e7dd527ab7efcaa7812f4440e8901185e9aa /packages/taler-wallet-core/src/types/walletTypes.ts | |
parent | c4b44a51097e67a357b490adf407f1a6afb0d8ee (diff) | |
download | wallet-core-f332d61fb68fbc394f31337ddeb7d1fc114772d0.tar.gz wallet-core-f332d61fb68fbc394f31337ddeb7d1fc114772d0.tar.bz2 wallet-core-f332d61fb68fbc394f31337ddeb7d1fc114772d0.zip |
formatting pass
Diffstat (limited to 'packages/taler-wallet-core/src/types/walletTypes.ts')
-rw-r--r-- | packages/taler-wallet-core/src/types/walletTypes.ts | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/packages/taler-wallet-core/src/types/walletTypes.ts b/packages/taler-wallet-core/src/types/walletTypes.ts index ab7d3b4db..d0e72b289 100644 --- a/packages/taler-wallet-core/src/types/walletTypes.ts +++ b/packages/taler-wallet-core/src/types/walletTypes.ts @@ -365,13 +365,13 @@ export interface PrepareTipResult { * Amount that the merchant gave. */ tipAmountRaw: AmountString; - + /** * Amount that arrived at the wallet. * Might be lower than the raw amount due to fees. */ tipAmountEffective: AmountString; - + /** * Base URL of the merchant backend giving then tip. */ @@ -382,7 +382,7 @@ export interface PrepareTipResult { * Determined by the merchant, the wallet/user has no choice here. */ exchangeBaseUrl: string; - + /** * Time when the tip will expire. After it expired, it can't be picked * up anymore. @@ -392,13 +392,13 @@ export interface PrepareTipResult { export const codecForPrepareTipResult = (): Codec<PrepareTipResult> => buildCodecForObject<PrepareTipResult>() - .property("accepted", codecForBoolean()) - .property("tipAmountRaw", codecForAmountString()) - .property("tipAmountEffective", codecForAmountString()) - .property("exchangeBaseUrl", codecForString()) - .property("merchantBaseUrl", codecForString()) - .property("expirationTimestamp", codecForTimestamp) - .property("walletTipId", codecForString()) + .property("accepted", codecForBoolean()) + .property("tipAmountRaw", codecForAmountString()) + .property("tipAmountEffective", codecForAmountString()) + .property("exchangeBaseUrl", codecForString()) + .property("merchantBaseUrl", codecForString()) + .property("expirationTimestamp", codecForTimestamp) + .property("walletTipId", codecForString()) .build("PrepareTipResult"); export interface BenchmarkResult { @@ -974,7 +974,9 @@ export interface AbortPayWithRefundRequest { proposalId: string; } -export const codecForAbortPayWithRefundRequest = (): Codec<AbortPayWithRefundRequest> => +export const codecForAbortPayWithRefundRequest = (): Codec< + AbortPayWithRefundRequest +> => buildCodecForObject<AbortPayWithRefundRequest>() .property("proposalId", codecForString()) .build("AbortPayWithRefundRequest"); |