Package com.chargehound.resources
Class Disputes
java.lang.Object
com.chargehound.resources.Disputes
public class Disputes
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Disputes(Chargehound chargehound) -
Method Summary
Modifier and Type Method Description Disputeaccept(java.lang.String id)Accepting a dispute.Disputecreate(Dispute.CreateParams create)Create a dispute This endpoint will return a single dispute.DisputesListlist()Retrieve a list of disputes.DisputesListlist(DisputesList.Params params)Retrieve a list of disputes.Dispute.Responseresponse(java.lang.String id)Retrieve the response for a dispute once it is available.Disputeretrieve(java.lang.String id)Retrieve a dispute.Disputesubmit(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.Disputesubmit(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.Disputeupdate(java.lang.String id, Dispute.UpdateParams update)Updating a dispute You can update the template and the fields on a dispute.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Disputes
-
-
Method Details
-
retrieve
Retrieve a dispute. This endpoint will return a single dispute.- Parameters:
id- A dispute id- Returns:
- Dispute
- Throws:
ChargehoundException- Exception on failed API request
-
response
Retrieve the response for a dispute once it is available.- Parameters:
id- A dispute id- Returns:
- Dispute
- Throws:
ChargehoundException- Exception on failed API request
-
list
Retrieve a list of disputes.- Returns:
- DisputesList
- Throws:
ChargehoundException- Exception on failed API request
-
list
Retrieve a list of disputes. This endpoint will list all the disputes that we have synced. By default the disputes will be ordered by `created` with the most recent dispute first. `has_more` will be `true` if more results are available.- Parameters:
params- Query parameters for the list of disputes.- Returns:
- DisputesList
- Throws:
ChargehoundException- Exception on failed API request
-
accept
Accepting a dispute. Accept a dispute if you do not want to submit a response.- Parameters:
id- A dispute id- Returns:
- Dispute
- Throws:
ChargehoundException- Exception on failed API request
-
update
public Dispute update(java.lang.String id, Dispute.UpdateParams update) throws ChargehoundExceptionUpdating a dispute You can update the template and the fields on a dispute.- Parameters:
id- A dispute idupdate- dispute update object- Returns:
- Dispute
- Throws:
ChargehoundException- Exception on failed API request
-
submit
public Dispute submit(java.lang.String id, Dispute.UpdateParams update) throws ChargehoundExceptionSubmitting a dispute You will want to submit the dispute through Chargehound after you recieve a webhook notification of a new dispute. With one `POST` request you can update a dispute with the evidence fields and submit the response. The response will have a `201` status if the submit was successful. The dispute will also be in the submitted state.- Parameters:
id- A dispute idupdate- A dispute update object- Returns:
- Dispute
- Throws:
ChargehoundException- Exception on failed API request
-
submit
Submitting a dispute You will want to submit the dispute through Chargehound after you recieve a webhook notification of a new dispute. With one `POST` request you can update a dispute with the evidence fields and submit the response. The response will have a `201` status if the submit was successful. The dispute will also be in the submitted state.- Parameters:
id- A dispute id- Returns:
- Dispute
- Throws:
ChargehoundException- Exception on failed API request
-
create
Create a dispute This endpoint will return a single dispute.- Parameters:
create- A dispute create object- Returns:
- Dispute
- Throws:
ChargehoundException- Exception on failed API request
-