Updated on 2026-08-14
This commit is contained in:
parent
1583ff1144
commit
118d985156
1 changed files with 6 additions and 6 deletions
|
|
@ -192,31 +192,31 @@ internal class TangemPaySelectPlanModel @Inject constructor(
|
||||||
|
|
||||||
private fun buildConfirmContent(): TangemPaySelectPlanUM.Content {
|
private fun buildConfirmContent(): TangemPaySelectPlanUM.Content {
|
||||||
val transition = allowedTransitions.getOrNull(selectedIndex) ?: return buildSelectContent()
|
val transition = allowedTransitions.getOrNull(selectedIndex) ?: return buildSelectContent()
|
||||||
val targetPlanName = transition.plan.name
|
val targetPlan = transition.plan
|
||||||
val programName = transition.plan.programName
|
|
||||||
return TangemPaySelectPlanUM.Content.Confirm(
|
return TangemPaySelectPlanUM.Content.Confirm(
|
||||||
title = when (transition.type) {
|
title = when (transition.type) {
|
||||||
TangemPayTariffPlanTransition.Type.UPGRADE -> resourceReference(
|
TangemPayTariffPlanTransition.Type.UPGRADE -> resourceReference(
|
||||||
R.string.tangempay_select_plan_confirm_upgrade_title,
|
R.string.tangempay_select_plan_confirm_upgrade_title,
|
||||||
wrappedList(programName),
|
wrappedList(targetPlan.programName),
|
||||||
)
|
)
|
||||||
TangemPayTariffPlanTransition.Type.DOWNGRADE -> {
|
TangemPayTariffPlanTransition.Type.DOWNGRADE -> {
|
||||||
val nextBillingDate = nextBillingDate()
|
val nextBillingDate = nextBillingDate()
|
||||||
if (nextBillingDate != null) {
|
if (nextBillingDate != null) {
|
||||||
|
val currentPlan = params.tariffPlan.plan
|
||||||
resourceReference(
|
resourceReference(
|
||||||
R.string.tangempay_select_plan_confirm_downgrade_title,
|
R.string.tangempay_select_plan_confirm_downgrade_title,
|
||||||
wrappedList(params.tariffPlan.plan.name, programName, nextBillingDate),
|
wrappedList(currentPlan.name, currentPlan.programName, nextBillingDate),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
resourceReference(
|
resourceReference(
|
||||||
R.string.tangempay_select_plan_confirm_switch_title,
|
R.string.tangempay_select_plan_confirm_switch_title,
|
||||||
wrappedList(targetPlanName),
|
wrappedList(targetPlan.name),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else -> resourceReference(
|
else -> resourceReference(
|
||||||
R.string.tangempay_select_plan_confirm_switch_title,
|
R.string.tangempay_select_plan_confirm_switch_title,
|
||||||
wrappedList(targetPlanName),
|
wrappedList(targetPlan.name),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
points = buildConfirmPoints(transition),
|
points = buildConfirmPoints(transition),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue