src/Returns.php
public function getAllOpenReturns($from, $to = '', array $options = []) {
        if (empty($to)) {
            $to = date('YmdHs');
        }
        $query_params = "from={$from}&to{$to}";

        $this->verifyDates($from, $to);

        $response = $this->get(
            "rs/{$this->config['customer_number']}/{$this->config['customer_number']}/openreturn?{$query_params}",
            [
                'Accept' => 'application/vnd.cpc.openreturn+xml',
                'Content-Type' => 'application/vnd.cpc.openreturn+xml',
            ],
            $options
        );
        return $response;

    }
public function getAllOpenReturns($from, $to = '', array $options = []) {
        if (empty($to)) {
            $to = date('YmdHs');
        }
        $query_params = "from={$from}&to{$to}";

        $this->verifyDates($from, $to);

        $response = $this->get(
            "rs/{$this->config['customer_number']}/{$this->config['customer_number']}/openreturn?{$query_params}",
            [
                'Accept' => 'application/vnd.cpc.openreturn+xml',
                'Content-Type' => 'application/vnd.cpc.openreturn+xml',
            ],
            $options
        );
        return $response;

    }
public function getAllOpenReturns ( $ from , $ to = '' , array $ options = [ ] ) { if ( empty ( $ to ) ) { $ to = date ( 'YmdHs' ) ; } $ query_params = "from={$from}&to{$to}" ; $ this -> verifyDates ( $ from , $ to ) ; $ response = $ this -> get ( "rs/{$this->config['customer_number']}/{$this->config['customer_number']}/openreturn?{$query_params}" , [ 'Accept' => 'application/vnd.cpc.openreturn+xml' , 'Content-Type' => 'application/vnd.cpc.openreturn+xml' , ] , $ options ) ; return $ response ; }
Get next open return artifact.

@param string $from
The beginning range. YmdHs format, eg. 201808282359.
@param string $to
The end range, defaults to current time. YmdHs format, eg. 201808282359.
@param array $options
The options array.

@return \DOMDocument|\Psr\Http\Message\StreamInterface
@throws \GuzzleHttp\Exception\GuzzleException
Get next open return artifact .