7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/hotel_beds/hotel_basket_add/envelope.rb', line 7
def attributes
{
Language: language,
Service: {
:"@xsi:type" => "ServiceHotel",
:"@availToken" => service.availability_token,
:ContractList => { Contract: {
Name: service.contract_name,
IncomingOffice: { :@code => service.contract_incoming_office_code }
} },
:DateFrom => { :@date => service.check_in_date.strftime("%Y%m%d") },
:DateTo => { :@date => service.check_out_date.strftime("%Y%m%d") },
:HotelInfo => {
Code: service.hotel_code,
Destination: {
:@code => service.destination_code,
:@type => "SIMPLE"
}
},
:AvailableRoom => available_rooms
}
}
end
|