diff options
author | Florian Dold <florian@dold.me> | 2023-05-24 14:46:03 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-05-24 14:46:03 +0200 |
commit | a2ef2e391a8f030857d0f9cd56c6157cffb33659 (patch) | |
tree | 7da5030d2695b4c6ba24b007198726bea6016b13 /packages/taler-util | |
parent | f475f98f86d03e808d2c88c13eafa712c2013fe3 (diff) |
wallet-core: remove legacy non-DD37 tx status fields
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/transaction-test-data.ts | 3 | ||||
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 37 |
2 files changed, 0 insertions, 40 deletions
diff --git a/packages/taler-util/src/transaction-test-data.ts b/packages/taler-util/src/transaction-test-data.ts index dc0903f53..378028144 100644 --- a/packages/taler-util/src/transaction-test-data.ts +++ b/packages/taler-util/src/transaction-test-data.ts @@ -17,7 +17,6 @@ import { TransactionType, PaymentStatus, - ExtendedStatus, TransactionMajorState, } from "./transactions-types.js"; import { RefreshReason } from "./wallet-types.js"; @@ -36,7 +35,6 @@ export const sampleWalletCoreTransactions = [ totalRefundRaw: "KUDOS:0", totalRefundEffective: "KUDOS:0", status: PaymentStatus.Paid, - extendedStatus: ExtendedStatus.Done, refundPending: undefined, posConfirmation: undefined, pending: false, @@ -85,7 +83,6 @@ export const sampleWalletCoreTransactions = [ refreshOutputAmount: "KUDOS:1.4", originatingTransactionId: "txn:proposal:ZCGBZFE8KZ1CBYYGSC3ZC8E40KVJWV16VYCTHGC8FFSVZ5HD24BG", - extendedStatus: ExtendedStatus.Pending, pending: true, timestamp: { t_s: 1681376214, diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index 30178b7c7..84c60a847 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -50,14 +50,6 @@ import { TransactionIdStr, } from "./wallet-types.js"; -export enum ExtendedStatus { - Pending = "pending", - Done = "done", - Aborting = "aborting", - Aborted = "aborted", - Failed = "failed", - KycRequired = "kyc-required", -} export interface TransactionsRequest { /** @@ -159,28 +151,6 @@ export interface TransactionCommon { txState: TransactionState; /** - * @deprecated in favor of statusMajor and statusMinor - */ - extendedStatus: ExtendedStatus; - - /** - * true if the transaction is still pending, false otherwise - * If a transaction is not longer pending, its timestamp will be updated, - * but its transactionId will remain unchanged - * - * @deprecated show extendedStatus - */ - pending: boolean; - - /** - * True if the transaction encountered a problem that might be - * permanent. A frozen transaction won't be automatically retried. - * - * @deprecated show extendedStatus - */ - frozen: boolean; - - /** * Raw amount of the transaction (exclusive of fees or other extra costs). */ amountRaw: AmountString; @@ -469,13 +439,6 @@ export interface TransactionPayment extends TransactionCommon { proposalId: string; /** - * How far did the wallet get with processing the payment? - * - * @deprecated use extendedStatus - */ - status: PaymentStatus; - - /** * Amount that must be paid for the contract */ amountRaw: AmountString; |