public class Disputes
extends java.lang.Object
| Constructor and Description |
|---|
Disputes(Chargehound chargehound) |
| Modifier and Type | Method and Description |
|---|---|
Dispute |
accept(java.lang.String id)
Accepting a dispute.
|
Dispute |
create(Dispute.CreateParams create)
Create a dispute
This endpoint will return a single dispute.
|
DisputesList |
list()
Retrieve a list of disputes.
|
DisputesList |
list(DisputesList.Params params)
Retrieve a list of disputes.
|
Dispute.Response |
response(java.lang.String id)
Retrieve the response for a dispute once it is available.
|
Dispute |
retrieve(java.lang.String id)
Retrieve a dispute.
|
Dispute |
submit(java.lang.String id)
Submitting a dispute
You will want to submit the dispute through Chargehound after
you recieve a webhook notification of a new dispute.
|
Dispute |
submit(java.lang.String id,
Dispute.UpdateParams update)
Submitting a dispute
You will want to submit the dispute through Chargehound after you recieve
a webhook notification of a new dispute.
|
Dispute |
update(java.lang.String id,
Dispute.UpdateParams update)
Updating a dispute
You can update the template and the fields on a dispute.
|
public Disputes(Chargehound chargehound)
public Dispute retrieve(java.lang.String id) throws ChargehoundException
id - A dispute idChargehoundException - Exception on failed API requestpublic Dispute.Response response(java.lang.String id) throws ChargehoundException
id - A dispute idChargehoundException - Exception on failed API requestpublic DisputesList list() throws ChargehoundException
ChargehoundException - Exception on failed API requestpublic DisputesList list(DisputesList.Params params) throws ChargehoundException
params - Query parameters for the list of disputes.ChargehoundException - Exception on failed API requestpublic Dispute accept(java.lang.String id) throws ChargehoundException
id - A dispute idChargehoundException - Exception on failed API requestpublic Dispute update(java.lang.String id, Dispute.UpdateParams update) throws ChargehoundException
id - A dispute idupdate - dispute update objectChargehoundException - Exception on failed API requestpublic Dispute submit(java.lang.String id, Dispute.UpdateParams update) throws ChargehoundException
id - A dispute idupdate - A dispute update objectChargehoundException - Exception on failed API requestpublic Dispute submit(java.lang.String id) throws ChargehoundException
id - A dispute idChargehoundException - Exception on failed API requestpublic Dispute create(Dispute.CreateParams create) throws ChargehoundException
create - A dispute create objectChargehoundException - Exception on failed API request