diff options
author | Sebastian <sebasjm@gmail.com> | 2022-11-25 12:18:52 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-11-25 12:18:52 -0300 |
commit | dcddc4c53a59b087c5e48b6b20ed740514257bc8 (patch) | |
tree | d55b445119efd82c516746ef929ae5e32e9455e7 /packages/taler-util/src/wallet-types.ts | |
parent | c121eb875eb05b5fb49bd5583b6fcd4da8180879 (diff) | |
download | wallet-core-dcddc4c53a59b087c5e48b6b20ed740514257bc8.tar.xz |
revert the Lost payment result
Diffstat (limited to 'packages/taler-util/src/wallet-types.ts')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 0c837f2d0..61f2f3b73 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -385,7 +385,6 @@ export enum PreparePayResultType { PaymentPossible = "payment-possible", InsufficientBalance = "insufficient-balance", AlreadyConfirmed = "already-confirmed", - Lost = "lost", } export const codecForPreparePayResultPaymentPossible = @@ -434,12 +433,6 @@ export const codecForPreparePayResultAlreadyConfirmed = .property("proposalId", codecForString()) .build("PreparePayResultAlreadyConfirmed"); -export const codecForPreparePayResultPaymentLost = - (): Codec<PreparePayResultPaymentLost> => - buildCodecForObject<PreparePayResultPaymentLost>() - .property("status", codecForConstString(PreparePayResultType.Lost)) - .build("PreparePayResultLost"); - export const codecForPreparePayResult = (): Codec<PreparePayResult> => buildCodecForUnion<PreparePayResult>() .discriminateOn("status") @@ -455,10 +448,6 @@ export const codecForPreparePayResult = (): Codec<PreparePayResult> => PreparePayResultType.PaymentPossible, codecForPreparePayResultPaymentPossible(), ) - .alternative( - PreparePayResultType.Lost, - codecForPreparePayResultPaymentLost(), - ) .build("PreparePayResult"); /** @@ -467,8 +456,7 @@ export const codecForPreparePayResult = (): Codec<PreparePayResult> => export type PreparePayResult = | PreparePayResultInsufficientBalance | PreparePayResultAlreadyConfirmed - | PreparePayResultPaymentPossible - | PreparePayResultPaymentLost; + | PreparePayResultPaymentPossible; /** * Payment is possible. @@ -504,10 +492,6 @@ export interface PreparePayResultAlreadyConfirmed { talerUri?: string; } -export interface PreparePayResultPaymentLost { - status: PreparePayResultType.Lost; -} - export interface BankWithdrawDetails { selectionDone: boolean; transferDone: boolean; |