public function update($id, $body)
    {
        $request = $this->paystackHttpClient->put(
            $this->transformUrl(Resource::CUSTOMERS_URL, $id),
            [
                'body'  => is_array($body) ? $this->toJson($body) : $body,
            ]
        );

        return $this->processResourceRequestResponse($request);
    }
public function update($id, $body)
    {
        $request = $this->paystackHttpClient->put(
            $this->transformUrl(Resource::CUSTOMERS_URL, $id),
            [
                'body'  => is_array($body) ? $this->toJson($body) : $body,
            ]
        );

        return $this->processResourceRequestResponse($request);
    }
public function update ( $ id , $ body ) { $ request = $ this -> paystackHttpClient -> put ( $ this -> transformUrl ( Resource :: CUSTOMERS_URL , $ id ) , [ 'body' => is_array ( $ body ) ? $ this -> toJson ( $ body ) : $ body , ] ) ; return $ this -> processResourceRequestResponse ( $ request ) ; }
update customer.

@param $id
@param $body

@return \Exception|mixed
update customer .