Class TaxInformation


  • public class TaxInformation
    extends Object
    TaxInformation
    • Constructor Detail

      • TaxInformation

        public TaxInformation()
    • Method Detail

      • country

        public TaxInformation country​(String country)
        The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
        Parameters:
        country -
        Returns:
        the current TaxInformation instance, allowing for method chaining
      • getCountry

        public String getCountry()
        The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
        Returns:
        country
      • setCountry

        public void setCountry​(String country)
        The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
        Parameters:
        country -
      • number

        public TaxInformation number​(String number)
        The tax ID number (TIN) of the organization or individual.
        Parameters:
        number -
        Returns:
        the current TaxInformation instance, allowing for method chaining
      • getNumber

        public String getNumber()
        The tax ID number (TIN) of the organization or individual.
        Returns:
        number
      • setNumber

        public void setNumber​(String number)
        The tax ID number (TIN) of the organization or individual.
        Parameters:
        number -
      • type

        public TaxInformation type​(String type)
        The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
        Parameters:
        type -
        Returns:
        the current TaxInformation instance, allowing for method chaining
      • getType

        public String getType()
        The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
        Returns:
        type
      • setType

        public void setType​(String type)
        The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US.
        Parameters:
        type -
      • equals

        public boolean equals​(Object o)
        Return true if this TaxInformation object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static TaxInformation fromJson​(String jsonString)
                                       throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of TaxInformation given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TaxInformation
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to TaxInformation
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of TaxInformation to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException