Package Avalara.SDK.model.A1099.V2
Class W9FormResponse
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.W9FormBaseResponse
-
- Avalara.SDK.model.A1099.V2.W9FormResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class W9FormResponse extends W9FormBaseResponse
W9FormResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classW9FormResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCOUNT_NUMBERstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_BACKUP_WITHHOLDINGstatic StringSERIALIZED_NAME_BUSINESS_CLASSIFICATIONstatic StringSERIALIZED_NAME_BUSINESS_NAMEstatic StringSERIALIZED_NAME_BUSINESS_OTHERstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_EXEMPT_FATCA_CODEstatic StringSERIALIZED_NAME_EXEMPT_PAYEE_CODEstatic StringSERIALIZED_NAME_FOREIGN_ADDRESSstatic StringSERIALIZED_NAME_FOREIGN_COUNTRY_INDICATORstatic StringSERIALIZED_NAME_FOREIGN_PARTNER_OWNER_OR_BENEFICIARYstatic StringSERIALIZED_NAME_IS1099ABLEstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_TINstatic StringSERIALIZED_NAME_TIN_MATCH_STATUSstatic StringSERIALIZED_NAME_TIN_TYPEstatic StringSERIALIZED_NAME_ZIP-
Fields inherited from class Avalara.SDK.model.A1099.V2.W9FormBaseResponse
SERIALIZED_NAME_ANCESTOR_ID, SERIALIZED_NAME_ARCHIVED, SERIALIZED_NAME_COMPANY_ID, SERIALIZED_NAME_CREATED_AT, SERIALIZED_NAME_DISPLAY_NAME, SERIALIZED_NAME_E_DELIVERY_CONSENTED_AT, SERIALIZED_NAME_EMAIL, SERIALIZED_NAME_ENTRY_STATUS, SERIALIZED_NAME_ID, SERIALIZED_NAME_REFERENCE_ID, SERIALIZED_NAME_SIGNATURE, SERIALIZED_NAME_SIGNED_DATE, SERIALIZED_NAME_TYPE, SERIALIZED_NAME_UPDATED_AT, type
-
-
Constructor Summary
Constructors Constructor Description W9FormResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description W9FormResponseaccountNumber(String accountNumber)W9FormResponseaddress(String address)W9FormResponsebackupWithholding(Boolean backupWithholding)W9FormResponsebusinessClassification(String businessClassification)W9FormResponsebusinessName(String businessName)W9FormResponsebusinessOther(String businessOther)W9FormResponsecity(String city)booleanequals(Object o)W9FormResponseexemptFatcaCode(String exemptFatcaCode)W9FormResponseexemptPayeeCode(String exemptPayeeCode)W9FormResponseforeignAddress(String foreignAddress)W9FormResponseforeignCountryIndicator(Boolean foreignCountryIndicator)W9FormResponseforeignPartnerOwnerOrBeneficiary(Boolean foreignPartnerOwnerOrBeneficiary)static W9FormResponsefromJson(String jsonString)Create an instance of W9FormResponse 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.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.StringgetState()The state of the address.StringgetTin()The taxpayer identification number (TIN).TinMatchStatusResponsegetTinMatchStatus()The TIN Match status from IRS.StringgetTinType()The type of TIN provided.StringgetZip()The ZIP code of the address.inthashCode()W9FormResponseis1099able(Boolean is1099able)W9FormResponsename(String name)voidsetAccountNumber(String accountNumber)voidsetAddress(String address)voidsetBackupWithholding(Boolean backupWithholding)voidsetBusinessClassification(String businessClassification)voidsetBusinessName(String businessName)voidsetBusinessOther(String businessOther)voidsetCity(String city)voidsetExemptFatcaCode(String exemptFatcaCode)voidsetExemptPayeeCode(String exemptPayeeCode)voidsetForeignAddress(String foreignAddress)voidsetForeignCountryIndicator(Boolean foreignCountryIndicator)voidsetForeignPartnerOwnerOrBeneficiary(Boolean foreignPartnerOwnerOrBeneficiary)voidsetIs1099able(Boolean is1099able)voidsetName(String name)voidsetState(String state)voidsetTin(String tin)voidsetTinMatchStatus(TinMatchStatusResponse tinMatchStatus)voidsetTinType(String tinType)voidsetZip(String zip)W9FormResponsestate(String state)W9FormResponsetin(String tin)W9FormResponsetinMatchStatus(TinMatchStatusResponse tinMatchStatus)W9FormResponsetinType(String tinType)StringtoJson()Convert an instance of W9FormResponse to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundW9FormResponsezip(String zip)-
Methods inherited from class Avalara.SDK.model.A1099.V2.W9FormBaseResponse
ancestorId, archived, companyId, createdAt, displayName, eDeliveryConsentedAt, email, entryStatus, getAncestorId, getArchived, getCompanyId, getCreatedAt, getDisplayName, geteDeliveryConsentedAt, getEmail, getEntryStatus, getId, getReferenceId, getSignature, getSignedDate, getType, getUpdatedAt, id, referenceId, setAncestorId, setArchived, setCompanyId, setCreatedAt, setDisplayName, seteDeliveryConsentedAt, setEmail, setEntryStatus, setId, setReferenceId, setSignature, setSignedDate, setType, setUpdatedAt, signature, signedDate, type, updatedAt
-
-
-
-
Field Detail
-
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_TIN_MATCH_STATUS
public static final String SERIALIZED_NAME_TIN_MATCH_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public W9FormResponse 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 W9FormResponse 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 W9FormResponse businessClassification(String businessClassification)
-
getBusinessClassification
@Nullable public String getBusinessClassification()
The classification of the business.- Returns:
- businessClassification
-
setBusinessClassification
public void setBusinessClassification(String businessClassification)
-
businessOther
public W9FormResponse 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 W9FormResponse 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 W9FormResponse exemptPayeeCode(String exemptPayeeCode)
-
getExemptPayeeCode
@Nullable public String getExemptPayeeCode()
The exempt payee code.- Returns:
- exemptPayeeCode
-
setExemptPayeeCode
public void setExemptPayeeCode(String exemptPayeeCode)
-
exemptFatcaCode
public W9FormResponse exemptFatcaCode(String exemptFatcaCode)
-
getExemptFatcaCode
@Nullable public String getExemptFatcaCode()
The exemption from FATCA reporting code.- Returns:
- exemptFatcaCode
-
setExemptFatcaCode
public void setExemptFatcaCode(String exemptFatcaCode)
-
foreignCountryIndicator
public W9FormResponse 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 W9FormResponse 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 W9FormResponse 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 W9FormResponse city(String city)
-
setCity
public void setCity(String city)
-
state
public W9FormResponse state(String state)
-
setState
public void setState(String state)
-
zip
public W9FormResponse zip(String zip)
-
setZip
public void setZip(String zip)
-
accountNumber
public W9FormResponse 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 W9FormResponse tinType(String tinType)
-
setTinType
public void setTinType(String tinType)
-
tin
public W9FormResponse tin(String tin)
-
setTin
public void setTin(String tin)
-
backupWithholding
public W9FormResponse backupWithholding(Boolean backupWithholding)
-
getBackupWithholding
@Nullable public Boolean getBackupWithholding()
Indicates whether backup withholding applies.- Returns:
- backupWithholding
-
setBackupWithholding
public void setBackupWithholding(Boolean backupWithholding)
-
is1099able
public W9FormResponse 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)
-
tinMatchStatus
public W9FormResponse tinMatchStatus(TinMatchStatusResponse tinMatchStatus)
-
getTinMatchStatus
@Nullable public TinMatchStatusResponse getTinMatchStatus()
The TIN Match status from IRS.- Returns:
- tinMatchStatus
-
setTinMatchStatus
public void setTinMatchStatus(TinMatchStatusResponse tinMatchStatus)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classW9FormBaseResponse
-
hashCode
public int hashCode()
- Overrides:
hashCodein classW9FormBaseResponse
-
toString
public String toString()
- Overrides:
toStringin classW9FormBaseResponse
-
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 W9FormResponse
-
fromJson
public static W9FormResponse fromJson(String jsonString) throws IOException
Create an instance of W9FormResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of W9FormResponse
- Throws:
IOException- if the JSON string is invalid with respect to W9FormResponse
-
toJson
public String toJson()
Convert an instance of W9FormResponse to an JSON string- Overrides:
toJsonin classW9FormBaseResponse- Returns:
- JSON string
-
-