updateCustomerState
Update the customerState for an order with the given orderId.
Example:
FlyBuyCore.getInstance(appAuthId).orders.updateCustomerState(orderId, "waiting") { order, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}Update the customerState and send a spotIdentifier for an order with the given orderId.
In order to send a spot identifier, send a "waiting" customerState with the spotIdentifier. Note that spot identifiers are currently only allowed when the customer state is set to "waiting". If the customer state is already "waiting", this method can be called again with the "waiting" customer state to update the spot identifier.
Note that there is a character limit for the spot identifier (currently 35 characters), the method will return an error if the character limit is exceeded.
An Order also has fields for spotIdentifierEntryEnabled and spotIdentifierInputType that can be used by the app to decide if spot entry should be allowed. Note that the spotIdentifier can be set for the order regardless of these fields values.
Example:
FlyBuyCore.getInstance(appAuthId).orders.updateCustomerState(orderId, "waiting", "1") { order, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}