src/ClearSaleID/Service/Integration.php
public function updateOrderStatus( $orderId, $newStatusId, $notes = '' )
    {
        $function   = 'UpdateOrderStatus';
        $parameters = [
            'entityCode'  => $this->connector->getEntityCode(),
            'orderId'     => $orderId,
            'newStatusId' => $newStatusId,
            'obs'         => substr( trim( $notes ), 0, 50 ),
        ];

        // false indicates this method uses extended endpoint
        $response = $this->connector->doRequest( $function, $parameters, false );

        $updateOrderStatusResponse = new UpdateOrderStatus( $response->UpdateOrderStatusResult );

        $this->connector->log( 'Integration@updateOrderStatus', compact( 'updateOrderStatusResponse' ) );

        return $updateOrderStatusResponse;
    }
public function updateOrderStatus( $orderId, $newStatusId, $notes = '' )
    {
        $function   = 'UpdateOrderStatus';
        $parameters = [
            'entityCode'  => $this->connector->getEntityCode(),
            'orderId'     => $orderId,
            'newStatusId' => $newStatusId,
            'obs'         => substr( trim( $notes ), 0, 50 ),
        ];

        // false indicates this method uses extended endpoint
        $response = $this->connector->doRequest( $function, $parameters, false );

        $updateOrderStatusResponse = new UpdateOrderStatus( $response->UpdateOrderStatusResult );

        $this->connector->log( 'Integration@updateOrderStatus', compact( 'updateOrderStatusResponse' ) );

        return $updateOrderStatusResponse;
    }
Método que atualiza o status do pedido para o status recebido no parametro statusPedido

@param  string $orderId
@param  int    $newStatusId
@param  string $notes

@return \RodrigoPedra\ClearSaleID\Entity\Response\UpdateOrderStatus
@throws \RodrigoPedra\ClearSaleID\Exception\UnexpectedErrorException
@throws \RodrigoPedra\ClearSaleID\Exception\UpdateOrderStatusException