vnwallet / com.venuenext.vnwallet.service / VirtualMoneyService

VirtualMoneyService

class VirtualMoneyService : HttpClient

VirtualMoney VenueNext

Created on 1/23/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Exceptions

VirtualMoneyException

class VirtualMoneyException : Exception

Constructors

<init>

VirtualMoney VenueNext

VirtualMoneyService(context: Context)

Functions

findPaymentOptions

Finds all Payment Options from API server.

fun findPaymentOptions(): <ERROR CLASS>
fun findPaymentOptions(success: (result: Array<PaymentOption>?) -> Unit, failure: (Exception) -> Unit): Unit

getQrCode

Gets Discount Charge QR code from API server.

fun getQrCode(): Deferred<String?>
fun getQrCode(success: (result: String?) -> Unit, failure: (Exception) -> Unit): Unit

parsePaymentOptions

Parses and filters for toggle Payment Options.

fun parsePaymentOptions(paymentOptions: Array<PaymentOption>): Array<PaymentOption>