diff options
author | Torsten Grote <t@grobox.de> | 2023-02-22 14:29:26 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2023-02-22 14:29:26 -0300 |
commit | 77cd01bf1a23fc218d265a97925624f066c3236b (patch) | |
tree | c521353f50d2b42042086cc39692272e6a041024 /wallet/src/main/java/net/taler/wallet/peer/OutgoingState.kt | |
parent | 6e99207a7b525536240f32f04f1bb5457f969025 (diff) | |
download | taler-android-77cd01bf1a23fc218d265a97925624f066c3236b.tar.gz taler-android-77cd01bf1a23fc218d265a97925624f066c3236b.tar.bz2 taler-android-77cd01bf1a23fc218d265a97925624f066c3236b.zip |
[wallet] show fees for peer pull credit
Diffstat (limited to 'wallet/src/main/java/net/taler/wallet/peer/OutgoingState.kt')
-rw-r--r-- | wallet/src/main/java/net/taler/wallet/peer/OutgoingState.kt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/peer/OutgoingState.kt b/wallet/src/main/java/net/taler/wallet/peer/OutgoingState.kt index b0a31d2..5673417 100644 --- a/wallet/src/main/java/net/taler/wallet/peer/OutgoingState.kt +++ b/wallet/src/main/java/net/taler/wallet/peer/OutgoingState.kt @@ -20,6 +20,7 @@ import android.graphics.Bitmap import kotlinx.serialization.Serializable import net.taler.common.Amount import net.taler.wallet.backend.TalerErrorInfo +import net.taler.wallet.exchanges.ExchangeItem sealed class OutgoingState object OutgoingIntro : OutgoingState() @@ -27,6 +28,7 @@ object OutgoingChecking : OutgoingState() data class OutgoingChecked( val amountRaw: Amount, val amountEffective: Amount, + val exchangeItem: ExchangeItem? = null, ) : OutgoingState() object OutgoingCreating : OutgoingState() data class OutgoingResponse( @@ -39,6 +41,13 @@ data class OutgoingError( ) : OutgoingState() @Serializable +data class CheckPeerPullCreditResponse( + val exchangeBaseUrl: String, + val amountRaw: Amount, + val amountEffective: Amount, +) + +@Serializable data class InitiatePeerPullPaymentResponse( /** * Taler URI for the other party to make the payment that was requested. |