class OrderService : HttpClient
OrdersException |
class OrdersException : Exception |
<init> |
OrderService(context: Context) |
authProvider |
val authProvider: OAuth? |
baseUrl |
val baseUrl: String? |
environment |
val environment: Environment? |
serviceBaseUrls |
val serviceBaseUrls: ServiceBaseUrls? |
getExperienceOrder |
Get Experience Order by orderUUID from API server. fun getExperienceOrder(orderUUID: String): <ERROR CLASS> fun getExperienceOrder(orderUUID: String, success: (result: Order?) -> Unit, failure: (Exception) -> Unit): Unit |
getExperienceOrders |
Creates the url, HttpRequest & handles the response from the orders call. fun getExperienceOrders(): <ERROR CLASS>
Creates the url, HttpRequest & makes the call & handles the success or failure then finally handles the response from the orders call. fun getExperienceOrders(success: (result: List<Order>?) -> Unit, failure: (Exception) -> Unit): Unit |
getExperienceOrderTotal |
Get Experience Order Total from API server. fun getExperienceOrderTotal(cart: Cart): <ERROR CLASS> fun getExperienceOrderTotal(cart: Cart, success: (result: Order?) -> Unit, failure: (Exception) -> Unit): Unit |
getOrder |
Get Order by orderUUID from API server. fun getOrder(orderUUID: String): <ERROR CLASS> fun getOrder(orderUUID: String, success: (result: Order?) -> Unit, failure: (Exception) -> Unit): Unit |
getOrders |
Creates the url, HttpRequest & handles the response from the orders.json call. fun getOrders(): <ERROR CLASS>
Creates the url, HttpRequest & makes the call & handles the success or failure then finally handles the response from the orders.json call. fun getOrders(success: (result: List<Order>?) -> Unit, failure: (Exception) -> Unit): Unit |
getOrderTotal |
Get Order Total from API server. fun getOrderTotal(cart: Cart): <ERROR CLASS> fun getOrderTotal(cart: Cart, success: (result: Order?) -> Unit, failure: (Exception) -> Unit): Unit |
getOrderTotalFromQrCode |
Get Order Total from API server. fun getOrderTotalFromQrCode(qrCode: String, orderNumber: String, userAttribute: UserAttribute?, affiliations: List<String>): <ERROR CLASS> |
placeExperienceOrder |
Place Experience Order via API. fun placeExperienceOrder(cart: Cart): <ERROR CLASS> fun placeExperienceOrder(cart: Cart, success: (result: Order?) -> Unit, failure: (Exception) -> Unit): Unit |
placeOrder |
Place Food and Beverage Order via API. fun placeOrder(cart: Cart): <ERROR CLASS> fun placeOrder(richCheckOutOrderPost: RichCheckOutOrderPost): <ERROR CLASS> fun placeOrder(cart: Cart, success: (result: Order?) -> Unit, failure: (Exception) -> Unit): Unit |
placeReorder |
Place an order using an Order UUID from a previously completed order. fun placeReorder(orderUUID: String): <ERROR CLASS> fun placeReorder(orderUUID: String, success: (result: Order?) -> Unit, failure: (Exception) -> Unit): Unit |
redeemExperience |
fun |
updateOrderPhoneNumberAsync |
Updates the phone number on an Order by orderUUID from API server. fun updateOrderPhoneNumberAsync(orderUUID: String, phoneNumber: String): <ERROR CLASS> |