@@ -213,6 +213,18 @@ public Charge capture() throws AuthenticationException,
213213 return this .capture (null , null );
214214 }
215215
216+ public Dispute updateDispute (Map <String , Object > params )
217+ throws AuthenticationException , InvalidRequestException ,
218+ APIConnectionException , CardException , APIException {
219+ return this .updateDispute (params , null )
220+ }
221+
222+ public Dispute closeDispute () throws AuthenticationException ,
223+ InvalidRequestException , APIConnectionException , CardException ,
224+ APIException {
225+ return this .closeDispute (null );
226+ }
227+
216228 public Charge refund (Map <String , Object > params )
217229 throws AuthenticationException , InvalidRequestException ,
218230 APIConnectionException , CardException , APIException {
@@ -292,7 +304,7 @@ public Dispute closeDispute(String apiKey)
292304 APIConnectionException , CardException , APIException {
293305 return request (
294306 RequestMethod .POST ,
295- String .format ("%s/dispute/close" , instanceURL (Charge .class , this .id )),
307+ String .format ("%s/dispute/close" , instanceURL (Charge .class , this .getId () )),
296308 null , Dispute .class , apiKey );
297309 }
298310}
0 commit comments