Skip to content

Commit 96bc0ee

Browse files
author
MinjiK
committed
fallback json.stringify
1 parent 8bd94af commit 96bc0ee

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/amadeus/namespaces/booking/flight_orders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class FlightOrders {
3333
* ```
3434
*/
3535
post(params = {}) {
36-
return this.client.post('/v1/booking/flight-orders', JSON.stringify(params));
36+
return this.client.post('/v1/booking/flight-orders', params);
3737
}
3838
}
3939

src/amadeus/namespaces/ordering/transfer_orders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TransferOrders {
2929
* ```
3030
*/
3131
post(body, offerId) {
32-
return this.client.post(`/v1/ordering/transfer-orders?offerId=${offerId}`, JSON.stringify(body));
32+
return this.client.post(`/v1/ordering/transfer-orders?offerId=${offerId}`, body);
3333
}
3434
}
3535

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Cancellation {
2929
*/
3030
post(body, confirmNbr) {
3131
return this.client.post(
32-
`/v1/ordering/transfer-orders/${this.orderId}/transfers/cancellation?confirmNbr=${confirmNbr}`, JSON.stringify(body));
32+
`/v1/ordering/transfer-orders/${this.orderId}/transfers/cancellation?confirmNbr=${confirmNbr}`, body);
3333
}
3434
}
3535

src/amadeus/namespaces/shopping/flight_offers/upselling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Upselling {
2727
* ```
2828
*/
2929
post(params = {}) {
30-
return this.client.post('/v1/shopping/flight-offers/upselling', JSON.stringify(params));
30+
return this.client.post('/v1/shopping/flight-offers/upselling', params);
3131
}
3232
}
3333

src/amadeus/namespaces/shopping/flight_offers_search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class FlightOffersSearch {
118118
* ```
119119
*/
120120
post(params = {}) {
121-
return this.client.post('/v2/shopping/flight-offers',JSON.stringify(params));
121+
return this.client.post('/v2/shopping/flight-offers',params);
122122
}
123123
}
124124

src/amadeus/namespaces/shopping/seatmaps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Seatmaps {
5959
* ```
6060
*/
6161
post(params = {}) {
62-
return this.client.post('/v1/shopping/seatmaps', JSON.stringify(params));
62+
return this.client.post('/v1/shopping/seatmaps', params);
6363
}
6464

6565
}

src/amadeus/namespaces/shopping/transfer_offers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TransferOffers {
3131
* ```
3232
*/
3333
post(params = {}) {
34-
return this.client.post('/v1/shopping/transfer-offers', JSON.stringify(params));
34+
return this.client.post('/v1/shopping/transfer-offers', params);
3535
}
3636
}
3737

src/amadeus/namespaces/travel/trip_parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TripParser {
2929
* ```
3030
*/
3131
post(params = {}) {
32-
return this.client.post('/v3/travel/trip-parser', JSON.stringify(params));
32+
return this.client.post('/v3/travel/trip-parser', params);
3333
}
3434
/**
3535
* Helper method to convert file contents in UTF-8 encoded string

0 commit comments

Comments
 (0)