@@ -293,18 +293,6 @@ public static ChargeCollection all(Map<String, Object> params)
293293 return all (params , null );
294294 }
295295
296- public Charge refund () throws AuthenticationException ,
297- InvalidRequestException , APIConnectionException ,
298- APIException {
299- return this .refund (null , null );
300- }
301-
302- public Charge refund (Map <String , Object > params )
303- throws AuthenticationException , InvalidRequestException ,
304- APIConnectionException , APIException {
305- return this .refund (params , null );
306- }
307-
308296 public static Charge create (Map <String , Object > params , String apiKey )
309297 throws AuthenticationException , InvalidRequestException ,
310298 APIConnectionException , APIException {
@@ -332,20 +320,4 @@ public static ChargeCollection all(Map<String, Object> params, String apiKey)
332320 return request (RequestMethod .GET , classURL (Charge .class ), params ,
333321 ChargeCollection .class , apiKey );
334322 }
335-
336- public Charge refund (String apiKey ) throws AuthenticationException ,
337- InvalidRequestException , APIConnectionException ,
338- APIException {
339- return this .refund ((Map <String , Object >) null , apiKey ); // full refund
340- }
341-
342- public Charge refund (Map <String , Object > params , String apiKey )
343- throws AuthenticationException , InvalidRequestException ,
344- APIConnectionException , APIException {
345- return request (
346- RequestMethod .POST ,
347- String .format ("%s/refunds" ,
348- instanceURL (Charge .class , this .getId ())), params ,
349- Charge .class , apiKey );
350- }
351323}
0 commit comments