src/Api/Handler/Request/Sales/OrderHandler.php
public function orders($page = 1, $perPage = 30, $saleSystem = null, array $statuses = [])
    {
        $filters = [];

        if (!is_null($saleSystem)) {
            $filters['sale_system'] = (string) $saleSystem;
        }

        if (!is_null($statuses)) {
            $filters['statuses'] = (array) $statuses;
        }

        $query = [
            'page'     => (int)   $page,
            'per_page' => (int)   $perPage,
            'filters'  => (array) $filters,
        ];

        /** @var \SkyHub\Api\Handler\Response\HandlerInterface $responseHandler */
        $responseHandler = $this->service()->get($this->baseUrlPath(null, $query));
        return $responseHandler;
    }
public function orders($page = 1, $perPage = 30, $saleSystem = null, array $statuses = [])
    {
        $filters = [];

        if (!is_null($saleSystem)) {
            $filters['sale_system'] = (string) $saleSystem;
        }

        if (!is_null($statuses)) {
            $filters['statuses'] = (array) $statuses;
        }

        $query = [
            'page'     => (int)   $page,
            'per_page' => (int)   $perPage,
            'filters'  => (array) $filters,
        ];

        /** @var \SkyHub\Api\Handler\Response\HandlerInterface $responseHandler */
        $responseHandler = $this->service()->get($this->baseUrlPath(null, $query));
        return $responseHandler;
    }
public function orders ( $ page = 1 , $ perPage = 30 , $ saleSystem = null , array $ statuses = [ ] ) { $ filters = [ ] ; if ( ! is_null ( $ saleSystem ) ) { $ filters [ 'sale_system' ] = ( string ) $ saleSystem ; } if ( ! is_null ( $ statuses ) ) { $ filters [ 'statuses' ] = ( array ) $ statuses ; } $ query = [ 'page' => ( int ) $ page , 'per_page' => ( int ) $ perPage , 'filters' => ( array ) $ filters , ] ; /** @var \SkyHub\Api\Handler\Response\HandlerInterface $responseHandler */ $ responseHandler = $ this -> service ( ) -> get ( $ this -> baseUrlPath ( null , $ query ) ) ; return $ responseHandler ; }
Retrieves a list of all orders available in SkyHub.

@param int    $page
@param int    $perPage
@param string $saleSystem
@param array  $statuses

@return \SkyHub\Api\Handler\Response\HandlerInterface
Retrieves a list of all orders available in SkyHub .