Class BillingAddress


  • public final class BillingAddress
    extends java.lang.Object
    billing_address Address of the account holder.
    • 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 new BillingAddress instance.
        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

      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object