Package Avalara.SDK.model.A1099.V2
Class W8BenFormRequest
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.W8BenFormRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class W8BenFormRequest extends Object
W8BenFormRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classW8BenFormRequest.CustomTypeAdapterFactorystatic classW8BenFormRequest.TypeEnumThe form type (always \"w8ben\" for this model).
-
Field Summary
-
Constructor Summary
Constructors Constructor Description W8BenFormRequest()W8BenFormRequest(W8BenFormRequest.TypeEnum type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description W8BenFormRequestbirthday(LocalDate birthday)W8BenFormRequestcitizenshipCountry(String citizenshipCountry)W8BenFormRequestcompanyId(String companyId)W8BenFormRequesteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)W8BenFormRequestemail(String email)booleanequals(Object o)W8BenFormRequestforeignTin(String foreignTin)W8BenFormRequestforeignTinNotRequired(Boolean foreignTinNotRequired)static W8BenFormRequestfromJson(String jsonString)Create an instance of W8BenFormRequest given an JSON stringLocalDategetBirthday()The birthday of the individual associated with the form.StringgetCitizenshipCountry()The country of citizenship.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.StringgetForeignTin()The foreign taxpayer identification number (TIN).BooleangetForeignTinNotRequired()Indicates whether a foreign TIN is not legally 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.StringgetReferenceId()A reference identifier for 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.StringgetSignature()The signature of the form.StringgetSignerName()The name of the signer of the form.StringgetTin()The taxpayer identification number (TIN).StringgetTreatyArticle()The specific article of the treaty being claimed.StringgetTreatyCountry()The country for which the treaty applies.StringgetTreatyReasons()The reasons for claiming treaty benefits.W8BenFormRequest.TypeEnumgetType()The form type (always \"w8ben\" for this model).StringgetWithholdingRate()The withholding rate applied as per the treaty.inthashCode()W8BenFormRequestincomeType(String incomeType)W8BenFormRequestmailingAddress(String mailingAddress)W8BenFormRequestmailingCity(String mailingCity)W8BenFormRequestmailingCountry(String mailingCountry)W8BenFormRequestmailingState(String mailingState)W8BenFormRequestmailingZip(String mailingZip)W8BenFormRequestname(String name)W8BenFormRequestreferenceId(String referenceId)W8BenFormRequestreferenceNumber(String referenceNumber)W8BenFormRequestresidenceAddress(String residenceAddress)W8BenFormRequestresidenceCity(String residenceCity)W8BenFormRequestresidenceCountry(String residenceCountry)W8BenFormRequestresidenceIsMailing(Boolean residenceIsMailing)W8BenFormRequestresidenceState(String residenceState)W8BenFormRequestresidenceZip(String residenceZip)voidsetBirthday(LocalDate birthday)voidsetCitizenshipCountry(String citizenshipCountry)voidsetCompanyId(String companyId)voidseteDeliveryConsentedAt(OffsetDateTime eDeliveryConsentedAt)voidsetEmail(String email)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)voidsetReferenceId(String referenceId)voidsetReferenceNumber(String referenceNumber)voidsetResidenceAddress(String residenceAddress)voidsetResidenceCity(String residenceCity)voidsetResidenceCountry(String residenceCountry)voidsetResidenceIsMailing(Boolean residenceIsMailing)voidsetResidenceState(String residenceState)voidsetResidenceZip(String residenceZip)voidsetSignature(String signature)voidsetSignerName(String signerName)voidsetTin(String tin)voidsetTreatyArticle(String treatyArticle)voidsetTreatyCountry(String treatyCountry)voidsetTreatyReasons(String treatyReasons)voidsetWithholdingRate(String withholdingRate)W8BenFormRequestsignature(String signature)W8BenFormRequestsignerName(String signerName)W8BenFormRequesttin(String tin)StringtoJson()Convert an instance of W8BenFormRequest to an JSON stringStringtoString()W8BenFormRequesttreatyArticle(String treatyArticle)W8BenFormRequesttreatyCountry(String treatyCountry)W8BenFormRequesttreatyReasons(String treatyReasons)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundW8BenFormRequestwithholdingRate(String withholdingRate)
-
-
-
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_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
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_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
-
W8BenFormRequest
public W8BenFormRequest()
-
W8BenFormRequest
public W8BenFormRequest(W8BenFormRequest.TypeEnum type)
-
-
Method Detail
-
getType
@Nullable public W8BenFormRequest.TypeEnum getType()
The form type (always \"w8ben\" for this model).- Returns:
- type
-
name
public W8BenFormRequest 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 W8BenFormRequest citizenshipCountry(String citizenshipCountry)
-
getCitizenshipCountry
@Nullable public String getCitizenshipCountry()
The country of citizenship.- Returns:
- citizenshipCountry
-
setCitizenshipCountry
public void setCitizenshipCountry(String citizenshipCountry)
-
residenceAddress
public W8BenFormRequest 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 W8BenFormRequest residenceCity(String residenceCity)
-
getResidenceCity
@Nullable public String getResidenceCity()
The city of residence.- Returns:
- residenceCity
-
setResidenceCity
public void setResidenceCity(String residenceCity)
-
residenceState
public W8BenFormRequest residenceState(String residenceState)
-
getResidenceState
@Nullable public String getResidenceState()
The state of residence.- Returns:
- residenceState
-
setResidenceState
public void setResidenceState(String residenceState)
-
residenceZip
public W8BenFormRequest residenceZip(String residenceZip)
-
getResidenceZip
@Nullable public String getResidenceZip()
The ZIP code of the residence.- Returns:
- residenceZip
-
setResidenceZip
public void setResidenceZip(String residenceZip)
-
residenceCountry
public W8BenFormRequest residenceCountry(String residenceCountry)
-
getResidenceCountry
@Nullable public String getResidenceCountry()
The country of residence.- Returns:
- residenceCountry
-
setResidenceCountry
public void setResidenceCountry(String residenceCountry)
-
residenceIsMailing
public W8BenFormRequest 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 W8BenFormRequest mailingAddress(String mailingAddress)
-
getMailingAddress
@Nullable public String getMailingAddress()
The mailing address.- Returns:
- mailingAddress
-
setMailingAddress
public void setMailingAddress(String mailingAddress)
-
mailingCity
public W8BenFormRequest mailingCity(String mailingCity)
-
getMailingCity
@Nullable public String getMailingCity()
The city of the mailing address.- Returns:
- mailingCity
-
setMailingCity
public void setMailingCity(String mailingCity)
-
mailingState
public W8BenFormRequest mailingState(String mailingState)
-
getMailingState
@Nullable public String getMailingState()
The state of the mailing address.- Returns:
- mailingState
-
setMailingState
public void setMailingState(String mailingState)
-
mailingZip
public W8BenFormRequest 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 W8BenFormRequest mailingCountry(String mailingCountry)
-
getMailingCountry
@Nullable public String getMailingCountry()
The country of the mailing address.- Returns:
- mailingCountry
-
setMailingCountry
public void setMailingCountry(String mailingCountry)
-
tin
public W8BenFormRequest tin(String tin)
-
setTin
public void setTin(String tin)
-
foreignTinNotRequired
public W8BenFormRequest foreignTinNotRequired(Boolean foreignTinNotRequired)
-
getForeignTinNotRequired
@Nullable public Boolean getForeignTinNotRequired()
Indicates whether a foreign TIN is not legally required.- Returns:
- foreignTinNotRequired
-
setForeignTinNotRequired
public void setForeignTinNotRequired(Boolean foreignTinNotRequired)
-
foreignTin
public W8BenFormRequest foreignTin(String foreignTin)
-
getForeignTin
@Nullable public String getForeignTin()
The foreign taxpayer identification number (TIN).- Returns:
- foreignTin
-
setForeignTin
public void setForeignTin(String foreignTin)
-
referenceNumber
public W8BenFormRequest referenceNumber(String referenceNumber)
-
getReferenceNumber
@Nullable public String getReferenceNumber()
A reference number for the form.- Returns:
- referenceNumber
-
setReferenceNumber
public void setReferenceNumber(String referenceNumber)
-
birthday
public W8BenFormRequest 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 W8BenFormRequest 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 W8BenFormRequest 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 W8BenFormRequest treatyReasons(String treatyReasons)
-
getTreatyReasons
@Nullable public String getTreatyReasons()
The reasons for claiming treaty benefits.- Returns:
- treatyReasons
-
setTreatyReasons
public void setTreatyReasons(String treatyReasons)
-
withholdingRate
public W8BenFormRequest 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 W8BenFormRequest 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 W8BenFormRequest signerName(String signerName)
-
getSignerName
@Nullable public String getSignerName()
The name of the signer of the form.- Returns:
- signerName
-
setSignerName
public void setSignerName(String signerName)
-
eDeliveryConsentedAt
public W8BenFormRequest 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 W8BenFormRequest signature(String signature)
-
setSignature
public void setSignature(String signature)
-
companyId
public W8BenFormRequest companyId(String companyId)
-
getCompanyId
@Nonnull public String getCompanyId()
The ID of the associated company.- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
-
referenceId
public W8BenFormRequest referenceId(String referenceId)
-
getReferenceId
@Nullable public String getReferenceId()
A reference identifier for the form.- Returns:
- referenceId
-
setReferenceId
public void setReferenceId(String referenceId)
-
email
public W8BenFormRequest 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 W8BenFormRequest
-
fromJson
public static W8BenFormRequest fromJson(String jsonString) throws IOException
Create an instance of W8BenFormRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of W8BenFormRequest
- Throws:
IOException- if the JSON string is invalid with respect to W8BenFormRequest
-
toJson
public String toJson()
Convert an instance of W8BenFormRequest to an JSON string- Returns:
- JSON string
-
-