Updated on 2026-08-14
This commit is contained in:
parent
53bde31f89
commit
7443421bb1
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.
|
||||
*/
|
||||
@Serializable
|
||||
|
|
@ -162,7 +163,7 @@ sealed class PaymentAccountStatusValue {
|
|||
val cards: List<TangemPayCard>,
|
||||
val fiatRate: SerializedBigDecimal?,
|
||||
val error: Error?,
|
||||
val virtualAccount: VirtualAccountOnramp,
|
||||
val virtualAccount: VirtualAccountOnramp?,
|
||||
) : PaymentAccountStatusValue() {
|
||||
val cryptoCurrencyStatus: CryptoCurrencyStatus = CryptoCurrencyStatus(
|
||||
currency = cryptoCurrency,
|
||||
|
|
|
|||
|
|
@ -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