src/Resource/Orders.php
public function setCustomerId($id)
    {
        if (!isset($this->data->customer)) {
            $this->data->customer = new stdClass();
        }
        $this->data->customer->id = $id;

        return $this;
    }
public function setCustomerId($id)
    {
        if (!isset($this->data->customer)) {
            $this->data->customer = new stdClass();
        }
        $this->data->customer->id = $id;

        return $this;
    }
public function setCustomerId ( $ id ) { if ( ! isset ( $ this -> data -> customer ) ) { $ this -> data -> customer = new stdClass ( ) ; } $ this -> data -> customer -> id = $ id ; return $ this ; }
Set customer id associated with the order.

@param string $id Customer's id.

@return $this
Set customer id associated with the order .