diff options
author | Florian Dold <florian@dold.me> | 2023-06-05 17:58:20 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-05 17:58:25 +0200 |
commit | 9fca44893a6f7fcee5c828da5fc10e7d76592b5d (patch) | |
tree | 634830c7a769302d5e107f2aee323c3f705cf113 /packages/taler-util/src | |
parent | 6e7c88a62073082b28ef563561d08f56acc0b017 (diff) | |
download | wallet-core-9fca44893a6f7fcee5c828da5fc10e7d76592b5d.tar.xz |
wallet-core: handle more p2p abort cases nicely
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/http-common.ts | 2 | ||||
-rw-r--r-- | packages/taler-util/src/taler-crypto.ts | 1 | ||||
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 1 | ||||
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 1 |
4 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-util/src/http-common.ts b/packages/taler-util/src/http-common.ts index 4f8f12789..4f6aaaf44 100644 --- a/packages/taler-util/src/http-common.ts +++ b/packages/taler-util/src/http-common.ts @@ -45,7 +45,7 @@ export interface HttpResponse { export const DEFAULT_REQUEST_TIMEOUT_MS = 60000; export interface HttpRequestOptions { - method?: "POST" | "PUT" | "GET"; + method?: "POST" | "PUT" | "GET" | "DELETE"; headers?: { [name: string]: string }; /** diff --git a/packages/taler-util/src/taler-crypto.ts b/packages/taler-util/src/taler-crypto.ts index 4a657b621..c4eb925f7 100644 --- a/packages/taler-util/src/taler-crypto.ts +++ b/packages/taler-util/src/taler-crypto.ts @@ -958,6 +958,7 @@ export enum TalerSignaturePurpose { WALLET_PURSE_MERGE = 1213, WALLET_ACCOUNT_MERGE = 1214, WALLET_PURSE_ECONTRACT = 1216, + WALLET_PURSE_DELETE = 1220, EXCHANGE_CONFIRM_RECOUP = 1039, EXCHANGE_CONFIRM_RECOUP_REFRESH = 1041, ANASTASIS_POLICY_UPLOAD = 1400, diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index 3f3fe8ac0..576c8e335 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -83,6 +83,7 @@ export enum TransactionMajorState { Dialog = "dialog", SuspendedAborting = "suspended-aborting", Failed = "failed", + Expired = "expired", // Only used for the notification, never in the transaction history Deleted = "deleted", } diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 05ff8d891..af02807a6 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -734,6 +734,7 @@ export enum RefreshReason { Refund = "refund", AbortPay = "abort-pay", AbortDeposit = "abort-deposit", + AbortPeerPushDebit = "abort-peer-push-debit", Recoup = "recoup", BackupRestored = "backup-restored", Scheduled = "scheduled", |