Updating Addresses

This page describes updating an address by itself, you can also update an address while updating a customer, or update an address while updating a credit card.

AddressRequest updateRequest = new AddressRequest().
    firstName("Jenna").
    lastName("Smith").
    company("Braintree").
    streetAddress("1 E Main St").
    extendedAddress("Suite 403").
    locality("Chicago").
    region("Illinois").
    postalCode("60622").
    countryCodeAlpha2("US");

gateway.address().update("theCustomerId", "theAddressId", updateRequest);