File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
ordering/transfer_orders/transfers Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 66 *
77 * ```js
88 * let amadeus = new Amadeus();
9- * amadeus.ordering.transferOrder('XXX').transfers.cancellation.post({} , '12345');;
9+ * amadeus.ordering.transferOrder('XXX').transfers.cancellation.post(JSON.stringify({}) , '12345');;
1010 * ```
1111 *
1212 * @param {Client } client
@@ -24,7 +24,7 @@ class Cancellation {
2424 * To cancel a transfer order with ID 'XXX' and confirmation number '12345'
2525 *
2626 * ```js
27- * amadeus.ordering.transferOrder('XXX').transfers.cancellation.post({} , '12345');;
27+ * amadeus.ordering.transferOrder('XXX').transfers.cancellation.post(JSON.stringify({}) , '12345');;
2828 * ```
2929 */
3030 post ( body , confirmNbr ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class FlightAvailabilities {
2727 * ```
2828 */
2929 post ( params = { } ) {
30- return this . client . post ( '/v1/shopping/availability/flight-availabilities' , JSON . stringify ( params ) ) ;
30+ return this . client . post ( '/v1/shopping/availability/flight-availabilities' , params ) ;
3131 }
3232}
3333
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class FlightOffersSearch {
5252 * To do a customized search with given options.
5353 *
5454 * ```js
55- * amadeus.shopping.flightOffersSearch.post ({
55+ * amadeus.shopping.flightOffersSearch.post (JSON.stringify( {
5656 "currencyCode": "USD",
5757 "originDestinations": [
5858 {
@@ -114,11 +114,11 @@ class FlightOffersSearch {
114114 }
115115 }
116116 }
117- })
117+ }))
118118 * ```
119119 */
120120 post ( params = { } ) {
121- return this . client . post ( '/v2/shopping/flight-offers' , params ) ;
121+ return this . client . post ( '/v2/shopping/flight-offers' , params ) ;
122122 }
123123}
124124
Original file line number Diff line number Diff line change @@ -51,9 +51,9 @@ class Seatmaps {
5151 * departureDate: '2020-08-01'
5252 * }).then(function(response){
5353 * return amadeus.shopping.flightOffers.seatmaps.post(
54- * {
54+ * JSON.stringify( {
5555 * 'data': response.data
56- * }
56+ * })
5757 * );
5858 * });
5959 * ```
You can’t perform that action at this time.
0 commit comments