invoke

suspend operator fun invoke(orderId: Int, newStatus: OrderState, sessionToken: String? = null): ResultS1SDK<Boolean, ErrorS1SDK>

Update the order state of the related order id on the api.

Return

ResultS1SDK<Boolean, ErrorS1SDK>

Parameters

orderId

Int the id of the order to be updated.

newStatus

OrderState the new status of the order. Notes:

sessionToken

String an specific session token for consuming the API. Only is required when you have an specific custom session handling with a valid session token for this request or you did not set the initial SDK setup. If null, you must have to set the initial SDK setup for handling automatically the session behind the scenes.