Package Avalara.SDK.model.A1099.V2
Class W9FormRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.W9FormRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class W9FormRequest extends Object
W9FormRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classW9FormRequest.CustomTypeAdapterFactorystatic classW9FormRequest.TypeEnumThe form type (always \"w9\" for this model).
-
Field Summary
-
Constructor Summary
Constructors Constructor Description W9FormRequest()W9FormRequest(W9FormRequest.TypeEnum type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description W9FormRequestaccountNumber(String accountNumber)W9FormRequestaddress(String address)W9FormRequestbackupWithholding(Boolean backupWithholding)W9FormRequestbusinessClassification(String businessClassification)W9FormRequestbusinessName(String businessName)W9FormRequestbusinessOther(String businessOther)W9FormRequestcity(String city)W9FormRequestcompanyId(String companyId)W9FormRequesteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)W9FormRequestemail(String email)booleanequals(Object o)W9FormRequestexemptFatcaCode(String exemptFatcaCode)W9FormRequestexemptPayeeCode(String exemptPayeeCode)W9FormRequestforeignAddress(String foreignAddress)W9FormRequestforeignCountryIndicator(Boolean foreignCountryIndicator)W9FormRequestforeignPartnerOwnerOrBeneficiary(Boolean foreignPartnerOwnerOrBeneficiary)static W9FormRequestfromJson(String jsonString)Create an instance of W9FormRequest given an JSON stringStringgetAccountNumber()The account number associated with the form.StringgetAddress()The address of the individual or entity.BooleangetBackupWithholding()Indicates whether backup withholding applies.StringgetBusinessClassification()The classification of the business.StringgetBusinessName()The name of the business associated with the form.StringgetBusinessOther()The classification description when \"businessClassification\" is \"Other\".StringgetCity()The city of the address.StringgetCompanyId()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.StringgetExemptFatcaCode()The exemption from FATCA reporting code.StringgetExemptPayeeCode()The exempt payee code.StringgetForeignAddress()The foreign address of the individual or entity.BooleangetForeignCountryIndicator()Indicates whether the individual or entity is in a foreign country.BooleangetForeignPartnerOwnerOrBeneficiary()Indicates whether the individual is a foreign partner, owner, or beneficiary.BooleangetIs1099able()Indicates whether the individual or entity should be issued a 1099 form.StringgetName()The name of the individual or entity associated with the form.StringgetReferenceId()A reference identifier for the form.StringgetSignature()The signature of the form.StringgetState()The state of the address.StringgetTin()The taxpayer identification number (TIN).StringgetTinType()The type of TIN provided.W9FormRequest.TypeEnumgetType()The form type (always \"w9\" for this model).StringgetZip()The ZIP code of the address.inthashCode()W9FormRequestis1099able(Boolean is1099able)W9FormRequestname(String name)W9FormRequestreferenceId(String referenceId)voidsetAccountNumber(String accountNumber)voidsetAddress(String address)voidsetBackupWithholding(Boolean backupWithholding)voidsetBusinessClassification(String businessClassification)voidsetBusinessName(String businessName)voidsetBusinessOther(String businessOther)voidsetCity(String city)voidsetCompanyId(String companyId)voidseteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)voidsetEmail(String email)voidsetExemptFatcaCode(String exemptFatcaCode)voidsetExemptPayeeCode(String exemptPayeeCode)voidsetForeignAddress(String foreignAddress)voidsetForeignCountryIndicator(Boolean foreignCountryIndicator)voidsetForeignPartnerOwnerOrBeneficiary(Boolean foreignPartnerOwnerOrBeneficiary)voidsetIs1099able(Boolean is1099able)voidsetName(String name)voidsetReferenceId(String referenceId)voidsetSignature(String signature)voidsetState(String state)voidsetTin(String tin)voidsetTinType(String tinType)voidsetZip(String zip)W9FormRequestsignature(String signature)W9FormRequeststate(String state)W9FormRequesttin(String tin)W9FormRequesttinType(String tinType)StringtoJson()Convert an instance of W9FormRequest to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundW9FormRequestzip(String zip)
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUSINESS_NAME
public static final String SERIALIZED_NAME_BUSINESS_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUSINESS_CLASSIFICATION
public static final String SERIALIZED_NAME_BUSINESS_CLASSIFICATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BUSINESS_OTHER
public static final String SERIALIZED_NAME_BUSINESS_OTHER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FOREIGN_PARTNER_OWNER_OR_BENEFICIARY
public static final String SERIALIZED_NAME_FOREIGN_PARTNER_OWNER_OR_BENEFICIARY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXEMPT_PAYEE_CODE
public static final String SERIALIZED_NAME_EXEMPT_PAYEE_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXEMPT_FATCA_CODE
public static final String SERIALIZED_NAME_EXEMPT_FATCA_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FOREIGN_COUNTRY_INDICATOR
public static final String SERIALIZED_NAME_FOREIGN_COUNTRY_INDICATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ADDRESS
public static final String SERIALIZED_NAME_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FOREIGN_ADDRESS
public static final String SERIALIZED_NAME_FOREIGN_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_ACCOUNT_NUMBER
public static final String SERIALIZED_NAME_ACCOUNT_NUMBER
- 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_BACKUP_WITHHOLDING
public static final String SERIALIZED_NAME_BACKUP_WITHHOLDING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS1099ABLE
public static final String SERIALIZED_NAME_IS1099ABLE
- 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
-
W9FormRequest
public W9FormRequest()
-
W9FormRequest
public W9FormRequest(W9FormRequest.TypeEnum type)
-
-
Method Detail
-
getType
@Nullable public W9FormRequest.TypeEnum getType()
The form type (always \"w9\" for this model).- Returns:
- type
-
name
public W9FormRequest name(String name)
-
getName
@Nullable public String getName()
The name of the individual or entity associated with the form.- Returns:
- name
-
setName
public void setName(String name)
-
businessName
public W9FormRequest businessName(String businessName)
-
getBusinessName
@Nullable public String getBusinessName()
The name of the business associated with the form.- Returns:
- businessName
-
setBusinessName
public void setBusinessName(String businessName)
-
businessClassification
public W9FormRequest businessClassification(String businessClassification)
-
getBusinessClassification
@Nullable public String getBusinessClassification()
The classification of the business.- Returns:
- businessClassification
-
setBusinessClassification
public void setBusinessClassification(String businessClassification)
-
businessOther
public W9FormRequest businessOther(String businessOther)
-
getBusinessOther
@Nullable public String getBusinessOther()
The classification description when \"businessClassification\" is \"Other\".- Returns:
- businessOther
-
setBusinessOther
public void setBusinessOther(String businessOther)
-
foreignPartnerOwnerOrBeneficiary
public W9FormRequest foreignPartnerOwnerOrBeneficiary(Boolean foreignPartnerOwnerOrBeneficiary)
-
getForeignPartnerOwnerOrBeneficiary
@Nullable public Boolean getForeignPartnerOwnerOrBeneficiary()
Indicates whether the individual is a foreign partner, owner, or beneficiary.- Returns:
- foreignPartnerOwnerOrBeneficiary
-
setForeignPartnerOwnerOrBeneficiary
public void setForeignPartnerOwnerOrBeneficiary(Boolean foreignPartnerOwnerOrBeneficiary)
-
exemptPayeeCode
public W9FormRequest exemptPayeeCode(String exemptPayeeCode)
-
getExemptPayeeCode
@Nullable public String getExemptPayeeCode()
The exempt payee code.- Returns:
- exemptPayeeCode
-
setExemptPayeeCode
public void setExemptPayeeCode(String exemptPayeeCode)
-
exemptFatcaCode
public W9FormRequest exemptFatcaCode(String exemptFatcaCode)
-
getExemptFatcaCode
@Nullable public String getExemptFatcaCode()
The exemption from FATCA reporting code.- Returns:
- exemptFatcaCode
-
setExemptFatcaCode
public void setExemptFatcaCode(String exemptFatcaCode)
-
foreignCountryIndicator
public W9FormRequest foreignCountryIndicator(Boolean foreignCountryIndicator)
-
getForeignCountryIndicator
@Nullable public Boolean getForeignCountryIndicator()
Indicates whether the individual or entity is in a foreign country.- Returns:
- foreignCountryIndicator
-
setForeignCountryIndicator
public void setForeignCountryIndicator(Boolean foreignCountryIndicator)
-
address
public W9FormRequest address(String address)
-
getAddress
@Nullable public String getAddress()
The address of the individual or entity.- Returns:
- address
-
setAddress
public void setAddress(String address)
-
foreignAddress
public W9FormRequest foreignAddress(String foreignAddress)
-
getForeignAddress
@Nullable public String getForeignAddress()
The foreign address of the individual or entity.- Returns:
- foreignAddress
-
setForeignAddress
public void setForeignAddress(String foreignAddress)
-
city
public W9FormRequest city(String city)
-
setCity
public void setCity(String city)
-
state
public W9FormRequest state(String state)
-
setState
public void setState(String state)
-
zip
public W9FormRequest zip(String zip)
-
setZip
public void setZip(String zip)
-
accountNumber
public W9FormRequest accountNumber(String accountNumber)
-
getAccountNumber
@Nullable public String getAccountNumber()
The account number associated with the form.- Returns:
- accountNumber
-
setAccountNumber
public void setAccountNumber(String accountNumber)
-
tinType
public W9FormRequest tinType(String tinType)
-
setTinType
public void setTinType(String tinType)
-
tin
public W9FormRequest tin(String tin)
-
setTin
public void setTin(String tin)
-
backupWithholding
public W9FormRequest backupWithholding(Boolean backupWithholding)
-
getBackupWithholding
@Nullable public Boolean getBackupWithholding()
Indicates whether backup withholding applies.- Returns:
- backupWithholding
-
setBackupWithholding
public void setBackupWithholding(Boolean backupWithholding)
-
is1099able
public W9FormRequest is1099able(Boolean is1099able)
-
getIs1099able
@Nullable public Boolean getIs1099able()
Indicates whether the individual or entity should be issued a 1099 form.- Returns:
- is1099able
-
setIs1099able
public void setIs1099able(Boolean is1099able)
-
eDeliveryConsentedAt
public W9FormRequest 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 W9FormRequest signature(String signature)
-
setSignature
public void setSignature(String signature)
-
companyId
public W9FormRequest companyId(String companyId)
-
getCompanyId
@Nonnull public String getCompanyId()
The ID of the associated company.- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
-
referenceId
public W9FormRequest referenceId(String referenceId)
-
getReferenceId
@Nullable public String getReferenceId()
A reference identifier for the form.- Returns:
- referenceId
-
setReferenceId
public void setReferenceId(String referenceId)
-
email
public W9FormRequest 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 W9FormRequest
-
fromJson
public static W9FormRequest fromJson(String jsonString) throws IOException
Create an instance of W9FormRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of W9FormRequest
- Throws:
IOException- if the JSON string is invalid with respect to W9FormRequest
-
toJson
public String toJson()
Convert an instance of W9FormRequest to an JSON string- Returns:
- JSON string
-
-