Package Avalara.SDK.model.A1099.V2
Class CompanyCreateUpdateRequestModel
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.CompanyCreateUpdateRequestModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class CompanyCreateUpdateRequestModel extends Object
CompanyCreateUpdateRequestModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompanyCreateUpdateRequestModel.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESSstatic StringSERIALIZED_NAME_CITYstatic StringSERIALIZED_NAME_COUNTRY_CODEstatic StringSERIALIZED_NAME_DBA_NAMEstatic StringSERIALIZED_NAME_DO_TIN_MATCHstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_FOREIGN_PROVINCEstatic StringSERIALIZED_NAME_GROUP_NAMEstatic StringSERIALIZED_NAME_MAX_REMINDER_ATTEMPTSstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_REFERENCE_IDstatic StringSERIALIZED_NAME_RESEND_INTERVAL_DAYSstatic StringSERIALIZED_NAME_RESEND_REQUESTSstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_TELEPHONEstatic StringSERIALIZED_NAME_TINstatic StringSERIALIZED_NAME_ZIP
-
Constructor Summary
Constructors Constructor Description CompanyCreateUpdateRequestModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompanyCreateUpdateRequestModeladdress(String address)CompanyCreateUpdateRequestModelcity(String city)CompanyCreateUpdateRequestModelcountryCode(String countryCode)CompanyCreateUpdateRequestModeldbaName(String dbaName)CompanyCreateUpdateRequestModeldoTinMatch(Boolean doTinMatch)CompanyCreateUpdateRequestModelemail(String email)booleanequals(Object o)CompanyCreateUpdateRequestModelforeignProvince(String foreignProvince)static CompanyCreateUpdateRequestModelfromJson(String jsonString)Create an instance of CompanyCreateUpdateRequestModel given an JSON stringStringgetAddress()Address.StringgetCity()City.StringgetCountryCode()Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.StringgetDbaName()Doing Business As (DBA) name or continuation of a long legal name.BooleangetDoTinMatch()Indicates whether the company authorizes IRS TIN matching.StringgetEmail()Contact email address.StringgetForeignProvince()Province or region for non-US/CA addresses.StringgetGroupName()Group name for organizing companies (creates or finds group by name).IntegergetMaxReminderAttempts()Maximum number of reminder attempts (1-52, required if resendRequests is true).StringgetName()Legal name.StringgetReferenceId()Internal reference ID.IntegergetResendIntervalDays()Days between reminder emails (7-365, required if resendRequests is true).BooleangetResendRequests()Boolean to enable automatic reminder emails (default: false).StringgetState()Two-letter US state or Canadian province code (required for US/CA addresses).StringgetTelephone()Contact phone number (must contain at least 10 digits, max 15 characters).StringgetTin()Federal Tax Identification Number (TIN).StringgetZip()ZIP/postal code.CompanyCreateUpdateRequestModelgroupName(String groupName)inthashCode()CompanyCreateUpdateRequestModelmaxReminderAttempts(Integer maxReminderAttempts)CompanyCreateUpdateRequestModelname(String name)CompanyCreateUpdateRequestModelreferenceId(String referenceId)CompanyCreateUpdateRequestModelresendIntervalDays(Integer resendIntervalDays)CompanyCreateUpdateRequestModelresendRequests(Boolean resendRequests)voidsetAddress(String address)voidsetCity(String city)voidsetCountryCode(String countryCode)voidsetDbaName(String dbaName)voidsetDoTinMatch(Boolean doTinMatch)voidsetEmail(String email)voidsetForeignProvince(String foreignProvince)voidsetGroupName(String groupName)voidsetMaxReminderAttempts(Integer maxReminderAttempts)voidsetName(String name)voidsetReferenceId(String referenceId)voidsetResendIntervalDays(Integer resendIntervalDays)voidsetResendRequests(Boolean resendRequests)voidsetState(String state)voidsetTelephone(String telephone)voidsetTin(String tin)voidsetZip(String zip)CompanyCreateUpdateRequestModelstate(String state)CompanyCreateUpdateRequestModeltelephone(String telephone)CompanyCreateUpdateRequestModeltin(String tin)StringtoJson()Convert an instance of CompanyCreateUpdateRequestModel to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundCompanyCreateUpdateRequestModelzip(String zip)
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DBA_NAME
public static final String SERIALIZED_NAME_DBA_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EMAIL
public static final String SERIALIZED_NAME_EMAIL
- 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_TELEPHONE
public static final String SERIALIZED_NAME_TELEPHONE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TIN
public static final String SERIALIZED_NAME_TIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE_ID
public static final String SERIALIZED_NAME_REFERENCE_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DO_TIN_MATCH
public static final String SERIALIZED_NAME_DO_TIN_MATCH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GROUP_NAME
public static final String SERIALIZED_NAME_GROUP_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FOREIGN_PROVINCE
public static final String SERIALIZED_NAME_FOREIGN_PROVINCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COUNTRY_CODE
public static final String SERIALIZED_NAME_COUNTRY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESEND_REQUESTS
public static final String SERIALIZED_NAME_RESEND_REQUESTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RESEND_INTERVAL_DAYS
public static final String SERIALIZED_NAME_RESEND_INTERVAL_DAYS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS
public static final String SERIALIZED_NAME_MAX_REMINDER_ATTEMPTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public CompanyCreateUpdateRequestModel name(String name)
-
setName
public void setName(String name)
-
dbaName
public CompanyCreateUpdateRequestModel dbaName(String dbaName)
-
getDbaName
@Nullable public String getDbaName()
Doing Business As (DBA) name or continuation of a long legal name.- Returns:
- dbaName
-
setDbaName
public void setDbaName(String dbaName)
-
email
public CompanyCreateUpdateRequestModel email(String email)
-
getEmail
@Nullable public String getEmail()
Contact email address. For inquiries by vendors/employees.- Returns:
-
setEmail
public void setEmail(String email)
-
address
public CompanyCreateUpdateRequestModel address(String address)
-
setAddress
public void setAddress(String address)
-
city
public CompanyCreateUpdateRequestModel city(String city)
-
setCity
public void setCity(String city)
-
state
public CompanyCreateUpdateRequestModel state(String state)
-
getState
@Nullable public String getState()
Two-letter US state or Canadian province code (required for US/CA addresses).- Returns:
- state
-
setState
public void setState(String state)
-
zip
public CompanyCreateUpdateRequestModel zip(String zip)
-
setZip
public void setZip(String zip)
-
telephone
public CompanyCreateUpdateRequestModel telephone(String telephone)
-
getTelephone
@Nullable public String getTelephone()
Contact phone number (must contain at least 10 digits, max 15 characters).- Returns:
- telephone
-
setTelephone
public void setTelephone(String telephone)
-
tin
public CompanyCreateUpdateRequestModel tin(String tin)
-
getTin
@Nullable public String getTin()
Federal Tax Identification Number (TIN). EIN/Tax ID (required for US companies).- Returns:
- tin
-
setTin
public void setTin(String tin)
-
referenceId
public CompanyCreateUpdateRequestModel referenceId(String referenceId)
-
getReferenceId
@Nullable public String getReferenceId()
Internal reference ID. Never shown to any agency or recipient.- Returns:
- referenceId
-
setReferenceId
public void setReferenceId(String referenceId)
-
doTinMatch
public CompanyCreateUpdateRequestModel doTinMatch(Boolean doTinMatch)
-
getDoTinMatch
@Nullable public Boolean getDoTinMatch()
Indicates whether the company authorizes IRS TIN matching.- Returns:
- doTinMatch
-
setDoTinMatch
public void setDoTinMatch(Boolean doTinMatch)
-
groupName
public CompanyCreateUpdateRequestModel groupName(String groupName)
-
getGroupName
@Nullable public String getGroupName()
Group name for organizing companies (creates or finds group by name).- Returns:
- groupName
-
setGroupName
public void setGroupName(String groupName)
-
foreignProvince
public CompanyCreateUpdateRequestModel foreignProvince(String foreignProvince)
-
getForeignProvince
@Nullable public String getForeignProvince()
Province or region for non-US/CA addresses.- Returns:
- foreignProvince
-
setForeignProvince
public void setForeignProvince(String foreignProvince)
-
countryCode
public CompanyCreateUpdateRequestModel countryCode(String countryCode)
-
getCountryCode
@Nullable public String getCountryCode()
Two-letter IRS country code (e.g., 'US', 'CA'), as defined at https://www.irs.gov/e-file-providers/country-codes.- Returns:
- countryCode
-
setCountryCode
public void setCountryCode(String countryCode)
-
resendRequests
public CompanyCreateUpdateRequestModel resendRequests(Boolean resendRequests)
-
getResendRequests
@Nullable public Boolean getResendRequests()
Boolean to enable automatic reminder emails (default: false).- Returns:
- resendRequests
-
setResendRequests
public void setResendRequests(Boolean resendRequests)
-
resendIntervalDays
public CompanyCreateUpdateRequestModel resendIntervalDays(Integer resendIntervalDays)
-
getResendIntervalDays
@Nullable public Integer getResendIntervalDays()
Days between reminder emails (7-365, required if resendRequests is true).- Returns:
- resendIntervalDays
-
setResendIntervalDays
public void setResendIntervalDays(Integer resendIntervalDays)
-
maxReminderAttempts
public CompanyCreateUpdateRequestModel maxReminderAttempts(Integer maxReminderAttempts)
-
getMaxReminderAttempts
@Nullable public Integer getMaxReminderAttempts()
Maximum number of reminder attempts (1-52, required if resendRequests is true).- Returns:
- maxReminderAttempts
-
setMaxReminderAttempts
public void setMaxReminderAttempts(Integer maxReminderAttempts)
-
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 CompanyCreateUpdateRequestModel
-
fromJson
public static CompanyCreateUpdateRequestModel fromJson(String jsonString) throws IOException
Create an instance of CompanyCreateUpdateRequestModel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CompanyCreateUpdateRequestModel
- Throws:
IOException- if the JSON string is invalid with respect to CompanyCreateUpdateRequestModel
-
toJson
public String toJson()
Convert an instance of CompanyCreateUpdateRequestModel to an JSON string- Returns:
- JSON string
-
-