@@ -326,43 +326,4 @@ public static BatchTransfer update(String id, String apiKey, Map<String, Object>
326326 APIConnectionException , APIException , ChannelException , RateLimitException {
327327 return request (RequestMethod .PUT , instanceURL (BatchTransfer .class , id ), apiKey , params , BatchTransfer .class );
328328 }
329-
330- /**
331- * 撤销/取消 BatchTransfer
332- * @param id batch_transfer ID
333- * @return BatchTransfer
334- * @throws AuthenticationException
335- * @throws InvalidRequestException
336- * @throws APIConnectionException
337- * @throws APIException
338- * @throws ChannelException
339- */
340- public static BatchTransfer cancel (String id )
341- throws AuthenticationException , InvalidRequestException ,
342- APIConnectionException , APIException , ChannelException , RateLimitException {
343- Map <String , Object > params = new HashMap <String , Object >();
344- params .put ("status" , "canceled" );
345- return update (id , params );
346- }
347-
348- /**
349- * 撤销/取消 BatchTransfer
350- *
351- * @param id
352- * @param apiKey Ping++ Apikey
353- * @return BatchTransfer
354- * @throws AuthenticationException
355- * @throws InvalidRequestException
356- * @throws APIConnectionException
357- * @throws APIException
358- * @throws ChannelException
359- * @throws RateLimitException
360- */
361- public static BatchTransfer cancel (String id , String apiKey )
362- throws AuthenticationException , InvalidRequestException ,
363- APIConnectionException , APIException , ChannelException , RateLimitException {
364- Map <String , Object > params = new HashMap <String , Object >();
365- params .put ("status" , "canceled" );
366- return update (id , apiKey , params );
367- }
368329}
0 commit comments