class PaymentMethodRepository : BaseCoroutineScope
<init> |
PaymentMethodRepository(context: Context) |
context |
val context: Context |
getPaymentMethod |
Retrieves a user's primary payment method from a cache, database, or network. suspend fun getPaymentMethod(userId: String? = null, forceRefresh: Boolean = false): PaymentMethod? |
getPaymentMethodLiveData |
fun getPaymentMethodLiveData(): LiveData<PaymentMethod> |
removePaymentMethod |
fun removePaymentMethod(userId: String): Unit |
storeCreditCardPaymentMethod |
suspend fun |