src/ClearSaleID/Service/Integration.php
public function checkOrderStatus( $orderId )
    {
        $function   = 'CheckOrderStatus';
        $parameters = [
            'entityCode'      => $this->connector->getEntityCode(),
            'pedidoIDCliente' => $orderId
        ];

        $response = $this->connector->doRequest( $function, $parameters );

        $packageStatusResponse = new PackageStatus( $response->CheckOrderStatusResult );

        $this->connector->log( 'Integration@checkOrderStatus', compact( 'packageStatusResponse' ) );

        return $packageStatusResponse;
    }
public function checkOrderStatus( $orderId )
    {
        $function   = 'CheckOrderStatus';
        $parameters = [
            'entityCode'      => $this->connector->getEntityCode(),
            'pedidoIDCliente' => $orderId
        ];

        $response = $this->connector->doRequest( $function, $parameters );

        $packageStatusResponse = new PackageStatus( $response->CheckOrderStatusResult );

        $this->connector->log( 'Integration@checkOrderStatus', compact( 'packageStatusResponse' ) );

        return $packageStatusResponse;
    }
public function checkOrderStatus ( $ orderId ) { $ function = 'CheckOrderStatus' ; $ parameters = [ 'entityCode' => $ this -> connector -> getEntityCode ( ) , 'pedidoIDCliente' => $ orderId ] ; $ response = $ this -> connector -> doRequest ( $ function , $ parameters ) ; $ packageStatusResponse = new PackageStatus ( $ response -> CheckOrderStatusResult ) ; $ this -> connector -> log ( 'Integration@checkOrderStatus' , compact ( 'packageStatusResponse' ) ) ; return $ packageStatusResponse ; }
Retorna o status de um pedido

@param  string $orderId

@return \RodrigoPedra\ClearSaleID\Entity\Response\PackageStatus
@throws \RodrigoPedra\ClearSaleID\Exception\UnexpectedErrorException
Retorna o status de um pedido