Class TaxIdentifierRequest


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.7.0")
    public class TaxIdentifierRequest
    extends Object
    Represents a request to validate company’s tax identifier.
    • Constructor Detail

      • TaxIdentifierRequest

        public TaxIdentifierRequest()
    • Method Detail

      • getCountryCode

        @Nonnull
        public String getCountryCode()
        The two-letter ISO-3166 country code of the tax identifier.
        Returns:
        countryCode
      • setCountryCode

        public void setCountryCode​(String countryCode)
      • getIdentifierType

        @Nonnull
        public String getIdentifierType()
        Type of the identifier.
        Returns:
        identifierType
      • setIdentifierType

        public void setIdentifierType​(String identifierType)
      • getIdentifier

        @Nonnull
        public String getIdentifier()
        The tax identifier of the company.
        Returns:
        identifier
      • setIdentifier

        public void setIdentifier​(String identifier)
      • getExtensions

        @Nullable
        public Object getExtensions()
        Optional field for adding additional details required by specific tax authorities. Refer to the GET /tax-identifiers/schema API endpoint for the full request structure for a given country.
        Returns:
        extensions
      • setExtensions

        public void setExtensions​(Object extensions)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to TaxIdentifierRequest
      • fromJson

        public static TaxIdentifierRequest fromJson​(String jsonString)
                                             throws IOException
        Create an instance of TaxIdentifierRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of TaxIdentifierRequest
        Throws:
        IOException - if the JSON string is invalid with respect to TaxIdentifierRequest
      • toJson

        public String toJson()
        Convert an instance of TaxIdentifierRequest to an JSON string
        Returns:
        JSON string