Package Avalara.SDK.model.A1099.V2
Class JobResult
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.JobResult
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class JobResult extends Object
JobResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJobResult.CustomTypeAdapterFactory
-
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_NOT_FOUNDstatic 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 JobResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JobResultcreatedInvalid(Integer createdInvalid)JobResultcreatedNoEmail(Integer createdNoEmail)JobResultcreatedValid(Integer createdValid)JobResultdryRun(Boolean dryRun)booleanequals(Object o)JobResulterrorMessage(String errorMessage)static JobResultfromJson(String jsonString)Create an instance of JobResult given an JSON stringIntegergetCreatedInvalid()Number of new forms created because no matching form could be found (and `upsert` was true) - with errorsIntegergetCreatedNoEmail()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 undeliverableIntegergetCreatedValid()Number of new forms created because no matching form could be found (and `upsert` was true) - valid for e-filing and e-deliveryBooleangetDryRun()Dry run.StringgetErrorMessage()Get errorMessageStringgetId()Get idIntegergetNotFound()Number of forms skipped because no matching form or issuer could be foundIntegergetSkippedDuplicate()Number of forms skipped because they would have updated a record already updated once in the requestIntegergetSkippedInvalid()Number of forms skipped because they would have made a form invalid and the form is already e-filed or scheduled for e-filingIntegergetSkippedMultipleMatches()Number of forms skipped because they matched multiple formsStringgetStatus()Status of the jobIntegergetTotalProcessed()Total number of forms processedIntegergetTotalRows()Total number of forms in the requestStringgetType()Get typeIntegergetUpdatedInvalid()Number of forms updated but invalid for e-filingIntegergetUpdatedNoEmail()Number of forms updated and valid for e-filing but missing email or email is undeliverableIntegergetUpdatedValid()Number of forms updated and valid for e-filing and e-deliveryBooleangetUpsert()Upsert.inthashCode()JobResultid(String id)JobResultnotFound(Integer notFound)voidsetCreatedInvalid(Integer createdInvalid)voidsetCreatedNoEmail(Integer createdNoEmail)voidsetCreatedValid(Integer createdValid)voidsetDryRun(Boolean dryRun)voidsetErrorMessage(String errorMessage)voidsetId(String id)voidsetNotFound(Integer notFound)voidsetSkippedDuplicate(Integer skippedDuplicate)voidsetSkippedInvalid(Integer skippedInvalid)voidsetSkippedMultipleMatches(Integer skippedMultipleMatches)voidsetStatus(String status)voidsetTotalProcessed(Integer totalProcessed)voidsetTotalRows(Integer totalRows)voidsetType(String type)voidsetUpdatedInvalid(Integer updatedInvalid)voidsetUpdatedNoEmail(Integer updatedNoEmail)voidsetUpdatedValid(Integer updatedValid)voidsetUpsert(Boolean upsert)JobResultskippedDuplicate(Integer skippedDuplicate)JobResultskippedInvalid(Integer skippedInvalid)JobResultskippedMultipleMatches(Integer skippedMultipleMatches)JobResultstatus(String status)StringtoJson()Convert an instance of JobResult to an JSON stringStringtoString()JobResulttotalProcessed(Integer totalProcessed)JobResulttotalRows(Integer totalRows)JobResulttype(String type)JobResultupdatedInvalid(Integer updatedInvalid)JobResultupdatedNoEmail(Integer updatedNoEmail)JobResultupdatedValid(Integer updatedValid)JobResultupsert(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_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_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
-
-
Method Detail
-
setId
public void setId(String id)
-
setType
public void setType(String type)
-
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)
-
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)
-
setStatus
public void setStatus(String status)
-
setErrorMessage
public void setErrorMessage(String errorMessage)
-
getTotalProcessed
@Nullable public Integer getTotalProcessed()
Total number of forms processed- Returns:
- totalProcessed
-
setTotalProcessed
public void setTotalProcessed(Integer totalProcessed)
-
getTotalRows
@Nullable public Integer getTotalRows()
Total number of forms in the request- Returns:
- totalRows
-
setTotalRows
public void setTotalRows(Integer totalRows)
-
getUpdatedValid
@Nullable public Integer getUpdatedValid()
Number of forms updated and valid for e-filing and e-delivery- Returns:
- updatedValid
-
setUpdatedValid
public void setUpdatedValid(Integer updatedValid)
-
getUpdatedNoEmail
@Nullable public Integer getUpdatedNoEmail()
Number of forms updated and valid for e-filing but missing email or email is undeliverable- Returns:
- updatedNoEmail
-
setUpdatedNoEmail
public void setUpdatedNoEmail(Integer updatedNoEmail)
-
getUpdatedInvalid
@Nullable public Integer getUpdatedInvalid()
Number of forms updated but invalid for e-filing- Returns:
- updatedInvalid
-
setUpdatedInvalid
public void setUpdatedInvalid(Integer updatedInvalid)
-
getSkippedDuplicate
@Nullable public Integer getSkippedDuplicate()
Number of forms skipped because they would have updated a record already updated once in the request- Returns:
- skippedDuplicate
-
setSkippedDuplicate
public void setSkippedDuplicate(Integer skippedDuplicate)
-
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- Returns:
- skippedInvalid
-
setSkippedInvalid
public void setSkippedInvalid(Integer skippedInvalid)
-
getSkippedMultipleMatches
@Nullable public Integer getSkippedMultipleMatches()
Number of forms skipped because they matched multiple forms- Returns:
- skippedMultipleMatches
-
setSkippedMultipleMatches
public void setSkippedMultipleMatches(Integer skippedMultipleMatches)
-
getNotFound
@Nullable public Integer getNotFound()
Number of forms skipped because no matching form or issuer could be found- Returns:
- notFound
-
setNotFound
public void setNotFound(Integer notFound)
-
getCreatedInvalid
@Nullable public Integer getCreatedInvalid()
Number of new forms created because no matching form could be found (and `upsert` was true) - with errors- Returns:
- createdInvalid
-
setCreatedInvalid
public void setCreatedInvalid(Integer createdInvalid)
-
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- Returns:
- createdNoEmail
-
setCreatedNoEmail
public void setCreatedNoEmail(Integer createdNoEmail)
-
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- Returns:
- createdValid
-
setCreatedValid
public void setCreatedValid(Integer createdValid)
-
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 JobResult
-
fromJson
public static JobResult fromJson(String jsonString) throws IOException
Create an instance of JobResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of JobResult
- Throws:
IOException- if the JSON string is invalid with respect to JobResult
-
toJson
public String toJson()
Convert an instance of JobResult to an JSON string- Returns:
- JSON string
-
-