@@ -42,35 +42,15 @@ public Cancellation(Amadeus client, String orderId) {
4242 * </p>
4343 *
4444 * <pre>
45- * amadeus.ordering.transferOrder(orderId).transfers.cancellation.post(body, params);</pre>
45+ * amadeus.ordering.transferOrder(orderId).transfers.cancellation.post(params);</pre>
4646 *
47- * @param body the parameters to send to the API as a JsonObject
4847 * @param params URL parameters
4948 * @return an API resource
5049 * @throws ResponseException when an exception occurs
5150 */
52- public TransferCancellation post (JsonObject body , Params params ) throws ResponseException {
51+ public TransferCancellation post (Params params ) throws ResponseException {
5352 String path = String .format ("/v1/ordering/transfer-orders/%s/transfers/cancellation" , orderId );
54- Response response = client .post (path , params , body );
55- return (TransferCancellation ) Resource .fromObject (response , TransferCancellation .class );
56- }
57-
58- /**
59- * <p>
60- * The Amadeus Transfer Management API allows cancel private transfers.
61- * </p>
62- *
63- * <pre>
64- * amadeus.ordering.transferOrders(orderId).transfers.cancellation.post(body, params);</pre>
65- *
66- * @param body the parameters to send to the API as a String
67- * @param params URL parameters
68- * @return an API resource
69- * @throws ResponseException when an exception occurs
70- */
71- public TransferCancellation post (String body , Params params ) throws ResponseException {
72- String path = String .format ("/v1/ordering/transfer-orders/%s/transfers/cancellation" , orderId );
73- Response response = client .post (path , params , body );
53+ Response response = client .post (path , params );
7454 return (TransferCancellation ) Resource .fromObject (response , TransferCancellation .class );
7555 }
7656
0 commit comments