vnorderui / com.venuenext.vnorderui.ui.richcheckout / RichCheckoutViewModel

RichCheckoutViewModel

class RichCheckoutViewModel : AndroidViewModel, BaseCoroutineScope

Constructors

<init>

RichCheckoutViewModel(application: Application)

Properties

orderLiveData

val orderLiveData: LiveData<Order>

Functions

init

fun init(context: Context, qrCode: String, orderNumber: String, virtualCurrencyPaymentEnabled: Boolean, isSeasonTicketHolder: Boolean): Unit

onCleared

fun onCleared(): Unit

onPaymentCancel

fun onPaymentCancel(): Unit

onPaymentResult

fun onPaymentResult(paymentResult: PaymentResult): Unit

onPromoCodeEntered

fun onPromoCodeEntered(promoCode: String): Unit

placeOrder

fun placeOrder(): Unit

setVCSwitch

fun setVCSwitch(checked: Boolean): Unit