diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-09-09 02:18:03 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-09-09 02:18:03 +0530 |
commit | 67df550b4f6d67f8de346985df26133dc8da5c05 (patch) | |
tree | 575b514c1f6a9723fd32678da42f21c3c7ab523b /packages/taler-wallet-core/src/types/dbTypes.ts | |
parent | 68ca4600e0e3460423a6c33530bd4bb8096afa65 (diff) | |
download | wallet-core-67df550b4f6d67f8de346985df26133dc8da5c05.tar.xz |
implement payment aborts with integration test
Diffstat (limited to 'packages/taler-wallet-core/src/types/dbTypes.ts')
-rw-r--r-- | packages/taler-wallet-core/src/types/dbTypes.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts b/packages/taler-wallet-core/src/types/dbTypes.ts index ff790e216..d10be80ce 100644 --- a/packages/taler-wallet-core/src/types/dbTypes.ts +++ b/packages/taler-wallet-core/src/types/dbTypes.ts @@ -1285,6 +1285,12 @@ export interface PayCoinSelection { customerDepositFees: AmountJson; } +export enum AbortStatus { + None = "none", + AbortRefund = "abort-refund", + AbortFinished = "abort-finished", +} + /** * Record that stores status information about one purchase, starting from when * the customer accepts a proposal. Includes refund status if applicable. @@ -1352,17 +1358,9 @@ export interface PurchaseRecord { * Do we need to query the merchant for the refund status * of the payment? */ - refundStatusRequested: boolean; + refundQueryRequested: boolean; - /** - * An abort (with refund) was requested for this (incomplete!) purchase. - */ - abortRequested: boolean; - - /** - * The abort (with refund) was completed for this (incomplete!) purchase. - */ - abortDone: boolean; + abortStatus: AbortStatus; payRetryInfo: RetryInfo; |