channel_advisor 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/README +46 -0
  2. data/lib/channel_advisor/admin_service/client.rb +63 -0
  3. data/lib/channel_advisor/admin_service/mapping_registry.rb +206 -0
  4. data/lib/channel_advisor/admin_service/types.rb +175 -0
  5. data/lib/channel_advisor/admin_service.rb +14 -0
  6. data/lib/channel_advisor/auth_handler.rb +21 -0
  7. data/lib/channel_advisor/cart_service/client.rb +79 -0
  8. data/lib/channel_advisor/cart_service/mapping_registry.rb +344 -0
  9. data/lib/channel_advisor/cart_service/types.rb +386 -0
  10. data/lib/channel_advisor/cart_service.rb +14 -0
  11. data/lib/channel_advisor/errors.rb +13 -0
  12. data/lib/channel_advisor/inventory_service/client.rb +223 -0
  13. data/lib/channel_advisor/inventory_service/mapping_registry.rb +1765 -0
  14. data/lib/channel_advisor/inventory_service/types.rb +1708 -0
  15. data/lib/channel_advisor/inventory_service.rb +14 -0
  16. data/lib/channel_advisor/listing_service/client.rb +55 -0
  17. data/lib/channel_advisor/listing_service/mapping_registry.rb +153 -0
  18. data/lib/channel_advisor/listing_service/types.rb +125 -0
  19. data/lib/channel_advisor/listing_service.rb +14 -0
  20. data/lib/channel_advisor/marketplace_ad_service/client.rb +71 -0
  21. data/lib/channel_advisor/marketplace_ad_service/mapping_registry.rb +334 -0
  22. data/lib/channel_advisor/marketplace_ad_service/types.rb +317 -0
  23. data/lib/channel_advisor/marketplace_ad_service.rb +14 -0
  24. data/lib/channel_advisor/message_code.rb +30 -0
  25. data/lib/channel_advisor/order_service/client.rb +111 -0
  26. data/lib/channel_advisor/order_service/mapping_registry.rb +1696 -0
  27. data/lib/channel_advisor/order_service/types.rb +1781 -0
  28. data/lib/channel_advisor/order_service.rb +14 -0
  29. data/lib/channel_advisor/service_proxy.rb +62 -0
  30. data/lib/channel_advisor/shared_requires.rb +11 -0
  31. data/lib/channel_advisor/shipping_service/client.rb +79 -0
  32. data/lib/channel_advisor/shipping_service/mapping_registry.rb +500 -0
  33. data/lib/channel_advisor/shipping_service/types.rb +431 -0
  34. data/lib/channel_advisor/shipping_service.rb +14 -0
  35. data/lib/channel_advisor/store_service/client.rb +55 -0
  36. data/lib/channel_advisor/store_service/mapping_registry.rb +250 -0
  37. data/lib/channel_advisor/store_service/types.rb +180 -0
  38. data/lib/channel_advisor/store_service.rb +14 -0
  39. data/lib/channel_advisor/tax_service/client.rb +55 -0
  40. data/lib/channel_advisor/tax_service/mapping_registry.rb +233 -0
  41. data/lib/channel_advisor/tax_service/types.rb +221 -0
  42. data/lib/channel_advisor/tax_service.rb +14 -0
  43. data/lib/channel_advisor.rb +4 -0
  44. data/spec/integration/inventory_sync_spec.rb +55 -0
  45. data/spec/lib/channel_advisor/admin_service_spec.rb +12 -0
  46. data/spec/lib/channel_advisor/auth_handler_spec.rb +46 -0
  47. data/spec/lib/channel_advisor/cart_service_spec.rb +12 -0
  48. data/spec/lib/channel_advisor/errors_spec.rb +23 -0
  49. data/spec/lib/channel_advisor/inventory_service_spec.rb +12 -0
  50. data/spec/lib/channel_advisor/marketplace_ad_service_spec.rb +12 -0
  51. data/spec/lib/channel_advisor/message_code_spec.rb +40 -0
  52. data/spec/lib/channel_advisor/order_service_spec.rb +12 -0
  53. data/spec/lib/channel_advisor/service_proxy_spec.rb +130 -0
  54. data/spec/lib/channel_advisor/shipping_service_spec.rb +12 -0
  55. data/spec/lib/channel_advisor/store_service_spec.rb +12 -0
  56. data/spec/lib/channel_advisor/tax_service_spec.rb +12 -0
  57. data/spec/spec.opts +2 -0
  58. data/spec/spec_helper.rb +4 -0
  59. metadata +170 -0
@@ -0,0 +1,344 @@
1
+ module ChannelAdvisor; module CartServiceSOAP
2
+
3
+ module DefaultMappingRegistry
4
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
5
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
6
+ NsOrders = "http://api.channeladvisor.com/datacontracts/orders"
7
+ NsWebservices = "http://api.channeladvisor.com/webservices/"
8
+
9
+ EncodedRegistry.register(
10
+ :class => ChannelAdvisor::CartServiceSOAP::APIResultOfCart,
11
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfCart"),
12
+ :schema_element => [
13
+ ["status", ["ChannelAdvisor::CartServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
14
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
15
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
16
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
17
+ ["resultData", ["ChannelAdvisor::CartServiceSOAP::Cart", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
18
+ ]
19
+ )
20
+
21
+ EncodedRegistry.register(
22
+ :class => ChannelAdvisor::CartServiceSOAP::APICredentials,
23
+ :schema_type => XSD::QName.new(NsWebservices, "APICredentials"),
24
+ :schema_element => [
25
+ ["developerKey", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DeveloperKey")], [0, 1]],
26
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Password")], [0, 1]]
27
+ ]
28
+ )
29
+
30
+ EncodedRegistry.register(
31
+ :class => ChannelAdvisor::CartServiceSOAP::APIResultOfInt32,
32
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfInt32"),
33
+ :schema_element => [
34
+ ["status", ["ChannelAdvisor::CartServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
35
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
36
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
37
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
38
+ ["resultData", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "ResultData")]]
39
+ ]
40
+ )
41
+
42
+ EncodedRegistry.register(
43
+ :class => ChannelAdvisor::CartServiceSOAP::ArrayOfCartItemRequest,
44
+ :schema_type => XSD::QName.new(NsWebservices, "ArrayOfCartItemRequest"),
45
+ :schema_element => [
46
+ ["cartItemRequest", ["ChannelAdvisor::CartServiceSOAP::CartItemRequest[]", XSD::QName.new(NsWebservices, "CartItemRequest")], [0, nil]]
47
+ ]
48
+ )
49
+
50
+ EncodedRegistry.register(
51
+ :class => ChannelAdvisor::CartServiceSOAP::APIResultOfString,
52
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfString"),
53
+ :schema_element => [
54
+ ["status", ["ChannelAdvisor::CartServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
55
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
56
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
57
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
58
+ ["resultData", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
59
+ ]
60
+ )
61
+
62
+ EncodedRegistry.register(
63
+ :class => ChannelAdvisor::CartServiceSOAP::Cart,
64
+ :schema_type => XSD::QName.new(NsOrders, "Cart"),
65
+ :schema_element => [
66
+ ["cartID", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "CartID")]],
67
+ ["checkoutURL", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "CheckoutURL")], [0, 1]],
68
+ ["lineItemList", ["ChannelAdvisor::CartServiceSOAP::ArrayOfCartItem", XSD::QName.new(NsOrders, "LineItemList")], [0, 1]]
69
+ ]
70
+ )
71
+
72
+ EncodedRegistry.register(
73
+ :class => ChannelAdvisor::CartServiceSOAP::ArrayOfCartItem,
74
+ :schema_type => XSD::QName.new(NsOrders, "ArrayOfCartItem"),
75
+ :schema_element => [
76
+ ["cartItem", ["ChannelAdvisor::CartServiceSOAP::CartItem[]", XSD::QName.new(NsOrders, "CartItem")], [0, nil]]
77
+ ]
78
+ )
79
+
80
+ EncodedRegistry.register(
81
+ :class => ChannelAdvisor::CartServiceSOAP::CartItemResponse,
82
+ :schema_type => XSD::QName.new(NsOrders, "CartItemResponse"),
83
+ :schema_basetype => XSD::QName.new(NsOrders, "CartItem"),
84
+ :schema_element => [
85
+ ["sKU", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "SKU")], [0, 1]],
86
+ ["title", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "Title")], [0, 1]],
87
+ ["lineItemID", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "LineItemID")]],
88
+ ["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "Quantity")]],
89
+ ["itemSaleSource", ["ChannelAdvisor::CartServiceSOAP::SiteToken", XSD::QName.new(NsOrders, "ItemSaleSource")]],
90
+ ["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsOrders, "UnitPrice")]],
91
+ ["currencyCode", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "CurrencyCode")], [0, 1]],
92
+ ["unitWeight", ["ChannelAdvisor::CartServiceSOAP::ItemWeight", XSD::QName.new(NsOrders, "UnitWeight")], [0, 1]]
93
+ ]
94
+ )
95
+
96
+ EncodedRegistry.register(
97
+ :class => ChannelAdvisor::CartServiceSOAP::ItemWeight,
98
+ :schema_type => XSD::QName.new(NsOrders, "ItemWeight"),
99
+ :schema_attribute => {
100
+ XSD::QName.new(nil, "UnitOfMeasure") => "SOAP::SOAPString"
101
+ }
102
+ )
103
+
104
+ EncodedRegistry.register(
105
+ :class => ChannelAdvisor::CartServiceSOAP::CartItemRequest,
106
+ :schema_type => XSD::QName.new(NsOrders, "CartItemRequest"),
107
+ :schema_basetype => XSD::QName.new(NsOrders, "CartItem"),
108
+ :schema_element => [
109
+ ["sKU", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "SKU")], [0, 1]],
110
+ ["title", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "Title")], [0, 1]],
111
+ ["lineItemID", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "LineItemID")]],
112
+ ["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "Quantity")]],
113
+ ["itemSaleSource", ["ChannelAdvisor::CartServiceSOAP::SiteToken", XSD::QName.new(NsOrders, "ItemSaleSource")]],
114
+ ["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsOrders, "UnitPrice")]],
115
+ ["allowNegativeQuantity", ["SOAP::SOAPBoolean", XSD::QName.new(NsOrders, "AllowNegativeQuantity")]]
116
+ ]
117
+ )
118
+
119
+ EncodedRegistry.register(
120
+ :class => ChannelAdvisor::CartServiceSOAP::ResultStatus,
121
+ :schema_type => XSD::QName.new(NsWebservices, "ResultStatus")
122
+ )
123
+
124
+ EncodedRegistry.register(
125
+ :class => ChannelAdvisor::CartServiceSOAP::SiteToken,
126
+ :schema_type => XSD::QName.new(NsOrders, "SiteToken")
127
+ )
128
+
129
+ LiteralRegistry.register(
130
+ :class => ChannelAdvisor::CartServiceSOAP::APIResultOfCart,
131
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfCart"),
132
+ :schema_element => [
133
+ ["status", ["ChannelAdvisor::CartServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
134
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
135
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
136
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
137
+ ["resultData", ["ChannelAdvisor::CartServiceSOAP::Cart", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
138
+ ]
139
+ )
140
+
141
+ LiteralRegistry.register(
142
+ :class => ChannelAdvisor::CartServiceSOAP::APICredentials,
143
+ :schema_type => XSD::QName.new(NsWebservices, "APICredentials"),
144
+ :schema_element => [
145
+ ["developerKey", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DeveloperKey")], [0, 1]],
146
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Password")], [0, 1]]
147
+ ]
148
+ )
149
+
150
+ LiteralRegistry.register(
151
+ :class => ChannelAdvisor::CartServiceSOAP::APIResultOfInt32,
152
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfInt32"),
153
+ :schema_element => [
154
+ ["status", ["ChannelAdvisor::CartServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
155
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
156
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
157
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
158
+ ["resultData", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "ResultData")]]
159
+ ]
160
+ )
161
+
162
+ LiteralRegistry.register(
163
+ :class => ChannelAdvisor::CartServiceSOAP::ArrayOfCartItemRequest,
164
+ :schema_type => XSD::QName.new(NsWebservices, "ArrayOfCartItemRequest"),
165
+ :schema_element => [
166
+ ["cartItemRequest", ["ChannelAdvisor::CartServiceSOAP::CartItemRequest[]", XSD::QName.new(NsWebservices, "CartItemRequest")], [0, nil]]
167
+ ]
168
+ )
169
+
170
+ LiteralRegistry.register(
171
+ :class => ChannelAdvisor::CartServiceSOAP::APIResultOfString,
172
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfString"),
173
+ :schema_element => [
174
+ ["status", ["ChannelAdvisor::CartServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
175
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
176
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
177
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
178
+ ["resultData", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
179
+ ]
180
+ )
181
+
182
+ LiteralRegistry.register(
183
+ :class => ChannelAdvisor::CartServiceSOAP::Cart,
184
+ :schema_type => XSD::QName.new(NsOrders, "Cart"),
185
+ :schema_element => [
186
+ ["cartID", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "CartID")]],
187
+ ["checkoutURL", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "CheckoutURL")], [0, 1]],
188
+ ["lineItemList", ["ChannelAdvisor::CartServiceSOAP::ArrayOfCartItem", XSD::QName.new(NsOrders, "LineItemList")], [0, 1]]
189
+ ]
190
+ )
191
+
192
+ LiteralRegistry.register(
193
+ :class => ChannelAdvisor::CartServiceSOAP::ArrayOfCartItem,
194
+ :schema_type => XSD::QName.new(NsOrders, "ArrayOfCartItem"),
195
+ :schema_element => [
196
+ ["cartItem", ["ChannelAdvisor::CartServiceSOAP::CartItem[]", XSD::QName.new(NsOrders, "CartItem")], [0, nil]]
197
+ ]
198
+ )
199
+
200
+ LiteralRegistry.register(
201
+ :class => ChannelAdvisor::CartServiceSOAP::CartItemResponse,
202
+ :schema_type => XSD::QName.new(NsOrders, "CartItemResponse"),
203
+ :schema_basetype => XSD::QName.new(NsOrders, "CartItem"),
204
+ :schema_element => [
205
+ ["sKU", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "SKU")], [0, 1]],
206
+ ["title", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "Title")], [0, 1]],
207
+ ["lineItemID", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "LineItemID")]],
208
+ ["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "Quantity")]],
209
+ ["itemSaleSource", ["ChannelAdvisor::CartServiceSOAP::SiteToken", XSD::QName.new(NsOrders, "ItemSaleSource")]],
210
+ ["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsOrders, "UnitPrice")]],
211
+ ["currencyCode", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "CurrencyCode")], [0, 1]],
212
+ ["unitWeight", ["ChannelAdvisor::CartServiceSOAP::ItemWeight", XSD::QName.new(NsOrders, "UnitWeight")], [0, 1]]
213
+ ]
214
+ )
215
+
216
+ LiteralRegistry.register(
217
+ :class => ChannelAdvisor::CartServiceSOAP::ItemWeight,
218
+ :schema_type => XSD::QName.new(NsOrders, "ItemWeight"),
219
+ :schema_attribute => {
220
+ XSD::QName.new(nil, "UnitOfMeasure") => "SOAP::SOAPString"
221
+ }
222
+ )
223
+
224
+ LiteralRegistry.register(
225
+ :class => ChannelAdvisor::CartServiceSOAP::CartItemRequest,
226
+ :schema_type => XSD::QName.new(NsOrders, "CartItemRequest"),
227
+ :schema_basetype => XSD::QName.new(NsOrders, "CartItem"),
228
+ :schema_element => [
229
+ ["sKU", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "SKU")], [0, 1]],
230
+ ["title", ["SOAP::SOAPString", XSD::QName.new(NsOrders, "Title")], [0, 1]],
231
+ ["lineItemID", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "LineItemID")]],
232
+ ["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsOrders, "Quantity")]],
233
+ ["itemSaleSource", ["ChannelAdvisor::CartServiceSOAP::SiteToken", XSD::QName.new(NsOrders, "ItemSaleSource")]],
234
+ ["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsOrders, "UnitPrice")]],
235
+ ["allowNegativeQuantity", ["SOAP::SOAPBoolean", XSD::QName.new(NsOrders, "AllowNegativeQuantity")]]
236
+ ]
237
+ )
238
+
239
+ LiteralRegistry.register(
240
+ :class => ChannelAdvisor::CartServiceSOAP::ResultStatus,
241
+ :schema_type => XSD::QName.new(NsWebservices, "ResultStatus")
242
+ )
243
+
244
+ LiteralRegistry.register(
245
+ :class => ChannelAdvisor::CartServiceSOAP::SiteToken,
246
+ :schema_type => XSD::QName.new(NsOrders, "SiteToken")
247
+ )
248
+
249
+ LiteralRegistry.register(
250
+ :class => ChannelAdvisor::CartServiceSOAP::GetCart,
251
+ :schema_name => XSD::QName.new(NsWebservices, "GetCart"),
252
+ :schema_element => [
253
+ ["accountID", "SOAP::SOAPString", [0, 1]],
254
+ ["cartID", "SOAP::SOAPInt"]
255
+ ]
256
+ )
257
+
258
+ LiteralRegistry.register(
259
+ :class => ChannelAdvisor::CartServiceSOAP::GetCartResponse,
260
+ :schema_name => XSD::QName.new(NsWebservices, "GetCartResponse"),
261
+ :schema_element => [
262
+ ["getCartResult", ["ChannelAdvisor::CartServiceSOAP::APIResultOfCart", XSD::QName.new(NsWebservices, "GetCartResult")], [0, 1]]
263
+ ]
264
+ )
265
+
266
+ LiteralRegistry.register(
267
+ :class => ChannelAdvisor::CartServiceSOAP::APICredentials,
268
+ :schema_name => XSD::QName.new(NsWebservices, "APICredentials"),
269
+ :schema_element => [
270
+ ["developerKey", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DeveloperKey")], [0, 1]],
271
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Password")], [0, 1]]
272
+ ]
273
+ )
274
+
275
+ LiteralRegistry.register(
276
+ :class => ChannelAdvisor::CartServiceSOAP::DeleteCart,
277
+ :schema_name => XSD::QName.new(NsWebservices, "DeleteCart"),
278
+ :schema_element => [
279
+ ["accountID", "SOAP::SOAPString", [0, 1]],
280
+ ["cartID", "SOAP::SOAPInt"]
281
+ ]
282
+ )
283
+
284
+ LiteralRegistry.register(
285
+ :class => ChannelAdvisor::CartServiceSOAP::DeleteCartResponse,
286
+ :schema_name => XSD::QName.new(NsWebservices, "DeleteCartResponse"),
287
+ :schema_element => [
288
+ ["deleteCartResult", ["ChannelAdvisor::CartServiceSOAP::APIResultOfInt32", XSD::QName.new(NsWebservices, "DeleteCartResult")], [0, 1]]
289
+ ]
290
+ )
291
+
292
+ LiteralRegistry.register(
293
+ :class => ChannelAdvisor::CartServiceSOAP::CreateCart,
294
+ :schema_name => XSD::QName.new(NsWebservices, "CreateCart"),
295
+ :schema_element => [
296
+ ["accountID", "SOAP::SOAPString", [0, 1]],
297
+ ["buyerEmail", "SOAP::SOAPString", [0, 1]],
298
+ ["lineItem", "ChannelAdvisor::CartServiceSOAP::ArrayOfCartItemRequest", [0, 1]]
299
+ ]
300
+ )
301
+
302
+ LiteralRegistry.register(
303
+ :class => ChannelAdvisor::CartServiceSOAP::CreateCartResponse,
304
+ :schema_name => XSD::QName.new(NsWebservices, "CreateCartResponse"),
305
+ :schema_element => [
306
+ ["createCartResult", ["ChannelAdvisor::CartServiceSOAP::APIResultOfCart", XSD::QName.new(NsWebservices, "CreateCartResult")], [0, 1]]
307
+ ]
308
+ )
309
+
310
+ LiteralRegistry.register(
311
+ :class => ChannelAdvisor::CartServiceSOAP::ModifyCart,
312
+ :schema_name => XSD::QName.new(NsWebservices, "ModifyCart"),
313
+ :schema_element => [
314
+ ["accountID", "SOAP::SOAPString", [0, 1]],
315
+ ["cartID", "SOAP::SOAPInt"],
316
+ ["buyerEmail", "SOAP::SOAPString", [0, 1]],
317
+ ["lineItem", "ChannelAdvisor::CartServiceSOAP::ArrayOfCartItemRequest", [0, 1]]
318
+ ]
319
+ )
320
+
321
+ LiteralRegistry.register(
322
+ :class => ChannelAdvisor::CartServiceSOAP::ModifyCartResponse,
323
+ :schema_name => XSD::QName.new(NsWebservices, "ModifyCartResponse"),
324
+ :schema_element => [
325
+ ["modifyCartResult", ["ChannelAdvisor::CartServiceSOAP::APIResultOfCart", XSD::QName.new(NsWebservices, "ModifyCartResult")], [0, 1]]
326
+ ]
327
+ )
328
+
329
+ LiteralRegistry.register(
330
+ :class => ChannelAdvisor::CartServiceSOAP::Ping,
331
+ :schema_name => XSD::QName.new(NsWebservices, "Ping"),
332
+ :schema_element => []
333
+ )
334
+
335
+ LiteralRegistry.register(
336
+ :class => ChannelAdvisor::CartServiceSOAP::PingResponse,
337
+ :schema_name => XSD::QName.new(NsWebservices, "PingResponse"),
338
+ :schema_element => [
339
+ ["pingResult", ["ChannelAdvisor::CartServiceSOAP::APIResultOfString", XSD::QName.new(NsWebservices, "PingResult")], [0, 1]]
340
+ ]
341
+ )
342
+ end
343
+
344
+ end; end