From a2ef2e391a8f030857d0f9cd56c6157cffb33659 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 24 May 2023 14:46:03 +0200 Subject: wallet-core: remove legacy non-DD37 tx status fields --- packages/taler-util/src/transaction-test-data.ts | 3 -- packages/taler-util/src/transactions-types.ts | 37 ------------------------ 2 files changed, 40 deletions(-) (limited to 'packages/taler-util/src') 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 { /** @@ -158,28 +150,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). */ @@ -468,13 +438,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 */ -- cgit v1.2.3