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.

var 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);