summaryrefslogtreecommitdiff
path: root/wallet
diff options
context:
space:
mode:
Diffstat (limited to 'wallet')
-rw-r--r--wallet/src/main/java/net/taler/wallet/balances/CurrencySpecification.kt5
-rw-r--r--wallet/src/main/java/net/taler/wallet/withdraw/WithdrawManager.kt6
2 files changed, 8 insertions, 3 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/balances/CurrencySpecification.kt b/wallet/src/main/java/net/taler/wallet/balances/CurrencySpecification.kt
index 2297c21..5001db4 100644
--- a/wallet/src/main/java/net/taler/wallet/balances/CurrencySpecification.kt
+++ b/wallet/src/main/java/net/taler/wallet/balances/CurrencySpecification.kt
@@ -16,13 +16,18 @@
package net.taler.wallet.balances
+import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class CurrencySpecification(
val name: String,
+ @SerialName("num_fractional_input_digits")
val numFractionalInputDigits: Int,
+ @SerialName("num_fractional_normal_digits")
val numFractionalNormalDigits: Int,
+ @SerialName("num_fractional_trailing_zero_digits")
val numFractionalTrailingZeroDigits: Int,
+ @SerialName("alt_unit_names")
val altUnitNames: Map<String, String>,
) \ No newline at end of file
diff --git a/wallet/src/main/java/net/taler/wallet/withdraw/WithdrawManager.kt b/wallet/src/main/java/net/taler/wallet/withdraw/WithdrawManager.kt
index 4661946..ca2309d 100644
--- a/wallet/src/main/java/net/taler/wallet/withdraw/WithdrawManager.kt
+++ b/wallet/src/main/java/net/taler/wallet/withdraw/WithdrawManager.kt
@@ -124,7 +124,7 @@ data class ManualWithdrawalDetails(
val amountRaw: Amount,
val amountEffective: Amount,
val numCoins: Int,
- val withdrawalAccountList: List<WithdrawalExchangeAccountDetails>,
+ val withdrawalAccountsList: List<WithdrawalExchangeAccountDetails>,
val ageRestrictionOptions: List<Int>? = null,
)
@@ -211,7 +211,7 @@ class WithdrawManager(
amountRaw = details.amountRaw,
amountEffective = details.amountEffective,
numCoins = details.numCoins,
- withdrawalAccountList = details.withdrawalAccountList,
+ withdrawalAccountList = details.withdrawalAccountsList,
ageRestrictionOptions = details.ageRestrictionOptions,
)
} else getExchangeTos(exchangeBaseUrl, details, showTosImmediately, uri)
@@ -235,7 +235,7 @@ class WithdrawManager(
amountRaw = details.amountRaw,
amountEffective = details.amountEffective,
numCoins = details.numCoins,
- withdrawalAccountList = details.withdrawalAccountList,
+ withdrawalAccountList = details.withdrawalAccountsList,
ageRestrictionOptions = details.ageRestrictionOptions,
tosText = it.content,
tosEtag = it.currentEtag,