public final class Address extends Base implements WithKey
Use AddressBuilder
to create an address.
You can alternatively create a copy of an address with changed values by using the with
-methods:
final Address addressWithContactData = address .withEmail("hello@commercetools.de") .withPhone("+49.89.99 82 996-0");
See the test code.
Cart.getBillingAddress()
,
Cart.getShippingAddress()
,
Order.getBillingAddress()
,
Order.getShippingAddress()
,
Customer.getAddresses()
,
Customer.getDefaultBillingAddress()
,
Customer.getDefaultShippingAddress()
,
AddAddress
,
ChangeAddress
,
RemoveAddress
,
SetDefaultBillingAddress
,
SetDefaultShippingAddress
,
SetBillingAddress
,
SetShippingAddress
public com.neovisionaries.i18n.CountryCode getCountry()
@Nullable public CustomFields getCustomFields()
@Nullable public CustomFieldsDraft getCustomFieldsDraft()
public Address withCountry(com.neovisionaries.i18n.CountryCode country)
public Address withAdditionalStreetInfo(@Nullable String additionalStreetInfo)
public Address withAdditionalAddressInfo(@Nullable String additionalAddressInfo)
public Address withCustomFields(@Nullable CustomFields customFields)
public Address withCustomFields(@Nullable CustomFieldsDraft customFields)
public static Address of(com.neovisionaries.i18n.CountryCode country)
public boolean equalsIgnoreId(Address address)
public static String resourceTypeId()