Class SupportedDocumentTypes


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.7.0")
    public class SupportedDocumentTypes
    extends Object
    SupportedDocumentTypes
    • Constructor Detail

      • SupportedDocumentTypes

        public SupportedDocumentTypes()
    • Method Detail

      • getName

        @Nullable
        public String getName()
        Document type name.
        Returns:
        name
      • setName

        public void setName​(String name)
      • getValue

        @Nonnull
        public String getValue()
        Document type value.
        Returns:
        value
      • setValue

        public void setValue​(String value)
      • getSupportedByTradingPartner

        @Nonnull
        public Boolean getSupportedByTradingPartner()
        Does trading partner support receiving this document type.
        Returns:
        supportedByTradingPartner
      • setSupportedByTradingPartner

        public void setSupportedByTradingPartner​(Boolean supportedByTradingPartner)
      • getSupportedByAvalara

        @Nullable
        public Boolean getSupportedByAvalara()
        Does avalara support exchanging this document type.
        Returns:
        supportedByAvalara
      • setSupportedByAvalara

        public void setSupportedByAvalara​(Boolean supportedByAvalara)
      • getExtensions

        @Nullable
        public List<Extension> getExtensions()
        Optional array used to carry additional metadata or configuration values that may be required by specific document types. When creating or updating a trading partner, the keys provided in the 'extensions' attribute must be selected from a predefined list of supported extensions. Using any unsupported keys will result in a validation error.
        Returns:
        extensions
      • setExtensions

        public void setExtensions​(List<Extension> 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 SupportedDocumentTypes
      • fromJson

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

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