Class BillingInfo


  • public class BillingInfo
    extends java.lang.Object
    This class holds the billing information that can be applied while creating a PaymentRequest. The billing information includes details such as the cardholder's title, name, address, contact information, and other relevant data.
    • Constructor Summary

      Constructors 
      Constructor Description
      BillingInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAddress1()
      Returns the primary address of the cardholder.
      java.lang.String getAddress2()
      Returns the additional address of the cardholder.
      java.lang.String getCity()
      Returns the city of the cardholder.
      java.lang.String getCountry()
      Returns the country of the cardholder.
      java.lang.String getCountryCode()
      Returns the country code of the cardholder.
      java.lang.String getFirstName()
      Returns the first name of the cardholder.
      java.lang.String getLastname()
      Returns the last name of the cardholder.
      java.lang.String getMiddleName()
      Returns the middle name of the cardholder.
      java.lang.String getPhone1()
      Returns the country code of the cardholder's telephone number.
      java.lang.String getPhone2()
      Returns the telephone number of the cardholder.
      java.lang.String getState()
      Returns the state of the cardholder.
      java.lang.String getTitle()
      Returns the title of the cardholder, such as Mr., Mrs., or Ms.
      java.lang.String getZipCode()
      Returns the postal code of the cardholder.
      void setAddress1​(java.lang.String address1)
      Sets the primary address of the cardholder.
      void setAddress2​(java.lang.String address2)
      Sets the additional address of the cardholder.
      void setCity​(java.lang.String city)
      Sets the city of the cardholder.
      void setCountry​(java.lang.String country)
      Sets the country of the cardholder.
      void setCountryCode​(java.lang.String countryCode)
      Sets the country code of the cardholder.
      void setFirstName​(java.lang.String firstName)
      Sets the first name of the cardholder.
      void setLastname​(java.lang.String lastname)
      Sets the last name of the cardholder.
      void setMiddleName​(java.lang.String middleName)
      Sets the middle name of the cardholder.
      void setPhone1​(java.lang.String phone1)
      Sets the country code of the cardholder's telephone number.
      void setPhone2​(java.lang.String phone2)
      Sets the telephone number of the cardholder.
      void setState​(java.lang.String state)
      Sets the state of the cardholder.
      void setTitle​(java.lang.String title)
      Sets the title of the cardholder, such as Mr., Mrs., or Ms.
      void setZipCode​(java.lang.String zipCode)
      Sets the postal code of the cardholder.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BillingInfo

        public BillingInfo()
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Returns the title of the cardholder, such as Mr., Mrs., or Ms.
        Returns:
        the title of the cardholder
      • setTitle

        public void setTitle​(java.lang.String title)
        Sets the title of the cardholder, such as Mr., Mrs., or Ms.
        Parameters:
        title - the title to set
      • getFirstName

        public java.lang.String getFirstName()
        Returns the first name of the cardholder.
        Returns:
        the first name of the cardholder
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        Sets the first name of the cardholder.
        Parameters:
        firstName - the first name to set
      • getMiddleName

        public java.lang.String getMiddleName()
        Returns the middle name of the cardholder.
        Returns:
        the middle name of the cardholder
      • setMiddleName

        public void setMiddleName​(java.lang.String middleName)
        Sets the middle name of the cardholder.
        Parameters:
        middleName - the middle name to set
      • getLastname

        public java.lang.String getLastname()
        Returns the last name of the cardholder.
        Returns:
        the last name of the cardholder
      • setLastname

        public void setLastname​(java.lang.String lastname)
        Sets the last name of the cardholder.
        Parameters:
        lastname - the last name to set
      • getAddress1

        public java.lang.String getAddress1()
        Returns the primary address of the cardholder.
        Returns:
        the primary address of the cardholder
      • setAddress1

        public void setAddress1​(java.lang.String address1)
        Sets the primary address of the cardholder.
        Parameters:
        address1 - the primary address to set
      • getAddress2

        public java.lang.String getAddress2()
        Returns the additional address of the cardholder.
        Returns:
        the additional address of the cardholder
      • setAddress2

        public void setAddress2​(java.lang.String address2)
        Sets the additional address of the cardholder.
        Parameters:
        address2 - the additional address to set
      • getCity

        public java.lang.String getCity()
        Returns the city of the cardholder.
        Returns:
        the city of the cardholder
      • setCity

        public void setCity​(java.lang.String city)
        Sets the city of the cardholder.
        Parameters:
        city - the city to set
      • getZipCode

        public java.lang.String getZipCode()
        Returns the postal code of the cardholder.
        Returns:
        the postal code of the cardholder
      • setZipCode

        public void setZipCode​(java.lang.String zipCode)
        Sets the postal code of the cardholder.
        Parameters:
        zipCode - the postal code to set
      • getState

        public java.lang.String getState()
        Returns the state of the cardholder.
        Returns:
        the state of the cardholder
      • setState

        public void setState​(java.lang.String state)
        Sets the state of the cardholder.
        Parameters:
        state - the state to set
      • getCountry

        public java.lang.String getCountry()
        Returns the country of the cardholder.
        Returns:
        the country of the cardholder
      • setCountry

        public void setCountry​(java.lang.String country)
        Sets the country of the cardholder.
        Parameters:
        country - the country to set
      • getCountryCode

        public java.lang.String getCountryCode()
        Returns the country code of the cardholder.
        Returns:
        the country code of the cardholder
      • setCountryCode

        public void setCountryCode​(java.lang.String countryCode)
        Sets the country code of the cardholder.
        Parameters:
        countryCode - the country code to set
      • getPhone1

        public java.lang.String getPhone1()
        Returns the country code of the cardholder's telephone number.
        Returns:
        the country code of the cardholder's telephone number
      • setPhone1

        public void setPhone1​(java.lang.String phone1)
        Sets the country code of the cardholder's telephone number.
        Parameters:
        phone1 - the country code to set
      • getPhone2

        public java.lang.String getPhone2()
        Returns the telephone number of the cardholder.
        Returns:
        the telephone number of the cardholder
      • setPhone2

        public void setPhone2​(java.lang.String phone2)
        Sets the telephone number of the cardholder.
        Parameters:
        phone2 - the telephone number to set