Package Avalara.SDK.model.A1099.V2
Class W9FormBaseRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.W9FormBaseRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class W9FormBaseRequest extends Object
W9FormBaseRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classW9FormBaseRequest.CustomTypeAdapterFactorystatic classW9FormBaseRequest.TypeEnumThe form type.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMPANY_IDstatic StringSERIALIZED_NAME_E_DELIVERY_CONSENTED_ATstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_REFERENCE_IDstatic StringSERIALIZED_NAME_SIGNATUREstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description W9FormBaseRequest()W9FormBaseRequest(W9FormBaseRequest.TypeEnum type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description W9FormBaseRequestcompanyId(String companyId)W9FormBaseRequesteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)W9FormBaseRequestemail(String email)booleanequals(Object o)static W9FormBaseRequestfromJson(String jsonString)Create an instance of W9FormBaseRequest given an JSON stringStringgetCompanyId()The ID of the associated company.OffsetDateTimegeteDeliveryConsentedAt()The date when e-delivery was consented.StringgetEmail()The email address of the individual associated with the form.StringgetReferenceId()A reference identifier for the form.StringgetSignature()The signature of the form.W9FormBaseRequest.TypeEnumgetType()The form type.inthashCode()W9FormBaseRequestreferenceId(String referenceId)voidsetCompanyId(String companyId)voidseteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)voidsetEmail(String email)voidsetReferenceId(String referenceId)voidsetSignature(String signature)W9FormBaseRequestsignature(String signature)StringtoJson()Convert an instance of W9FormBaseRequest 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_E_DELIVERY_CONSENTED_AT
public static final String SERIALIZED_NAME_E_DELIVERY_CONSENTED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNATURE
public static final String SERIALIZED_NAME_SIGNATURE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- 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
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
W9FormBaseRequest
public W9FormBaseRequest()
-
W9FormBaseRequest
public W9FormBaseRequest(W9FormBaseRequest.TypeEnum type)
-
-
Method Detail
-
eDeliveryConsentedAt
public W9FormBaseRequest eDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)
-
geteDeliveryConsentedAt
@Nullable public OffsetDateTime geteDeliveryConsentedAt()
The date when e-delivery was consented.- Returns:
- eDeliveryConsentedAt
-
seteDeliveryConsentedAt
public void seteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)
-
signature
public W9FormBaseRequest signature(String signature)
-
setSignature
public void setSignature(String signature)
-
getType
@Nullable public W9FormBaseRequest.TypeEnum getType()
The form type.- Returns:
- type
-
companyId
public W9FormBaseRequest companyId(String companyId)
-
getCompanyId
@Nonnull public String getCompanyId()
The ID of the associated company.- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
-
referenceId
public W9FormBaseRequest referenceId(String referenceId)
-
getReferenceId
@Nullable public String getReferenceId()
A reference identifier for the form.- Returns:
- referenceId
-
setReferenceId
public void setReferenceId(String referenceId)
-
email
public W9FormBaseRequest email(String email)
-
getEmail
@Nullable public String getEmail()
The email address of the individual associated with the form.- Returns:
-
setEmail
public void setEmail(String email)
-
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 W9FormBaseRequest
-
fromJson
public static W9FormBaseRequest fromJson(String jsonString) throws IOException
Create an instance of W9FormBaseRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of W9FormBaseRequest
- Throws:
IOException- if the JSON string is invalid with respect to W9FormBaseRequest
-
toJson
public String toJson()
Convert an instance of W9FormBaseRequest to an JSON string- Returns:
- JSON string
-
-