Package Avalara.SDK.model.A1099.V2
Class JobResponse
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.JobResponse
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class JobResponse extends Object
Response model for job operations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJobResponse.CustomTypeAdapterFactorystatic classJobResponse.StatusEnumCurrent status of the job (e.g., Success, Failed, InProgress)
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_INVALIDstatic StringSERIALIZED_NAME_CREATED_NO_EMAILstatic StringSERIALIZED_NAME_CREATED_VALIDstatic StringSERIALIZED_NAME_DRY_RUNstatic StringSERIALIZED_NAME_ERROR_MESSAGEstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKstatic StringSERIALIZED_NAME_NOT_FOUNDstatic StringSERIALIZED_NAME_PROCESSED_FORMSstatic StringSERIALIZED_NAME_SKIPPED_DUPLICATEstatic StringSERIALIZED_NAME_SKIPPED_INVALIDstatic StringSERIALIZED_NAME_SKIPPED_MULTIPLE_MATCHESstatic StringSERIALIZED_NAME_STATUSstatic StringSERIALIZED_NAME_TOTAL_PROCESSEDstatic StringSERIALIZED_NAME_TOTAL_ROWSstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_UPDATED_INVALIDstatic StringSERIALIZED_NAME_UPDATED_NO_EMAILstatic StringSERIALIZED_NAME_UPDATED_VALIDstatic StringSERIALIZED_NAME_UPSERT
-
Constructor Summary
Constructors Constructor Description JobResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JobResponseaddProcessedFormsItem(Get1099Form200Response processedFormsItem)JobResponsecreatedInvalid(Integer createdInvalid)JobResponsecreatedNoEmail(Integer createdNoEmail)JobResponsecreatedValid(Integer createdValid)JobResponsedryRun(Boolean dryRun)booleanequals(Object o)JobResponseerrorMessage(String errorMessage)static JobResponsefromJson(String jsonString)Create an instance of JobResponse given an JSON stringIntegergetCreatedInvalid()Number of new forms created because no matching form could be found (and `upsert` was true) - with errors.IntegergetCreatedNoEmail()Number of new forms created because no matching form could be found (and `upsert` was true) - valid for e-filing but missing email or email is undeliverable.IntegergetCreatedValid()Number of new forms created because no matching form could be found (and `upsert` was true) - valid for e-filing and e-delivery.BooleangetDryRun()Dry run.StringgetErrorMessage()Error message if the job failed, null otherwiseStringgetId()Unique identifier for the jobStringgetLink()Link to access the job detailsIntegergetNotFound()Number of forms skipped because no matching form or issuer could be found.List<Get1099Form200Response>getProcessedForms()List of processed forms returned when bulk-upsert processes ≤1000 records.IntegergetSkippedDuplicate()Number of forms skipped because they would have updated a record already updated once in the request.IntegergetSkippedInvalid()Number of forms skipped because they would have made a form invalid and the form is already e-filed or scheduled for e-filing.IntegergetSkippedMultipleMatches()Number of forms skipped because they matched multiple forms.JobResponse.StatusEnumgetStatus()Current status of the job (e.g., Success, Failed, InProgress)IntegergetTotalProcessed()Total number of forms processed.IntegergetTotalRows()Total number of forms in the request.StringgetType()Job type identifier.IntegergetUpdatedInvalid()Number of forms updated but invalid for e-filing.IntegergetUpdatedNoEmail()Number of forms updated and valid for e-filing but missing email or email is undeliverable.IntegergetUpdatedValid()Number of forms updated and valid for e-filing and e-delivery.BooleangetUpsert()Upsert.inthashCode()JobResponseid(String id)JobResponselink(String link)JobResponsenotFound(Integer notFound)JobResponseprocessedForms(List<Get1099Form200Response> processedForms)voidsetCreatedInvalid(Integer createdInvalid)voidsetCreatedNoEmail(Integer createdNoEmail)voidsetCreatedValid(Integer createdValid)voidsetDryRun(Boolean dryRun)voidsetErrorMessage(String errorMessage)voidsetId(String id)voidsetLink(String link)voidsetNotFound(Integer notFound)voidsetProcessedForms(List<Get1099Form200Response> processedForms)voidsetSkippedDuplicate(Integer skippedDuplicate)voidsetSkippedInvalid(Integer skippedInvalid)voidsetSkippedMultipleMatches(Integer skippedMultipleMatches)voidsetStatus(JobResponse.StatusEnum status)voidsetTotalProcessed(Integer totalProcessed)voidsetTotalRows(Integer totalRows)voidsetType(String type)voidsetUpdatedInvalid(Integer updatedInvalid)voidsetUpdatedNoEmail(Integer updatedNoEmail)voidsetUpdatedValid(Integer updatedValid)voidsetUpsert(Boolean upsert)JobResponseskippedDuplicate(Integer skippedDuplicate)JobResponseskippedInvalid(Integer skippedInvalid)JobResponseskippedMultipleMatches(Integer skippedMultipleMatches)JobResponsestatus(JobResponse.StatusEnum status)StringtoJson()Convert an instance of JobResponse to an JSON stringStringtoString()JobResponsetotalProcessed(Integer totalProcessed)JobResponsetotalRows(Integer totalRows)JobResponsetype(String type)JobResponseupdatedInvalid(Integer updatedInvalid)JobResponseupdatedNoEmail(Integer updatedNoEmail)JobResponseupdatedValid(Integer updatedValid)JobResponseupsert(Boolean upsert)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR_MESSAGE
public static final String SERIALIZED_NAME_ERROR_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTAL_PROCESSED
public static final String SERIALIZED_NAME_TOTAL_PROCESSED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOTAL_ROWS
public static final String SERIALIZED_NAME_TOTAL_ROWS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_VALID
public static final String SERIALIZED_NAME_UPDATED_VALID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_NO_EMAIL
public static final String SERIALIZED_NAME_UPDATED_NO_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_INVALID
public static final String SERIALIZED_NAME_UPDATED_INVALID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SKIPPED_DUPLICATE
public static final String SERIALIZED_NAME_SKIPPED_DUPLICATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SKIPPED_INVALID
public static final String SERIALIZED_NAME_SKIPPED_INVALID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SKIPPED_MULTIPLE_MATCHES
public static final String SERIALIZED_NAME_SKIPPED_MULTIPLE_MATCHES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NOT_FOUND
public static final String SERIALIZED_NAME_NOT_FOUND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_INVALID
public static final String SERIALIZED_NAME_CREATED_INVALID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_NO_EMAIL
public static final String SERIALIZED_NAME_CREATED_NO_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_VALID
public static final String SERIALIZED_NAME_CREATED_VALID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DRY_RUN
public static final String SERIALIZED_NAME_DRY_RUN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPSERT
public static final String SERIALIZED_NAME_UPSERT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINK
public static final String SERIALIZED_NAME_LINK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROCESSED_FORMS
public static final String SERIALIZED_NAME_PROCESSED_FORMS
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public JobResponse id(String id)
-
setId
public void setId(String id)
-
type
public JobResponse type(String type)
-
getType
@Nullable public String getType()
Job type identifier. Will always be \"update_job\" for bulk upsert operations- Returns:
- type
-
setType
public void setType(String type)
-
status
public JobResponse status(JobResponse.StatusEnum status)
-
getStatus
@Nullable public JobResponse.StatusEnum getStatus()
Current status of the job (e.g., Success, Failed, InProgress)- Returns:
- status
-
setStatus
public void setStatus(JobResponse.StatusEnum status)
-
errorMessage
public JobResponse errorMessage(String errorMessage)
-
getErrorMessage
@Nullable public String getErrorMessage()
Error message if the job failed, null otherwise- Returns:
- errorMessage
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
totalProcessed
public JobResponse totalProcessed(Integer totalProcessed)
-
getTotalProcessed
@Nullable public Integer getTotalProcessed()
Total number of forms processed. Value can be 0 or another value based on what the job has available- Returns:
- totalProcessed
-
setTotalProcessed
public void setTotalProcessed(Integer totalProcessed)
-
totalRows
public JobResponse totalRows(Integer totalRows)
-
getTotalRows
@Nullable public Integer getTotalRows()
Total number of forms in the request. Value can be 0 or another value based on what the job has available- Returns:
- totalRows
-
setTotalRows
public void setTotalRows(Integer totalRows)
-
updatedValid
public JobResponse updatedValid(Integer updatedValid)
-
getUpdatedValid
@Nullable public Integer getUpdatedValid()
Number of forms updated and valid for e-filing and e-delivery. Value can be 0 or another value based on what the job has available- Returns:
- updatedValid
-
setUpdatedValid
public void setUpdatedValid(Integer updatedValid)
-
updatedNoEmail
public JobResponse updatedNoEmail(Integer updatedNoEmail)
-
getUpdatedNoEmail
@Nullable public Integer getUpdatedNoEmail()
Number of forms updated and valid for e-filing but missing email or email is undeliverable. Value can be 0 or another value based on what the job has available- Returns:
- updatedNoEmail
-
setUpdatedNoEmail
public void setUpdatedNoEmail(Integer updatedNoEmail)
-
updatedInvalid
public JobResponse updatedInvalid(Integer updatedInvalid)
-
getUpdatedInvalid
@Nullable public Integer getUpdatedInvalid()
Number of forms updated but invalid for e-filing. Value can be 0 or another value based on what the job has available- Returns:
- updatedInvalid
-
setUpdatedInvalid
public void setUpdatedInvalid(Integer updatedInvalid)
-
skippedDuplicate
public JobResponse skippedDuplicate(Integer skippedDuplicate)
-
getSkippedDuplicate
@Nullable public Integer getSkippedDuplicate()
Number of forms skipped because they would have updated a record already updated once in the request. Value can be 0 or another value based on what the job has available- Returns:
- skippedDuplicate
-
setSkippedDuplicate
public void setSkippedDuplicate(Integer skippedDuplicate)
-
skippedInvalid
public JobResponse skippedInvalid(Integer skippedInvalid)
-
getSkippedInvalid
@Nullable public Integer getSkippedInvalid()
Number of forms skipped because they would have made a form invalid and the form is already e-filed or scheduled for e-filing. Value can be 0 or another value based on what the job has available- Returns:
- skippedInvalid
-
setSkippedInvalid
public void setSkippedInvalid(Integer skippedInvalid)
-
skippedMultipleMatches
public JobResponse skippedMultipleMatches(Integer skippedMultipleMatches)
-
getSkippedMultipleMatches
@Nullable public Integer getSkippedMultipleMatches()
Number of forms skipped because they matched multiple forms. Value can be 0 or another value based on what the job has available- Returns:
- skippedMultipleMatches
-
setSkippedMultipleMatches
public void setSkippedMultipleMatches(Integer skippedMultipleMatches)
-
notFound
public JobResponse notFound(Integer notFound)
-
getNotFound
@Nullable public Integer getNotFound()
Number of forms skipped because no matching form or issuer could be found. Value can be 0 or another value based on what the job has available- Returns:
- notFound
-
setNotFound
public void setNotFound(Integer notFound)
-
createdInvalid
public JobResponse createdInvalid(Integer createdInvalid)
-
getCreatedInvalid
@Nullable public Integer getCreatedInvalid()
Number of new forms created because no matching form could be found (and `upsert` was true) - with errors. Value can be 0 or another value based on what the job has available- Returns:
- createdInvalid
-
setCreatedInvalid
public void setCreatedInvalid(Integer createdInvalid)
-
createdNoEmail
public JobResponse createdNoEmail(Integer createdNoEmail)
-
getCreatedNoEmail
@Nullable public Integer getCreatedNoEmail()
Number of new forms created because no matching form could be found (and `upsert` was true) - valid for e-filing but missing email or email is undeliverable. Value can be 0 or another value based on what the job has available- Returns:
- createdNoEmail
-
setCreatedNoEmail
public void setCreatedNoEmail(Integer createdNoEmail)
-
createdValid
public JobResponse createdValid(Integer createdValid)
-
getCreatedValid
@Nullable public Integer getCreatedValid()
Number of new forms created because no matching form could be found (and `upsert` was true) - valid for e-filing and e-delivery. Value can be 0 or another value based on what the job has available- Returns:
- createdValid
-
setCreatedValid
public void setCreatedValid(Integer createdValid)
-
dryRun
public JobResponse dryRun(Boolean dryRun)
-
getDryRun
@Nullable public Boolean getDryRun()
Dry run. If `true`, this job only simulates the changes but doesn't actually persist them.- Returns:
- dryRun
-
setDryRun
public void setDryRun(Boolean dryRun)
-
upsert
public JobResponse upsert(Boolean upsert)
-
getUpsert
@Nullable public Boolean getUpsert()
Upsert. If `true`, this job will first attempt to update existing records if matches can be found. Matches are done in the following order: Form ID, Form Reference ID and tax year, Form TIN and tax year.- Returns:
- upsert
-
setUpsert
public void setUpsert(Boolean upsert)
-
link
public JobResponse link(String link)
-
setLink
public void setLink(String link)
-
processedForms
public JobResponse processedForms(List<Get1099Form200Response> processedForms)
-
addProcessedFormsItem
public JobResponse addProcessedFormsItem(Get1099Form200Response processedFormsItem)
-
getProcessedForms
@Nullable public List<Get1099Form200Response> getProcessedForms()
List of processed forms returned when bulk-upsert processes ≤1000 records. Same format as GET /1099/forms response. Only available in bulk-upsert endpoint responses.- Returns:
- processedForms
-
setProcessedForms
public void setProcessedForms(List<Get1099Form200Response> processedForms)
-
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 JobResponse
-
fromJson
public static JobResponse fromJson(String jsonString) throws IOException
Create an instance of JobResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of JobResponse
- Throws:
IOException- if the JSON string is invalid with respect to JobResponse
-
toJson
public String toJson()
Convert an instance of JobResponse to an JSON string- Returns:
- JSON string
-
-