Class PrimaryWithholdingAgent


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.7.0")
    public class PrimaryWithholdingAgent
    extends Object
    Primary withholding agent information for tax forms
    • Constructor Detail

      • PrimaryWithholdingAgent

        public PrimaryWithholdingAgent()
    • Method Detail

      • getName

        @Nullable
        public String getName()
        Name of the primary withholding agent
        Returns:
        name
      • setName

        public void setName​(String name)
      • getEin

        @Nullable
        public String getEin()
        EIN (Employer Identification Number) of the primary withholding agent.
        Returns:
        ein
      • setEin

        public void setEin​(String ein)
      • 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 PrimaryWithholdingAgent
      • fromJson

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

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