ysm4r 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. data/Authors.txt +2 -0
  2. data/ChangeLog.txt +1 -0
  3. data/License.txt +13 -0
  4. data/Rakefile +209 -0
  5. data/Readme.txt +4 -0
  6. data/clean.sh +3 -0
  7. data/lib/soapex/driver.rb +13 -0
  8. data/lib/soapex/error.rb +49 -0
  9. data/lib/soapex/mapping.rb +31 -0
  10. data/lib/soapex/wsdl2ruby.rb +166 -0
  11. data/lib/ysm4r.rb +4 -0
  12. data/lib/ysm4r/client.rb +120 -0
  13. data/lib/ysm4r/service.rb +68 -0
  14. data/lib/ysm4r/v1/AccountService.rb +370 -0
  15. data/lib/ysm4r/v1/AccountServiceDriver.rb +162 -0
  16. data/lib/ysm4r/v1/AccountServiceMappingRegistry.rb +509 -0
  17. data/lib/ysm4r/v1/AdGroupService.rb +649 -0
  18. data/lib/ysm4r/v1/AdGroupServiceDriver.rb +226 -0
  19. data/lib/ysm4r/v1/AdGroupServiceMappingRegistry.rb +864 -0
  20. data/lib/ysm4r/v1/AdService.rb +533 -0
  21. data/lib/ysm4r/v1/AdServiceDriver.rb +178 -0
  22. data/lib/ysm4r/v1/AdServiceMappingRegistry.rb +753 -0
  23. data/lib/ysm4r/v1/BasicReportService.rb +259 -0
  24. data/lib/ysm4r/v1/BasicReportServiceDriver.rb +98 -0
  25. data/lib/ysm4r/v1/BasicReportServiceMappingRegistry.rb +389 -0
  26. data/lib/ysm4r/v1/BidInformationService.rb +69 -0
  27. data/lib/ysm4r/v1/BidInformationServiceDriver.rb +50 -0
  28. data/lib/ysm4r/v1/BidInformationServiceMappingRegistry.rb +135 -0
  29. data/lib/ysm4r/v1/BudgetingService.rb +161 -0
  30. data/lib/ysm4r/v1/BudgetingServiceDriver.rb +98 -0
  31. data/lib/ysm4r/v1/BudgetingServiceMappingRegistry.rb +230 -0
  32. data/lib/ysm4r/v1/CampaignService.rb +644 -0
  33. data/lib/ysm4r/v1/CampaignServiceDriver.rb +210 -0
  34. data/lib/ysm4r/v1/CampaignServiceMappingRegistry.rb +909 -0
  35. data/lib/ysm4r/v1/ExcludedWordsService.rb +294 -0
  36. data/lib/ysm4r/v1/ExcludedWordsServiceDriver.rb +122 -0
  37. data/lib/ysm4r/v1/ExcludedWordsServiceMappingRegistry.rb +469 -0
  38. data/lib/ysm4r/v1/ForecastService.rb +200 -0
  39. data/lib/ysm4r/v1/ForecastServiceDriver.rb +66 -0
  40. data/lib/ysm4r/v1/ForecastServiceMappingRegistry.rb +359 -0
  41. data/lib/ysm4r/v1/KeywordResearchService.rb +290 -0
  42. data/lib/ysm4r/v1/KeywordResearchServiceDriver.rb +66 -0
  43. data/lib/ysm4r/v1/KeywordResearchServiceMappingRegistry.rb +548 -0
  44. data/lib/ysm4r/v1/KeywordService.rb +671 -0
  45. data/lib/ysm4r/v1/KeywordServiceDriver.rb +218 -0
  46. data/lib/ysm4r/v1/KeywordServiceMappingRegistry.rb +913 -0
  47. data/lib/ysm4r/v1/LocationService.rb +53 -0
  48. data/lib/ysm4r/v1/LocationServiceDriver.rb +50 -0
  49. data/lib/ysm4r/v1/LocationServiceMappingRegistry.rb +111 -0
  50. data/lib/ysm4r/v1/MasterAccountService.rb +289 -0
  51. data/lib/ysm4r/v1/MasterAccountServiceDriver.rb +74 -0
  52. data/lib/ysm4r/v1/MasterAccountServiceMappingRegistry.rb +414 -0
  53. data/lib/ysm4r/v1/UpgradeService.rb +72 -0
  54. data/lib/ysm4r/v1/UpgradeServiceDriver.rb +58 -0
  55. data/lib/ysm4r/v1/UpgradeServiceMappingRegistry.rb +145 -0
  56. data/lib/ysm4r/v1/UserManagementService.rb +766 -0
  57. data/lib/ysm4r/v1/UserManagementServiceDriver.rb +290 -0
  58. data/lib/ysm4r/v1/UserManagementServiceMappingRegistry.rb +1057 -0
  59. data/lib/ysm4r/v1/sandbox/LocationService.rb +53 -0
  60. data/lib/ysm4r/v1/sandbox/LocationServiceDriver.rb +50 -0
  61. data/lib/ysm4r/v1/sandbox/LocationServiceMappingRegistry.rb +111 -0
  62. data/lib/ysm4r/v1/sandbox/UpgradeService.rb +72 -0
  63. data/lib/ysm4r/v1/sandbox/UpgradeServiceDriver.rb +58 -0
  64. data/lib/ysm4r/v1/sandbox/UpgradeServiceMappingRegistry.rb +145 -0
  65. data/lib/ysm4r/v2/AccountService.rb +372 -0
  66. data/lib/ysm4r/v2/AccountServiceDriver.rb +162 -0
  67. data/lib/ysm4r/v2/AccountServiceMappingRegistry.rb +510 -0
  68. data/lib/ysm4r/v2/AdGroupService.rb +649 -0
  69. data/lib/ysm4r/v2/AdGroupServiceDriver.rb +226 -0
  70. data/lib/ysm4r/v2/AdGroupServiceMappingRegistry.rb +864 -0
  71. data/lib/ysm4r/v2/AdService.rb +553 -0
  72. data/lib/ysm4r/v2/AdServiceDriver.rb +186 -0
  73. data/lib/ysm4r/v2/AdServiceMappingRegistry.rb +774 -0
  74. data/lib/ysm4r/v2/BasicReportService.rb +272 -0
  75. data/lib/ysm4r/v2/BasicReportServiceDriver.rb +98 -0
  76. data/lib/ysm4r/v2/BasicReportServiceMappingRegistry.rb +389 -0
  77. data/lib/ysm4r/v2/BidInformationService.rb +109 -0
  78. data/lib/ysm4r/v2/BidInformationServiceDriver.rb +66 -0
  79. data/lib/ysm4r/v2/BidInformationServiceMappingRegistry.rb +177 -0
  80. data/lib/ysm4r/v2/BudgetingService.rb +161 -0
  81. data/lib/ysm4r/v2/BudgetingServiceDriver.rb +98 -0
  82. data/lib/ysm4r/v2/BudgetingServiceMappingRegistry.rb +230 -0
  83. data/lib/ysm4r/v2/CampaignService.rb +644 -0
  84. data/lib/ysm4r/v2/CampaignServiceDriver.rb +210 -0
  85. data/lib/ysm4r/v2/CampaignServiceMappingRegistry.rb +909 -0
  86. data/lib/ysm4r/v2/CompanyService.rb +68 -0
  87. data/lib/ysm4r/v2/CompanyServiceDriver.rb +50 -0
  88. data/lib/ysm4r/v2/CompanyServiceMappingRegistry.rb +136 -0
  89. data/lib/ysm4r/v2/ExcludedWordsService.rb +294 -0
  90. data/lib/ysm4r/v2/ExcludedWordsServiceDriver.rb +122 -0
  91. data/lib/ysm4r/v2/ExcludedWordsServiceMappingRegistry.rb +469 -0
  92. data/lib/ysm4r/v2/ForecastService.rb +200 -0
  93. data/lib/ysm4r/v2/ForecastServiceDriver.rb +66 -0
  94. data/lib/ysm4r/v2/ForecastServiceMappingRegistry.rb +359 -0
  95. data/lib/ysm4r/v2/KeywordResearchService.rb +369 -0
  96. data/lib/ysm4r/v2/KeywordResearchServiceDriver.rb +82 -0
  97. data/lib/ysm4r/v2/KeywordResearchServiceMappingRegistry.rb +673 -0
  98. data/lib/ysm4r/v2/KeywordService.rb +691 -0
  99. data/lib/ysm4r/v2/KeywordServiceDriver.rb +226 -0
  100. data/lib/ysm4r/v2/KeywordServiceMappingRegistry.rb +934 -0
  101. data/lib/ysm4r/v2/LocationService.rb +53 -0
  102. data/lib/ysm4r/v2/LocationServiceDriver.rb +50 -0
  103. data/lib/ysm4r/v2/LocationServiceMappingRegistry.rb +111 -0
  104. data/lib/ysm4r/v2/MasterAccountService.rb +332 -0
  105. data/lib/ysm4r/v2/MasterAccountServiceDriver.rb +82 -0
  106. data/lib/ysm4r/v2/MasterAccountServiceMappingRegistry.rb +480 -0
  107. data/lib/ysm4r/v2/UpgradeService.rb +72 -0
  108. data/lib/ysm4r/v2/UpgradeServiceDriver.rb +58 -0
  109. data/lib/ysm4r/v2/UpgradeServiceMappingRegistry.rb +145 -0
  110. data/lib/ysm4r/v2/UserManagementService.rb +766 -0
  111. data/lib/ysm4r/v2/UserManagementServiceDriver.rb +290 -0
  112. data/lib/ysm4r/v2/UserManagementServiceMappingRegistry.rb +1057 -0
  113. data/lib/ysm4r/v2/sandbox/LocationService.rb +53 -0
  114. data/lib/ysm4r/v2/sandbox/LocationServiceDriver.rb +50 -0
  115. data/lib/ysm4r/v2/sandbox/LocationServiceMappingRegistry.rb +111 -0
  116. data/lib/ysm4r/v2/sandbox/UpgradeService.rb +72 -0
  117. data/lib/ysm4r/v2/sandbox/UpgradeServiceDriver.rb +58 -0
  118. data/lib/ysm4r/v2/sandbox/UpgradeServiceMappingRegistry.rb +145 -0
  119. data/setup.rb +1585 -0
  120. data/test/test_campaign_service.rb +12 -0
  121. data/test/test_keyword_research_service.rb +15 -0
  122. data/test/test_master_account_service.rb +18 -0
  123. data/ysm.properties +6 -0
  124. metadata +171 -0
@@ -0,0 +1,372 @@
1
+ require 'xsd/qname'
2
+
3
+ module YSM::AccountService
4
+
5
+
6
+ # {http://marketing.ews.yahooapis.com/V2}ApiFault
7
+ class ApiFault < ::StandardError
8
+ attr_accessor :code
9
+ attr_accessor :message
10
+
11
+ def initialize(code = nil, message = nil)
12
+ @code = code
13
+ @message = message
14
+ end
15
+ end
16
+
17
+ # {http://marketing.ews.yahooapis.com/V2}ArrayOfContinent
18
+ class ArrayOfContinent < ::Array
19
+ end
20
+
21
+ # {http://marketing.ews.yahooapis.com/V2}Account
22
+ class Account
23
+ attr_accessor :iD
24
+ attr_accessor :advancedMatchON
25
+ attr_accessor :businessTypeCode
26
+ attr_accessor :contentMatchON
27
+ attr_accessor :displayURL
28
+ attr_accessor :marketID
29
+ attr_accessor :masterAccountID
30
+ attr_accessor :name
31
+ attr_accessor :nameFurigana
32
+ attr_accessor :personalID
33
+ attr_accessor :sitePassword
34
+ attr_accessor :siteUserName
35
+ attr_accessor :sponsoredSearchON
36
+ attr_accessor :vatRegistrationNumber
37
+ attr_accessor :websiteURL
38
+
39
+ def initialize(iD = nil, advancedMatchON = nil, businessTypeCode = nil, contentMatchON = nil, displayURL = nil, marketID = nil, masterAccountID = nil, name = nil, nameFurigana = nil, personalID = nil, sitePassword = nil, siteUserName = nil, sponsoredSearchON = nil, vatRegistrationNumber = nil, websiteURL = nil)
40
+ @iD = iD
41
+ @advancedMatchON = advancedMatchON
42
+ @businessTypeCode = businessTypeCode
43
+ @contentMatchON = contentMatchON
44
+ @displayURL = displayURL
45
+ @marketID = marketID
46
+ @masterAccountID = masterAccountID
47
+ @name = name
48
+ @nameFurigana = nameFurigana
49
+ @personalID = personalID
50
+ @sitePassword = sitePassword
51
+ @siteUserName = siteUserName
52
+ @sponsoredSearchON = sponsoredSearchON
53
+ @vatRegistrationNumber = vatRegistrationNumber
54
+ @websiteURL = websiteURL
55
+ end
56
+ end
57
+
58
+ # {http://marketing.ews.yahooapis.com/V2}ArrayOfAccount
59
+ class ArrayOfAccount < ::Array
60
+ end
61
+
62
+ # {http://marketing.ews.yahooapis.com/V2}CombinedAccountStatus
63
+ class CombinedAccountStatus
64
+ attr_accessor :accountStatus
65
+ attr_accessor :onlineStatus
66
+ attr_accessor :onlineStatusAsOf
67
+
68
+ def initialize(accountStatus = nil, onlineStatus = nil, onlineStatusAsOf = nil)
69
+ @accountStatus = accountStatus
70
+ @onlineStatus = onlineStatus
71
+ @onlineStatusAsOf = onlineStatusAsOf
72
+ end
73
+ end
74
+
75
+ # {http://schemas.xmlsoap.org/ws/2002/07/secext}Security
76
+ class Security
77
+ attr_accessor :usernameToken
78
+
79
+ def initialize(usernameToken = nil)
80
+ @usernameToken = usernameToken
81
+ end
82
+ end
83
+
84
+ # {http://schemas.xmlsoap.org/ws/2002/07/secext}UsernameToken
85
+ class UsernameToken
86
+ attr_accessor :username
87
+ attr_accessor :password
88
+
89
+ def initialize(username = nil, password = nil)
90
+ @username = username
91
+ @password = password
92
+ end
93
+ end
94
+
95
+ # {http://marketing.ews.yahooapis.com/V2}Continent
96
+ class Continent < ::String
97
+ Africa = Continent.new("Africa")
98
+ Asia = Continent.new("Asia")
99
+ Australia = Continent.new("Australia")
100
+ Europe = Continent.new("Europe")
101
+ NorthAmerica = Continent.new("NorthAmerica")
102
+ SouthAmerica = Continent.new("SouthAmerica")
103
+ end
104
+
105
+ # {http://marketing.ews.yahooapis.com/V2}AccountStatus
106
+ class AccountStatus < ::String
107
+ Active = AccountStatus.new("Active")
108
+ Inactive = AccountStatus.new("Inactive")
109
+ end
110
+
111
+ # {http://marketing.ews.yahooapis.com/V2}addMoney
112
+ class AddMoney
113
+ attr_accessor :accountID
114
+ attr_accessor :amount
115
+
116
+ def initialize(accountID = nil, amount = nil)
117
+ @accountID = accountID
118
+ @amount = amount
119
+ end
120
+ end
121
+
122
+ # {http://marketing.ews.yahooapis.com/V2}addMoneyResponse
123
+ class AddMoneyResponse
124
+ def initialize
125
+ end
126
+ end
127
+
128
+ # {http://marketing.ews.yahooapis.com/V2}deleteContinentBlockListFromAccount
129
+ class DeleteContinentBlockListFromAccount
130
+ attr_accessor :accountID
131
+
132
+ def initialize(accountID = nil)
133
+ @accountID = accountID
134
+ end
135
+ end
136
+
137
+ # {http://marketing.ews.yahooapis.com/V2}deleteContinentBlockListFromAccountResponse
138
+ class DeleteContinentBlockListFromAccountResponse
139
+ def initialize
140
+ end
141
+ end
142
+
143
+ # {http://marketing.ews.yahooapis.com/V2}getContinentBlockListForAccount
144
+ class GetContinentBlockListForAccount
145
+ attr_accessor :accountID
146
+
147
+ def initialize(accountID = nil)
148
+ @accountID = accountID
149
+ end
150
+ end
151
+
152
+ # {http://marketing.ews.yahooapis.com/V2}getContinentBlockListForAccountResponse
153
+ class GetContinentBlockListForAccountResponse
154
+ attr_accessor :out
155
+
156
+ def initialize(out = nil)
157
+ @out = out
158
+ end
159
+ end
160
+
161
+ # {http://marketing.ews.yahooapis.com/V2}getAccount
162
+ class GetAccount
163
+ attr_accessor :accountID
164
+
165
+ def initialize(accountID = nil)
166
+ @accountID = accountID
167
+ end
168
+ end
169
+
170
+ # {http://marketing.ews.yahooapis.com/V2}getAccountResponse
171
+ class GetAccountResponse
172
+ attr_accessor :out
173
+
174
+ def initialize(out = nil)
175
+ @out = out
176
+ end
177
+ end
178
+
179
+ # {http://marketing.ews.yahooapis.com/V2}setChargeAmount
180
+ class SetChargeAmount
181
+ attr_accessor :accountID
182
+ attr_accessor :chargeAmount
183
+
184
+ def initialize(accountID = nil, chargeAmount = nil)
185
+ @accountID = accountID
186
+ @chargeAmount = chargeAmount
187
+ end
188
+ end
189
+
190
+ # {http://marketing.ews.yahooapis.com/V2}setChargeAmountResponse
191
+ class SetChargeAmountResponse
192
+ def initialize
193
+ end
194
+ end
195
+
196
+ # {http://marketing.ews.yahooapis.com/V2}getChargeAmount
197
+ class GetChargeAmount
198
+ attr_accessor :accountID
199
+
200
+ def initialize(accountID = nil)
201
+ @accountID = accountID
202
+ end
203
+ end
204
+
205
+ # {http://marketing.ews.yahooapis.com/V2}getChargeAmountResponse
206
+ class GetChargeAmountResponse
207
+ attr_accessor :out
208
+
209
+ def initialize(out = nil)
210
+ @out = out
211
+ end
212
+ end
213
+
214
+ # {http://marketing.ews.yahooapis.com/V2}setActiveCreditCard
215
+ class SetActiveCreditCard
216
+ attr_accessor :accountID
217
+ attr_accessor :paymentMethodID
218
+
219
+ def initialize(accountID = nil, paymentMethodID = nil)
220
+ @accountID = accountID
221
+ @paymentMethodID = paymentMethodID
222
+ end
223
+ end
224
+
225
+ # {http://marketing.ews.yahooapis.com/V2}setActiveCreditCardResponse
226
+ class SetActiveCreditCardResponse
227
+ def initialize
228
+ end
229
+ end
230
+
231
+ # {http://marketing.ews.yahooapis.com/V2}updateAccount
232
+ class UpdateAccount
233
+ attr_accessor :account
234
+ attr_accessor :updateAll
235
+
236
+ def initialize(account = nil, updateAll = nil)
237
+ @account = account
238
+ @updateAll = updateAll
239
+ end
240
+ end
241
+
242
+ # {http://marketing.ews.yahooapis.com/V2}updateAccountResponse
243
+ class UpdateAccountResponse
244
+ def initialize
245
+ end
246
+ end
247
+
248
+ # {http://marketing.ews.yahooapis.com/V2}getActiveCreditCard
249
+ class GetActiveCreditCard
250
+ attr_accessor :accountID
251
+
252
+ def initialize(accountID = nil)
253
+ @accountID = accountID
254
+ end
255
+ end
256
+
257
+ # {http://marketing.ews.yahooapis.com/V2}getActiveCreditCardResponse
258
+ class GetActiveCreditCardResponse
259
+ attr_accessor :out
260
+
261
+ def initialize(out = nil)
262
+ @out = out
263
+ end
264
+ end
265
+
266
+ # {http://marketing.ews.yahooapis.com/V2}addAccount
267
+ class AddAccount
268
+ attr_accessor :account
269
+ attr_accessor :accountDailySpendLimit
270
+
271
+ def initialize(account = nil, accountDailySpendLimit = nil)
272
+ @account = account
273
+ @accountDailySpendLimit = accountDailySpendLimit
274
+ end
275
+ end
276
+
277
+ # {http://marketing.ews.yahooapis.com/V2}addAccountResponse
278
+ class AddAccountResponse
279
+ attr_accessor :out
280
+
281
+ def initialize(out = nil)
282
+ @out = out
283
+ end
284
+ end
285
+
286
+ # {http://marketing.ews.yahooapis.com/V2}updateStatusForAccount
287
+ class UpdateStatusForAccount
288
+ attr_accessor :accountID
289
+ attr_accessor :accountStatus
290
+
291
+ def initialize(accountID = nil, accountStatus = nil)
292
+ @accountID = accountID
293
+ @accountStatus = accountStatus
294
+ end
295
+ end
296
+
297
+ # {http://marketing.ews.yahooapis.com/V2}updateStatusForAccountResponse
298
+ class UpdateStatusForAccountResponse
299
+ def initialize
300
+ end
301
+ end
302
+
303
+ # {http://marketing.ews.yahooapis.com/V2}getAccountBalance
304
+ class GetAccountBalance
305
+ attr_accessor :accountID
306
+
307
+ def initialize(accountID = nil)
308
+ @accountID = accountID
309
+ end
310
+ end
311
+
312
+ # {http://marketing.ews.yahooapis.com/V2}getAccountBalanceResponse
313
+ class GetAccountBalanceResponse
314
+ attr_accessor :out
315
+
316
+ def initialize(out = nil)
317
+ @out = out
318
+ end
319
+ end
320
+
321
+ # {http://marketing.ews.yahooapis.com/V2}getAccounts
322
+ class GetAccounts
323
+ def initialize
324
+ end
325
+ end
326
+
327
+ # {http://marketing.ews.yahooapis.com/V2}getAccountsResponse
328
+ class GetAccountsResponse
329
+ attr_accessor :out
330
+
331
+ def initialize(out = nil)
332
+ @out = out
333
+ end
334
+ end
335
+
336
+ # {http://marketing.ews.yahooapis.com/V2}setContinentBlockListForAccount
337
+ class SetContinentBlockListForAccount
338
+ attr_accessor :accountID
339
+ attr_accessor :continents
340
+
341
+ def initialize(accountID = nil, continents = nil)
342
+ @accountID = accountID
343
+ @continents = continents
344
+ end
345
+ end
346
+
347
+ # {http://marketing.ews.yahooapis.com/V2}setContinentBlockListForAccountResponse
348
+ class SetContinentBlockListForAccountResponse
349
+ def initialize
350
+ end
351
+ end
352
+
353
+ # {http://marketing.ews.yahooapis.com/V2}getAccountStatus
354
+ class GetAccountStatus
355
+ attr_accessor :accountID
356
+
357
+ def initialize(accountID = nil)
358
+ @accountID = accountID
359
+ end
360
+ end
361
+
362
+ # {http://marketing.ews.yahooapis.com/V2}getAccountStatusResponse
363
+ class GetAccountStatusResponse
364
+ attr_accessor :out
365
+
366
+ def initialize(out = nil)
367
+ @out = out
368
+ end
369
+ end
370
+
371
+
372
+ end
@@ -0,0 +1,162 @@
1
+ require 'ysm4r/v2/AccountServiceMappingRegistry'
2
+
3
+
4
+ module YSM::AccountService
5
+ require 'soap/rpc/driver'
6
+
7
+ class AccountService < ::SOAP::RPC::Driver
8
+ DefaultEndpointUrl = "https://USE_ADDRESS_RETURNED_BY_LOCATION_SERVICE/services/V2/AccountService"
9
+
10
+ Methods = [
11
+ [ "",
12
+ "addMoney",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "addMoney"]],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "addMoneyResponse"]] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal,
17
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
18
+ ],
19
+ [ "",
20
+ "deleteContinentBlockListFromAccount",
21
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "deleteContinentBlockListFromAccount"]],
22
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "deleteContinentBlockListFromAccountResponse"]] ],
23
+ { :request_style => :document, :request_use => :literal,
24
+ :response_style => :document, :response_use => :literal,
25
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
26
+ ],
27
+ [ "",
28
+ "getContinentBlockListForAccount",
29
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getContinentBlockListForAccount"]],
30
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getContinentBlockListForAccountResponse"]] ],
31
+ { :request_style => :document, :request_use => :literal,
32
+ :response_style => :document, :response_use => :literal,
33
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
34
+ ],
35
+ [ "",
36
+ "getAccount",
37
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccount"]],
38
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountResponse"]] ],
39
+ { :request_style => :document, :request_use => :literal,
40
+ :response_style => :document, :response_use => :literal,
41
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
42
+ ],
43
+ [ "",
44
+ "setChargeAmount",
45
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "setChargeAmount"]],
46
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "setChargeAmountResponse"]] ],
47
+ { :request_style => :document, :request_use => :literal,
48
+ :response_style => :document, :response_use => :literal,
49
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
50
+ ],
51
+ [ "",
52
+ "getChargeAmount",
53
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getChargeAmount"]],
54
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getChargeAmountResponse"]] ],
55
+ { :request_style => :document, :request_use => :literal,
56
+ :response_style => :document, :response_use => :literal,
57
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
58
+ ],
59
+ [ "",
60
+ "setActiveCreditCard",
61
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "setActiveCreditCard"]],
62
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "setActiveCreditCardResponse"]] ],
63
+ { :request_style => :document, :request_use => :literal,
64
+ :response_style => :document, :response_use => :literal,
65
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
66
+ ],
67
+ [ "",
68
+ "updateAccount",
69
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateAccount"]],
70
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateAccountResponse"]] ],
71
+ { :request_style => :document, :request_use => :literal,
72
+ :response_style => :document, :response_use => :literal,
73
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
74
+ ],
75
+ [ "",
76
+ "getActiveCreditCard",
77
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getActiveCreditCard"]],
78
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getActiveCreditCardResponse"]] ],
79
+ { :request_style => :document, :request_use => :literal,
80
+ :response_style => :document, :response_use => :literal,
81
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
82
+ ],
83
+ [ "",
84
+ "addAccount",
85
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "addAccount"]],
86
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "addAccountResponse"]] ],
87
+ { :request_style => :document, :request_use => :literal,
88
+ :response_style => :document, :response_use => :literal,
89
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
90
+ ],
91
+ [ "",
92
+ "updateStatusForAccount",
93
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateStatusForAccount"]],
94
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateStatusForAccountResponse"]] ],
95
+ { :request_style => :document, :request_use => :literal,
96
+ :response_style => :document, :response_use => :literal,
97
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
98
+ ],
99
+ [ "",
100
+ "getAccountBalance",
101
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountBalance"]],
102
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountBalanceResponse"]] ],
103
+ { :request_style => :document, :request_use => :literal,
104
+ :response_style => :document, :response_use => :literal,
105
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
106
+ ],
107
+ [ "",
108
+ "getAccounts",
109
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccounts"]],
110
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountsResponse"]] ],
111
+ { :request_style => :document, :request_use => :literal,
112
+ :response_style => :document, :response_use => :literal,
113
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
114
+ ],
115
+ [ "",
116
+ "setContinentBlockListForAccount",
117
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "setContinentBlockListForAccount"]],
118
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "setContinentBlockListForAccountResponse"]] ],
119
+ { :request_style => :document, :request_use => :literal,
120
+ :response_style => :document, :response_use => :literal,
121
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
122
+ ],
123
+ [ "",
124
+ "getAccountStatus",
125
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountStatus"]],
126
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountStatusResponse"]] ],
127
+ { :request_style => :document, :request_use => :literal,
128
+ :response_style => :document, :response_use => :literal,
129
+ :faults => {"YSM::AccountService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
130
+ ]
131
+ ]
132
+
133
+ def initialize(endpoint_url = nil)
134
+ endpoint_url ||= DefaultEndpointUrl
135
+ super(endpoint_url, nil)
136
+ self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
137
+ self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
138
+ init_methods
139
+ end
140
+
141
+ private
142
+
143
+ def init_methods
144
+ Methods.each do |definitions|
145
+ opt = definitions.last
146
+ if opt[:request_style] == :document
147
+ add_document_operation(*definitions)
148
+ else
149
+ add_rpc_operation(*definitions)
150
+ qname = definitions[0]
151
+ name = definitions[2]
152
+ if qname.name != name and qname.name.capitalize == name.capitalize
153
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
154
+ __send__(name, *arg)
155
+ end
156
+ end
157
+ end
158
+ end
159
+ end
160
+ end
161
+
162
+ end