Updated on 2026-08-14
This commit is contained in:
parent
269a6d1d57
commit
161477c16a
11 changed files with 125 additions and 72 deletions
|
|
@ -2,8 +2,6 @@ package com.tangem.domain.pay.model
|
|||
|
||||
import java.math.BigDecimal
|
||||
|
||||
private const val APPROVED_KYC_STATUS = "APPROVED"
|
||||
|
||||
data class MainScreenCustomerInfo(
|
||||
val info: CustomerInfo,
|
||||
val orderStatus: OrderStatus,
|
||||
|
|
@ -11,7 +9,7 @@ data class MainScreenCustomerInfo(
|
|||
|
||||
data class CustomerInfo(
|
||||
val productInstance: ProductInstance?,
|
||||
val kycStatus: String?,
|
||||
val isKycApproved: Boolean,
|
||||
val cardInfo: CardInfo?,
|
||||
) {
|
||||
|
||||
|
|
@ -26,6 +24,4 @@ data class CustomerInfo(
|
|||
val currencyCode: String,
|
||||
val customerWalletAddress: String,
|
||||
)
|
||||
|
||||
fun isKycApproved() = kycStatus == APPROVED_KYC_STATUS
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package com.tangem.domain.pay.model
|
||||
|
||||
enum class OrderStatus(val apiName: String) {
|
||||
NOT_ISSUED(""),
|
||||
UNKNOWN(""),
|
||||
NEW("NEW"),
|
||||
PROCESSING("PROCESSING"),
|
||||
COMPLETED("COMPLETED"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue