lib/Braintree/AddressGateway.php
public function update($customerOrId, $addressId, $attributes)
    {
        $this->_validateId($addressId);
        $customerId = $this->_determineCustomerId($customerOrId);
        Util::verifyKeys(self::updateSignature(), $attributes);

        $path = $this->_config->merchantPath() . '/customers/' . $customerId . '/addresses/' . $addressId;
        $response = $this->_http->put($path, ['address' => $attributes]);

        return $this->_verifyGatewayResponse($response);

    }
public function update($customerOrId, $addressId, $attributes)
    {
        $this->_validateId($addressId);
        $customerId = $this->_determineCustomerId($customerOrId);
        Util::verifyKeys(self::updateSignature(), $attributes);

        $path = $this->_config->merchantPath() . '/customers/' . $customerId . '/addresses/' . $addressId;
        $response = $this->_http->put($path, ['address' => $attributes]);

        return $this->_verifyGatewayResponse($response);

    }
public function update ( $ customerOrId , $ addressId , $ attributes ) { $ this -> _validateId ( $ addressId ) ; $ customerId = $ this -> _determineCustomerId ( $ customerOrId ) ; Util :: verifyKeys ( self :: updateSignature ( ) , $ attributes ) ; $ path = $ this -> _config -> merchantPath ( ) . '/customers/' . $ customerId . '/addresses/' . $ addressId ; $ response = $ this -> _http -> put ( $ path , [ 'address' => $ attributes ] ) ; return $ this -> _verifyGatewayResponse ( $ response ) ; }
updates the address record

if calling this method in context,
customerOrId is the 2nd attribute, addressId 3rd.
customerOrId & addressId are not sent in object context.


@access public
@param array $attributes
@param mixed $customerOrId (only used in call)
@param string $addressId (only used in call)
@return Result\Successful|Result\Error
updates the address record