Braintree\AddressGateway::update PHP Method

update() public method

if calling this method in context, customerOrId is the 2nd attribute, addressId 3rd. customerOrId & addressId are not sent in object context.
public update ( mixed $customerOrId, string $addressId, array $attributes ) : Braintree\Result\Successful | Error
$customerOrId mixed (only used in call)
$addressId string (only used in call)
$attributes array
return Braintree\Result\Successful | Braintree\Result\Error
    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);
    }