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
All Methods Instance Methods Concrete Methods 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.
-
-
-
Constructor Detail
-
Disputes
public Disputes(Chargehound chargehound)
-
-
Method Detail
-
retrieve
public Dispute retrieve(java.lang.String id) throws ChargehoundException
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
public Dispute.Response response(java.lang.String id) throws ChargehoundException
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
public DisputesList list() throws ChargehoundException
Retrieve a list of disputes.- Returns:
- DisputesList
- Throws:
ChargehoundException- Exception on failed API request
-
list
public DisputesList list(DisputesList.Params params) throws ChargehoundException
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
public Dispute accept(java.lang.String id) throws ChargehoundException
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 ChargehoundException
Updating 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 ChargehoundException
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 idupdate- A dispute update object- Returns:
- Dispute
- Throws:
ChargehoundException- Exception on failed API request
-
submit
public Dispute submit(java.lang.String id) throws ChargehoundException
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
public Dispute create(Dispute.CreateParams create) throws ChargehoundException
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
-
-