summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-03-08 23:09:20 +0100
committerFlorian Dold <florian@dold.me>2022-03-08 23:09:20 +0100
commit6ee0354940c09d1065c3b3b7bf08e41fd6014268 (patch)
tree7d127977b1517702082d0253099f25c3fa26289f /packages/taler-wallet-core/src/db.ts
parentd5a933e4cb685aab3e5e6bae5ca2358291e59130 (diff)
downloadwallet-core-6ee0354940c09d1065c3b3b7bf08e41fd6014268.tar.gz
wallet-core-6ee0354940c09d1065c3b3b7bf08e41fd6014268.tar.bz2
wallet-core-6ee0354940c09d1065c3b3b7bf08e41fd6014268.zip
wallet: improve retry handling for payments, update error codes
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index 52fc94b8d..ac28d0979 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -751,27 +751,27 @@ export enum ProposalStatus {
/**
* Not downloaded yet.
*/
- DOWNLOADING = "downloading",
+ Downloading = "downloading",
/**
* Proposal downloaded, but the user needs to accept/reject it.
*/
- PROPOSED = "proposed",
+ Proposed = "proposed",
/**
* The user has accepted the proposal.
*/
- ACCEPTED = "accepted",
+ Accepted = "accepted",
/**
* The user has rejected the proposal.
*/
- REFUSED = "refused",
+ Refused = "refused",
/**
* Downloading or processing the proposal has failed permanently.
*/
- PERMANENTLY_FAILED = "permanently-failed",
+ PermanentlyFailed = "permanently-failed",
/**
* Downloaded proposal was detected as a re-purchase.
*/
- REPURCHASE = "repurchase",
+ Repurchase = "repurchase",
}
export interface ProposalDownload {
@@ -831,7 +831,7 @@ export interface ProposalRecord {
/**
* Retry info, even present when the operation isn't active to allow indexing
* on the next retry timestamp.
- *
+ *
* FIXME: Clarify what we even retry.
*/
retryInfo?: RetryInfo;