Updated on 2026-08-14
This commit is contained in:
parent
e2af488b32
commit
fdbd09cccb
20 changed files with 852 additions and 77 deletions
|
|
@ -149,7 +149,8 @@ sealed class PaymentAccountStatusValue {
|
|||
* [totalFiatBalance] resolves to [TotalFiatBalance.Failed].
|
||||
* @property error Transient error overlaid on top of cached data when a refresh fails
|
||||
* (see [copySealed]), or `null` when the status is up to date. Not persisted.
|
||||
* @property virtualAccount Virtual Account (Visa on-ramp) availability — VA MVP0 (TWI-1638).
|
||||
* @property virtualAccount Virtual Account (Visa on-ramp) availability — VA MVP0 (TWI-1638), or `null`
|
||||
* when not applicable (feature toggle off / wallet not eligible).
|
||||
* Transient: not persisted in the local cache.
|
||||
* @property tariffPlan Current tariff plan with subscription data (Tiers).
|
||||
* Transient: not persisted in the local cache.
|
||||
|
|
@ -164,7 +165,7 @@ sealed class PaymentAccountStatusValue {
|
|||
val cards: List<TangemPayCard>,
|
||||
val fiatRate: SerializedBigDecimal?,
|
||||
val error: Error?,
|
||||
val virtualAccount: VirtualAccountOnramp,
|
||||
val virtualAccount: VirtualAccountOnramp?,
|
||||
val tariffPlan: TangemPayCustomerTariffPlan?,
|
||||
) : PaymentAccountStatusValue() {
|
||||
val cryptoCurrencyStatus: CryptoCurrencyStatus = CryptoCurrencyStatus(
|
||||
|
|
|
|||
|
|
@ -11,10 +11,6 @@ import kotlinx.serialization.Serializable
|
|||
@Serializable
|
||||
sealed interface VirtualAccountOnramp {
|
||||
|
||||
/** On-ramp not applicable: feature toggle off, or wallet not eligible. */
|
||||
@Serializable
|
||||
data object None : VirtualAccountOnramp
|
||||
|
||||
/** No VA product instance yet, but the wallet is eligible to add funds (channel `VISA_VIRTUAL_ACCOUNT`). */
|
||||
@Serializable
|
||||
data object Eligible : VirtualAccountOnramp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue