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/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://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/V2}getMasterAccountLocation
38
+ class GetMasterAccountLocation
39
+ def initialize
40
+ end
41
+ end
42
+
43
+ # {http://marketing.ews.yahooapis.com/V2}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/v2/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/V2/LocationService"
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getMasterAccountLocation",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getMasterAccountLocation"]],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "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/V2", :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/v2/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/V2",
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/V2",
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/V2",
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/V2",
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/V2",
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,332 @@
1
+ require 'xsd/qname'
2
+
3
+ module YSM::MasterAccountService
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}MasterAccount
18
+ class MasterAccount
19
+ attr_accessor :iD
20
+ attr_accessor :companyID
21
+ attr_accessor :currencyID
22
+ attr_accessor :marketID
23
+ attr_accessor :name
24
+ attr_accessor :signupStatus
25
+ attr_accessor :taggingON
26
+ attr_accessor :timezone
27
+ attr_accessor :trackingON
28
+
29
+ def initialize(iD = nil, companyID = nil, currencyID = nil, marketID = nil, name = nil, signupStatus = nil, taggingON = nil, timezone = nil, trackingON = nil)
30
+ @iD = iD
31
+ @companyID = companyID
32
+ @currencyID = currencyID
33
+ @marketID = marketID
34
+ @name = name
35
+ @signupStatus = signupStatus
36
+ @taggingON = taggingON
37
+ @timezone = timezone
38
+ @trackingON = trackingON
39
+ end
40
+ end
41
+
42
+ # {http://marketing.ews.yahooapis.com/V2}Company
43
+ class Company
44
+ attr_accessor :companyID
45
+ attr_accessor :companyName
46
+ attr_accessor :companyNameFurigana
47
+ attr_accessor :createTimestamp
48
+
49
+ def initialize(companyID = nil, companyName = nil, companyNameFurigana = nil, createTimestamp = nil)
50
+ @companyID = companyID
51
+ @companyName = companyName
52
+ @companyNameFurigana = companyNameFurigana
53
+ @createTimestamp = createTimestamp
54
+ end
55
+ end
56
+
57
+ # {http://marketing.ews.yahooapis.com/V2}Account
58
+ class Account
59
+ attr_accessor :iD
60
+ attr_accessor :advancedMatchON
61
+ attr_accessor :businessTypeCode
62
+ attr_accessor :contentMatchON
63
+ attr_accessor :displayURL
64
+ attr_accessor :marketID
65
+ attr_accessor :masterAccountID
66
+ attr_accessor :name
67
+ attr_accessor :nameFurigana
68
+ attr_accessor :personalID
69
+ attr_accessor :sitePassword
70
+ attr_accessor :siteUserName
71
+ attr_accessor :sponsoredSearchON
72
+ attr_accessor :vatRegistrationNumber
73
+ attr_accessor :websiteURL
74
+
75
+ 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)
76
+ @iD = iD
77
+ @advancedMatchON = advancedMatchON
78
+ @businessTypeCode = businessTypeCode
79
+ @contentMatchON = contentMatchON
80
+ @displayURL = displayURL
81
+ @marketID = marketID
82
+ @masterAccountID = masterAccountID
83
+ @name = name
84
+ @nameFurigana = nameFurigana
85
+ @personalID = personalID
86
+ @sitePassword = sitePassword
87
+ @siteUserName = siteUserName
88
+ @sponsoredSearchON = sponsoredSearchON
89
+ @vatRegistrationNumber = vatRegistrationNumber
90
+ @websiteURL = websiteURL
91
+ end
92
+ end
93
+
94
+ # {http://marketing.ews.yahooapis.com/V2}User
95
+ class User
96
+ attr_accessor :email
97
+ attr_accessor :fax
98
+ attr_accessor :firstName
99
+ attr_accessor :firstNameFurigana
100
+ attr_accessor :lastName
101
+ attr_accessor :lastNameFurigana
102
+ attr_accessor :locale
103
+ attr_accessor :middleInitial
104
+ attr_accessor :mobilePhone
105
+ attr_accessor :timezone
106
+ attr_accessor :title
107
+ attr_accessor :workPhone
108
+
109
+ 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)
110
+ @email = email
111
+ @fax = fax
112
+ @firstName = firstName
113
+ @firstNameFurigana = firstNameFurigana
114
+ @lastName = lastName
115
+ @lastNameFurigana = lastNameFurigana
116
+ @locale = locale
117
+ @middleInitial = middleInitial
118
+ @mobilePhone = mobilePhone
119
+ @timezone = timezone
120
+ @title = title
121
+ @workPhone = workPhone
122
+ end
123
+ end
124
+
125
+ # {http://marketing.ews.yahooapis.com/V2}Address
126
+ class Address
127
+ attr_accessor :address1
128
+ attr_accessor :address2
129
+ attr_accessor :address3
130
+ attr_accessor :city
131
+ attr_accessor :country
132
+ attr_accessor :county
133
+ attr_accessor :postalCode
134
+ attr_accessor :province
135
+ attr_accessor :state
136
+ attr_accessor :todofuken
137
+
138
+ def initialize(address1 = nil, address2 = nil, address3 = nil, city = nil, country = nil, county = nil, postalCode = nil, province = nil, state = nil, todofuken = nil)
139
+ @address1 = address1
140
+ @address2 = address2
141
+ @address3 = address3
142
+ @city = city
143
+ @country = country
144
+ @county = county
145
+ @postalCode = postalCode
146
+ @province = province
147
+ @state = state
148
+ @todofuken = todofuken
149
+ end
150
+ end
151
+
152
+ # {http://marketing.ews.yahooapis.com/V2}BillingUser
153
+ class BillingUser
154
+ attr_accessor :email
155
+ attr_accessor :firstName
156
+ attr_accessor :lastName
157
+ attr_accessor :middleInitial
158
+ attr_accessor :phone
159
+
160
+ def initialize(email = nil, firstName = nil, lastName = nil, middleInitial = nil, phone = nil)
161
+ @email = email
162
+ @firstName = firstName
163
+ @lastName = lastName
164
+ @middleInitial = middleInitial
165
+ @phone = phone
166
+ end
167
+ end
168
+
169
+ # {http://marketing.ews.yahooapis.com/V2}CreditCardInfo
170
+ class CreditCardInfo
171
+ attr_accessor :cardNumber
172
+ attr_accessor :cardType
173
+ attr_accessor :expMonth
174
+ attr_accessor :expYear
175
+ attr_accessor :securityCode
176
+
177
+ def initialize(cardNumber = nil, cardType = nil, expMonth = nil, expYear = nil, securityCode = nil)
178
+ @cardNumber = cardNumber
179
+ @cardType = cardType
180
+ @expMonth = expMonth
181
+ @expYear = expYear
182
+ @securityCode = securityCode
183
+ end
184
+ end
185
+
186
+ # {http://marketing.ews.yahooapis.com/V2}ArrayOfMasterAccount
187
+ class ArrayOfMasterAccount < ::Array
188
+ end
189
+
190
+ # {http://schemas.xmlsoap.org/ws/2002/07/secext}Security
191
+ class Security
192
+ attr_accessor :usernameToken
193
+
194
+ def initialize(usernameToken = nil)
195
+ @usernameToken = usernameToken
196
+ end
197
+ end
198
+
199
+ # {http://schemas.xmlsoap.org/ws/2002/07/secext}UsernameToken
200
+ class UsernameToken
201
+ attr_accessor :username
202
+ attr_accessor :password
203
+
204
+ def initialize(username = nil, password = nil)
205
+ @username = username
206
+ @password = password
207
+ end
208
+ end
209
+
210
+ # {http://marketing.ews.yahooapis.com/V2}MasterAccountStatus
211
+ class MasterAccountStatus < ::String
212
+ Active = MasterAccountStatus.new("Active")
213
+ Inactive = MasterAccountStatus.new("Inactive")
214
+ end
215
+
216
+ # {http://marketing.ews.yahooapis.com/V2}SignupStatus
217
+ class SignupStatus < ::String
218
+ AddMoneyFailed = SignupStatus.new("AddMoneyFailed")
219
+ CreditCardValidationFailed = SignupStatus.new("CreditCardValidationFailed")
220
+ CustomerCreationIncomplete = SignupStatus.new("CustomerCreationIncomplete")
221
+ Success = SignupStatus.new("Success")
222
+ end
223
+
224
+ # {http://marketing.ews.yahooapis.com/V2}getMasterAccountStatus
225
+ class GetMasterAccountStatus
226
+ attr_accessor :masterAccountID
227
+
228
+ def initialize(masterAccountID = nil)
229
+ @masterAccountID = masterAccountID
230
+ end
231
+ end
232
+
233
+ # {http://marketing.ews.yahooapis.com/V2}getMasterAccountStatusResponse
234
+ class GetMasterAccountStatusResponse
235
+ attr_accessor :out
236
+
237
+ def initialize(out = nil)
238
+ @out = out
239
+ end
240
+ end
241
+
242
+ # {http://marketing.ews.yahooapis.com/V2}updateMasterAccount
243
+ class UpdateMasterAccount
244
+ attr_accessor :masterAccount
245
+
246
+ def initialize(masterAccount = nil)
247
+ @masterAccount = masterAccount
248
+ end
249
+ end
250
+
251
+ # {http://marketing.ews.yahooapis.com/V2}updateMasterAccountResponse
252
+ class UpdateMasterAccountResponse
253
+ def initialize
254
+ end
255
+ end
256
+
257
+ # {http://marketing.ews.yahooapis.com/V2}addNewCustomer
258
+ class AddNewCustomer
259
+ attr_accessor :company
260
+ attr_accessor :masterAccount
261
+ attr_accessor :account
262
+ attr_accessor :username
263
+ attr_accessor :userInfo
264
+ attr_accessor :address
265
+ attr_accessor :billingUserInfo
266
+ attr_accessor :billingAddress
267
+ attr_accessor :cc
268
+ attr_accessor :depositAmount
269
+ attr_accessor :promoCode
270
+
271
+ def initialize(company = nil, masterAccount = nil, account = nil, username = nil, userInfo = nil, address = nil, billingUserInfo = nil, billingAddress = nil, cc = nil, depositAmount = nil, promoCode = nil)
272
+ @company = company
273
+ @masterAccount = masterAccount
274
+ @account = account
275
+ @username = username
276
+ @userInfo = userInfo
277
+ @address = address
278
+ @billingUserInfo = billingUserInfo
279
+ @billingAddress = billingAddress
280
+ @cc = cc
281
+ @depositAmount = depositAmount
282
+ @promoCode = promoCode
283
+ end
284
+ end
285
+
286
+ # {http://marketing.ews.yahooapis.com/V2}addNewCustomerResponse
287
+ class AddNewCustomerResponse
288
+ attr_accessor :out
289
+
290
+ def initialize(out = nil)
291
+ @out = out
292
+ end
293
+ end
294
+
295
+ # {http://marketing.ews.yahooapis.com/V2}getMasterAccount
296
+ class GetMasterAccount
297
+ attr_accessor :masterAccountID
298
+
299
+ def initialize(masterAccountID = nil)
300
+ @masterAccountID = masterAccountID
301
+ end
302
+ end
303
+
304
+ # {http://marketing.ews.yahooapis.com/V2}getMasterAccountResponse
305
+ class GetMasterAccountResponse
306
+ attr_accessor :out
307
+
308
+ def initialize(out = nil)
309
+ @out = out
310
+ end
311
+ end
312
+
313
+ # {http://marketing.ews.yahooapis.com/V2}getMasterAccountsByCompanyID
314
+ class GetMasterAccountsByCompanyID
315
+ attr_accessor :companyID
316
+
317
+ def initialize(companyID = nil)
318
+ @companyID = companyID
319
+ end
320
+ end
321
+
322
+ # {http://marketing.ews.yahooapis.com/V2}getMasterAccountsByCompanyIDResponse
323
+ class GetMasterAccountsByCompanyIDResponse
324
+ attr_accessor :out
325
+
326
+ def initialize(out = nil)
327
+ @out = out
328
+ end
329
+ end
330
+
331
+
332
+ end