Skip to content

Commit a9051b7

Browse files
committed
added JSON.stringify to hotel orders
1 parent 2d63680 commit a9051b7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/amadeus/namespaces/booking/hotel_orders.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ class HotelOrders {
2626
*
2727
* ```js
2828
* amadeus.booking.hotelOrders.post(
29-
* JSON.stringfy({
29+
* {
3030
* 'data': {
3131
* 'type': 'hotel-order',
3232
* 'guests': [],
3333
* 'travelAgent': {},
3434
* 'roomAssociations': [],
3535
* 'payment': {}
36-
* }})
37-
*)
36+
* }
37+
* })
3838
* ```
39+
3940
*/
4041
post(params = {}) {
41-
42-
return this.client.post('/v2/booking/hotel-orders', params);
42+
return this.client.post('/v2/booking/hotel-orders', JSON.stringify(params));
4343
}
4444
}
4545

0 commit comments

Comments
 (0)