class CheckoutViewModel : AndroidViewModel
<init> |
CheckoutViewModel(application: Application) |
discountAmount |
var discountAmount: MutableLiveData<String> |
|
var email: MutableLiveData<String> |
isDeliveryOrder |
var isDeliveryOrder: Boolean |
isUserPCH |
var isUserPCH: Boolean |
isUserSTH |
var isUserSTH: Boolean |
lastSelectedTipSuggestionIndex |
var lastSelectedTipSuggestionIndex: Int |
loyaltyUser |
var loyaltyUser: LoyaltyUser? |
orderSummary |
var orderSummary: OrderSummary? |
promoCode |
var promoCode: MutableLiveData<String> |
remainingBalance |
var remainingBalance: MutableLiveData<Double> |
remainingBalanceString |
var remainingBalanceString: MutableLiveData<String> |
selectedEvent |
var selectedEvent: Event? |
serviceChargeAmount |
var serviceChargeAmount: MutableLiveData<String> |
standName |
var standName: MutableLiveData<String> |
subtotalAmount |
var subtotalAmount: MutableLiveData<String> |
taxAmount |
var taxAmount: MutableLiveData<String> |
tipAmount |
var tipAmount: MutableLiveData<String> |
totalAmount |
var totalAmount: MutableLiveData<String> |
totalQuantity |
var totalQuantity: MutableLiveData<String> |
userName |
var userName: MutableLiveData<String> |
userStub |
var userStub: Stub? |
vcBalanceFormattedString |
var vcBalanceFormattedString: MutableLiveData<String> |
vcSwitchHasBeenChecked |
var vcSwitchHasBeenChecked: Boolean |
calculateExperienceTotalsAsync |
fun calculateExperienceTotalsAsync(cart: Cart?, selectedEvent: Event?): Deferred<OrderSummary> |
calculateTotals |
Calculate Order total summary. fun calculateTotals(cart: Cart?): Deferred<OrderSummary> |
createCartForReorderAsync |
fun createCartForReorderAsync(order: Order): Deferred<Cart?> |
encryptLoyaltyUser |
fun encryptLoyaltyUser(loyaltyUser: LoyaltyUser): Unit |
getPaymentMethod |
Gets the primary payment method suspend fun getPaymentMethod(forceRefresh: Boolean = false): PaymentMethod? |
observeLoyaltyUser |
fun observeLoyaltyUser(owner: LifecycleOwner): Unit |
placeExperienceOrder |
fun placeExperienceOrder(cart: Cart): Deferred<Order> |
placeOrder |
fun placeOrder(cart: Cart): Deferred<Order?> |
removeCartEntry |
fun removeCartEntry(cartEntryUUID: String?): Deferred<Unit> |
removePaymentMethod |
suspend fun removePaymentMethod(): Unit |
savePaymentMethod |
suspend fun savePaymentMethod(payment: PaymentResult): Any? |
updateExperienceTotalSummaryAsync |
suspend fun updateExperienceTotalSummaryAsync(cart: Cart?, selectedEvent: Event?, isUserSTH: Boolean, isUserPCH: Boolean): Deferred<Unit> |
updateTotalSummaryAsync |
fun updateTotalSummaryAsync(cart: Cart?, refetch: Boolean = false): Deferred<Unit> |