Class BillingAddress


  • public final class BillingAddress
    extends java.lang.Object
    billing_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.
    • 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 new BillingAddress instance.
        Parameters:
        addressLine1 - The first line of the address. [Optional] <= 200
        addressLine2 - The second line of the address. [Optional] <= 200
        city - The address city. [Optional] <= 50
        state - The address state. [Optional] [ 2 .. 3 ] characters
        zip - The address ZIP or postal code. You must provide United States ZIPs in the format 00000, or 00000-0000. [Optional] <= 10
        country - The address country, as a two-letter ISO country code. [Optional] 2 characters
    • Method Detail

      • 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:
        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