Class BillingAddress
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.postpayments.requests.unreferencedrefundrequest.destination.common.accountholder.common.billingaddress.BillingAddress
-
public final class BillingAddress extends java.lang.Objectbilling_address The account holder's billing address. If your company is incorporated in the United States, this field is required for all unreferenced refunds you perform.
-
-
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.java.lang.StringgetCity()The address city.CountryCodegetCountry()The address country, as a two-letter ISO country code.java.lang.StringgetState()The address state.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.voidsetCity(java.lang.String city)The address city.voidsetCountry(CountryCode country)The address country, as a two-letter ISO country code.voidsetState(java.lang.String state)The address state.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 address state. [Optional] [ 2 .. 3 ] characterszip- The address ZIP or postal code. You must provide United States ZIPs in the format 00000, or 00000-0000. [Optional] <= 10country- The address country, as a two-letter ISO country code. [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 address state. [Optional] [ 2 .. 3 ] characters
-
getZip
public java.lang.String getZip()
The address ZIP or postal code. You must provide United States ZIPs in the format 00000, or 00000-0000. [Optional] <= 10
-
getCountry
public CountryCode getCountry()
The address country, as a two-letter ISO country code. [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 address state. [Optional] [ 2 .. 3 ] characters
-
setZip
public void setZip(java.lang.String zip)
The address ZIP or postal code. You must provide United States ZIPs in the format 00000, or 00000-0000. [Optional] <= 10
-
setCountry
public void setCountry(CountryCode country)
The address country, as a two-letter ISO country code. [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
-
-