vnorder / com.venuenext.vnorder.orders.data / PaymentRepository

PaymentRepository

class PaymentRepository

PaymentRepository VenueNext

Created on 3/7/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Constructors

<init>

PaymentRepository VenueNext

PaymentRepository(context: Context)

Properties

context

var context: Context

paymentDao

val paymentDao: PaymentDao

venueNextDB

val venueNextDB: VenueNextDatabase

Functions

count

fun count(): Int

deletePayment

fun deletePayment(paymentUUID: String): Deferred<Unit>

getPayments

fun getPayments(cartUUID: String): LiveData<List<Payment>>

insertPayment

fun insertPayment(payment: Payment): Deferred<Unit>

insertPayments

fun insertPayments(payments: List<Payment>): Deferred<Unit>