bookingstudio-ruby 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,75 @@
1
+ require 'bookingstudio_ruby/web_service/booking_service'
2
+ require 'bookingstudio_ruby/web_service/booking_service_mapping_registry'
3
+ require 'soap/rpc/driver'
4
+
5
+ module BookingstudioRuby::WebService
6
+
7
+ class IBookingServiceV1 < ::SOAP::RPC::Driver
8
+ DefaultEndpointUrl = "http://api.bookingstudio.dk/BookingService.svc"
9
+
10
+ Methods = [
11
+ [ "http://bookingstudio.dk/public/servicecontracts/2008/06/IBookingServiceV1/MakeBooking",
12
+ "makeBooking",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://bookingstudio.dk/public/servicecontracts/2008/06/", "MakeBooking"]],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://bookingstudio.dk/public/servicecontracts/2008/06/", "MakeBookingResponse"]] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal,
17
+ :faults => {} }
18
+ ],
19
+ [ "http://bookingstudio.dk/public/servicecontracts/2008/06/IBookingServiceV1/GetTermsAndConditions",
20
+ "getTermsAndConditions",
21
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://bookingstudio.dk/public/servicecontracts/2008/06/", "GetTermsAndConditions"]],
22
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://bookingstudio.dk/public/servicecontracts/2008/06/", "GetTermsAndConditionsResponse"]] ],
23
+ { :request_style => :document, :request_use => :literal,
24
+ :response_style => :document, :response_use => :literal,
25
+ :faults => {} }
26
+ ],
27
+ [ "http://bookingstudio.dk/public/servicecontracts/2008/06/IBookingServiceV1/GetItems",
28
+ "getItems",
29
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://bookingstudio.dk/public/servicecontracts/2008/06/", "GetItems"]],
30
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://bookingstudio.dk/public/servicecontracts/2008/06/", "GetItemsResponse"]] ],
31
+ { :request_style => :document, :request_use => :literal,
32
+ :response_style => :document, :response_use => :literal,
33
+ :faults => {} }
34
+ ],
35
+ [ "http://bookingstudio.dk/public/servicecontracts/2008/06/IBookingServiceV1/GetEuropaeiskeItemPrice",
36
+ "getEuropaeiskeItemPrice",
37
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://bookingstudio.dk/public/servicecontracts/2008/06/", "GetEuropaeiskeItemPrice"]],
38
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://bookingstudio.dk/public/servicecontracts/2008/06/", "GetEuropaeiskeItemPriceResponse"]] ],
39
+ { :request_style => :document, :request_use => :literal,
40
+ :response_style => :document, :response_use => :literal,
41
+ :faults => {} }
42
+ ]
43
+ ]
44
+
45
+ def initialize(endpoint_url = nil)
46
+ endpoint_url ||= DefaultEndpointUrl
47
+ super(endpoint_url, nil)
48
+ self.mapping_registry = BookingServiceMappingRegistry::EncodedRegistry
49
+ self.literal_mapping_registry = BookingServiceMappingRegistry::LiteralRegistry
50
+ init_methods
51
+ end
52
+
53
+ private
54
+
55
+ def init_methods
56
+ Methods.each do |definitions|
57
+ opt = definitions.last
58
+ if opt[:request_style] == :document
59
+ add_document_operation(*definitions)
60
+ else
61
+ add_rpc_operation(*definitions)
62
+ qname = definitions[0]
63
+ name = definitions[2]
64
+ if qname.name != name and qname.name.capitalize == name.capitalize
65
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
66
+ __send__(name, *arg)
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+
74
+
75
+ end
@@ -0,0 +1,536 @@
1
+ require 'bookingstudio_ruby/web_service/booking_service'
2
+ require 'soap/mapping'
3
+
4
+ module BookingstudioRuby::WebService
5
+
6
+ module BookingServiceMappingRegistry
7
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
8
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
9
+ NsArrays = "http://schemas.microsoft.com/2003/10/Serialization/Arrays"
10
+ NsBookingStudioPublic = "http://schemas.datacontract.org/2004/07/BookingStudio.Public"
11
+ NsC_06 = "http://bookingstudio.dk/public/datacontracts/2008/06/"
12
+ NsC_06_0 = "http://bookingstudio.dk/public/servicecontracts/2008/06/"
13
+
14
+ EncodedRegistry.register(
15
+ :class => BookingstudioRuby::WebService::BookingRequest,
16
+ :schema_type => XSD::QName.new(NsC_06, "BookingRequest"),
17
+ :schema_element => [
18
+ ["languageId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LanguageId")]],
19
+ ["bookingOptions", ["BookingstudioRuby::WebService::ArrayOfBookingOption", XSD::QName.new(NsC_06, "BookingOptions")]],
20
+ ["customer", ["BookingstudioRuby::WebService::Customer", XSD::QName.new(NsC_06, "Customer")]],
21
+ ["noteFromCustomer", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "NoteFromCustomer")]],
22
+ ["numberOfInfants", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "NumberOfInfants")]],
23
+ ["numberOfPets", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "NumberOfPets")]],
24
+ ["affiliateId", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "AffiliateId")], [0, 1]]
25
+ ]
26
+ )
27
+
28
+ EncodedRegistry.register(
29
+ :class => BookingstudioRuby::WebService::ArrayOfBookingOption,
30
+ :schema_type => XSD::QName.new(NsC_06, "ArrayOfBookingOption"),
31
+ :schema_element => [
32
+ ["bookingOption", ["BookingstudioRuby::WebService::BookingOption[]", XSD::QName.new(NsC_06, "BookingOption")], [0, nil]]
33
+ ]
34
+ )
35
+
36
+ EncodedRegistry.register(
37
+ :class => BookingstudioRuby::WebService::BookingOption,
38
+ :schema_type => XSD::QName.new(NsC_06, "BookingOption"),
39
+ :schema_element => [
40
+ ["lodgingUnitTypeId", [nil, XSD::QName.new(NsC_06, "LodgingUnitTypeId")]],
41
+ ["arrivalDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "ArrivalDate")]],
42
+ ["departureDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "DepartureDate")]],
43
+ ["boardTypeId", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "BoardTypeId")]],
44
+ ["children", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Children")]],
45
+ ["adults", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Adults")]],
46
+ ["changeDay", ["SOAP::SOAPShort", XSD::QName.new(NsC_06, "ChangeDay")]],
47
+ ["normalPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "NormalPrice")]],
48
+ ["price", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "Price")]],
49
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
50
+ ["hasDicount", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "HasDicount")]],
51
+ ["bookingVPath", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "BookingVPath")]],
52
+ ["itemBasket", ["BookingstudioRuby::WebService::ArrayOfItem", XSD::QName.new(NsC_06, "ItemBasket")]],
53
+ ["discountInternalName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "DiscountInternalName")]],
54
+ ["discountName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "DiscountName")]],
55
+ ["discountTags", ["BookingstudioRuby::WebService::ArrayOfstring", XSD::QName.new(NsC_06, "DiscountTags")]],
56
+ ["bookingVPathSalesChannel", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "BookingVPathSalesChannel")], [0, 1]]
57
+ ]
58
+ )
59
+
60
+ EncodedRegistry.register(
61
+ :class => BookingstudioRuby::WebService::ArrayOfItem,
62
+ :schema_type => XSD::QName.new(NsC_06, "ArrayOfItem"),
63
+ :schema_element => [
64
+ ["item", ["BookingstudioRuby::WebService::Item[]", XSD::QName.new(NsC_06, "Item")], [0, nil]]
65
+ ]
66
+ )
67
+
68
+ EncodedRegistry.register(
69
+ :class => BookingstudioRuby::WebService::Item,
70
+ :schema_type => XSD::QName.new(NsC_06, "Item"),
71
+ :schema_element => [
72
+ ["id", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Id")]],
73
+ ["itemNumber", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "ItemNumber")]],
74
+ ["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "UnitPrice")]],
75
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
76
+ ["showPrice", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "ShowPrice")]],
77
+ ["minQuantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "MinQuantity")]],
78
+ ["maxQuantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "MaxQuantity")]],
79
+ ["type", ["BookingstudioRuby::WebService::ItemTypes", XSD::QName.new(NsC_06, "Type")]],
80
+ ["name", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Name")]],
81
+ ["shortDescription", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "ShortDescription")]],
82
+ ["longDescription", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LongDescription")]],
83
+ ["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Quantity")]],
84
+ ["isExternalItem", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "IsExternalItem")], [0, 1]],
85
+ ["externalProviderId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "ExternalProviderId")], [0, 1]],
86
+ ["europaeiskeDetails", ["BookingstudioRuby::WebService::EuropaeiskeDetails", XSD::QName.new(NsC_06, "EuropaeiskeDetails")], [0, 1]]
87
+ ]
88
+ )
89
+
90
+ EncodedRegistry.register(
91
+ :class => BookingstudioRuby::WebService::EuropaeiskeDetails,
92
+ :schema_type => XSD::QName.new(NsC_06, "EuropaeiskeDetails"),
93
+ :schema_element => [
94
+ ["tripStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "TripStartDate")]],
95
+ ["tripEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "TripEndDate")]],
96
+ ["tripArea", ["BookingstudioRuby::WebService::TripArea", XSD::QName.new(NsC_06, "TripArea")]],
97
+ ["tripValue", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "TripValue")]],
98
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
99
+ ["persons", ["BookingstudioRuby::WebService::ArrayOfEuropaeiskePerson", XSD::QName.new(NsC_06, "Persons")]]
100
+ ]
101
+ )
102
+
103
+ EncodedRegistry.register(
104
+ :class => BookingstudioRuby::WebService::ArrayOfEuropaeiskePerson,
105
+ :schema_type => XSD::QName.new(NsC_06, "ArrayOfEuropaeiskePerson"),
106
+ :schema_element => [
107
+ ["europaeiskePerson", ["BookingstudioRuby::WebService::EuropaeiskePerson[]", XSD::QName.new(NsC_06, "EuropaeiskePerson")], [0, nil]]
108
+ ]
109
+ )
110
+
111
+ EncodedRegistry.register(
112
+ :class => BookingstudioRuby::WebService::EuropaeiskePerson,
113
+ :schema_type => XSD::QName.new(NsC_06, "EuropaeiskePerson"),
114
+ :schema_element => [
115
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "FirstName")]],
116
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LastName")]],
117
+ ["age", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Age")]]
118
+ ]
119
+ )
120
+
121
+ EncodedRegistry.register(
122
+ :class => BookingstudioRuby::WebService::Customer,
123
+ :schema_type => XSD::QName.new(NsC_06, "Customer"),
124
+ :schema_element => [
125
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "FirstName")]],
126
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LastName")]],
127
+ ["address", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Address")]],
128
+ ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PostalCode")]],
129
+ ["city", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "City")]],
130
+ ["country", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Country")]],
131
+ ["workPhone", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "WorkPhone")]],
132
+ ["privatePhone", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PrivatePhone")]],
133
+ ["privateMobile", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PrivateMobile")]],
134
+ ["email", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Email")]],
135
+ ["subscribeCatalog", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "SubscribeCatalog")]]
136
+ ]
137
+ )
138
+
139
+ EncodedRegistry.register(
140
+ :class => BookingstudioRuby::WebService::TermsAndConditions,
141
+ :schema_type => XSD::QName.new(NsC_06, "TermsAndConditions"),
142
+ :schema_element => [
143
+ ["text", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Text")]]
144
+ ]
145
+ )
146
+
147
+ EncodedRegistry.register(
148
+ :class => BookingstudioRuby::WebService::ArrayOfstring,
149
+ :schema_type => XSD::QName.new(NsArrays, "ArrayOfstring"),
150
+ :schema_element => [
151
+ ["string", "SOAP::SOAPString[]", [0, nil]]
152
+ ]
153
+ )
154
+
155
+ EncodedRegistry.register(
156
+ :class => BookingstudioRuby::WebService::ItemTypes,
157
+ :schema_type => XSD::QName.new(NsBookingStudioPublic, "ItemTypes")
158
+ )
159
+
160
+ EncodedRegistry.register(
161
+ :class => BookingstudioRuby::WebService::TripArea,
162
+ :schema_type => XSD::QName.new(NsBookingStudioPublic, "TripArea")
163
+ )
164
+
165
+ LiteralRegistry.register(
166
+ :class => BookingstudioRuby::WebService::BookingRequest,
167
+ :schema_type => XSD::QName.new(NsC_06, "BookingRequest"),
168
+ :schema_element => [
169
+ ["languageId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LanguageId")]],
170
+ ["bookingOptions", ["BookingstudioRuby::WebService::ArrayOfBookingOption", XSD::QName.new(NsC_06, "BookingOptions")]],
171
+ ["customer", ["BookingstudioRuby::WebService::Customer", XSD::QName.new(NsC_06, "Customer")]],
172
+ ["noteFromCustomer", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "NoteFromCustomer")]],
173
+ ["numberOfInfants", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "NumberOfInfants")]],
174
+ ["numberOfPets", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "NumberOfPets")]],
175
+ ["affiliateId", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "AffiliateId")], [0, 1]]
176
+ ]
177
+ )
178
+
179
+ LiteralRegistry.register(
180
+ :class => BookingstudioRuby::WebService::ArrayOfBookingOption,
181
+ :schema_type => XSD::QName.new(NsC_06, "ArrayOfBookingOption"),
182
+ :schema_element => [
183
+ ["bookingOption", ["BookingstudioRuby::WebService::BookingOption[]", XSD::QName.new(NsC_06, "BookingOption")], [0, nil]]
184
+ ]
185
+ )
186
+
187
+ LiteralRegistry.register(
188
+ :class => BookingstudioRuby::WebService::BookingOption,
189
+ :schema_type => XSD::QName.new(NsC_06, "BookingOption"),
190
+ :schema_element => [
191
+ ["lodgingUnitTypeId", [nil, XSD::QName.new(NsC_06, "LodgingUnitTypeId")]],
192
+ ["arrivalDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "ArrivalDate")]],
193
+ ["departureDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "DepartureDate")]],
194
+ ["boardTypeId", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "BoardTypeId")]],
195
+ ["children", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Children")]],
196
+ ["adults", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Adults")]],
197
+ ["changeDay", ["SOAP::SOAPShort", XSD::QName.new(NsC_06, "ChangeDay")]],
198
+ ["normalPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "NormalPrice")]],
199
+ ["price", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "Price")]],
200
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
201
+ ["hasDicount", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "HasDicount")]],
202
+ ["bookingVPath", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "BookingVPath")]],
203
+ ["itemBasket", ["BookingstudioRuby::WebService::ArrayOfItem", XSD::QName.new(NsC_06, "ItemBasket")]],
204
+ ["discountInternalName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "DiscountInternalName")]],
205
+ ["discountName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "DiscountName")]],
206
+ ["discountTags", ["BookingstudioRuby::WebService::ArrayOfstring", XSD::QName.new(NsC_06, "DiscountTags")]],
207
+ ["bookingVPathSalesChannel", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "BookingVPathSalesChannel")], [0, 1]]
208
+ ]
209
+ )
210
+
211
+ LiteralRegistry.register(
212
+ :class => BookingstudioRuby::WebService::ArrayOfItem,
213
+ :schema_type => XSD::QName.new(NsC_06, "ArrayOfItem"),
214
+ :schema_element => [
215
+ ["item", ["BookingstudioRuby::WebService::Item[]", XSD::QName.new(NsC_06, "Item")], [0, nil]]
216
+ ]
217
+ )
218
+
219
+ LiteralRegistry.register(
220
+ :class => BookingstudioRuby::WebService::Item,
221
+ :schema_type => XSD::QName.new(NsC_06, "Item"),
222
+ :schema_element => [
223
+ ["id", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Id")]],
224
+ ["itemNumber", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "ItemNumber")]],
225
+ ["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "UnitPrice")]],
226
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
227
+ ["showPrice", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "ShowPrice")]],
228
+ ["minQuantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "MinQuantity")]],
229
+ ["maxQuantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "MaxQuantity")]],
230
+ ["type", ["BookingstudioRuby::WebService::ItemTypes", XSD::QName.new(NsC_06, "Type")]],
231
+ ["name", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Name")]],
232
+ ["shortDescription", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "ShortDescription")]],
233
+ ["longDescription", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LongDescription")]],
234
+ ["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Quantity")]],
235
+ ["isExternalItem", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "IsExternalItem")], [0, 1]],
236
+ ["externalProviderId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "ExternalProviderId")], [0, 1]],
237
+ ["europaeiskeDetails", ["BookingstudioRuby::WebService::EuropaeiskeDetails", XSD::QName.new(NsC_06, "EuropaeiskeDetails")], [0, 1]]
238
+ ]
239
+ )
240
+
241
+ LiteralRegistry.register(
242
+ :class => BookingstudioRuby::WebService::EuropaeiskeDetails,
243
+ :schema_type => XSD::QName.new(NsC_06, "EuropaeiskeDetails"),
244
+ :schema_element => [
245
+ ["tripStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "TripStartDate")]],
246
+ ["tripEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "TripEndDate")]],
247
+ ["tripArea", ["BookingstudioRuby::WebService::TripArea", XSD::QName.new(NsC_06, "TripArea")]],
248
+ ["tripValue", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "TripValue")]],
249
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
250
+ ["persons", ["BookingstudioRuby::WebService::ArrayOfEuropaeiskePerson", XSD::QName.new(NsC_06, "Persons")]]
251
+ ]
252
+ )
253
+
254
+ LiteralRegistry.register(
255
+ :class => BookingstudioRuby::WebService::ArrayOfEuropaeiskePerson,
256
+ :schema_type => XSD::QName.new(NsC_06, "ArrayOfEuropaeiskePerson"),
257
+ :schema_element => [
258
+ ["europaeiskePerson", ["BookingstudioRuby::WebService::EuropaeiskePerson[]", XSD::QName.new(NsC_06, "EuropaeiskePerson")], [0, nil]]
259
+ ]
260
+ )
261
+
262
+ LiteralRegistry.register(
263
+ :class => BookingstudioRuby::WebService::EuropaeiskePerson,
264
+ :schema_type => XSD::QName.new(NsC_06, "EuropaeiskePerson"),
265
+ :schema_element => [
266
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "FirstName")]],
267
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LastName")]],
268
+ ["age", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Age")]]
269
+ ]
270
+ )
271
+
272
+ LiteralRegistry.register(
273
+ :class => BookingstudioRuby::WebService::Customer,
274
+ :schema_type => XSD::QName.new(NsC_06, "Customer"),
275
+ :schema_element => [
276
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "FirstName")]],
277
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LastName")]],
278
+ ["address", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Address")]],
279
+ ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PostalCode")]],
280
+ ["city", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "City")]],
281
+ ["country", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Country")]],
282
+ ["workPhone", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "WorkPhone")]],
283
+ ["privatePhone", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PrivatePhone")]],
284
+ ["privateMobile", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PrivateMobile")]],
285
+ ["email", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Email")]],
286
+ ["subscribeCatalog", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "SubscribeCatalog")]]
287
+ ]
288
+ )
289
+
290
+ LiteralRegistry.register(
291
+ :class => BookingstudioRuby::WebService::TermsAndConditions,
292
+ :schema_type => XSD::QName.new(NsC_06, "TermsAndConditions"),
293
+ :schema_element => [
294
+ ["text", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Text")]]
295
+ ]
296
+ )
297
+
298
+ LiteralRegistry.register(
299
+ :class => BookingstudioRuby::WebService::ArrayOfstring,
300
+ :schema_type => XSD::QName.new(NsArrays, "ArrayOfstring"),
301
+ :schema_element => [
302
+ ["string", "SOAP::SOAPString[]", [0, nil]]
303
+ ]
304
+ )
305
+
306
+ LiteralRegistry.register(
307
+ :class => BookingstudioRuby::WebService::ItemTypes,
308
+ :schema_type => XSD::QName.new(NsBookingStudioPublic, "ItemTypes")
309
+ )
310
+
311
+ LiteralRegistry.register(
312
+ :class => BookingstudioRuby::WebService::TripArea,
313
+ :schema_type => XSD::QName.new(NsBookingStudioPublic, "TripArea")
314
+ )
315
+
316
+ LiteralRegistry.register(
317
+ :class => BookingstudioRuby::WebService::MakeBooking,
318
+ :schema_name => XSD::QName.new(NsC_06_0, "MakeBooking"),
319
+ :schema_element => [
320
+ ["token", nil, [0, 1]],
321
+ ["bookingRequest", "BookingstudioRuby::WebService::BookingRequest", [0, 1]]
322
+ ]
323
+ )
324
+
325
+ LiteralRegistry.register(
326
+ :class => BookingstudioRuby::WebService::MakeBookingResponse,
327
+ :schema_name => XSD::QName.new(NsC_06_0, "MakeBookingResponse"),
328
+ :schema_element => [
329
+ ["makeBookingResult", ["SOAP::SOAPInt", XSD::QName.new(NsC_06_0, "MakeBookingResult")], [0, 1]]
330
+ ]
331
+ )
332
+
333
+ LiteralRegistry.register(
334
+ :class => BookingstudioRuby::WebService::GetTermsAndConditions,
335
+ :schema_name => XSD::QName.new(NsC_06_0, "GetTermsAndConditions"),
336
+ :schema_element => [
337
+ ["token", nil, [0, 1]],
338
+ ["bookingRequest", "BookingstudioRuby::WebService::BookingRequest", [0, 1]]
339
+ ]
340
+ )
341
+
342
+ LiteralRegistry.register(
343
+ :class => BookingstudioRuby::WebService::GetTermsAndConditionsResponse,
344
+ :schema_name => XSD::QName.new(NsC_06_0, "GetTermsAndConditionsResponse"),
345
+ :schema_element => [
346
+ ["getTermsAndConditionsResult", ["BookingstudioRuby::WebService::TermsAndConditions", XSD::QName.new(NsC_06_0, "GetTermsAndConditionsResult")], [0, 1]]
347
+ ]
348
+ )
349
+
350
+ LiteralRegistry.register(
351
+ :class => BookingstudioRuby::WebService::GetItems,
352
+ :schema_name => XSD::QName.new(NsC_06_0, "GetItems"),
353
+ :schema_element => [
354
+ ["token", nil, [0, 1]],
355
+ ["bookingRequest", "BookingstudioRuby::WebService::BookingRequest", [0, 1]]
356
+ ]
357
+ )
358
+
359
+ LiteralRegistry.register(
360
+ :class => BookingstudioRuby::WebService::GetItemsResponse,
361
+ :schema_name => XSD::QName.new(NsC_06_0, "GetItemsResponse"),
362
+ :schema_element => [
363
+ ["getItemsResult", ["BookingstudioRuby::WebService::ArrayOfItem", XSD::QName.new(NsC_06_0, "GetItemsResult")], [0, 1]]
364
+ ]
365
+ )
366
+
367
+ LiteralRegistry.register(
368
+ :class => BookingstudioRuby::WebService::GetEuropaeiskeItemPrice,
369
+ :schema_name => XSD::QName.new(NsC_06_0, "GetEuropaeiskeItemPrice"),
370
+ :schema_element => [
371
+ ["token", nil, [0, 1]],
372
+ ["item", "BookingstudioRuby::WebService::Item", [0, 1]]
373
+ ]
374
+ )
375
+
376
+ LiteralRegistry.register(
377
+ :class => BookingstudioRuby::WebService::GetEuropaeiskeItemPriceResponse,
378
+ :schema_name => XSD::QName.new(NsC_06_0, "GetEuropaeiskeItemPriceResponse"),
379
+ :schema_element => [
380
+ ["getEuropaeiskeItemPriceResult", ["BookingstudioRuby::WebService::Item", XSD::QName.new(NsC_06_0, "GetEuropaeiskeItemPriceResult")], [0, 1]]
381
+ ]
382
+ )
383
+
384
+ LiteralRegistry.register(
385
+ :class => BookingstudioRuby::WebService::BookingRequest,
386
+ :schema_name => XSD::QName.new(NsC_06, "BookingRequest"),
387
+ :schema_element => [
388
+ ["languageId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LanguageId")]],
389
+ ["bookingOptions", ["BookingstudioRuby::WebService::ArrayOfBookingOption", XSD::QName.new(NsC_06, "BookingOptions")]],
390
+ ["customer", ["BookingstudioRuby::WebService::Customer", XSD::QName.new(NsC_06, "Customer")]],
391
+ ["noteFromCustomer", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "NoteFromCustomer")]],
392
+ ["numberOfInfants", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "NumberOfInfants")]],
393
+ ["numberOfPets", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "NumberOfPets")]],
394
+ ["affiliateId", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "AffiliateId")], [0, 1]]
395
+ ]
396
+ )
397
+
398
+ LiteralRegistry.register(
399
+ :class => BookingstudioRuby::WebService::ArrayOfBookingOption,
400
+ :schema_name => XSD::QName.new(NsC_06, "ArrayOfBookingOption"),
401
+ :schema_element => [
402
+ ["bookingOption", ["BookingstudioRuby::WebService::BookingOption[]", XSD::QName.new(NsC_06, "BookingOption")], [0, nil]]
403
+ ]
404
+ )
405
+
406
+ LiteralRegistry.register(
407
+ :class => BookingstudioRuby::WebService::BookingOption,
408
+ :schema_name => XSD::QName.new(NsC_06, "BookingOption"),
409
+ :schema_element => [
410
+ ["lodgingUnitTypeId", [nil, XSD::QName.new(NsC_06, "LodgingUnitTypeId")]],
411
+ ["arrivalDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "ArrivalDate")]],
412
+ ["departureDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "DepartureDate")]],
413
+ ["boardTypeId", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "BoardTypeId")]],
414
+ ["children", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Children")]],
415
+ ["adults", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Adults")]],
416
+ ["changeDay", ["SOAP::SOAPShort", XSD::QName.new(NsC_06, "ChangeDay")]],
417
+ ["normalPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "NormalPrice")]],
418
+ ["price", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "Price")]],
419
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
420
+ ["hasDicount", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "HasDicount")]],
421
+ ["bookingVPath", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "BookingVPath")]],
422
+ ["itemBasket", ["BookingstudioRuby::WebService::ArrayOfItem", XSD::QName.new(NsC_06, "ItemBasket")]],
423
+ ["discountInternalName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "DiscountInternalName")]],
424
+ ["discountName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "DiscountName")]],
425
+ ["discountTags", ["BookingstudioRuby::WebService::ArrayOfstring", XSD::QName.new(NsC_06, "DiscountTags")]],
426
+ ["bookingVPathSalesChannel", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "BookingVPathSalesChannel")], [0, 1]]
427
+ ]
428
+ )
429
+
430
+ LiteralRegistry.register(
431
+ :class => BookingstudioRuby::WebService::ArrayOfItem,
432
+ :schema_name => XSD::QName.new(NsC_06, "ArrayOfItem"),
433
+ :schema_element => [
434
+ ["item", ["BookingstudioRuby::WebService::Item[]", XSD::QName.new(NsC_06, "Item")], [0, nil]]
435
+ ]
436
+ )
437
+
438
+ LiteralRegistry.register(
439
+ :class => BookingstudioRuby::WebService::Item,
440
+ :schema_name => XSD::QName.new(NsC_06, "Item"),
441
+ :schema_element => [
442
+ ["id", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Id")]],
443
+ ["itemNumber", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "ItemNumber")]],
444
+ ["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "UnitPrice")]],
445
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
446
+ ["showPrice", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "ShowPrice")]],
447
+ ["minQuantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "MinQuantity")]],
448
+ ["maxQuantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "MaxQuantity")]],
449
+ ["type", ["BookingstudioRuby::WebService::ItemTypes", XSD::QName.new(NsC_06, "Type")]],
450
+ ["name", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Name")]],
451
+ ["shortDescription", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "ShortDescription")]],
452
+ ["longDescription", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LongDescription")]],
453
+ ["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Quantity")]],
454
+ ["isExternalItem", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "IsExternalItem")], [0, 1]],
455
+ ["externalProviderId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "ExternalProviderId")], [0, 1]],
456
+ ["europaeiskeDetails", ["BookingstudioRuby::WebService::EuropaeiskeDetails", XSD::QName.new(NsC_06, "EuropaeiskeDetails")], [0, 1]]
457
+ ]
458
+ )
459
+
460
+ LiteralRegistry.register(
461
+ :class => BookingstudioRuby::WebService::EuropaeiskeDetails,
462
+ :schema_name => XSD::QName.new(NsC_06, "EuropaeiskeDetails"),
463
+ :schema_element => [
464
+ ["tripStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "TripStartDate")]],
465
+ ["tripEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsC_06, "TripEndDate")]],
466
+ ["tripArea", ["BookingstudioRuby::WebService::TripArea", XSD::QName.new(NsC_06, "TripArea")]],
467
+ ["tripValue", ["SOAP::SOAPDecimal", XSD::QName.new(NsC_06, "TripValue")]],
468
+ ["currencyId", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "CurrencyId")]],
469
+ ["persons", ["BookingstudioRuby::WebService::ArrayOfEuropaeiskePerson", XSD::QName.new(NsC_06, "Persons")]]
470
+ ]
471
+ )
472
+
473
+ LiteralRegistry.register(
474
+ :class => BookingstudioRuby::WebService::ArrayOfEuropaeiskePerson,
475
+ :schema_name => XSD::QName.new(NsC_06, "ArrayOfEuropaeiskePerson"),
476
+ :schema_element => [
477
+ ["europaeiskePerson", ["BookingstudioRuby::WebService::EuropaeiskePerson[]", XSD::QName.new(NsC_06, "EuropaeiskePerson")], [0, nil]]
478
+ ]
479
+ )
480
+
481
+ LiteralRegistry.register(
482
+ :class => BookingstudioRuby::WebService::EuropaeiskePerson,
483
+ :schema_name => XSD::QName.new(NsC_06, "EuropaeiskePerson"),
484
+ :schema_element => [
485
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "FirstName")]],
486
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LastName")]],
487
+ ["age", ["SOAP::SOAPInt", XSD::QName.new(NsC_06, "Age")]]
488
+ ]
489
+ )
490
+
491
+ LiteralRegistry.register(
492
+ :class => BookingstudioRuby::WebService::Customer,
493
+ :schema_name => XSD::QName.new(NsC_06, "Customer"),
494
+ :schema_element => [
495
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "FirstName")]],
496
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "LastName")]],
497
+ ["address", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Address")]],
498
+ ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PostalCode")]],
499
+ ["city", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "City")]],
500
+ ["country", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Country")]],
501
+ ["workPhone", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "WorkPhone")]],
502
+ ["privatePhone", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PrivatePhone")]],
503
+ ["privateMobile", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "PrivateMobile")]],
504
+ ["email", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Email")]],
505
+ ["subscribeCatalog", ["SOAP::SOAPBoolean", XSD::QName.new(NsC_06, "SubscribeCatalog")]]
506
+ ]
507
+ )
508
+
509
+ LiteralRegistry.register(
510
+ :class => BookingstudioRuby::WebService::TermsAndConditions,
511
+ :schema_name => XSD::QName.new(NsC_06, "TermsAndConditions"),
512
+ :schema_element => [
513
+ ["text", ["SOAP::SOAPString", XSD::QName.new(NsC_06, "Text")]]
514
+ ]
515
+ )
516
+
517
+ LiteralRegistry.register(
518
+ :class => BookingstudioRuby::WebService::ArrayOfstring,
519
+ :schema_name => XSD::QName.new(NsArrays, "ArrayOfstring"),
520
+ :schema_element => [
521
+ ["string", "SOAP::SOAPString[]", [0, nil]]
522
+ ]
523
+ )
524
+
525
+ LiteralRegistry.register(
526
+ :class => BookingstudioRuby::WebService::ItemTypes,
527
+ :schema_name => XSD::QName.new(NsBookingStudioPublic, "ItemTypes")
528
+ )
529
+
530
+ LiteralRegistry.register(
531
+ :class => BookingstudioRuby::WebService::TripArea,
532
+ :schema_name => XSD::QName.new(NsBookingStudioPublic, "TripArea")
533
+ )
534
+ end
535
+
536
+ end