public class DisputeGateway extends Object
Dispute objects.
This class does not need to be instantiated directly. Instead, use
BraintreeGateway.dispute() to get an instance of this class:
BraintreeGateway gateway = new BraintreeGateway(...); gateway.dispute().find(...)For more detailed information on
disputes, see https://developers.braintreepayments.com/reference/response/dispute/java| Constructor and Description |
|---|
DisputeGateway(Http http,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
Result<Dispute> |
accept(String id)
Accept a @{link Dispute}, given a dispute ID.
|
Result<DisputeEvidence> |
addFileEvidence(String disputeId,
FileEvidenceRequest fileEvidenceRequest)
Add File Evidence to a @{link Dispute}, given an ID and a @{link FileEvidenceRequest} File evidence request.
|
Result<DisputeEvidence> |
addFileEvidence(String disputeId,
String documentId)
Add File Evidence to a @{link Dispute}, given an ID and a @{link DocumentUpload} ID.
|
Result<DisputeEvidence> |
addTextEvidence(String id,
String content)
Add Text Evidence to a @{link Dispute}, given an ID and content.
|
Result<DisputeEvidence> |
addTextEvidence(String id,
TextEvidenceRequest textEvidenceRequest)
Add Text Evidence to a @{link Dispute}, given an ID and content.
|
Result<Dispute> |
finalize(String id)
Finalize a @{link Dispute}, given an ID.
|
Dispute |
find(String id)
Returns a @{link Dispute}, given an ID.
|
Result<Dispute> |
removeEvidence(String disputeId,
String evidenceId)
Remove Evidence from a @{link Dispute}, given an ID and a @{link DisputeEvidence} ID.
|
PaginatedCollection<Dispute> |
search(DisputeSearchRequest query)
Finds all
Disputes that match the query. |
public DisputeGateway(Http http, Configuration configuration)
public Result<Dispute> accept(String id)
id - the dispute id to accept.Result.NotFoundException - if a Dispute with the given ID cannot be found.public Result<DisputeEvidence> addFileEvidence(String disputeId, String documentId)
disputeId - the dispute id to add text evidence to.documentId - the document id of a previously uploaded documentResult.NotFoundException - if the Dispute ID or Document ID cannot be found.public Result<DisputeEvidence> addFileEvidence(String disputeId, FileEvidenceRequest fileEvidenceRequest)
disputeId - the dispute id to add text evidence to.fileEvidenceRequest - the file evidence request for the dispute.Result.NotFoundException - if the Dispute ID or Document ID cannot be found.public Result<DisputeEvidence> addTextEvidence(String id, TextEvidenceRequest textEvidenceRequest)
id - the dispute id to add text evidence to.textEvidenceRequest - the text evidence request for the dispute.Result.NotFoundException - if a Dispute with the given ID cannot be found.IllegalArgumentException - if the content is empty.public Result<DisputeEvidence> addTextEvidence(String id, String content)
id - the dispute id to add text evidence to.content - the content of the text evidence for the dispute.Result.NotFoundException - if a Dispute with the given ID cannot be found.IllegalArgumentException - if the content is empty.public Result<Dispute> finalize(String id)
id - the dispute id to finalize.Result.NotFoundException - if a Dispute with the given ID cannot be found.public Dispute find(String id)
id - the dispute id to find.Dispute.NotFoundException - if a Dispute with the given ID cannot be found.public Result<Dispute> removeEvidence(String disputeId, String evidenceId)
disputeId - the dispute id to remove evidence from.evidenceId - the evidence id to remove.Result.NotFoundException - if the Dispute ID or evidence ID cannot be found.public PaginatedCollection<Dispute> search(DisputeSearchRequest query)
Disputes that match the query.query - the query for what disputes to find.PaginatedCollection of Dispute.Copyright © 2013–2018. All rights reserved.