Package Avalara.SDK.model.A1099.V2
Class W4FormRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.W4FormRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class W4FormRequest extends Object
W4FormRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classW4FormRequest.CustomTypeAdapterFactorystatic classW4FormRequest.TypeEnumThe form type (always \"w4\" for this model).
-
Field Summary
-
Constructor Summary
Constructors Constructor Description W4FormRequest()W4FormRequest(W4FormRequest.TypeEnum type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description W4FormRequestadditionalWithheld(Float additionalWithheld)W4FormRequestaddress(String address)W4FormRequestcity(String city)W4FormRequestcompanyId(String companyId)W4FormRequestdeductions(Float deductions)W4FormRequesteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)W4FormRequestemail(String email)W4FormRequestemployeeFirstName(String employeeFirstName)W4FormRequestemployeeLastName(String employeeLastName)W4FormRequestemployeeMiddleName(String employeeMiddleName)W4FormRequestemployeeNameSuffix(String employeeNameSuffix)booleanequals(Object o)W4FormRequestexemptFromWithholding(Boolean exemptFromWithholding)static W4FormRequestfromJson(String jsonString)Create an instance of W4FormRequest given an JSON stringFloatgetAdditionalWithheld()The additional amount withheld.StringgetAddress()The address of the employee.StringgetCity()The city of residence of the employee.StringgetCompanyId()The ID of the associated company.FloatgetDeductions()The amount of deductions claimed.OffsetDateTimegeteDeliveryConsentedAt()The date when e-delivery was consented.StringgetEmail()The email address of the individual associated with the form.StringgetEmployeeFirstName()The first name of the employee.StringgetEmployeeLastName()The last name of the employee.StringgetEmployeeMiddleName()The middle name of the employee.StringgetEmployeeNameSuffix()The name suffix of the employee.BooleangetExemptFromWithholding()Indicates whether the employee is exempt from withholding.BooleangetLastNameDiffers()Indicates whether the last name differs from prior records.StringgetMaritalStatus()The marital status of the employee.FloatgetNonJobIncome()The amount of non-job income.IntegergetNumAllowances()The number of allowances claimed by the employee.StringgetOfficeCode()The office code associated with the form.IntegergetOtherDependents()The number of dependents other than allowances.StringgetReferenceId()A reference identifier for the form.StringgetSignature()The signature of the form.StringgetState()The state of residence of the employee.StringgetTin()The taxpayer identification number (TIN).StringgetTinType()The type of TIN provided.W4FormRequest.TypeEnumgetType()The form type (always \"w4\" for this model).StringgetZip()The ZIP code of residence of the employee.inthashCode()W4FormRequestlastNameDiffers(Boolean lastNameDiffers)W4FormRequestmaritalStatus(String maritalStatus)W4FormRequestnonJobIncome(Float nonJobIncome)W4FormRequestnumAllowances(Integer numAllowances)W4FormRequestofficeCode(String officeCode)W4FormRequestotherDependents(Integer otherDependents)W4FormRequestreferenceId(String referenceId)voidsetAdditionalWithheld(Float additionalWithheld)voidsetAddress(String address)voidsetCity(String city)voidsetCompanyId(String companyId)voidsetDeductions(Float deductions)voidseteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)voidsetEmail(String email)voidsetEmployeeFirstName(String employeeFirstName)voidsetEmployeeLastName(String employeeLastName)voidsetEmployeeMiddleName(String employeeMiddleName)voidsetEmployeeNameSuffix(String employeeNameSuffix)voidsetExemptFromWithholding(Boolean exemptFromWithholding)voidsetLastNameDiffers(Boolean lastNameDiffers)voidsetMaritalStatus(String maritalStatus)voidsetNonJobIncome(Float nonJobIncome)voidsetNumAllowances(Integer numAllowances)voidsetOfficeCode(String officeCode)voidsetOtherDependents(Integer otherDependents)voidsetReferenceId(String referenceId)voidsetSignature(String signature)voidsetState(String state)voidsetTin(String tin)voidsetTinType(String tinType)voidsetZip(String zip)W4FormRequestsignature(String signature)W4FormRequeststate(String state)W4FormRequesttin(String tin)W4FormRequesttinType(String tinType)StringtoJson()Convert an instance of W4FormRequest to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundW4FormRequestzip(String zip)
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMPLOYEE_FIRST_NAME
public static final String SERIALIZED_NAME_EMPLOYEE_FIRST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMPLOYEE_MIDDLE_NAME
public static final String SERIALIZED_NAME_EMPLOYEE_MIDDLE_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMPLOYEE_LAST_NAME
public static final String SERIALIZED_NAME_EMPLOYEE_LAST_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMPLOYEE_NAME_SUFFIX
public static final String SERIALIZED_NAME_EMPLOYEE_NAME_SUFFIX
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIN_TYPE
public static final String SERIALIZED_NAME_TIN_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIN
public static final String SERIALIZED_NAME_TIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CITY
public static final String SERIALIZED_NAME_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ZIP
public static final String SERIALIZED_NAME_ZIP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MARITAL_STATUS
public static final String SERIALIZED_NAME_MARITAL_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_NAME_DIFFERS
public static final String SERIALIZED_NAME_LAST_NAME_DIFFERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NUM_ALLOWANCES
public static final String SERIALIZED_NAME_NUM_ALLOWANCES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OTHER_DEPENDENTS
public static final String SERIALIZED_NAME_OTHER_DEPENDENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NON_JOB_INCOME
public static final String SERIALIZED_NAME_NON_JOB_INCOME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEDUCTIONS
public static final String SERIALIZED_NAME_DEDUCTIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDITIONAL_WITHHELD
public static final String SERIALIZED_NAME_ADDITIONAL_WITHHELD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXEMPT_FROM_WITHHOLDING
public static final String SERIALIZED_NAME_EXEMPT_FROM_WITHHOLDING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OFFICE_CODE
public static final String SERIALIZED_NAME_OFFICE_CODE
- See Also:
- Constant Field Values
-
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_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
-
W4FormRequest
public W4FormRequest()
-
W4FormRequest
public W4FormRequest(W4FormRequest.TypeEnum type)
-
-
Method Detail
-
getType
@Nullable public W4FormRequest.TypeEnum getType()
The form type (always \"w4\" for this model).- Returns:
- type
-
employeeFirstName
public W4FormRequest employeeFirstName(String employeeFirstName)
-
getEmployeeFirstName
@Nullable public String getEmployeeFirstName()
The first name of the employee.- Returns:
- employeeFirstName
-
setEmployeeFirstName
public void setEmployeeFirstName(String employeeFirstName)
-
employeeMiddleName
public W4FormRequest employeeMiddleName(String employeeMiddleName)
-
getEmployeeMiddleName
@Nullable public String getEmployeeMiddleName()
The middle name of the employee.- Returns:
- employeeMiddleName
-
setEmployeeMiddleName
public void setEmployeeMiddleName(String employeeMiddleName)
-
employeeLastName
public W4FormRequest employeeLastName(String employeeLastName)
-
getEmployeeLastName
@Nullable public String getEmployeeLastName()
The last name of the employee.- Returns:
- employeeLastName
-
setEmployeeLastName
public void setEmployeeLastName(String employeeLastName)
-
employeeNameSuffix
public W4FormRequest employeeNameSuffix(String employeeNameSuffix)
-
getEmployeeNameSuffix
@Nullable public String getEmployeeNameSuffix()
The name suffix of the employee.- Returns:
- employeeNameSuffix
-
setEmployeeNameSuffix
public void setEmployeeNameSuffix(String employeeNameSuffix)
-
tinType
public W4FormRequest tinType(String tinType)
-
setTinType
public void setTinType(String tinType)
-
tin
public W4FormRequest tin(String tin)
-
setTin
public void setTin(String tin)
-
address
public W4FormRequest address(String address)
-
setAddress
public void setAddress(String address)
-
city
public W4FormRequest city(String city)
-
setCity
public void setCity(String city)
-
state
public W4FormRequest state(String state)
-
setState
public void setState(String state)
-
zip
public W4FormRequest zip(String zip)
-
setZip
public void setZip(String zip)
-
maritalStatus
public W4FormRequest maritalStatus(String maritalStatus)
-
getMaritalStatus
@Nullable public String getMaritalStatus()
The marital status of the employee.- Returns:
- maritalStatus
-
setMaritalStatus
public void setMaritalStatus(String maritalStatus)
-
lastNameDiffers
public W4FormRequest lastNameDiffers(Boolean lastNameDiffers)
-
getLastNameDiffers
@Nullable public Boolean getLastNameDiffers()
Indicates whether the last name differs from prior records.- Returns:
- lastNameDiffers
-
setLastNameDiffers
public void setLastNameDiffers(Boolean lastNameDiffers)
-
numAllowances
public W4FormRequest numAllowances(Integer numAllowances)
-
getNumAllowances
@Nullable public Integer getNumAllowances()
The number of allowances claimed by the employee.- Returns:
- numAllowances
-
setNumAllowances
public void setNumAllowances(Integer numAllowances)
-
otherDependents
public W4FormRequest otherDependents(Integer otherDependents)
-
getOtherDependents
@Nullable public Integer getOtherDependents()
The number of dependents other than allowances.- Returns:
- otherDependents
-
setOtherDependents
public void setOtherDependents(Integer otherDependents)
-
nonJobIncome
public W4FormRequest nonJobIncome(Float nonJobIncome)
-
getNonJobIncome
@Nullable public Float getNonJobIncome()
The amount of non-job income.- Returns:
- nonJobIncome
-
setNonJobIncome
public void setNonJobIncome(Float nonJobIncome)
-
deductions
public W4FormRequest deductions(Float deductions)
-
getDeductions
@Nullable public Float getDeductions()
The amount of deductions claimed.- Returns:
- deductions
-
setDeductions
public void setDeductions(Float deductions)
-
additionalWithheld
public W4FormRequest additionalWithheld(Float additionalWithheld)
-
getAdditionalWithheld
@Nullable public Float getAdditionalWithheld()
The additional amount withheld.- Returns:
- additionalWithheld
-
setAdditionalWithheld
public void setAdditionalWithheld(Float additionalWithheld)
-
exemptFromWithholding
public W4FormRequest exemptFromWithholding(Boolean exemptFromWithholding)
-
getExemptFromWithholding
@Nullable public Boolean getExemptFromWithholding()
Indicates whether the employee is exempt from withholding.- Returns:
- exemptFromWithholding
-
setExemptFromWithholding
public void setExemptFromWithholding(Boolean exemptFromWithholding)
-
officeCode
public W4FormRequest officeCode(String officeCode)
-
getOfficeCode
@Nullable public String getOfficeCode()
The office code associated with the form.- Returns:
- officeCode
-
setOfficeCode
public void setOfficeCode(String officeCode)
-
eDeliveryConsentedAt
public W4FormRequest 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 W4FormRequest signature(String signature)
-
setSignature
public void setSignature(String signature)
-
companyId
public W4FormRequest companyId(String companyId)
-
getCompanyId
@Nonnull public String getCompanyId()
The ID of the associated company.- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
-
referenceId
public W4FormRequest referenceId(String referenceId)
-
getReferenceId
@Nullable public String getReferenceId()
A reference identifier for the form.- Returns:
- referenceId
-
setReferenceId
public void setReferenceId(String referenceId)
-
email
public W4FormRequest 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 W4FormRequest
-
fromJson
public static W4FormRequest fromJson(String jsonString) throws IOException
Create an instance of W4FormRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of W4FormRequest
- Throws:
IOException- if the JSON string is invalid with respect to W4FormRequest
-
toJson
public String toJson()
Convert an instance of W4FormRequest to an JSON string- Returns:
- JSON string
-
-