Class BillingAddress
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.common.source.paymentgetresponseklarnasourcesource.accountholder.billingaddress.BillingAddress
-
public final class BillingAddress extends java.lang.Objectbilling_address Address of the account holder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBillingAddress.BillingAddressBuilder
-
Constructor Summary
Constructors Constructor Description BillingAddress()BillingAddress(java.lang.String zip, java.lang.String city, CountryCode country, java.lang.String addressLineOne, java.lang.String addressLineTwo)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.StringgetAddressLineOne()Street address of the account holder.java.lang.StringgetAddressLineTwo()Street address of the account holder.java.lang.StringgetCity()City of the account holder.CountryCodegetCountry()ISO 3166 alpha-2 account holder country code.java.lang.StringgetZip()Postal code of the account holder.inthashCode()voidsetAddressLineOne(java.lang.String addressLineOne)Street address of the account holder.voidsetAddressLineTwo(java.lang.String addressLineTwo)Street address of the account holder.voidsetCity(java.lang.String city)City of the account holder.voidsetCountry(CountryCode country)ISO 3166 alpha-2 account holder country code.voidsetZip(java.lang.String zip)Postal code of the account holder.java.lang.StringtoString()
-
-
-
Constructor Detail
-
BillingAddress
public BillingAddress()
-
BillingAddress
public BillingAddress(java.lang.String zip, java.lang.String city, CountryCode country, java.lang.String addressLineOne, java.lang.String addressLineTwo)Creates a newBillingAddressinstance.- Parameters:
zip- Postal code of the account holder. [Required]city- City of the account holder. [Required]country- ISO 3166 alpha-2 account holder country code. [Required]addressLineOne- Street address of the account holder. [Optional]addressLineTwo- Street address of the account holder. [Optional]
-
-
Method Detail
-
builder
public static BillingAddress.BillingAddressBuilder builder()
-
getZip
public java.lang.String getZip()
Postal code of the account holder. [Required]
-
getCity
public java.lang.String getCity()
City of the account holder. [Required]
-
getCountry
public CountryCode getCountry()
ISO 3166 alpha-2 account holder country code. [Required]
-
getAddressLineOne
public java.lang.String getAddressLineOne()
Street address of the account holder. [Optional]
-
getAddressLineTwo
public java.lang.String getAddressLineTwo()
Street address of the account holder. [Optional]
-
setZip
public void setZip(java.lang.String zip)
Postal code of the account holder. [Required]
-
setCity
public void setCity(java.lang.String city)
City of the account holder. [Required]
-
setCountry
public void setCountry(CountryCode country)
ISO 3166 alpha-2 account holder country code. [Required]
-
setAddressLineOne
public void setAddressLineOne(java.lang.String addressLineOne)
Street address of the account holder. [Optional]
-
setAddressLineTwo
public void setAddressLineTwo(java.lang.String addressLineTwo)
Street address of the account holder. [Optional]
-
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
-
-