public interface DisputesApi
| Modifier and Type | Method and Description |
|---|---|
AcceptDisputeResponse |
acceptDispute(String disputeId)
Accepts the loss on a dispute.
|
CompletableFuture<AcceptDisputeResponse> |
acceptDisputeAsync(String disputeId)
Accepts the loss on a dispute.
|
CreateDisputeEvidenceFileResponse |
createDisputeEvidenceFile(String disputeId,
CreateDisputeEvidenceFileRequest request,
FileWrapper imageFile)
Uploads a file to use as evidence in a dispute challenge.
|
CompletableFuture<CreateDisputeEvidenceFileResponse> |
createDisputeEvidenceFileAsync(String disputeId,
CreateDisputeEvidenceFileRequest request,
FileWrapper imageFile)
Uploads a file to use as evidence in a dispute challenge.
|
CreateDisputeEvidenceTextResponse |
createDisputeEvidenceText(String disputeId,
CreateDisputeEvidenceTextRequest body)
Uploads text to use as evidence for a dispute challenge.
|
CompletableFuture<CreateDisputeEvidenceTextResponse> |
createDisputeEvidenceTextAsync(String disputeId,
CreateDisputeEvidenceTextRequest body)
Uploads text to use as evidence for a dispute challenge.
|
DeleteDisputeEvidenceResponse |
deleteDisputeEvidence(String disputeId,
String evidenceId)
Removes specified evidence from a dispute.
|
CompletableFuture<DeleteDisputeEvidenceResponse> |
deleteDisputeEvidenceAsync(String disputeId,
String evidenceId)
Removes specified evidence from a dispute.
|
ListDisputeEvidenceResponse |
listDisputeEvidence(String disputeId,
String cursor)
Returns a list of evidence associated with a dispute.
|
CompletableFuture<ListDisputeEvidenceResponse> |
listDisputeEvidenceAsync(String disputeId,
String cursor)
Returns a list of evidence associated with a dispute.
|
ListDisputesResponse |
listDisputes(String cursor,
String states,
String locationId)
Returns a list of disputes associated with a particular account.
|
CompletableFuture<ListDisputesResponse> |
listDisputesAsync(String cursor,
String states,
String locationId)
Returns a list of disputes associated with a particular account.
|
RetrieveDisputeResponse |
retrieveDispute(String disputeId)
Returns details about a specific dispute.
|
CompletableFuture<RetrieveDisputeResponse> |
retrieveDisputeAsync(String disputeId)
Returns details about a specific dispute.
|
RetrieveDisputeEvidenceResponse |
retrieveDisputeEvidence(String disputeId,
String evidenceId)
Returns the metadata for the evidence specified in the request URL path.
|
CompletableFuture<RetrieveDisputeEvidenceResponse> |
retrieveDisputeEvidenceAsync(String disputeId,
String evidenceId)
Returns the metadata for the evidence specified in the request URL path.
|
SubmitEvidenceResponse |
submitEvidence(String disputeId)
Submits evidence to the cardholder's bank.
|
CompletableFuture<SubmitEvidenceResponse> |
submitEvidenceAsync(String disputeId)
Submits evidence to the cardholder's bank.
|
ListDisputesResponse listDisputes(String cursor, String states, String locationId) throws ApiException, IOException
cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).states - Optional parameter: The dispute states used to filter the result. If not
specified, the endpoint returns all disputes.locationId - Optional parameter: The ID of the location for which to return a list of
disputes. If not specified, the endpoint returns disputes associated with all
locations.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListDisputesResponse> listDisputesAsync(String cursor, String states, String locationId)
cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).states - Optional parameter: The dispute states used to filter the result. If not
specified, the endpoint returns all disputes.locationId - Optional parameter: The ID of the location for which to return a list of
disputes. If not specified, the endpoint returns disputes associated with all
locations.RetrieveDisputeResponse retrieveDispute(String disputeId) throws ApiException, IOException
disputeId - Required parameter: The ID of the dispute you want more details about.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveDisputeResponse> retrieveDisputeAsync(String disputeId)
disputeId - Required parameter: The ID of the dispute you want more details about.AcceptDisputeResponse acceptDispute(String disputeId) throws ApiException, IOException
disputeId - Required parameter: The ID of the dispute you want to accept.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<AcceptDisputeResponse> acceptDisputeAsync(String disputeId)
disputeId - Required parameter: The ID of the dispute you want to accept.ListDisputeEvidenceResponse listDisputeEvidence(String disputeId, String cursor) throws ApiException, IOException
disputeId - Required parameter: The ID of the dispute.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<ListDisputeEvidenceResponse> listDisputeEvidenceAsync(String disputeId, String cursor)
disputeId - Required parameter: The ID of the dispute.cursor - Optional parameter: A pagination cursor returned by a previous call to this
endpoint. Provide this cursor to retrieve the next set of results for the original
query. For more information, see
[Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).CreateDisputeEvidenceFileResponse createDisputeEvidenceFile(String disputeId, CreateDisputeEvidenceFileRequest request, FileWrapper imageFile) throws ApiException, IOException
disputeId - Required parameter: The ID of the dispute for which you want to upload
evidence.request - Optional parameter: Defines the parameters for a `CreateDisputeEvidenceFile`
request.imageFile - Optional parameter: Example:ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CreateDisputeEvidenceFileResponse> createDisputeEvidenceFileAsync(String disputeId, CreateDisputeEvidenceFileRequest request, FileWrapper imageFile)
disputeId - Required parameter: The ID of the dispute for which you want to upload
evidence.request - Optional parameter: Defines the parameters for a `CreateDisputeEvidenceFile`
request.imageFile - Optional parameter: Example:CreateDisputeEvidenceTextResponse createDisputeEvidenceText(String disputeId, CreateDisputeEvidenceTextRequest body) throws ApiException, IOException
disputeId - Required parameter: The ID of the dispute for which you want to upload
evidence.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<CreateDisputeEvidenceTextResponse> createDisputeEvidenceTextAsync(String disputeId, CreateDisputeEvidenceTextRequest body)
disputeId - Required parameter: The ID of the dispute for which you want to upload
evidence.body - Required parameter: An object containing the fields to POST for the request.
See the corresponding object definition for field details.DeleteDisputeEvidenceResponse deleteDisputeEvidence(String disputeId, String evidenceId) throws ApiException, IOException
disputeId - Required parameter: The ID of the dispute from which you want to remove
evidence.evidenceId - Required parameter: The ID of the evidence you want to remove.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<DeleteDisputeEvidenceResponse> deleteDisputeEvidenceAsync(String disputeId, String evidenceId)
disputeId - Required parameter: The ID of the dispute from which you want to remove
evidence.evidenceId - Required parameter: The ID of the evidence you want to remove.RetrieveDisputeEvidenceResponse retrieveDisputeEvidence(String disputeId, String evidenceId) throws ApiException, IOException
disputeId - Required parameter: The ID of the dispute from which you want to retrieve
evidence metadata.evidenceId - Required parameter: The ID of the evidence to retrieve.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<RetrieveDisputeEvidenceResponse> retrieveDisputeEvidenceAsync(String disputeId, String evidenceId)
disputeId - Required parameter: The ID of the dispute from which you want to retrieve
evidence metadata.evidenceId - Required parameter: The ID of the evidence to retrieve.SubmitEvidenceResponse submitEvidence(String disputeId) throws ApiException, IOException
disputeId - Required parameter: The ID of the dispute for which you want to submit
evidence.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.CompletableFuture<SubmitEvidenceResponse> submitEvidenceAsync(String disputeId)
disputeId - Required parameter: The ID of the dispute for which you want to submit
evidence.Copyright © 2024. All rights reserved.