public function update(Customer &$customer)
    {
        $data = $customer->exportData();
        $endpoint = '/admin/customers/'.$customer->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'customer' => $data
            )
        );
        $customer->setData($response['customer']);
    }
public function update(Customer &$customer)
    {
        $data = $customer->exportData();
        $endpoint = '/admin/customers/'.$customer->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'customer' => $data
            )
        );
        $customer->setData($response['customer']);
    }
public function update ( Customer & $ customer ) { $ data = $ customer -> exportData ( ) ; $ endpoint = '/admin/customers/' . $ customer -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'customer' => $ data ) ) ; $ customer -> setData ( $ response [ 'customer' ] ) ; }
Update a customer

@link   https://help.shopify.com/api/reference/customer#update
@param  Customer $customer
@return void
Update a customer