diff options
Diffstat (limited to 'packages/taler-wallet-core/src/types')
4 files changed, 23 insertions, 21 deletions
diff --git a/packages/taler-wallet-core/src/types/backupTypes.ts b/packages/taler-wallet-core/src/types/backupTypes.ts index 247a4d398..daf2fbe5a 100644 --- a/packages/taler-wallet-core/src/types/backupTypes.ts +++ b/packages/taler-wallet-core/src/types/backupTypes.ts @@ -23,6 +23,7 @@ * Current limitations: * 1. Exchange/auditor trust isn't exported yet * (see https://bugs.gnunet.org/view.php?id=6448) + * 2. Reports to the auditor (cryptographic proofs and/or diagnostics) aren't exported yet * * General considerations / decisions: * 1. Information about previously occurring errors and @@ -196,7 +197,7 @@ export interface WalletBackupContentV1 { /** * Interning table for forgettable values of contract terms. - * + * * Used to reduce storage space, as many forgettable items (product image, * addresses, etc.) might be shared among many contract terms. */ @@ -205,7 +206,7 @@ export interface WalletBackupContentV1 { /** * Trust declaration for an auditor. - * + * * The trust applies based on the public key of * the auditor, irrespective of what base URL the exchange * is referencing. @@ -223,7 +224,7 @@ export interface BackupTrustAuditor { /** * Clock when the auditor trust has been added. - * + * * Can be undefined if this entry represents a removal delta * from the wallet's defaults. */ @@ -237,7 +238,7 @@ export interface BackupTrustAuditor { /** * Trust declaration for an exchange. - * + * * The trust only applies for the combination of base URL * and public key. If the master public key changes while the base * URL stays the same, the exchange has to be re-added by a wallet update @@ -256,12 +257,12 @@ export interface BackupTrustExchange { /** * Clock when the exchange trust has been added. - * + * * Can be undefined if this entry represents a removal delta * from the wallet's defaults. */ clock_added?: ClockValue; - + /** * Clock for when the exchange trust has been removed. */ diff --git a/packages/taler-wallet-core/src/types/notifications.ts b/packages/taler-wallet-core/src/types/notifications.ts index 7faf730ef..533223cc0 100644 --- a/packages/taler-wallet-core/src/types/notifications.ts +++ b/packages/taler-wallet-core/src/types/notifications.ts @@ -223,7 +223,7 @@ export interface ReserveRegisteredWithBankNotification { /** * Notification sent when a pay (or pay replay) operation succeeded. - * + * * We send this notification because the confirmPay request can return * a "confirmed" response that indicates that the payment has been confirmed * by the user, but we're still waiting for the payment to succeed or fail. diff --git a/packages/taler-wallet-core/src/types/types-test.ts b/packages/taler-wallet-core/src/types/types-test.ts index 183122ef7..19c9b5aa6 100644 --- a/packages/taler-wallet-core/src/types/types-test.ts +++ b/packages/taler-wallet-core/src/types/types-test.ts @@ -54,7 +54,6 @@ test("contract terms validation", (t) => { t.fail(); }); - test("contract terms validation (locations)", (t) => { const c = { nonce: "123123123", @@ -69,7 +68,7 @@ test("contract terms validation (locations)", (t) => { name: "Foo", address: { country: "DE", - } + }, }, order_id: "test_order", pay_deadline: { t_ms: 42 }, @@ -83,7 +82,7 @@ test("contract terms validation (locations)", (t) => { delivery_location: { country: "FR", town: "Rennes", - } + }, }; const r = codecForContractTerms().decode(c); 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"); |