Package Avalara.SDK.model.A1099.V2
Class FormRequestModel
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.FormRequestModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class FormRequestModel extends Object
FormRequestModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormRequestModel.CustomTypeAdapterFactorystatic classFormRequestModel.FormTypeEnum\"W9\" is currently the only supported valuestatic classFormRequestModel.TinMatchStatusEnumResult of IRS TIN match query for name and TIN in the last signed form, null if signed_at is nullstatic classFormRequestModel.TypeEnumGets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMPANY_EMAILstatic StringSERIALIZED_NAME_COMPANY_IDstatic StringSERIALIZED_NAME_COMPANY_NAMEstatic StringSERIALIZED_NAME_EXPIRES_ATstatic StringSERIALIZED_NAME_FORM_TYPEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_REFERENCE_IDstatic StringSERIALIZED_NAME_SIGNED_ATstatic StringSERIALIZED_NAME_SIGNED_PDFstatic StringSERIALIZED_NAME_TIN_MATCH_STATUSstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description FormRequestModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormRequestModelcompanyEmail(String companyEmail)FormRequestModelcompanyId(Integer companyId)FormRequestModelcompanyName(String companyName)booleanequals(Object o)FormRequestModelexpiresAt(OffsetDateTime expiresAt)FormRequestModelformType(FormRequestModel.FormTypeEnum formType)static FormRequestModelfromJson(String jsonString)Create an instance of FormRequestModel given an JSON stringStringgetCompanyEmail()Contact email of your company, set in the W-9 UIIntegergetCompanyId()Track1099's ID of your company, found in the W-9 UIStringgetCompanyName()Name of your company, set in the W-9 UIOffsetDateTimegetExpiresAt()Timestamp when this FormRequest will expire, ttl (or 3600) seconds from creationFormRequestModel.FormTypeEnumgetFormType()\"W9\" is currently the only supported valueStringgetId()Get idStringgetReferenceId()Your internal identifier for the vendor from whom you are requesting a formOffsetDateTimegetSignedAt()The timestamp this vendor (identified by your ReferenceId) last signed a complete W-9, null if you did not include a ReferenceId or the vendor has not yet signed a W-9 in Track1099StringgetSignedPdf()URL of PDF representation of just-signed form, otherwise null.FormRequestModel.TinMatchStatusEnumgetTinMatchStatus()Result of IRS TIN match query for name and TIN in the last signed form, null if signed_at is nullFormRequestModel.TypeEnumgetType()Get typeinthashCode()FormRequestModelid(String id)FormRequestModelreferenceId(String referenceId)voidsetCompanyEmail(String companyEmail)voidsetCompanyId(Integer companyId)voidsetCompanyName(String companyName)voidsetExpiresAt(OffsetDateTime expiresAt)voidsetFormType(FormRequestModel.FormTypeEnum formType)voidsetId(String id)voidsetReferenceId(String referenceId)voidsetSignedAt(OffsetDateTime signedAt)voidsetSignedPdf(String signedPdf)voidsetTinMatchStatus(FormRequestModel.TinMatchStatusEnum tinMatchStatus)voidsetType(FormRequestModel.TypeEnum type)FormRequestModelsignedAt(OffsetDateTime signedAt)FormRequestModelsignedPdf(String signedPdf)FormRequestModeltinMatchStatus(FormRequestModel.TinMatchStatusEnum tinMatchStatus)StringtoJson()Convert an instance of FormRequestModel to an JSON stringStringtoString()FormRequestModeltype(FormRequestModel.TypeEnum type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FORM_TYPE
public static final String SERIALIZED_NAME_FORM_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_COMPANY_NAME
public static final String SERIALIZED_NAME_COMPANY_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPANY_EMAIL
public static final String SERIALIZED_NAME_COMPANY_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE_ID
public static final String SERIALIZED_NAME_REFERENCE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNED_AT
public static final String SERIALIZED_NAME_SIGNED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIN_MATCH_STATUS
public static final String SERIALIZED_NAME_TIN_MATCH_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_EXPIRES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNED_PDF
public static final String SERIALIZED_NAME_SIGNED_PDF
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public FormRequestModel id(String id)
-
setId
public void setId(String id)
-
type
public FormRequestModel type(FormRequestModel.TypeEnum type)
-
getType
@Nullable public FormRequestModel.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(FormRequestModel.TypeEnum type)
-
formType
public FormRequestModel formType(FormRequestModel.FormTypeEnum formType)
-
getFormType
@Nullable public FormRequestModel.FormTypeEnum getFormType()
\"W9\" is currently the only supported value- Returns:
- formType
-
setFormType
public void setFormType(FormRequestModel.FormTypeEnum formType)
-
companyId
public FormRequestModel companyId(Integer companyId)
-
getCompanyId
@Nullable public Integer getCompanyId()
Track1099's ID of your company, found in the W-9 UI- Returns:
- companyId
-
setCompanyId
public void setCompanyId(Integer companyId)
-
companyName
public FormRequestModel companyName(String companyName)
-
getCompanyName
@Nullable public String getCompanyName()
Name of your company, set in the W-9 UI- Returns:
- companyName
-
setCompanyName
public void setCompanyName(String companyName)
-
companyEmail
public FormRequestModel companyEmail(String companyEmail)
-
getCompanyEmail
@Nullable public String getCompanyEmail()
Contact email of your company, set in the W-9 UI- Returns:
- companyEmail
-
setCompanyEmail
public void setCompanyEmail(String companyEmail)
-
referenceId
public FormRequestModel referenceId(String referenceId)
-
getReferenceId
@Nullable public String getReferenceId()
Your internal identifier for the vendor from whom you are requesting a form- Returns:
- referenceId
-
setReferenceId
public void setReferenceId(String referenceId)
-
signedAt
public FormRequestModel signedAt(OffsetDateTime signedAt)
-
getSignedAt
@Nullable public OffsetDateTime getSignedAt()
The timestamp this vendor (identified by your ReferenceId) last signed a complete W-9, null if you did not include a ReferenceId or the vendor has not yet signed a W-9 in Track1099- Returns:
- signedAt
-
setSignedAt
public void setSignedAt(OffsetDateTime signedAt)
-
tinMatchStatus
public FormRequestModel tinMatchStatus(FormRequestModel.TinMatchStatusEnum tinMatchStatus)
-
getTinMatchStatus
@Nullable public FormRequestModel.TinMatchStatusEnum getTinMatchStatus()
Result of IRS TIN match query for name and TIN in the last signed form, null if signed_at is null- Returns:
- tinMatchStatus
-
setTinMatchStatus
public void setTinMatchStatus(FormRequestModel.TinMatchStatusEnum tinMatchStatus)
-
expiresAt
public FormRequestModel expiresAt(OffsetDateTime expiresAt)
-
getExpiresAt
@Nullable public OffsetDateTime getExpiresAt()
Timestamp when this FormRequest will expire, ttl (or 3600) seconds from creation- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(OffsetDateTime expiresAt)
-
signedPdf
public FormRequestModel signedPdf(String signedPdf)
-
getSignedPdf
@Nullable public String getSignedPdf()
URL of PDF representation of just-signed form, otherwise null. Integrations may use this value to offer a \"download for your records\" function after a vendor completes and signs a form. Link expires at the same time as this FormRequest. Treat the format of this URL as opaque and expect it to change in the future.- Returns:
- signedPdf
-
setSignedPdf
public void setSignedPdf(String signedPdf)
-
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 FormRequestModel
-
fromJson
public static FormRequestModel fromJson(String jsonString) throws IOException
Create an instance of FormRequestModel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FormRequestModel
- Throws:
IOException- if the JSON string is invalid with respect to FormRequestModel
-
toJson
public String toJson()
Convert an instance of FormRequestModel to an JSON string- Returns:
- JSON string
-
-