Class BillingAddress
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.common.source.cardsource.billingaddress.BillingAddress
-
public final class BillingAddress extends java.lang.Objectbilling_address The payment source owner's billing address
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBillingAddress.BillingAddressBuilder
-
Constructor Summary
Constructors Constructor Description BillingAddress()BillingAddress(java.lang.String addressLine1, java.lang.String addressLine2, java.lang.String city, java.lang.String state, java.lang.String zip, CountryCode country)Creates a newBillingAddressinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BillingAddress.BillingAddressBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetAddressLine1()The first line of the address.java.lang.StringgetAddressLine2()The second line of the address [Optional] <= 200java.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 address [Optional] <= 200voidsetCity(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
-
BillingAddress
public BillingAddress()
-
BillingAddress
public BillingAddress(java.lang.String addressLine1, java.lang.String addressLine2, java.lang.String city, java.lang.String state, java.lang.String zip, CountryCode country)Creates a newBillingAddressinstance.- Parameters:
addressLine1- The first line of the address. [Optional] <= 200addressLine2- The second line of the address [Optional] <= 200city- The address city. [Optional] <= 50state- The state or province of the address country ISO 3166-2 code (for example: CA for California in the United States). [Optional] <= 3zip- The address zip or postal code. [Optional] <= 50country- The two-letter ISO country code of the address. [Optional] 2 characters
-
-
Method Detail
-
builder
public static BillingAddress.BillingAddressBuilder builder()
-
getAddressLine1
public java.lang.String getAddressLine1()
The first line of the address. [Optional] <= 200
-
getAddressLine2
public java.lang.String getAddressLine2()
The second line of the address [Optional] <= 200
-
getCity
public java.lang.String getCity()
The address city. [Optional] <= 50
-
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). [Optional] <= 3
-
getZip
public java.lang.String getZip()
The address zip or postal code. [Optional] <= 50
-
getCountry
public CountryCode getCountry()
The two-letter ISO country code of the address. [Optional] 2 characters
-
setAddressLine1
public void setAddressLine1(java.lang.String addressLine1)
The first line of the address. [Optional] <= 200
-
setAddressLine2
public void setAddressLine2(java.lang.String addressLine2)
The second line of the address [Optional] <= 200
-
setCity
public void setCity(java.lang.String city)
The address city. [Optional] <= 50
-
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). [Optional] <= 3
-
setZip
public void setZip(java.lang.String zip)
The address zip or postal code. [Optional] <= 50
-
setCountry
public void setCountry(CountryCode country)
The two-letter ISO country code of the address. [Optional] 2 characters
-
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
-
-