This repository was archived by the owner on Apr 29, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-42
lines changed
Expand file tree Collapse file tree 3 files changed +14
-42
lines changed Original file line number Diff line number Diff line change @@ -78,22 +78,6 @@ function check(requestBody) {
7878 } )
7979 }
8080
81- for ( let i = 0 ; i < requestBody . order . hotelReservations . length ; i ++ ) {
82- let hotelReservation = requestBody . order . hotelReservations [ i ] ;
83- csOrder . HotelReservations . push ( {
84- HotelReservation : {
85- Hotel : hotelReservation . hotelName ,
86- City : hotelReservation . city ,
87- State : hotelReservation . state ,
88- Country : hotelReservation . country ,
89- ReservationDate : hotelReservation . reservationDate ,
90- ReservationExpirationDate : hotelReservation . reservationExpirationDate ,
91- CheckInDate : hotelReservation . checkInDate ,
92- CheckOutDate : hotelReservation . checkOutDate
93- }
94- } )
95- }
96-
9781 return request ( {
9882 method : "POST" ,
9983 uri : `${ process . env . CLEAR_SALE_API_URL } /SendOrders` ,
Original file line number Diff line number Diff line change @@ -154,20 +154,20 @@ module.exports = {
154154 // }
155155 // }
156156 ] ,
157- HotelReservations : [
158- // {
159- // HotelReservation: {
160- // Hotel: null,
161- // City: null,
162- // State: null,
163- // Country: null,
164- // ReservationDate: null,
165- // ReservationExpirationDate: null,
166- // CheckInDate: null,
167- // CheckOutDate: null
168- // }
169- // }
170- ]
157+ // HotelReservations: [
158+ // // {
159+ // // HotelReservation: {
160+ // // Hotel: null,
161+ // // City: null,
162+ // // State: null,
163+ // // Country: null,
164+ // // ReservationDate: null,
165+ // // ReservationExpirationDate: null,
166+ // // CheckInDate: null,
167+ // // CheckOutDate: null
168+ // // }
169+ // // }
170+ // ]
171171 }
172172 }
173173 }
Original file line number Diff line number Diff line change @@ -27,18 +27,6 @@ module.exports = {
2727 arrivalDate : "2017-01-16T00:40:00"
2828 }
2929 ] ,
30- hotelReservations : [
31- {
32- hotelName : "Haymarket Hotel" ,
33- city : "London" ,
34- state : "London" ,
35- country : "England" ,
36- reservationDate : "2017-01-16T22:40:00" ,
37- reservationExpirationDate : "2017-01-17T21:40:00" ,
38- checkInDate : "2017-01-16T22:40:00" ,
39- checkOutDate : "2017-01-18T22:40:00"
40- }
41- ] ,
4230 Customer : {
4331 Name : "Comprador Teste" ,
4432 Phones : [
You can’t perform that action at this time.
0 commit comments