Package Avalara.SDK.model.A1099.V2
Class CompanyResponse
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.CompanyResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class CompanyResponse extends Object
CompanyResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompanyResponse.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_CREATED_ATstatic StringSERIALIZED_NAME_DBA_NAMEstatic StringSERIALIZED_NAME_DO_TIN_MATCHstatic StringSERIALIZED_NAME_EMAILstatic StringSERIALIZED_NAME_FOREIGN_PROVINCEstatic StringSERIALIZED_NAME_GROUP_NAMEstatic StringSERIALIZED_NAME_IDstatic 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_UPDATED_ATstatic StringSERIALIZED_NAME_ZIP
-
Constructor Summary
Constructors Constructor Description CompanyResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CompanyResponseaddress(String address)CompanyResponsecity(String city)CompanyResponsecountryCode(String countryCode)CompanyResponsecreatedAt(OffsetDateTime createdAt)CompanyResponsedbaName(String dbaName)CompanyResponsedoTinMatch(Boolean doTinMatch)CompanyResponseemail(String email)booleanequals(Object o)CompanyResponseforeignProvince(String foreignProvince)static CompanyResponsefromJson(String jsonString)Create an instance of CompanyResponse 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.OffsetDateTimegetCreatedAt()Date time when the record was created.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).StringgetId()Unique identifier set when the record is created.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).OffsetDateTimegetUpdatedAt()Date time when the record was last updated.StringgetZip()ZIP/postal code.CompanyResponsegroupName(String groupName)inthashCode()CompanyResponseid(String id)CompanyResponsemaxReminderAttempts(Integer maxReminderAttempts)CompanyResponsename(String name)CompanyResponsereferenceId(String referenceId)CompanyResponseresendIntervalDays(Integer resendIntervalDays)CompanyResponseresendRequests(Boolean resendRequests)voidsetAddress(String address)voidsetCity(String city)voidsetCountryCode(String countryCode)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDbaName(String dbaName)voidsetDoTinMatch(Boolean doTinMatch)voidsetEmail(String email)voidsetForeignProvince(String foreignProvince)voidsetGroupName(String groupName)voidsetId(String id)voidsetMaxReminderAttempts(Integer maxReminderAttempts)voidsetName(String name)voidsetReferenceId(String referenceId)voidsetResendIntervalDays(Integer resendIntervalDays)voidsetResendRequests(Boolean resendRequests)voidsetState(String state)voidsetTelephone(String telephone)voidsetTin(String tin)voidsetUpdatedAt(OffsetDateTime updatedAt)voidsetZip(String zip)CompanyResponsestate(String state)CompanyResponsetelephone(String telephone)CompanyResponsetin(String tin)StringtoJson()Convert an instance of CompanyResponse to an JSON stringStringtoString()CompanyResponseupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundCompanyResponsezip(String zip)
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
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
-
id
public CompanyResponse id(String id)
-
setId
public void setId(String id)
-
createdAt
public CompanyResponse createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Date time when the record was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public CompanyResponse updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
Date time when the record was last updated.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
name
public CompanyResponse name(String name)
-
setName
public void setName(String name)
-
dbaName
public CompanyResponse 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 CompanyResponse 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 CompanyResponse address(String address)
-
setAddress
public void setAddress(String address)
-
city
public CompanyResponse city(String city)
-
setCity
public void setCity(String city)
-
state
public CompanyResponse 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 CompanyResponse zip(String zip)
-
setZip
public void setZip(String zip)
-
telephone
public CompanyResponse 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 CompanyResponse 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 CompanyResponse 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 CompanyResponse 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 CompanyResponse 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 CompanyResponse 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 CompanyResponse 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 CompanyResponse 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 CompanyResponse 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 CompanyResponse 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 CompanyResponse
-
fromJson
public static CompanyResponse fromJson(String jsonString) throws IOException
Create an instance of CompanyResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CompanyResponse
- Throws:
IOException- if the JSON string is invalid with respect to CompanyResponse
-
toJson
public String toJson()
Convert an instance of CompanyResponse to an JSON string- Returns:
- JSON string
-
-