Address
Address: Update
See also the Address response object.
- Java
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);
If the address or customer can't be found, it will throw a NotFoundException
.
Arguments
addressId
required, stringcustomer_id
, then address_id
in order to successfully update this value.customerId
required, stringAdditional Parameters
.company(…)
string.countryCodeAlpha2(…)
stringThe ISO 3166-1 alpha-2 country code specified in an address. The gateway only accepts specific alpha-2 values.
.countryCodeAlpha3(…)
stringThe ISO 3166-1 alpha-3 country code specified in an address. The gateway only accepts specific alpha-3 values.
.countryCodeNumeric(…)
stringThe ISO 3166-1 numeric country code specified in an address. The gateway only accepts specific numeric values.
.countryName(…)
stringThe country name specified in an address. We only accept specific country names.
.extendedAddress(…)
string.firstName(…)
string.countryCode(…)
string.nationalNumber(…)
string.lastName(…)
string.locality(…)
string.phoneNumber(…)
stringDeprecated.
We recommend using international_phone
. This functionality still exists in the gateway but is no longer documented. This parameter will be removed in the future.
.postalCode(…)
string.region(…)
string.streetAddress(…)
string