Package Avalara.SDK.model.A1099.V2
Class PrimaryWithholdingAgent
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrimaryWithholdingAgent.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_EINstatic StringSERIALIZED_NAME_NAME
-
Constructor Summary
Constructors Constructor Description PrimaryWithholdingAgent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrimaryWithholdingAgentein(String ein)booleanequals(Object o)static PrimaryWithholdingAgentfromJson(String jsonString)Create an instance of PrimaryWithholdingAgent given an JSON stringStringgetEin()EIN (Employer Identification Number) of the primary withholding agent.StringgetName()Name of the primary withholding agentinthashCode()PrimaryWithholdingAgentname(String name)voidsetEin(String ein)voidsetName(String name)StringtoJson()Convert an instance of PrimaryWithholdingAgent to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EIN
public static final String SERIALIZED_NAME_EIN
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public PrimaryWithholdingAgent name(String name)
-
setName
public void setName(String name)
-
ein
public PrimaryWithholdingAgent ein(String ein)
-
getEin
@Nullable public String getEin()
EIN (Employer Identification Number) of the primary withholding agent.- Returns:
- ein
-
setEin
public void setEin(String ein)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates 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
-
-