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,334 @@
1
+ module ChannelAdvisor; module MarketplaceAdServiceSOAP
2
+
3
+ module DefaultMappingRegistry
4
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
5
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
6
+ NsWebservices = "http://api.channeladvisor.com/webservices/"
7
+
8
+ EncodedRegistry.register(
9
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAd,
10
+ :schema_type => XSD::QName.new(NsWebservices, "MarketplaceAd"),
11
+ :schema_element => [
12
+ ["iD", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "ID")]],
13
+ ["sku", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Sku")], [0, 1]],
14
+ ["title", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Title")], [0, 1]],
15
+ ["postingTemplate", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "PostingTemplate")], [0, 1]],
16
+ ["adTemplate", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "AdTemplate")], [0, 1]],
17
+ ["schedule", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Schedule")], [0, 1]],
18
+ ["flagStyle", ["ChannelAdvisor::MarketplaceAdServiceSOAP::FlagType", XSD::QName.new(NsWebservices, "FlagStyle")]],
19
+ ["flagDescription", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "FlagDescription")], [0, 1]],
20
+ ["primaryCategory", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "PrimaryCategory")], [0, 1]],
21
+ ["secondaryCategory", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "SecondaryCategory")], [0, 1]],
22
+ ["primaryStoreCategory", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "PrimaryStoreCategory")], [0, 1]],
23
+ ["secondaryStoreCategory", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "SecondaryStoreCategory")], [0, 1]]
24
+ ]
25
+ )
26
+
27
+ EncodedRegistry.register(
28
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfInt32,
29
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfInt32"),
30
+ :schema_element => [
31
+ ["status", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
32
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
33
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
34
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
35
+ ["resultData", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "ResultData")]]
36
+ ]
37
+ )
38
+
39
+ EncodedRegistry.register(
40
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APICredentials,
41
+ :schema_type => XSD::QName.new(NsWebservices, "APICredentials"),
42
+ :schema_element => [
43
+ ["developerKey", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DeveloperKey")], [0, 1]],
44
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Password")], [0, 1]]
45
+ ]
46
+ )
47
+
48
+ EncodedRegistry.register(
49
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuRequest,
50
+ :schema_type => XSD::QName.new(NsWebservices, "ArrayOfMarketplaceAdSkuRequest"),
51
+ :schema_element => [
52
+ ["marketplaceAdSkuRequest", ["ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdSkuRequest[]", XSD::QName.new(NsWebservices, "MarketplaceAdSkuRequest")], [0, nil]]
53
+ ]
54
+ )
55
+
56
+ EncodedRegistry.register(
57
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdSkuRequest,
58
+ :schema_type => XSD::QName.new(NsWebservices, "MarketplaceAdSkuRequest"),
59
+ :schema_element => [
60
+ ["sku", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Sku")], [0, 1]],
61
+ ["adTitleOverride", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "AdTitleOverride")], [0, 1]]
62
+ ]
63
+ )
64
+
65
+ EncodedRegistry.register(
66
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfArrayOfMarketplaceAdSkuResponse,
67
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfArrayOfMarketplaceAdSkuResponse"),
68
+ :schema_element => [
69
+ ["status", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
70
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
71
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
72
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
73
+ ["resultData", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuResponse", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
74
+ ]
75
+ )
76
+
77
+ EncodedRegistry.register(
78
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuResponse,
79
+ :schema_type => XSD::QName.new(NsWebservices, "ArrayOfMarketplaceAdSkuResponse"),
80
+ :schema_element => [
81
+ ["marketplaceAdSkuResponse", ["ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdSkuResponse[]", XSD::QName.new(NsWebservices, "MarketplaceAdSkuResponse")], [0, nil]]
82
+ ]
83
+ )
84
+
85
+ EncodedRegistry.register(
86
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdSkuResponse,
87
+ :schema_type => XSD::QName.new(NsWebservices, "MarketplaceAdSkuResponse"),
88
+ :schema_element => [
89
+ ["sku", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Sku")], [0, 1]],
90
+ ["marketplaceAdID", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MarketplaceAdID")]],
91
+ ["errorMessage", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "ErrorMessage")], [0, 1]]
92
+ ]
93
+ )
94
+
95
+ EncodedRegistry.register(
96
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfBoolean,
97
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfBoolean"),
98
+ :schema_element => [
99
+ ["status", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
100
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
101
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
102
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
103
+ ["resultData", ["SOAP::SOAPBoolean", XSD::QName.new(NsWebservices, "ResultData")]]
104
+ ]
105
+ )
106
+
107
+ EncodedRegistry.register(
108
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfString,
109
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfString"),
110
+ :schema_element => [
111
+ ["status", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
112
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
113
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
114
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
115
+ ["resultData", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
116
+ ]
117
+ )
118
+
119
+ EncodedRegistry.register(
120
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::FlagType,
121
+ :schema_type => XSD::QName.new(NsWebservices, "FlagType")
122
+ )
123
+
124
+ EncodedRegistry.register(
125
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus,
126
+ :schema_type => XSD::QName.new(NsWebservices, "ResultStatus")
127
+ )
128
+
129
+ LiteralRegistry.register(
130
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAd,
131
+ :schema_type => XSD::QName.new(NsWebservices, "MarketplaceAd"),
132
+ :schema_element => [
133
+ ["iD", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "ID")]],
134
+ ["sku", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Sku")], [0, 1]],
135
+ ["title", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Title")], [0, 1]],
136
+ ["postingTemplate", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "PostingTemplate")], [0, 1]],
137
+ ["adTemplate", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "AdTemplate")], [0, 1]],
138
+ ["schedule", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Schedule")], [0, 1]],
139
+ ["flagStyle", ["ChannelAdvisor::MarketplaceAdServiceSOAP::FlagType", XSD::QName.new(NsWebservices, "FlagStyle")]],
140
+ ["flagDescription", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "FlagDescription")], [0, 1]],
141
+ ["primaryCategory", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "PrimaryCategory")], [0, 1]],
142
+ ["secondaryCategory", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "SecondaryCategory")], [0, 1]],
143
+ ["primaryStoreCategory", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "PrimaryStoreCategory")], [0, 1]],
144
+ ["secondaryStoreCategory", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "SecondaryStoreCategory")], [0, 1]]
145
+ ]
146
+ )
147
+
148
+ LiteralRegistry.register(
149
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfInt32,
150
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfInt32"),
151
+ :schema_element => [
152
+ ["status", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
153
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
154
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
155
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
156
+ ["resultData", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "ResultData")]]
157
+ ]
158
+ )
159
+
160
+ LiteralRegistry.register(
161
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APICredentials,
162
+ :schema_type => XSD::QName.new(NsWebservices, "APICredentials"),
163
+ :schema_element => [
164
+ ["developerKey", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DeveloperKey")], [0, 1]],
165
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Password")], [0, 1]]
166
+ ]
167
+ )
168
+
169
+ LiteralRegistry.register(
170
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuRequest,
171
+ :schema_type => XSD::QName.new(NsWebservices, "ArrayOfMarketplaceAdSkuRequest"),
172
+ :schema_element => [
173
+ ["marketplaceAdSkuRequest", ["ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdSkuRequest[]", XSD::QName.new(NsWebservices, "MarketplaceAdSkuRequest")], [0, nil]]
174
+ ]
175
+ )
176
+
177
+ LiteralRegistry.register(
178
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdSkuRequest,
179
+ :schema_type => XSD::QName.new(NsWebservices, "MarketplaceAdSkuRequest"),
180
+ :schema_element => [
181
+ ["sku", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Sku")], [0, 1]],
182
+ ["adTitleOverride", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "AdTitleOverride")], [0, 1]]
183
+ ]
184
+ )
185
+
186
+ LiteralRegistry.register(
187
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfArrayOfMarketplaceAdSkuResponse,
188
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfArrayOfMarketplaceAdSkuResponse"),
189
+ :schema_element => [
190
+ ["status", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
191
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
192
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
193
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
194
+ ["resultData", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuResponse", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
195
+ ]
196
+ )
197
+
198
+ LiteralRegistry.register(
199
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuResponse,
200
+ :schema_type => XSD::QName.new(NsWebservices, "ArrayOfMarketplaceAdSkuResponse"),
201
+ :schema_element => [
202
+ ["marketplaceAdSkuResponse", ["ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdSkuResponse[]", XSD::QName.new(NsWebservices, "MarketplaceAdSkuResponse")], [0, nil]]
203
+ ]
204
+ )
205
+
206
+ LiteralRegistry.register(
207
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdSkuResponse,
208
+ :schema_type => XSD::QName.new(NsWebservices, "MarketplaceAdSkuResponse"),
209
+ :schema_element => [
210
+ ["sku", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Sku")], [0, 1]],
211
+ ["marketplaceAdID", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MarketplaceAdID")]],
212
+ ["errorMessage", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "ErrorMessage")], [0, 1]]
213
+ ]
214
+ )
215
+
216
+ LiteralRegistry.register(
217
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfBoolean,
218
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfBoolean"),
219
+ :schema_element => [
220
+ ["status", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
221
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
222
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
223
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
224
+ ["resultData", ["SOAP::SOAPBoolean", XSD::QName.new(NsWebservices, "ResultData")]]
225
+ ]
226
+ )
227
+
228
+ LiteralRegistry.register(
229
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfString,
230
+ :schema_type => XSD::QName.new(NsWebservices, "APIResultOfString"),
231
+ :schema_element => [
232
+ ["status", ["ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
233
+ ["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
234
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
235
+ ["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
236
+ ["resultData", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
237
+ ]
238
+ )
239
+
240
+ LiteralRegistry.register(
241
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::FlagType,
242
+ :schema_type => XSD::QName.new(NsWebservices, "FlagType")
243
+ )
244
+
245
+ LiteralRegistry.register(
246
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus,
247
+ :schema_type => XSD::QName.new(NsWebservices, "ResultStatus")
248
+ )
249
+
250
+ LiteralRegistry.register(
251
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::AddMarketplaceAd,
252
+ :schema_name => XSD::QName.new(NsWebservices, "AddMarketplaceAd"),
253
+ :schema_element => [
254
+ ["accountID", "SOAP::SOAPString"],
255
+ ["adProperties", "ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAd", [0, 1]]
256
+ ]
257
+ )
258
+
259
+ LiteralRegistry.register(
260
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::AddMarketplaceAdResponse,
261
+ :schema_name => XSD::QName.new(NsWebservices, "AddMarketplaceAdResponse"),
262
+ :schema_element => [
263
+ ["addMarketplaceAdResult", ["ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfInt32", XSD::QName.new(NsWebservices, "AddMarketplaceAdResult")], [0, 1]]
264
+ ]
265
+ )
266
+
267
+ LiteralRegistry.register(
268
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::APICredentials,
269
+ :schema_name => XSD::QName.new(NsWebservices, "APICredentials"),
270
+ :schema_element => [
271
+ ["developerKey", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DeveloperKey")], [0, 1]],
272
+ ["password", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Password")], [0, 1]]
273
+ ]
274
+ )
275
+
276
+ LiteralRegistry.register(
277
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::AddMarketplaceAdForSkuList,
278
+ :schema_name => XSD::QName.new(NsWebservices, "AddMarketplaceAdForSkuList"),
279
+ :schema_element => [
280
+ ["accountID", "SOAP::SOAPString"],
281
+ ["skuList", "ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuRequest", [0, 1]],
282
+ ["postingTemplate", "SOAP::SOAPString", [0, 1]],
283
+ ["adTemplate", "SOAP::SOAPString", [0, 1]],
284
+ ["schedule", "SOAP::SOAPString", [0, 1]],
285
+ ["flagStyle", "ChannelAdvisor::MarketplaceAdServiceSOAP::FlagType"],
286
+ ["flagDescription", "SOAP::SOAPString", [0, 1]],
287
+ ["primaryCategory", "SOAP::SOAPString", [0, 1]],
288
+ ["secondaryCategory", "SOAP::SOAPString", [0, 1]],
289
+ ["primaryStoreCategory", "SOAP::SOAPString", [0, 1]],
290
+ ["secondaryStoreCategory", "SOAP::SOAPString", [0, 1]]
291
+ ]
292
+ )
293
+
294
+ LiteralRegistry.register(
295
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::AddMarketplaceAdForSkuListResponse,
296
+ :schema_name => XSD::QName.new(NsWebservices, "AddMarketplaceAdForSkuListResponse"),
297
+ :schema_element => [
298
+ ["addMarketplaceAdForSkuListResult", ["ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfArrayOfMarketplaceAdSkuResponse", XSD::QName.new(NsWebservices, "AddMarketplaceAdForSkuListResult")], [0, 1]]
299
+ ]
300
+ )
301
+
302
+ LiteralRegistry.register(
303
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::DeleteMarketplaceAd,
304
+ :schema_name => XSD::QName.new(NsWebservices, "DeleteMarketplaceAd"),
305
+ :schema_element => [
306
+ ["accountID", "SOAP::SOAPString"],
307
+ ["marketplaceAdID", "SOAP::SOAPInt"]
308
+ ]
309
+ )
310
+
311
+ LiteralRegistry.register(
312
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::DeleteMarketplaceAdResponse,
313
+ :schema_name => XSD::QName.new(NsWebservices, "DeleteMarketplaceAdResponse"),
314
+ :schema_element => [
315
+ ["deleteMarketplaceAdResult", ["ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfBoolean", XSD::QName.new(NsWebservices, "DeleteMarketplaceAdResult")], [0, 1]]
316
+ ]
317
+ )
318
+
319
+ LiteralRegistry.register(
320
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::Ping,
321
+ :schema_name => XSD::QName.new(NsWebservices, "Ping"),
322
+ :schema_element => []
323
+ )
324
+
325
+ LiteralRegistry.register(
326
+ :class => ChannelAdvisor::MarketplaceAdServiceSOAP::PingResponse,
327
+ :schema_name => XSD::QName.new(NsWebservices, "PingResponse"),
328
+ :schema_element => [
329
+ ["pingResult", ["ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfString", XSD::QName.new(NsWebservices, "PingResult")], [0, 1]]
330
+ ]
331
+ )
332
+ end
333
+
334
+ end; end
@@ -0,0 +1,317 @@
1
+ module ChannelAdvisor; module MarketplaceAdServiceSOAP
2
+
3
+
4
+ # {http://api.channeladvisor.com/webservices/}MarketplaceAd
5
+ # iD - SOAP::SOAPInt
6
+ # sku - SOAP::SOAPString
7
+ # title - SOAP::SOAPString
8
+ # postingTemplate - SOAP::SOAPString
9
+ # adTemplate - SOAP::SOAPString
10
+ # schedule - SOAP::SOAPString
11
+ # flagStyle - ChannelAdvisor::MarketplaceAdServiceSOAP::FlagType
12
+ # flagDescription - SOAP::SOAPString
13
+ # primaryCategory - SOAP::SOAPString
14
+ # secondaryCategory - SOAP::SOAPString
15
+ # primaryStoreCategory - SOAP::SOAPString
16
+ # secondaryStoreCategory - SOAP::SOAPString
17
+ class MarketplaceAd
18
+ attr_accessor :iD
19
+ attr_accessor :sku
20
+ attr_accessor :title
21
+ attr_accessor :postingTemplate
22
+ attr_accessor :adTemplate
23
+ attr_accessor :schedule
24
+ attr_accessor :flagStyle
25
+ attr_accessor :flagDescription
26
+ attr_accessor :primaryCategory
27
+ attr_accessor :secondaryCategory
28
+ attr_accessor :primaryStoreCategory
29
+ attr_accessor :secondaryStoreCategory
30
+
31
+ def initialize(iD = nil, sku = nil, title = nil, postingTemplate = nil, adTemplate = nil, schedule = nil, flagStyle = nil, flagDescription = nil, primaryCategory = nil, secondaryCategory = nil, primaryStoreCategory = nil, secondaryStoreCategory = nil)
32
+ @iD = iD
33
+ @sku = sku
34
+ @title = title
35
+ @postingTemplate = postingTemplate
36
+ @adTemplate = adTemplate
37
+ @schedule = schedule
38
+ @flagStyle = flagStyle
39
+ @flagDescription = flagDescription
40
+ @primaryCategory = primaryCategory
41
+ @secondaryCategory = secondaryCategory
42
+ @primaryStoreCategory = primaryStoreCategory
43
+ @secondaryStoreCategory = secondaryStoreCategory
44
+ end
45
+ end
46
+
47
+ # {http://api.channeladvisor.com/webservices/}APIResultOfInt32
48
+ # status - ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus
49
+ # messageCode - SOAP::SOAPInt
50
+ # message - SOAP::SOAPString
51
+ # data - SOAP::SOAPString
52
+ # resultData - SOAP::SOAPInt
53
+ class APIResultOfInt32
54
+ attr_accessor :status
55
+ attr_accessor :messageCode
56
+ attr_accessor :message
57
+ attr_accessor :data
58
+ attr_accessor :resultData
59
+
60
+ def initialize(status = nil, messageCode = nil, message = nil, data = nil, resultData = nil)
61
+ @status = status
62
+ @messageCode = messageCode
63
+ @message = message
64
+ @data = data
65
+ @resultData = resultData
66
+ end
67
+ end
68
+
69
+ # {http://api.channeladvisor.com/webservices/}APICredentials
70
+ # developerKey - SOAP::SOAPString
71
+ # password - SOAP::SOAPString
72
+ class APICredentials
73
+ attr_accessor :developerKey
74
+ attr_accessor :password
75
+
76
+ def initialize(developerKey = nil, password = nil)
77
+ @developerKey = developerKey
78
+ @password = password
79
+ end
80
+ end
81
+
82
+ # {http://api.channeladvisor.com/webservices/}ArrayOfMarketplaceAdSkuRequest
83
+ class ArrayOfMarketplaceAdSkuRequest < ::Array
84
+ end
85
+
86
+ # {http://api.channeladvisor.com/webservices/}MarketplaceAdSkuRequest
87
+ # sku - SOAP::SOAPString
88
+ # adTitleOverride - SOAP::SOAPString
89
+ class MarketplaceAdSkuRequest
90
+ attr_accessor :sku
91
+ attr_accessor :adTitleOverride
92
+
93
+ def initialize(sku = nil, adTitleOverride = nil)
94
+ @sku = sku
95
+ @adTitleOverride = adTitleOverride
96
+ end
97
+ end
98
+
99
+ # {http://api.channeladvisor.com/webservices/}APIResultOfArrayOfMarketplaceAdSkuResponse
100
+ # status - ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus
101
+ # messageCode - SOAP::SOAPInt
102
+ # message - SOAP::SOAPString
103
+ # data - SOAP::SOAPString
104
+ # resultData - ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuResponse
105
+ class APIResultOfArrayOfMarketplaceAdSkuResponse
106
+ attr_accessor :status
107
+ attr_accessor :messageCode
108
+ attr_accessor :message
109
+ attr_accessor :data
110
+ attr_accessor :resultData
111
+
112
+ def initialize(status = nil, messageCode = nil, message = nil, data = nil, resultData = nil)
113
+ @status = status
114
+ @messageCode = messageCode
115
+ @message = message
116
+ @data = data
117
+ @resultData = resultData
118
+ end
119
+ end
120
+
121
+ # {http://api.channeladvisor.com/webservices/}ArrayOfMarketplaceAdSkuResponse
122
+ class ArrayOfMarketplaceAdSkuResponse < ::Array
123
+ end
124
+
125
+ # {http://api.channeladvisor.com/webservices/}MarketplaceAdSkuResponse
126
+ # sku - SOAP::SOAPString
127
+ # marketplaceAdID - SOAP::SOAPInt
128
+ # errorMessage - SOAP::SOAPString
129
+ class MarketplaceAdSkuResponse
130
+ attr_accessor :sku
131
+ attr_accessor :marketplaceAdID
132
+ attr_accessor :errorMessage
133
+
134
+ def initialize(sku = nil, marketplaceAdID = nil, errorMessage = nil)
135
+ @sku = sku
136
+ @marketplaceAdID = marketplaceAdID
137
+ @errorMessage = errorMessage
138
+ end
139
+ end
140
+
141
+ # {http://api.channeladvisor.com/webservices/}APIResultOfBoolean
142
+ # status - ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus
143
+ # messageCode - SOAP::SOAPInt
144
+ # message - SOAP::SOAPString
145
+ # data - SOAP::SOAPString
146
+ # resultData - SOAP::SOAPBoolean
147
+ class APIResultOfBoolean
148
+ attr_accessor :status
149
+ attr_accessor :messageCode
150
+ attr_accessor :message
151
+ attr_accessor :data
152
+ attr_accessor :resultData
153
+
154
+ def initialize(status = nil, messageCode = nil, message = nil, data = nil, resultData = nil)
155
+ @status = status
156
+ @messageCode = messageCode
157
+ @message = message
158
+ @data = data
159
+ @resultData = resultData
160
+ end
161
+ end
162
+
163
+ # {http://api.channeladvisor.com/webservices/}APIResultOfString
164
+ # status - ChannelAdvisor::MarketplaceAdServiceSOAP::ResultStatus
165
+ # messageCode - SOAP::SOAPInt
166
+ # message - SOAP::SOAPString
167
+ # data - SOAP::SOAPString
168
+ # resultData - SOAP::SOAPString
169
+ class APIResultOfString
170
+ attr_accessor :status
171
+ attr_accessor :messageCode
172
+ attr_accessor :message
173
+ attr_accessor :data
174
+ attr_accessor :resultData
175
+
176
+ def initialize(status = nil, messageCode = nil, message = nil, data = nil, resultData = nil)
177
+ @status = status
178
+ @messageCode = messageCode
179
+ @message = message
180
+ @data = data
181
+ @resultData = resultData
182
+ end
183
+ end
184
+
185
+ # {http://api.channeladvisor.com/webservices/}FlagType
186
+ class FlagType < ::String
187
+ BlueFlag = FlagType.new("BlueFlag")
188
+ ExclamationPoint = FlagType.new("ExclamationPoint")
189
+ GreenFlag = FlagType.new("GreenFlag")
190
+ NoFlag = FlagType.new("NoFlag")
191
+ NotAvailable = FlagType.new("NotAvailable")
192
+ Price = FlagType.new("Price")
193
+ QuestionMark = FlagType.new("QuestionMark")
194
+ RedFlag = FlagType.new("RedFlag")
195
+ YellowFlag = FlagType.new("YellowFlag")
196
+ end
197
+
198
+ # {http://api.channeladvisor.com/webservices/}ResultStatus
199
+ class ResultStatus < ::String
200
+ Failure = ResultStatus.new("Failure")
201
+ Success = ResultStatus.new("Success")
202
+ end
203
+
204
+ # {http://api.channeladvisor.com/webservices/}AddMarketplaceAd
205
+ # accountID - SOAP::SOAPString
206
+ # adProperties - ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAd
207
+ class AddMarketplaceAd
208
+ attr_accessor :accountID
209
+ attr_accessor :adProperties
210
+
211
+ def initialize(accountID = nil, adProperties = nil)
212
+ @accountID = accountID
213
+ @adProperties = adProperties
214
+ end
215
+ end
216
+
217
+ # {http://api.channeladvisor.com/webservices/}AddMarketplaceAdResponse
218
+ # addMarketplaceAdResult - ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfInt32
219
+ class AddMarketplaceAdResponse
220
+ attr_accessor :addMarketplaceAdResult
221
+
222
+ def initialize(addMarketplaceAdResult = nil)
223
+ @addMarketplaceAdResult = addMarketplaceAdResult
224
+ end
225
+ end
226
+
227
+ # {http://api.channeladvisor.com/webservices/}AddMarketplaceAdForSkuList
228
+ # accountID - SOAP::SOAPString
229
+ # skuList - ChannelAdvisor::MarketplaceAdServiceSOAP::ArrayOfMarketplaceAdSkuRequest
230
+ # postingTemplate - SOAP::SOAPString
231
+ # adTemplate - SOAP::SOAPString
232
+ # schedule - SOAP::SOAPString
233
+ # flagStyle - ChannelAdvisor::MarketplaceAdServiceSOAP::FlagType
234
+ # flagDescription - SOAP::SOAPString
235
+ # primaryCategory - SOAP::SOAPString
236
+ # secondaryCategory - SOAP::SOAPString
237
+ # primaryStoreCategory - SOAP::SOAPString
238
+ # secondaryStoreCategory - SOAP::SOAPString
239
+ class AddMarketplaceAdForSkuList
240
+ attr_accessor :accountID
241
+ attr_accessor :skuList
242
+ attr_accessor :postingTemplate
243
+ attr_accessor :adTemplate
244
+ attr_accessor :schedule
245
+ attr_accessor :flagStyle
246
+ attr_accessor :flagDescription
247
+ attr_accessor :primaryCategory
248
+ attr_accessor :secondaryCategory
249
+ attr_accessor :primaryStoreCategory
250
+ attr_accessor :secondaryStoreCategory
251
+
252
+ def initialize(accountID = nil, skuList = nil, postingTemplate = nil, adTemplate = nil, schedule = nil, flagStyle = nil, flagDescription = nil, primaryCategory = nil, secondaryCategory = nil, primaryStoreCategory = nil, secondaryStoreCategory = nil)
253
+ @accountID = accountID
254
+ @skuList = skuList
255
+ @postingTemplate = postingTemplate
256
+ @adTemplate = adTemplate
257
+ @schedule = schedule
258
+ @flagStyle = flagStyle
259
+ @flagDescription = flagDescription
260
+ @primaryCategory = primaryCategory
261
+ @secondaryCategory = secondaryCategory
262
+ @primaryStoreCategory = primaryStoreCategory
263
+ @secondaryStoreCategory = secondaryStoreCategory
264
+ end
265
+ end
266
+
267
+ # {http://api.channeladvisor.com/webservices/}AddMarketplaceAdForSkuListResponse
268
+ # addMarketplaceAdForSkuListResult - ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfArrayOfMarketplaceAdSkuResponse
269
+ class AddMarketplaceAdForSkuListResponse
270
+ attr_accessor :addMarketplaceAdForSkuListResult
271
+
272
+ def initialize(addMarketplaceAdForSkuListResult = nil)
273
+ @addMarketplaceAdForSkuListResult = addMarketplaceAdForSkuListResult
274
+ end
275
+ end
276
+
277
+ # {http://api.channeladvisor.com/webservices/}DeleteMarketplaceAd
278
+ # accountID - SOAP::SOAPString
279
+ # marketplaceAdID - SOAP::SOAPInt
280
+ class DeleteMarketplaceAd
281
+ attr_accessor :accountID
282
+ attr_accessor :marketplaceAdID
283
+
284
+ def initialize(accountID = nil, marketplaceAdID = nil)
285
+ @accountID = accountID
286
+ @marketplaceAdID = marketplaceAdID
287
+ end
288
+ end
289
+
290
+ # {http://api.channeladvisor.com/webservices/}DeleteMarketplaceAdResponse
291
+ # deleteMarketplaceAdResult - ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfBoolean
292
+ class DeleteMarketplaceAdResponse
293
+ attr_accessor :deleteMarketplaceAdResult
294
+
295
+ def initialize(deleteMarketplaceAdResult = nil)
296
+ @deleteMarketplaceAdResult = deleteMarketplaceAdResult
297
+ end
298
+ end
299
+
300
+ # {http://api.channeladvisor.com/webservices/}Ping
301
+ class Ping
302
+ def initialize
303
+ end
304
+ end
305
+
306
+ # {http://api.channeladvisor.com/webservices/}PingResponse
307
+ # pingResult - ChannelAdvisor::MarketplaceAdServiceSOAP::APIResultOfString
308
+ class PingResponse
309
+ attr_accessor :pingResult
310
+
311
+ def initialize(pingResult = nil)
312
+ @pingResult = pingResult
313
+ end
314
+ end
315
+
316
+
317
+ end; end
@@ -0,0 +1,14 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), 'shared_requires.rb'))
2
+ ['types.rb', 'mapping_registry.rb', 'client.rb'].each do |required|
3
+ require File.expand_path(File.join(File.dirname(__FILE__), 'marketplace_ad_service', required))
4
+ end
5
+
6
+ module ChannelAdvisor
7
+ class MarketplaceAdService
8
+ include ChannelAdvisor::ServiceProxy
9
+ define_service_methods(
10
+ ChannelAdvisor::MarketplaceAdServiceSOAP,
11
+ ChannelAdvisor::MarketplaceAdServiceSOAP::MarketplaceAdServiceSoap
12
+ )
13
+ end
14
+ end