commit b3d1011927fb5e29223aa0093567d169fdbb70b4
parent faca48331ce04bd1ea254d90cb139d6a8afba77b
Author: Iván Ávalos <avalos@disroot.org>
Date: Thu, 11 Sep 2025 23:39:58 +0200
[wallet] fix #10393
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt b/wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt
@@ -154,12 +154,12 @@ class PaymentManager(
mPayStatus.value = PayStatus.Choices(
transactionId = transactionId,
- contractTerms = res.contractData,
+ contractTerms = res.contractTerms,
defaultChoiceIndex = res.defaultChoiceIndex,
choices = res.choices.map { choice ->
val spec = exchangeManager.getSpecForCurrency(
choice.amountRaw.currency,
- res.contractData.exchanges.map {
+ res.contractTerms.exchanges.map {
ScopeInfo.Exchange(choice.amountRaw.currency, it.url)
},
) ?: exchangeManager.getSpecForCurrency(choice.amountRaw.currency)
@@ -182,9 +182,9 @@ class PaymentManager(
description = choice.description,
descriptionI18n = choice.descriptionI18n,
amountRaw = choice.amountRaw,
- inputs = (res.contractData as? ContractTerms.V1)
+ inputs = (res.contractTerms as? ContractTerms.V1)
?.choices?.get(i)?.inputs ?: listOf(),
- outputs = (res.contractData as? ContractTerms.V1)
+ outputs = (res.contractTerms as? ContractTerms.V1)
?.choices?.get(i)?.outputs ?: listOf(),
details = choice,
)
diff --git a/wallet/src/main/java/net/taler/wallet/payment/PaymentResponses.kt b/wallet/src/main/java/net/taler/wallet/payment/PaymentResponses.kt
@@ -84,7 +84,7 @@ sealed class PreparePayResponse {
@Serializable
data class GetChoicesForPaymentResponse(
val choices: List<ChoiceSelectionDetail>,
- val contractData: ContractTerms,
+ val contractTerms: ContractTerms,
val defaultChoiceIndex: Int? = null,
val automaticExecution: Boolean? = null,
val automaticExecutableIndex: Int? = null,