ysm4r 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Authors.txt +2 -0
- data/ChangeLog.txt +1 -0
- data/License.txt +13 -0
- data/Rakefile +209 -0
- data/Readme.txt +4 -0
- data/clean.sh +3 -0
- data/lib/soapex/driver.rb +13 -0
- data/lib/soapex/error.rb +49 -0
- data/lib/soapex/mapping.rb +31 -0
- data/lib/soapex/wsdl2ruby.rb +166 -0
- data/lib/ysm4r.rb +4 -0
- data/lib/ysm4r/client.rb +120 -0
- data/lib/ysm4r/service.rb +68 -0
- data/lib/ysm4r/v1/AccountService.rb +370 -0
- data/lib/ysm4r/v1/AccountServiceDriver.rb +162 -0
- data/lib/ysm4r/v1/AccountServiceMappingRegistry.rb +509 -0
- data/lib/ysm4r/v1/AdGroupService.rb +649 -0
- data/lib/ysm4r/v1/AdGroupServiceDriver.rb +226 -0
- data/lib/ysm4r/v1/AdGroupServiceMappingRegistry.rb +864 -0
- data/lib/ysm4r/v1/AdService.rb +533 -0
- data/lib/ysm4r/v1/AdServiceDriver.rb +178 -0
- data/lib/ysm4r/v1/AdServiceMappingRegistry.rb +753 -0
- data/lib/ysm4r/v1/BasicReportService.rb +259 -0
- data/lib/ysm4r/v1/BasicReportServiceDriver.rb +98 -0
- data/lib/ysm4r/v1/BasicReportServiceMappingRegistry.rb +389 -0
- data/lib/ysm4r/v1/BidInformationService.rb +69 -0
- data/lib/ysm4r/v1/BidInformationServiceDriver.rb +50 -0
- data/lib/ysm4r/v1/BidInformationServiceMappingRegistry.rb +135 -0
- data/lib/ysm4r/v1/BudgetingService.rb +161 -0
- data/lib/ysm4r/v1/BudgetingServiceDriver.rb +98 -0
- data/lib/ysm4r/v1/BudgetingServiceMappingRegistry.rb +230 -0
- data/lib/ysm4r/v1/CampaignService.rb +644 -0
- data/lib/ysm4r/v1/CampaignServiceDriver.rb +210 -0
- data/lib/ysm4r/v1/CampaignServiceMappingRegistry.rb +909 -0
- data/lib/ysm4r/v1/ExcludedWordsService.rb +294 -0
- data/lib/ysm4r/v1/ExcludedWordsServiceDriver.rb +122 -0
- data/lib/ysm4r/v1/ExcludedWordsServiceMappingRegistry.rb +469 -0
- data/lib/ysm4r/v1/ForecastService.rb +200 -0
- data/lib/ysm4r/v1/ForecastServiceDriver.rb +66 -0
- data/lib/ysm4r/v1/ForecastServiceMappingRegistry.rb +359 -0
- data/lib/ysm4r/v1/KeywordResearchService.rb +290 -0
- data/lib/ysm4r/v1/KeywordResearchServiceDriver.rb +66 -0
- data/lib/ysm4r/v1/KeywordResearchServiceMappingRegistry.rb +548 -0
- data/lib/ysm4r/v1/KeywordService.rb +671 -0
- data/lib/ysm4r/v1/KeywordServiceDriver.rb +218 -0
- data/lib/ysm4r/v1/KeywordServiceMappingRegistry.rb +913 -0
- data/lib/ysm4r/v1/LocationService.rb +53 -0
- data/lib/ysm4r/v1/LocationServiceDriver.rb +50 -0
- data/lib/ysm4r/v1/LocationServiceMappingRegistry.rb +111 -0
- data/lib/ysm4r/v1/MasterAccountService.rb +289 -0
- data/lib/ysm4r/v1/MasterAccountServiceDriver.rb +74 -0
- data/lib/ysm4r/v1/MasterAccountServiceMappingRegistry.rb +414 -0
- data/lib/ysm4r/v1/UpgradeService.rb +72 -0
- data/lib/ysm4r/v1/UpgradeServiceDriver.rb +58 -0
- data/lib/ysm4r/v1/UpgradeServiceMappingRegistry.rb +145 -0
- data/lib/ysm4r/v1/UserManagementService.rb +766 -0
- data/lib/ysm4r/v1/UserManagementServiceDriver.rb +290 -0
- data/lib/ysm4r/v1/UserManagementServiceMappingRegistry.rb +1057 -0
- data/lib/ysm4r/v1/sandbox/LocationService.rb +53 -0
- data/lib/ysm4r/v1/sandbox/LocationServiceDriver.rb +50 -0
- data/lib/ysm4r/v1/sandbox/LocationServiceMappingRegistry.rb +111 -0
- data/lib/ysm4r/v1/sandbox/UpgradeService.rb +72 -0
- data/lib/ysm4r/v1/sandbox/UpgradeServiceDriver.rb +58 -0
- data/lib/ysm4r/v1/sandbox/UpgradeServiceMappingRegistry.rb +145 -0
- data/lib/ysm4r/v2/AccountService.rb +372 -0
- data/lib/ysm4r/v2/AccountServiceDriver.rb +162 -0
- data/lib/ysm4r/v2/AccountServiceMappingRegistry.rb +510 -0
- data/lib/ysm4r/v2/AdGroupService.rb +649 -0
- data/lib/ysm4r/v2/AdGroupServiceDriver.rb +226 -0
- data/lib/ysm4r/v2/AdGroupServiceMappingRegistry.rb +864 -0
- data/lib/ysm4r/v2/AdService.rb +553 -0
- data/lib/ysm4r/v2/AdServiceDriver.rb +186 -0
- data/lib/ysm4r/v2/AdServiceMappingRegistry.rb +774 -0
- data/lib/ysm4r/v2/BasicReportService.rb +272 -0
- data/lib/ysm4r/v2/BasicReportServiceDriver.rb +98 -0
- data/lib/ysm4r/v2/BasicReportServiceMappingRegistry.rb +389 -0
- data/lib/ysm4r/v2/BidInformationService.rb +109 -0
- data/lib/ysm4r/v2/BidInformationServiceDriver.rb +66 -0
- data/lib/ysm4r/v2/BidInformationServiceMappingRegistry.rb +177 -0
- data/lib/ysm4r/v2/BudgetingService.rb +161 -0
- data/lib/ysm4r/v2/BudgetingServiceDriver.rb +98 -0
- data/lib/ysm4r/v2/BudgetingServiceMappingRegistry.rb +230 -0
- data/lib/ysm4r/v2/CampaignService.rb +644 -0
- data/lib/ysm4r/v2/CampaignServiceDriver.rb +210 -0
- data/lib/ysm4r/v2/CampaignServiceMappingRegistry.rb +909 -0
- data/lib/ysm4r/v2/CompanyService.rb +68 -0
- data/lib/ysm4r/v2/CompanyServiceDriver.rb +50 -0
- data/lib/ysm4r/v2/CompanyServiceMappingRegistry.rb +136 -0
- data/lib/ysm4r/v2/ExcludedWordsService.rb +294 -0
- data/lib/ysm4r/v2/ExcludedWordsServiceDriver.rb +122 -0
- data/lib/ysm4r/v2/ExcludedWordsServiceMappingRegistry.rb +469 -0
- data/lib/ysm4r/v2/ForecastService.rb +200 -0
- data/lib/ysm4r/v2/ForecastServiceDriver.rb +66 -0
- data/lib/ysm4r/v2/ForecastServiceMappingRegistry.rb +359 -0
- data/lib/ysm4r/v2/KeywordResearchService.rb +369 -0
- data/lib/ysm4r/v2/KeywordResearchServiceDriver.rb +82 -0
- data/lib/ysm4r/v2/KeywordResearchServiceMappingRegistry.rb +673 -0
- data/lib/ysm4r/v2/KeywordService.rb +691 -0
- data/lib/ysm4r/v2/KeywordServiceDriver.rb +226 -0
- data/lib/ysm4r/v2/KeywordServiceMappingRegistry.rb +934 -0
- data/lib/ysm4r/v2/LocationService.rb +53 -0
- data/lib/ysm4r/v2/LocationServiceDriver.rb +50 -0
- data/lib/ysm4r/v2/LocationServiceMappingRegistry.rb +111 -0
- data/lib/ysm4r/v2/MasterAccountService.rb +332 -0
- data/lib/ysm4r/v2/MasterAccountServiceDriver.rb +82 -0
- data/lib/ysm4r/v2/MasterAccountServiceMappingRegistry.rb +480 -0
- data/lib/ysm4r/v2/UpgradeService.rb +72 -0
- data/lib/ysm4r/v2/UpgradeServiceDriver.rb +58 -0
- data/lib/ysm4r/v2/UpgradeServiceMappingRegistry.rb +145 -0
- data/lib/ysm4r/v2/UserManagementService.rb +766 -0
- data/lib/ysm4r/v2/UserManagementServiceDriver.rb +290 -0
- data/lib/ysm4r/v2/UserManagementServiceMappingRegistry.rb +1057 -0
- data/lib/ysm4r/v2/sandbox/LocationService.rb +53 -0
- data/lib/ysm4r/v2/sandbox/LocationServiceDriver.rb +50 -0
- data/lib/ysm4r/v2/sandbox/LocationServiceMappingRegistry.rb +111 -0
- data/lib/ysm4r/v2/sandbox/UpgradeService.rb +72 -0
- data/lib/ysm4r/v2/sandbox/UpgradeServiceDriver.rb +58 -0
- data/lib/ysm4r/v2/sandbox/UpgradeServiceMappingRegistry.rb +145 -0
- data/setup.rb +1585 -0
- data/test/test_campaign_service.rb +12 -0
- data/test/test_keyword_research_service.rb +15 -0
- data/test/test_master_account_service.rb +18 -0
- data/ysm.properties +6 -0
- 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
|