Class RedactionJobService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionYou can cancel a redaction job when it’s in one of these statuses:ready
,failed
.cancel
(String job, RequestOptions options) You can cancel a redaction job when it’s in one of these statuses:ready
,failed
.cancel
(String job, RedactionJobCancelParams params) You can cancel a redaction job when it’s in one of these statuses:ready
,failed
.cancel
(String job, RedactionJobCancelParams params, RequestOptions options) You can cancel a redaction job when it’s in one of these statuses:ready
,failed
.create
(RedactionJobCreateParams params) Creates a redaction job.create
(RedactionJobCreateParams params, RequestOptions options) Creates a redaction job.list()
Returns a list of redaction jobs.list
(RequestOptions options) Returns a list of redaction jobs.list
(RedactionJobListParams params) Returns a list of redaction jobs.list
(RedactionJobListParams params, RequestOptions options) Returns a list of redaction jobs.Retrieves the details of a previously created redaction job.retrieve
(String job, RequestOptions options) Retrieves the details of a previously created redaction job.retrieve
(String job, RedactionJobRetrieveParams params) Retrieves the details of a previously created redaction job.retrieve
(String job, RedactionJobRetrieveParams params, RequestOptions options) Retrieves the details of a previously created redaction job.Run a redaction job in aready
status.run
(String job, RequestOptions options) Run a redaction job in aready
status.run
(String job, RedactionJobRunParams params) Run a redaction job in aready
status.run
(String job, RedactionJobRunParams params, RequestOptions options) Run a redaction job in aready
status.Updates the properties of a redaction job without running or canceling the job.update
(String job, RequestOptions options) Updates the properties of a redaction job without running or canceling the job.update
(String job, RedactionJobUpdateParams params) Updates the properties of a redaction job without running or canceling the job.update
(String job, RedactionJobUpdateParams params, RequestOptions options) Updates the properties of a redaction job without running or canceling the job.Validate a redaction job when it is in afailed
status.validate
(String job, RequestOptions options) Validate a redaction job when it is in afailed
status.validate
(String job, RedactionJobValidateParams params) Validate a redaction job when it is in afailed
status.validate
(String job, RedactionJobValidateParams params, RequestOptions options) Validate a redaction job when it is in afailed
status.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
RedactionJobService
-
-
Method Details
-
list
Returns a list of redaction jobs.- Throws:
StripeException
-
list
Returns a list of redaction jobs.- Throws:
StripeException
-
list
Returns a list of redaction jobs.- Throws:
StripeException
-
list
public StripeCollection<RedactionJob> list(RedactionJobListParams params, RequestOptions options) throws StripeException Returns a list of redaction jobs.- Throws:
StripeException
-
create
Creates a redaction job. When a job is created, it will start to validate.- Throws:
StripeException
-
create
public RedactionJob create(RedactionJobCreateParams params, RequestOptions options) throws StripeException Creates a redaction job. When a job is created, it will start to validate.- Throws:
StripeException
-
retrieve
Retrieves the details of a previously created redaction job.- Throws:
StripeException
-
retrieve
Retrieves the details of a previously created redaction job.- Throws:
StripeException
-
retrieve
Retrieves the details of a previously created redaction job.- Throws:
StripeException
-
retrieve
public RedactionJob retrieve(String job, RedactionJobRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a previously created redaction job.- Throws:
StripeException
-
update
Updates the properties of a redaction job without running or canceling the job.If the job to update is in a
failed
status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.- Throws:
StripeException
-
update
Updates the properties of a redaction job without running or canceling the job.If the job to update is in a
failed
status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.- Throws:
StripeException
-
update
Updates the properties of a redaction job without running or canceling the job.If the job to update is in a
failed
status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.- Throws:
StripeException
-
update
public RedactionJob update(String job, RedactionJobUpdateParams params, RequestOptions options) throws StripeException Updates the properties of a redaction job without running or canceling the job.If the job to update is in a
failed
status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.- Throws:
StripeException
-
cancel
You can cancel a redaction job when it’s in one of these statuses:ready
,failed
.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
cancel
You can cancel a redaction job when it’s in one of these statuses:ready
,failed
.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
cancel
You can cancel a redaction job when it’s in one of these statuses:ready
,failed
.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
cancel
public RedactionJob cancel(String job, RedactionJobCancelParams params, RequestOptions options) throws StripeException You can cancel a redaction job when it’s in one of these statuses:ready
,failed
.Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
- Throws:
StripeException
-
run
Run a redaction job in aready
status.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting
. Once all of the objects are redacted, the status will becomesucceeded
. If the job’svalidation_behavior
is set tofix
, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in aready
status.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting
. Once all of the objects are redacted, the status will becomesucceeded
. If the job’svalidation_behavior
is set tofix
, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
Run a redaction job in aready
status.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting
. Once all of the objects are redacted, the status will becomesucceeded
. If the job’svalidation_behavior
is set tofix
, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
run
public RedactionJob run(String job, RedactionJobRunParams params, RequestOptions options) throws StripeException Run a redaction job in aready
status.When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
The status of the job will move to
redacting
. Once all of the objects are redacted, the status will becomesucceeded
. If the job’svalidation_behavior
is set tofix
, the automatic fixes will be applied to objects at this step.- Throws:
StripeException
-
validate
Validate a redaction job when it is in afailed
status.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavior
is changed.The status of the job will move to
validating
. Once all of the objects are validated, the status of the job will becomeready
. If there are any validation errors preventing the job from running, the status will becomefailed
.- Throws:
StripeException
-
validate
Validate a redaction job when it is in afailed
status.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavior
is changed.The status of the job will move to
validating
. Once all of the objects are validated, the status of the job will becomeready
. If there are any validation errors preventing the job from running, the status will becomefailed
.- Throws:
StripeException
-
validate
Validate a redaction job when it is in afailed
status.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavior
is changed.The status of the job will move to
validating
. Once all of the objects are validated, the status of the job will becomeready
. If there are any validation errors preventing the job from running, the status will becomefailed
.- Throws:
StripeException
-
validate
public RedactionJob validate(String job, RedactionJobValidateParams params, RequestOptions options) throws StripeException Validate a redaction job when it is in afailed
status.When a job is created, it automatically begins to validate on the configured objects’ eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job’s
validation_behavior
is changed.The status of the job will move to
validating
. Once all of the objects are validated, the status of the job will becomeready
. If there are any validation errors preventing the job from running, the status will becomefailed
.- Throws:
StripeException
-
validationErrors
-