ysm4r 0.1

Sign up to get free protection for your applications and to get access to all the features.
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,53 @@
1
+ require 'xsd/qname'
2
+
3
+ module YSM::LocationService
4
+
5
+
6
+ # {http://marketing.ews.yahooapis.com/V1}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://schemas.xmlsoap.org/ws/2002/07/secext}Security
18
+ class Security
19
+ attr_accessor :usernameToken
20
+
21
+ def initialize(usernameToken = nil)
22
+ @usernameToken = usernameToken
23
+ end
24
+ end
25
+
26
+ # {http://schemas.xmlsoap.org/ws/2002/07/secext}UsernameToken
27
+ class UsernameToken
28
+ attr_accessor :username
29
+ attr_accessor :password
30
+
31
+ def initialize(username = nil, password = nil)
32
+ @username = username
33
+ @password = password
34
+ end
35
+ end
36
+
37
+ # {http://marketing.ews.yahooapis.com/V1}getMasterAccountLocation
38
+ class GetMasterAccountLocation
39
+ def initialize
40
+ end
41
+ end
42
+
43
+ # {http://marketing.ews.yahooapis.com/V1}getMasterAccountLocationResponse
44
+ class GetMasterAccountLocationResponse
45
+ attr_accessor :out
46
+
47
+ def initialize(out = nil)
48
+ @out = out
49
+ end
50
+ end
51
+
52
+
53
+ end
@@ -0,0 +1,50 @@
1
+ require 'ysm4r/v1/LocationServiceMappingRegistry'
2
+
3
+
4
+ module YSM::LocationService
5
+ require 'soap/rpc/driver'
6
+
7
+ class LocationService < ::SOAP::RPC::Driver
8
+ DefaultEndpointUrl = "https://global.marketing.ews.yahooapis.com/services/V1/LocationService"
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getMasterAccountLocation",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getMasterAccountLocation"]],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V1", "getMasterAccountLocationResponse"]] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal,
17
+ :faults => {"YSM::LocationService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V1", :use=>"literal"}} }
18
+ ]
19
+ ]
20
+
21
+ def initialize(endpoint_url = nil)
22
+ endpoint_url ||= DefaultEndpointUrl
23
+ super(endpoint_url, nil)
24
+ self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
25
+ self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
26
+ init_methods
27
+ end
28
+
29
+ private
30
+
31
+ def init_methods
32
+ Methods.each do |definitions|
33
+ opt = definitions.last
34
+ if opt[:request_style] == :document
35
+ add_document_operation(*definitions)
36
+ else
37
+ add_rpc_operation(*definitions)
38
+ qname = definitions[0]
39
+ name = definitions[2]
40
+ if qname.name != name and qname.name.capitalize == name.capitalize
41
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
42
+ __send__(name, *arg)
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ end
@@ -0,0 +1,111 @@
1
+ require 'ysm4r/v1/LocationService'
2
+ require 'soap/mapping'
3
+
4
+ module YSM; module LocationService
5
+
6
+ module DefaultMappingRegistry
7
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
8
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
9
+
10
+ EncodedRegistry.register(
11
+ :class => YSM::LocationService::ApiFault,
12
+ :schema_ns => "http://marketing.ews.yahooapis.com/V1",
13
+ :schema_type => "ApiFault",
14
+ :schema_element => [
15
+ ["code", "SOAP::SOAPString", [0, 1]],
16
+ ["message", "SOAP::SOAPString", [0, 1]]
17
+ ]
18
+ )
19
+
20
+ EncodedRegistry.register(
21
+ :class => YSM::LocationService::Security,
22
+ :schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
23
+ :schema_type => "Security",
24
+ :schema_element => [
25
+ ["usernameToken", ["YSM::LocationService::UsernameToken", XSD::QName.new(nil, "UsernameToken")]]
26
+ ]
27
+ )
28
+
29
+ EncodedRegistry.register(
30
+ :class => YSM::LocationService::UsernameToken,
31
+ :schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
32
+ :schema_type => "UsernameToken",
33
+ :schema_element => [
34
+ ["username", ["SOAP::SOAPString", XSD::QName.new(nil, "Username")]],
35
+ ["password", ["SOAP::SOAPString", XSD::QName.new(nil, "Password")]]
36
+ ]
37
+ )
38
+
39
+ LiteralRegistry.register(
40
+ :class => YSM::LocationService::ApiFault,
41
+ :schema_ns => "http://marketing.ews.yahooapis.com/V1",
42
+ :schema_type => "ApiFault",
43
+ :schema_qualified => false,
44
+ :schema_element => [
45
+ ["code", "SOAP::SOAPString", [0, 1]],
46
+ ["message", "SOAP::SOAPString", [0, 1]]
47
+ ]
48
+ )
49
+
50
+ LiteralRegistry.register(
51
+ :class => YSM::LocationService::Security,
52
+ :schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
53
+ :schema_type => "Security",
54
+ :schema_qualified => false,
55
+ :schema_element => [
56
+ ["usernameToken", ["YSM::LocationService::UsernameToken", XSD::QName.new(nil, "UsernameToken")]]
57
+ ]
58
+ )
59
+
60
+ LiteralRegistry.register(
61
+ :class => YSM::LocationService::UsernameToken,
62
+ :schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
63
+ :schema_type => "UsernameToken",
64
+ :schema_qualified => false,
65
+ :schema_element => [
66
+ ["username", ["SOAP::SOAPString", XSD::QName.new(nil, "Username")]],
67
+ ["password", ["SOAP::SOAPString", XSD::QName.new(nil, "Password")]]
68
+ ]
69
+ )
70
+
71
+ LiteralRegistry.register(
72
+ :class => YSM::LocationService::GetMasterAccountLocation,
73
+ :schema_ns => "http://marketing.ews.yahooapis.com/V1",
74
+ :schema_name => "getMasterAccountLocation",
75
+ :schema_qualified => true,
76
+ :schema_element => []
77
+ )
78
+
79
+ LiteralRegistry.register(
80
+ :class => YSM::LocationService::GetMasterAccountLocationResponse,
81
+ :schema_ns => "http://marketing.ews.yahooapis.com/V1",
82
+ :schema_name => "getMasterAccountLocationResponse",
83
+ :schema_qualified => true,
84
+ :schema_element => [
85
+ ["out", "SOAP::SOAPString"]
86
+ ]
87
+ )
88
+
89
+ LiteralRegistry.register(
90
+ :class => YSM::LocationService::ApiFault,
91
+ :schema_ns => "http://marketing.ews.yahooapis.com/V1",
92
+ :schema_name => "ApiFault",
93
+ :schema_qualified => true,
94
+ :schema_element => [
95
+ ["code", "SOAP::SOAPString", [0, 1]],
96
+ ["message", "SOAP::SOAPString", [0, 1]]
97
+ ]
98
+ )
99
+
100
+ LiteralRegistry.register(
101
+ :class => YSM::LocationService::Security,
102
+ :schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
103
+ :schema_name => "Security",
104
+ :schema_qualified => true,
105
+ :schema_element => [
106
+ ["usernameToken", ["YSM::LocationService::UsernameToken", XSD::QName.new(nil, "UsernameToken")]]
107
+ ]
108
+ )
109
+ end
110
+
111
+ end; end
@@ -0,0 +1,289 @@
1
+ require 'xsd/qname'
2
+
3
+ module YSM::MasterAccountService
4
+
5
+
6
+ # {http://marketing.ews.yahooapis.com/V1}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/V1}MasterAccount
18
+ class MasterAccount
19
+ attr_accessor :iD
20
+ attr_accessor :currencyID
21
+ attr_accessor :name
22
+ attr_accessor :signupStatus
23
+ attr_accessor :taggingON
24
+ attr_accessor :timezone
25
+ attr_accessor :trackingON
26
+
27
+ def initialize(iD = nil, currencyID = nil, name = nil, signupStatus = nil, taggingON = nil, timezone = nil, trackingON = nil)
28
+ @iD = iD
29
+ @currencyID = currencyID
30
+ @name = name
31
+ @signupStatus = signupStatus
32
+ @taggingON = taggingON
33
+ @timezone = timezone
34
+ @trackingON = trackingON
35
+ end
36
+ end
37
+
38
+ # {http://marketing.ews.yahooapis.com/V1}Account
39
+ class Account
40
+ attr_accessor :iD
41
+ attr_accessor :advancedMatchON
42
+ attr_accessor :businessTypeCode
43
+ attr_accessor :contentMatchON
44
+ attr_accessor :displayURL
45
+ attr_accessor :marketID
46
+ attr_accessor :masterAccountID
47
+ attr_accessor :name
48
+ attr_accessor :nameFurigana
49
+ attr_accessor :personalID
50
+ attr_accessor :sitePassword
51
+ attr_accessor :siteUserName
52
+ attr_accessor :sponsoredSearchON
53
+ attr_accessor :vatCode
54
+ attr_accessor :websiteURL
55
+
56
+ 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, vatCode = nil, websiteURL = nil)
57
+ @iD = iD
58
+ @advancedMatchON = advancedMatchON
59
+ @businessTypeCode = businessTypeCode
60
+ @contentMatchON = contentMatchON
61
+ @displayURL = displayURL
62
+ @marketID = marketID
63
+ @masterAccountID = masterAccountID
64
+ @name = name
65
+ @nameFurigana = nameFurigana
66
+ @personalID = personalID
67
+ @sitePassword = sitePassword
68
+ @siteUserName = siteUserName
69
+ @sponsoredSearchON = sponsoredSearchON
70
+ @vatCode = vatCode
71
+ @websiteURL = websiteURL
72
+ end
73
+ end
74
+
75
+ # {http://marketing.ews.yahooapis.com/V1}User
76
+ class User
77
+ attr_accessor :email
78
+ attr_accessor :fax
79
+ attr_accessor :firstName
80
+ attr_accessor :firstNameFurigana
81
+ attr_accessor :lastName
82
+ attr_accessor :lastNameFurigana
83
+ attr_accessor :locale
84
+ attr_accessor :middleInitial
85
+ attr_accessor :mobilePhone
86
+ attr_accessor :timezone
87
+ attr_accessor :title
88
+ attr_accessor :workPhone
89
+
90
+ def initialize(email = nil, fax = nil, firstName = nil, firstNameFurigana = nil, lastName = nil, lastNameFurigana = nil, locale = nil, middleInitial = nil, mobilePhone = nil, timezone = nil, title = nil, workPhone = nil)
91
+ @email = email
92
+ @fax = fax
93
+ @firstName = firstName
94
+ @firstNameFurigana = firstNameFurigana
95
+ @lastName = lastName
96
+ @lastNameFurigana = lastNameFurigana
97
+ @locale = locale
98
+ @middleInitial = middleInitial
99
+ @mobilePhone = mobilePhone
100
+ @timezone = timezone
101
+ @title = title
102
+ @workPhone = workPhone
103
+ end
104
+ end
105
+
106
+ # {http://marketing.ews.yahooapis.com/V1}Address
107
+ class Address
108
+ attr_accessor :address1
109
+ attr_accessor :address2
110
+ attr_accessor :address3
111
+ attr_accessor :city
112
+ attr_accessor :country
113
+ attr_accessor :county
114
+ attr_accessor :postalCode
115
+ attr_accessor :province
116
+ attr_accessor :state
117
+ attr_accessor :todofuken
118
+
119
+ def initialize(address1 = nil, address2 = nil, address3 = nil, city = nil, country = nil, county = nil, postalCode = nil, province = nil, state = nil, todofuken = nil)
120
+ @address1 = address1
121
+ @address2 = address2
122
+ @address3 = address3
123
+ @city = city
124
+ @country = country
125
+ @county = county
126
+ @postalCode = postalCode
127
+ @province = province
128
+ @state = state
129
+ @todofuken = todofuken
130
+ end
131
+ end
132
+
133
+ # {http://marketing.ews.yahooapis.com/V1}BillingUser
134
+ class BillingUser
135
+ attr_accessor :email
136
+ attr_accessor :firstName
137
+ attr_accessor :lastName
138
+ attr_accessor :middleInitial
139
+ attr_accessor :phone
140
+
141
+ def initialize(email = nil, firstName = nil, lastName = nil, middleInitial = nil, phone = nil)
142
+ @email = email
143
+ @firstName = firstName
144
+ @lastName = lastName
145
+ @middleInitial = middleInitial
146
+ @phone = phone
147
+ end
148
+ end
149
+
150
+ # {http://marketing.ews.yahooapis.com/V1}CreditCardInfo
151
+ class CreditCardInfo
152
+ attr_accessor :cardNumber
153
+ attr_accessor :cardType
154
+ attr_accessor :expMonth
155
+ attr_accessor :expYear
156
+ attr_accessor :securityCode
157
+
158
+ def initialize(cardNumber = nil, cardType = nil, expMonth = nil, expYear = nil, securityCode = nil)
159
+ @cardNumber = cardNumber
160
+ @cardType = cardType
161
+ @expMonth = expMonth
162
+ @expYear = expYear
163
+ @securityCode = securityCode
164
+ end
165
+ end
166
+
167
+ # {http://schemas.xmlsoap.org/ws/2002/07/secext}Security
168
+ class Security
169
+ attr_accessor :usernameToken
170
+
171
+ def initialize(usernameToken = nil)
172
+ @usernameToken = usernameToken
173
+ end
174
+ end
175
+
176
+ # {http://schemas.xmlsoap.org/ws/2002/07/secext}UsernameToken
177
+ class UsernameToken
178
+ attr_accessor :username
179
+ attr_accessor :password
180
+
181
+ def initialize(username = nil, password = nil)
182
+ @username = username
183
+ @password = password
184
+ end
185
+ end
186
+
187
+ # {http://marketing.ews.yahooapis.com/V1}MasterAccountStatus
188
+ class MasterAccountStatus < ::String
189
+ Active = MasterAccountStatus.new("Active")
190
+ Inactive = MasterAccountStatus.new("Inactive")
191
+ end
192
+
193
+ # {http://marketing.ews.yahooapis.com/V1}SignupStatus
194
+ class SignupStatus < ::String
195
+ AddMoneyFailed = SignupStatus.new("AddMoneyFailed")
196
+ CreditCardValidationFailed = SignupStatus.new("CreditCardValidationFailed")
197
+ CustomerCreationIncomplete = SignupStatus.new("CustomerCreationIncomplete")
198
+ Success = SignupStatus.new("Success")
199
+ end
200
+
201
+ # {http://marketing.ews.yahooapis.com/V1}getMasterAccountStatus
202
+ class GetMasterAccountStatus
203
+ attr_accessor :masterAccountID
204
+
205
+ def initialize(masterAccountID = nil)
206
+ @masterAccountID = masterAccountID
207
+ end
208
+ end
209
+
210
+ # {http://marketing.ews.yahooapis.com/V1}getMasterAccountStatusResponse
211
+ class GetMasterAccountStatusResponse
212
+ attr_accessor :out
213
+
214
+ def initialize(out = nil)
215
+ @out = out
216
+ end
217
+ end
218
+
219
+ # {http://marketing.ews.yahooapis.com/V1}updateMasterAccount
220
+ class UpdateMasterAccount
221
+ attr_accessor :masterAccount
222
+
223
+ def initialize(masterAccount = nil)
224
+ @masterAccount = masterAccount
225
+ end
226
+ end
227
+
228
+ # {http://marketing.ews.yahooapis.com/V1}updateMasterAccountResponse
229
+ class UpdateMasterAccountResponse
230
+ def initialize
231
+ end
232
+ end
233
+
234
+ # {http://marketing.ews.yahooapis.com/V1}addNewCustomer
235
+ class AddNewCustomer
236
+ attr_accessor :masterAccount
237
+ attr_accessor :account
238
+ attr_accessor :username
239
+ attr_accessor :userInfo
240
+ attr_accessor :address
241
+ attr_accessor :billingUserInfo
242
+ attr_accessor :billingAddress
243
+ attr_accessor :cc
244
+ attr_accessor :depositAmount
245
+ attr_accessor :promoCode
246
+
247
+ def initialize(masterAccount = nil, account = nil, username = nil, userInfo = nil, address = nil, billingUserInfo = nil, billingAddress = nil, cc = nil, depositAmount = nil, promoCode = nil)
248
+ @masterAccount = masterAccount
249
+ @account = account
250
+ @username = username
251
+ @userInfo = userInfo
252
+ @address = address
253
+ @billingUserInfo = billingUserInfo
254
+ @billingAddress = billingAddress
255
+ @cc = cc
256
+ @depositAmount = depositAmount
257
+ @promoCode = promoCode
258
+ end
259
+ end
260
+
261
+ # {http://marketing.ews.yahooapis.com/V1}addNewCustomerResponse
262
+ class AddNewCustomerResponse
263
+ attr_accessor :out
264
+
265
+ def initialize(out = nil)
266
+ @out = out
267
+ end
268
+ end
269
+
270
+ # {http://marketing.ews.yahooapis.com/V1}getMasterAccount
271
+ class GetMasterAccount
272
+ attr_accessor :masterAccountID
273
+
274
+ def initialize(masterAccountID = nil)
275
+ @masterAccountID = masterAccountID
276
+ end
277
+ end
278
+
279
+ # {http://marketing.ews.yahooapis.com/V1}getMasterAccountResponse
280
+ class GetMasterAccountResponse
281
+ attr_accessor :out
282
+
283
+ def initialize(out = nil)
284
+ @out = out
285
+ end
286
+ end
287
+
288
+
289
+ end