updatePickupMethod

fun updatePickupMethod(orderId: Int, pickupMethodOptions: PickupMethodOptions, callback: (Order?, SdkError?) -> Unit? = null)

Update the method for an order with the given orderId including pickup type, vehicle info, and handoff location.

Example:

val pickupMethodOptions = PickupMethodOptions.Builder("curbside").apply {
setCustomerCarColor("Silver")
setCustomerCarType("DeLorean")
setCustomerCarPlate("OUTATIME")
setHandoffVehicleLocation(HandoffVehicleLocation.DRIVER_FRONT)
}.build()
FlyBuyCore.getInstance(appAuthId).orders.updatePickupMethod(orderId, pickupMethodOptions) { order, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}