rateOrder

fun rateOrder(orderId: Int, rating: Int, comments: String?, categories: List<String>? = null, callback: (Order?, SdkError?) -> Unit? = null)

Send a customer rating for an order with the give orderId.

If you collect customer ratings in your app, you can pass them to Flybuy. The rating should be an integer and comments (optional) should be a string.

Example:

FlyBuyCore.getInstance(appAuthId).orders.rateOrder(orderId = 123, rating = 5, comments = 'Great service') { order, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}