Package Avalara.SDK.model.A1099.V2
Class W8BenFormResponse
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.W9FormBaseResponse
-
- Avalara.SDK.model.A1099.V2.W8BenFormResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class W8BenFormResponse extends W9FormBaseResponse
W8BenFormResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classW8BenFormResponse.CustomTypeAdapterFactory
-
Field Summary
-
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 W8BenFormResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description W8BenFormResponsebirthday(LocalDate birthday)W8BenFormResponsecitizenshipCountry(String citizenshipCountry)booleanequals(Object o)W8BenFormResponseforeignTin(String foreignTin)W8BenFormResponseforeignTinNotRequired(Boolean foreignTinNotRequired)static W8BenFormResponsefromJson(String jsonString)Create an instance of W8BenFormResponse given an JSON stringLocalDategetBirthday()The birthday of the individual associated with the form.StringgetCitizenshipCountry()The country of citizenship.StringgetForeignTin()The foreign taxpayer identification number (TIN).BooleangetForeignTinNotRequired()Indicates whether a foreign TIN is not required.StringgetIncomeType()The type of income covered by the treaty.StringgetMailingAddress()The mailing address.StringgetMailingCity()The city of the mailing address.StringgetMailingCountry()The country of the mailing address.StringgetMailingState()The state of the mailing address.StringgetMailingZip()The ZIP code of the mailing address.StringgetName()The name of the individual or entity associated with the form.StringgetReferenceNumber()A reference number for the form.StringgetResidenceAddress()The residential address of the individual or entity.StringgetResidenceCity()The city of residence.StringgetResidenceCountry()The country of residence.BooleangetResidenceIsMailing()Indicates whether the residence address is the mailing address.StringgetResidenceState()The state of residence.StringgetResidenceZip()The ZIP code of the residence.StringgetSignerCapacity()The capacity in which the signer is signing the form.StringgetSignerName()The name of the signer of the form.StringgetTin()The taxpayer identification number (TIN).StringgetTinType()The type of TIN provided.StringgetTreatyArticle()The specific article of the treaty being claimed.StringgetTreatyCountry()The country for which the treaty applies.StringgetTreatyReasons()The reasons for claiming treaty benefits.StringgetWithholdingRate()The withholding rate applied as per the treaty.inthashCode()W8BenFormResponseincomeType(String incomeType)W8BenFormResponsemailingAddress(String mailingAddress)W8BenFormResponsemailingCity(String mailingCity)W8BenFormResponsemailingCountry(String mailingCountry)W8BenFormResponsemailingState(String mailingState)W8BenFormResponsemailingZip(String mailingZip)W8BenFormResponsename(String name)W8BenFormResponsereferenceNumber(String referenceNumber)W8BenFormResponseresidenceAddress(String residenceAddress)W8BenFormResponseresidenceCity(String residenceCity)W8BenFormResponseresidenceCountry(String residenceCountry)W8BenFormResponseresidenceIsMailing(Boolean residenceIsMailing)W8BenFormResponseresidenceState(String residenceState)W8BenFormResponseresidenceZip(String residenceZip)voidsetBirthday(LocalDate birthday)voidsetCitizenshipCountry(String citizenshipCountry)voidsetForeignTin(String foreignTin)voidsetForeignTinNotRequired(Boolean foreignTinNotRequired)voidsetIncomeType(String incomeType)voidsetMailingAddress(String mailingAddress)voidsetMailingCity(String mailingCity)voidsetMailingCountry(String mailingCountry)voidsetMailingState(String mailingState)voidsetMailingZip(String mailingZip)voidsetName(String name)voidsetReferenceNumber(String referenceNumber)voidsetResidenceAddress(String residenceAddress)voidsetResidenceCity(String residenceCity)voidsetResidenceCountry(String residenceCountry)voidsetResidenceIsMailing(Boolean residenceIsMailing)voidsetResidenceState(String residenceState)voidsetResidenceZip(String residenceZip)voidsetSignerCapacity(String signerCapacity)voidsetSignerName(String signerName)voidsetTin(String tin)voidsetTinType(String tinType)voidsetTreatyArticle(String treatyArticle)voidsetTreatyCountry(String treatyCountry)voidsetTreatyReasons(String treatyReasons)voidsetWithholdingRate(String withholdingRate)W8BenFormResponsesignerCapacity(String signerCapacity)W8BenFormResponsesignerName(String signerName)W8BenFormResponsetin(String tin)W8BenFormResponsetinType(String tinType)StringtoJson()Convert an instance of W8BenFormResponse to an JSON stringStringtoString()W8BenFormResponsetreatyArticle(String treatyArticle)W8BenFormResponsetreatyCountry(String treatyCountry)W8BenFormResponsetreatyReasons(String treatyReasons)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundW8BenFormResponsewithholdingRate(String withholdingRate)-
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_CITIZENSHIP_COUNTRY
public static final String SERIALIZED_NAME_CITIZENSHIP_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESIDENCE_ADDRESS
public static final String SERIALIZED_NAME_RESIDENCE_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESIDENCE_CITY
public static final String SERIALIZED_NAME_RESIDENCE_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESIDENCE_STATE
public static final String SERIALIZED_NAME_RESIDENCE_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESIDENCE_ZIP
public static final String SERIALIZED_NAME_RESIDENCE_ZIP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESIDENCE_COUNTRY
public static final String SERIALIZED_NAME_RESIDENCE_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESIDENCE_IS_MAILING
public static final String SERIALIZED_NAME_RESIDENCE_IS_MAILING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAILING_ADDRESS
public static final String SERIALIZED_NAME_MAILING_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAILING_CITY
public static final String SERIALIZED_NAME_MAILING_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAILING_STATE
public static final String SERIALIZED_NAME_MAILING_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAILING_ZIP
public static final String SERIALIZED_NAME_MAILING_ZIP
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAILING_COUNTRY
public static final String SERIALIZED_NAME_MAILING_COUNTRY
- 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_FOREIGN_TIN_NOT_REQUIRED
public static final String SERIALIZED_NAME_FOREIGN_TIN_NOT_REQUIRED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FOREIGN_TIN
public static final String SERIALIZED_NAME_FOREIGN_TIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE_NUMBER
public static final String SERIALIZED_NAME_REFERENCE_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BIRTHDAY
public static final String SERIALIZED_NAME_BIRTHDAY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TREATY_COUNTRY
public static final String SERIALIZED_NAME_TREATY_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TREATY_ARTICLE
public static final String SERIALIZED_NAME_TREATY_ARTICLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TREATY_REASONS
public static final String SERIALIZED_NAME_TREATY_REASONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_WITHHOLDING_RATE
public static final String SERIALIZED_NAME_WITHHOLDING_RATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INCOME_TYPE
public static final String SERIALIZED_NAME_INCOME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNER_NAME
public static final String SERIALIZED_NAME_SIGNER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIGNER_CAPACITY
public static final String SERIALIZED_NAME_SIGNER_CAPACITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public W8BenFormResponse 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)
-
citizenshipCountry
public W8BenFormResponse citizenshipCountry(String citizenshipCountry)
-
getCitizenshipCountry
@Nullable public String getCitizenshipCountry()
The country of citizenship.- Returns:
- citizenshipCountry
-
setCitizenshipCountry
public void setCitizenshipCountry(String citizenshipCountry)
-
residenceAddress
public W8BenFormResponse residenceAddress(String residenceAddress)
-
getResidenceAddress
@Nullable public String getResidenceAddress()
The residential address of the individual or entity.- Returns:
- residenceAddress
-
setResidenceAddress
public void setResidenceAddress(String residenceAddress)
-
residenceCity
public W8BenFormResponse residenceCity(String residenceCity)
-
getResidenceCity
@Nullable public String getResidenceCity()
The city of residence.- Returns:
- residenceCity
-
setResidenceCity
public void setResidenceCity(String residenceCity)
-
residenceState
public W8BenFormResponse residenceState(String residenceState)
-
getResidenceState
@Nullable public String getResidenceState()
The state of residence.- Returns:
- residenceState
-
setResidenceState
public void setResidenceState(String residenceState)
-
residenceZip
public W8BenFormResponse residenceZip(String residenceZip)
-
getResidenceZip
@Nullable public String getResidenceZip()
The ZIP code of the residence.- Returns:
- residenceZip
-
setResidenceZip
public void setResidenceZip(String residenceZip)
-
residenceCountry
public W8BenFormResponse residenceCountry(String residenceCountry)
-
getResidenceCountry
@Nullable public String getResidenceCountry()
The country of residence.- Returns:
- residenceCountry
-
setResidenceCountry
public void setResidenceCountry(String residenceCountry)
-
residenceIsMailing
public W8BenFormResponse residenceIsMailing(Boolean residenceIsMailing)
-
getResidenceIsMailing
@Nullable public Boolean getResidenceIsMailing()
Indicates whether the residence address is the mailing address.- Returns:
- residenceIsMailing
-
setResidenceIsMailing
public void setResidenceIsMailing(Boolean residenceIsMailing)
-
mailingAddress
public W8BenFormResponse mailingAddress(String mailingAddress)
-
getMailingAddress
@Nullable public String getMailingAddress()
The mailing address.- Returns:
- mailingAddress
-
setMailingAddress
public void setMailingAddress(String mailingAddress)
-
mailingCity
public W8BenFormResponse mailingCity(String mailingCity)
-
getMailingCity
@Nullable public String getMailingCity()
The city of the mailing address.- Returns:
- mailingCity
-
setMailingCity
public void setMailingCity(String mailingCity)
-
mailingState
public W8BenFormResponse mailingState(String mailingState)
-
getMailingState
@Nullable public String getMailingState()
The state of the mailing address.- Returns:
- mailingState
-
setMailingState
public void setMailingState(String mailingState)
-
mailingZip
public W8BenFormResponse mailingZip(String mailingZip)
-
getMailingZip
@Nullable public String getMailingZip()
The ZIP code of the mailing address.- Returns:
- mailingZip
-
setMailingZip
public void setMailingZip(String mailingZip)
-
mailingCountry
public W8BenFormResponse mailingCountry(String mailingCountry)
-
getMailingCountry
@Nullable public String getMailingCountry()
The country of the mailing address.- Returns:
- mailingCountry
-
setMailingCountry
public void setMailingCountry(String mailingCountry)
-
tinType
public W8BenFormResponse tinType(String tinType)
-
setTinType
public void setTinType(String tinType)
-
tin
public W8BenFormResponse tin(String tin)
-
setTin
public void setTin(String tin)
-
foreignTinNotRequired
public W8BenFormResponse foreignTinNotRequired(Boolean foreignTinNotRequired)
-
getForeignTinNotRequired
@Nullable public Boolean getForeignTinNotRequired()
Indicates whether a foreign TIN is not required.- Returns:
- foreignTinNotRequired
-
setForeignTinNotRequired
public void setForeignTinNotRequired(Boolean foreignTinNotRequired)
-
foreignTin
public W8BenFormResponse foreignTin(String foreignTin)
-
getForeignTin
@Nullable public String getForeignTin()
The foreign taxpayer identification number (TIN).- Returns:
- foreignTin
-
setForeignTin
public void setForeignTin(String foreignTin)
-
referenceNumber
public W8BenFormResponse referenceNumber(String referenceNumber)
-
getReferenceNumber
@Nullable public String getReferenceNumber()
A reference number for the form.- Returns:
- referenceNumber
-
setReferenceNumber
public void setReferenceNumber(String referenceNumber)
-
birthday
public W8BenFormResponse birthday(LocalDate birthday)
-
getBirthday
@Nullable public LocalDate getBirthday()
The birthday of the individual associated with the form.- Returns:
- birthday
-
setBirthday
public void setBirthday(LocalDate birthday)
-
treatyCountry
public W8BenFormResponse treatyCountry(String treatyCountry)
-
getTreatyCountry
@Nullable public String getTreatyCountry()
The country for which the treaty applies.- Returns:
- treatyCountry
-
setTreatyCountry
public void setTreatyCountry(String treatyCountry)
-
treatyArticle
public W8BenFormResponse treatyArticle(String treatyArticle)
-
getTreatyArticle
@Nullable public String getTreatyArticle()
The specific article of the treaty being claimed.- Returns:
- treatyArticle
-
setTreatyArticle
public void setTreatyArticle(String treatyArticle)
-
treatyReasons
public W8BenFormResponse treatyReasons(String treatyReasons)
-
getTreatyReasons
@Nullable public String getTreatyReasons()
The reasons for claiming treaty benefits.- Returns:
- treatyReasons
-
setTreatyReasons
public void setTreatyReasons(String treatyReasons)
-
withholdingRate
public W8BenFormResponse withholdingRate(String withholdingRate)
-
getWithholdingRate
@Nullable public String getWithholdingRate()
The withholding rate applied as per the treaty.- Returns:
- withholdingRate
-
setWithholdingRate
public void setWithholdingRate(String withholdingRate)
-
incomeType
public W8BenFormResponse incomeType(String incomeType)
-
getIncomeType
@Nullable public String getIncomeType()
The type of income covered by the treaty.- Returns:
- incomeType
-
setIncomeType
public void setIncomeType(String incomeType)
-
signerName
public W8BenFormResponse signerName(String signerName)
-
getSignerName
@Nullable public String getSignerName()
The name of the signer of the form.- Returns:
- signerName
-
setSignerName
public void setSignerName(String signerName)
-
signerCapacity
public W8BenFormResponse signerCapacity(String signerCapacity)
-
getSignerCapacity
@Nullable public String getSignerCapacity()
The capacity in which the signer is signing the form.- Returns:
- signerCapacity
-
setSignerCapacity
public void setSignerCapacity(String signerCapacity)
-
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 W8BenFormResponse
-
fromJson
public static W8BenFormResponse fromJson(String jsonString) throws IOException
Create an instance of W8BenFormResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of W8BenFormResponse
- Throws:
IOException- if the JSON string is invalid with respect to W8BenFormResponse
-
toJson
public String toJson()
Convert an instance of W8BenFormResponse to an JSON string- Overrides:
toJsonin classW9FormBaseResponse- Returns:
- JSON string
-
-