CustomerRepository

Functions

Link copied to clipboard
abstract suspend fun addBalance(request: AddBalanceRequest, idempotencyKey: IdempotencyKey? = null): ApiResult<BalanceUpdate>
Link copied to clipboard
abstract suspend fun addPaymentMethod(customerId: String, paymentMethodType: AddPaymentMethodType, idempotencyKey: IdempotencyKey? = null): ApiResult<PaymentMethod>
Link copied to clipboard
abstract suspend fun createVirtualCard(customerId: String, idempotencyKey: IdempotencyKey? = null): ApiResult<VirtualCard>
Link copied to clipboard
abstract suspend fun deletePaymentMethod(customerId: String, paymentMethodId: String, idempotencyKey: IdempotencyKey? = null): ApiResult<Unit>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getCustomer(customerId: String): ApiResult<Customer>
Link copied to clipboard
abstract suspend fun getPaymentMethods(customerId: String): ApiResult<PaymentMethodCollection>
Link copied to clipboard
abstract suspend fun getReloadConfig(customerId: String): ApiResult<UserReloadConfiguration>
Link copied to clipboard
abstract suspend fun getTransactions(customerId: String, cursor: String? = null): ApiResult<TransactionResult>
Link copied to clipboard
abstract fun observeCustomer(customerId: String): Flow<Customer?>
Link copied to clipboard
abstract suspend fun provisionVirtualCard(request: ProvisioningRequest, idempotencyKey: IdempotencyKey? = null): ApiResult<Provisioning>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun useBalance(request: UseBalanceRequest, idempotencyKey: IdempotencyKey? = null): ApiResult<BalanceUpdate>