Class Address
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessions.requests.Address
-
public final class Address extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddress.AddressBuilder
-
Constructor Summary
Constructors Constructor Description Address()Address(java.lang.String addressLine1, java.lang.String addressLine2, java.lang.String city, java.lang.String state, java.lang.String zip, CountryCode country)Creates a newAddressinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Address.AddressBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetAddressLine1()The first line of the address.java.lang.StringgetAddressLine2()The second line of the addressjava.lang.StringgetCity()The address city.CountryCodegetCountry()The two-letter ISO country code of the address.java.lang.StringgetState()The state or province of the address country ISO 3166-2 code (for example: CA for California in the United States).java.lang.StringgetZip()The address zip or postal code.inthashCode()voidsetAddressLine1(java.lang.String addressLine1)The first line of the address.voidsetAddressLine2(java.lang.String addressLine2)The second line of the addressvoidsetCity(java.lang.String city)The address city.voidsetCountry(CountryCode country)The two-letter ISO country code of the address.voidsetState(java.lang.String state)The state or province of the address country ISO 3166-2 code (for example: CA for California in the United States).voidsetZip(java.lang.String zip)The address zip or postal code.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Address
public Address()
-
Address
public Address(java.lang.String addressLine1, java.lang.String addressLine2, java.lang.String city, java.lang.String state, java.lang.String zip, CountryCode country)Creates a newAddressinstance.- Parameters:
addressLine1- The first line of the address.addressLine2- The second line of the addresscity- The address city.state- The state or province of the address country ISO 3166-2 code (for example: CA for California in the United States).zip- The address zip or postal code.country- The two-letter ISO country code of the address.
-
-
Method Detail
-
builder
public static Address.AddressBuilder builder()
-
getAddressLine1
public java.lang.String getAddressLine1()
The first line of the address.
-
getAddressLine2
public java.lang.String getAddressLine2()
The second line of the address
-
getCity
public java.lang.String getCity()
The address city.
-
getState
public java.lang.String getState()
The state or province of the address country ISO 3166-2 code (for example: CA for California in the United States).
-
getZip
public java.lang.String getZip()
The address zip or postal code.
-
getCountry
public CountryCode getCountry()
The two-letter ISO country code of the address.
-
setAddressLine1
public void setAddressLine1(java.lang.String addressLine1)
The first line of the address.
-
setAddressLine2
public void setAddressLine2(java.lang.String addressLine2)
The second line of the address
-
setCity
public void setCity(java.lang.String city)
The address city.
-
setState
public void setState(java.lang.String state)
The state or province of the address country ISO 3166-2 code (for example: CA for California in the United States).
-
setZip
public void setZip(java.lang.String zip)
The address zip or postal code.
-
setCountry
public void setCountry(CountryCode country)
The two-letter ISO country code of the address.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-