Skip to content

Commit 316873a

Browse files
author
MinjiK
committed
fallback2
1 parent 96bc0ee commit 316873a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/amadeus/namespaces/ordering/transfer_orders/transfers/cancellation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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) {

src/amadeus/namespaces/shopping/availability/flight_availabilities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/amadeus/namespaces/shopping/flight_offers_search.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/amadeus/namespaces/shopping/seatmaps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
* ```

0 commit comments

Comments
 (0)