Package Avalara.SDK.model.A1099.V2
Class W8BenFormMinimalRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.W8BenFormMinimalRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class W8BenFormMinimalRequest extends Object
W8BenFormMinimalRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classW8BenFormMinimalRequest.CustomTypeAdapterFactorystatic classW8BenFormMinimalRequest.TypeEnumThe form type (always \"w8ben\" for this model).
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMPANY_IDstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_REFERENCE_IDstatic StringSERIALIZED_NAME_REFERENCE_NUMBERstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description W8BenFormMinimalRequest()W8BenFormMinimalRequest(W8BenFormMinimalRequest.TypeEnum type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description W8BenFormMinimalRequestcompanyId(String companyId)W8BenFormMinimalRequestemail(String email)booleanequals(Object o)static W8BenFormMinimalRequestfromJson(String jsonString)Create an instance of W8BenFormMinimalRequest given an JSON stringStringgetCompanyId()The ID of the associated company.StringgetEmail()The email address of the individual associated with the form.StringgetName()The name of the individual or entity associated with the form.StringgetReferenceId()A reference identifier for the form.StringgetReferenceNumber()A reference number for the form.W8BenFormMinimalRequest.TypeEnumgetType()The form type (always \"w8ben\" for this model).inthashCode()W8BenFormMinimalRequestname(String name)W8BenFormMinimalRequestreferenceId(String referenceId)W8BenFormMinimalRequestreferenceNumber(String referenceNumber)voidsetCompanyId(String companyId)voidsetEmail(String email)voidsetName(String name)voidsetReferenceId(String referenceId)voidsetReferenceNumber(String referenceNumber)StringtoJson()Convert an instance of W8BenFormMinimalRequest 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_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE_NUMBER
public static final String SERIALIZED_NAME_REFERENCE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPANY_ID
public static final String SERIALIZED_NAME_COMPANY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE_ID
public static final String SERIALIZED_NAME_REFERENCE_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
W8BenFormMinimalRequest
public W8BenFormMinimalRequest()
-
W8BenFormMinimalRequest
public W8BenFormMinimalRequest(W8BenFormMinimalRequest.TypeEnum type)
-
-
Method Detail
-
getType
@Nullable public W8BenFormMinimalRequest.TypeEnum getType()
The form type (always \"w8ben\" for this model).- Returns:
- type
-
email
public W8BenFormMinimalRequest email(String email)
-
getEmail
@Nonnull public String getEmail()
The email address of the individual associated with the form.- Returns:
-
setEmail
public void setEmail(String email)
-
name
public W8BenFormMinimalRequest name(String name)
-
getName
@Nonnull public String getName()
The name of the individual or entity associated with the form.- Returns:
- name
-
setName
public void setName(String name)
-
referenceNumber
public W8BenFormMinimalRequest referenceNumber(String referenceNumber)
-
getReferenceNumber
@Nullable public String getReferenceNumber()
A reference number for the form.- Returns:
- referenceNumber
-
setReferenceNumber
public void setReferenceNumber(String referenceNumber)
-
companyId
public W8BenFormMinimalRequest companyId(String companyId)
-
getCompanyId
@Nonnull public String getCompanyId()
The ID of the associated company.- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
-
referenceId
public W8BenFormMinimalRequest referenceId(String referenceId)
-
getReferenceId
@Nullable public String getReferenceId()
A reference identifier for the form.- Returns:
- referenceId
-
setReferenceId
public void setReferenceId(String referenceId)
-
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 W8BenFormMinimalRequest
-
fromJson
public static W8BenFormMinimalRequest fromJson(String jsonString) throws IOException
Create an instance of W8BenFormMinimalRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of W8BenFormMinimalRequest
- Throws:
IOException- if the JSON string is invalid with respect to W8BenFormMinimalRequest
-
toJson
public String toJson()
Convert an instance of W8BenFormMinimalRequest to an JSON string- Returns:
- JSON string
-
-