diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-05-15 15:34:24 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-06-28 19:59:12 -0600 |
commit | f72b427cc7df48f42b99eda5aa6f4f3b66e533a9 (patch) | |
tree | 6a106816bce90a2248d39676ec4318f05f027980 /wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt | |
parent | d99fd893dbe66e64954114bfd2bd6a37f388cc2b (diff) | |
download | taler-android-f72b427cc7df48f42b99eda5aa6f4f3b66e533a9.tar.gz taler-android-f72b427cc7df48f42b99eda5aa6f4f3b66e533a9.tar.bz2 taler-android-f72b427cc7df48f42b99eda5aa6f4f3b66e533a9.zip |
[wallet] Implemented DD37 with the new txActions field
Diffstat (limited to 'wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt')
-rw-r--r-- | wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt index 8f16746..796f7fc 100644 --- a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt +++ b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPushDebit.kt @@ -33,12 +33,16 @@ import net.taler.wallet.backend.TalerErrorCode.EXCHANGE_GENERIC_KYC_REQUIRED import net.taler.wallet.backend.TalerErrorInfo import net.taler.wallet.compose.QrCodeUriComposable import net.taler.wallet.transactions.AmountType -import net.taler.wallet.transactions.ExtendedStatus.Pending import net.taler.wallet.transactions.PeerInfoShort +import net.taler.wallet.transactions.TransactionAction.Abort +import net.taler.wallet.transactions.TransactionAction.Retry +import net.taler.wallet.transactions.TransactionAction.Suspend import net.taler.wallet.transactions.TransactionAmountComposable import net.taler.wallet.transactions.TransactionInfoComposable +import net.taler.wallet.transactions.TransactionMajorState.Pending import net.taler.wallet.transactions.TransactionPeerComposable import net.taler.wallet.transactions.TransactionPeerPushDebit +import net.taler.wallet.transactions.TransactionState @Composable fun ColumnScope.TransactionPeerPushDebitComposable(t: TransactionPeerPushDebit) { @@ -83,7 +87,8 @@ fun TransactionPeerPushDebitPreview() { val t = TransactionPeerPushDebit( transactionId = "transactionId", timestamp = Timestamp.fromMillis(System.currentTimeMillis() - 360 * 60 * 1000), - extendedStatus = Pending, + txState = TransactionState(Pending), + txActions = listOf(Retry, Suspend, Abort), exchangeBaseUrl = "https://exchange.example.org/", amountRaw = Amount.fromString("TESTKUDOS", "42.1337"), amountEffective = Amount.fromString("TESTKUDOS", "42.23"), |