adcenter-client 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.autotest +23 -0
  2. data/History.txt +6 -0
  3. data/Manifest.txt +55 -0
  4. data/README.txt +78 -0
  5. data/Rakefile.rb +31 -0
  6. data/TODO +12 -0
  7. data/bin/gen_wsdl_drivers.rb +26 -0
  8. data/bin/wsdl.yml +16 -0
  9. data/lib/AdministrationService.rb +79 -0
  10. data/lib/AdministrationServiceClient.rb +40 -0
  11. data/lib/AdministrationServiceDriver.rb +55 -0
  12. data/lib/AdministrationServiceMappingRegistry.rb +148 -0
  13. data/lib/CampaignManagementService.rb +3458 -0
  14. data/lib/CampaignManagementServiceClient.rb +1370 -0
  15. data/lib/CampaignManagementServiceDriver.rb +719 -0
  16. data/lib/CampaignManagementServiceMappingRegistry.rb +5107 -0
  17. data/lib/CustomerBillingService.rb +390 -0
  18. data/lib/CustomerBillingServiceClient.rb +126 -0
  19. data/lib/CustomerBillingServiceDriver.rb +95 -0
  20. data/lib/CustomerBillingServiceMappingRegistry.rb +676 -0
  21. data/lib/CustomerManagementService.rb +1284 -0
  22. data/lib/CustomerManagementServiceClient.rb +282 -0
  23. data/lib/CustomerManagementServiceDriver.rb +175 -0
  24. data/lib/CustomerManagementServiceMappingRegistry.rb +1471 -0
  25. data/lib/NotificationManagementClient.rb +89 -0
  26. data/lib/ReportingService.rb +2121 -0
  27. data/lib/ReportingServiceClient.rb +42 -0
  28. data/lib/ReportingServiceDriver.rb +55 -0
  29. data/lib/ReportingServiceMappingRegistry.rb +3164 -0
  30. data/lib/SecureDataManagementService.rb +203 -0
  31. data/lib/SecureDataManagementServiceClient.rb +26 -0
  32. data/lib/SecureDataManagementServiceDriver.rb +47 -0
  33. data/lib/SecureDataManagementServiceMappingRegistry.rb +376 -0
  34. data/lib/adcenter_client.rb +103 -0
  35. data/lib/adcenter_service.rb +70 -0
  36. data/lib/administration_service.rb +7 -0
  37. data/lib/campaign_management_service.rb +7 -0
  38. data/lib/custom_assertions.rb +5 -0
  39. data/lib/custom_exceptions.rb +1 -0
  40. data/lib/customer_billing_service.rb +7 -0
  41. data/lib/customer_management_service.rb +9 -0
  42. data/lib/default.rb +636 -0
  43. data/lib/defaultDriver.rb +63 -0
  44. data/lib/defaultMappingRegistry.rb +525 -0
  45. data/lib/notification_management.rb +7 -0
  46. data/lib/reporting_service.rb +7 -0
  47. data/lib/secure_data_management_service.rb +7 -0
  48. data/tasks/doctask.rake +9 -0
  49. data/tasks/testtask.rake +13 -0
  50. data/test/adcenter_client_test.rb +13 -0
  51. data/test/administration_service_test.rb +19 -0
  52. data/test/customer_management_service_test.rb +20 -0
  53. data/test/report_service_test.rb +34 -0
  54. data/test/test_credentials.yml-sample +7 -0
  55. data/test/test_helper.rb +8 -0
  56. metadata +188 -0
@@ -0,0 +1,203 @@
1
+ require 'xsd/qname'
2
+
3
+ # {https://adcenter.microsoft.com/api/customermanagement/Entities}PaymentMethod
4
+ # address - Address
5
+ # customerId - SOAP::SOAPLong
6
+ # id - SOAP::SOAPLong
7
+ # timeStamp - SOAP::SOAPBase64
8
+ class PaymentMethod
9
+ attr_accessor :address
10
+ attr_accessor :customerId
11
+ attr_accessor :id
12
+ attr_accessor :timeStamp
13
+
14
+ def initialize(address = nil, customerId = nil, id = nil, timeStamp = nil)
15
+ @address = address
16
+ @customerId = customerId
17
+ @id = id
18
+ @timeStamp = timeStamp
19
+ end
20
+ end
21
+
22
+ # {https://adcenter.microsoft.com/api/customermanagement/Entities}CreditCardPaymentMethod
23
+ # address - Address
24
+ # customerId - SOAP::SOAPLong
25
+ # id - SOAP::SOAPLong
26
+ # timeStamp - SOAP::SOAPBase64
27
+ # expirationDate - SOAP::SOAPLong
28
+ # firstName - SOAP::SOAPString
29
+ # lastName - SOAP::SOAPString
30
+ # middleInitial - SOAP::SOAPString
31
+ # number - SOAP::SOAPString
32
+ # securityCode - SOAP::SOAPString
33
+ # type - CreditCardType
34
+ class CreditCardPaymentMethod < PaymentMethod
35
+ attr_accessor :address
36
+ attr_accessor :customerId
37
+ attr_accessor :id
38
+ attr_accessor :timeStamp
39
+ attr_accessor :expirationDate
40
+ attr_accessor :firstName
41
+ attr_accessor :lastName
42
+ attr_accessor :middleInitial
43
+ attr_accessor :number
44
+ attr_accessor :securityCode
45
+ attr_accessor :type
46
+
47
+ def initialize(address = nil, customerId = nil, id = nil, timeStamp = nil, expirationDate = nil, firstName = nil, lastName = nil, middleInitial = nil, number = nil, securityCode = nil, type = nil)
48
+ @address = address
49
+ @customerId = customerId
50
+ @id = id
51
+ @timeStamp = timeStamp
52
+ @expirationDate = expirationDate
53
+ @firstName = firstName
54
+ @lastName = lastName
55
+ @middleInitial = middleInitial
56
+ @number = number
57
+ @securityCode = securityCode
58
+ @type = type
59
+ end
60
+ end
61
+
62
+ # # {https://adcenter.microsoft.com/api/customermanagement/Entities}Address
63
+ # # city - SOAP::SOAPString
64
+ # # countryCode - SOAP::SOAPString
65
+ # # id - SOAP::SOAPLong
66
+ # # line1 - SOAP::SOAPString
67
+ # # line2 - SOAP::SOAPString
68
+ # # line3 - SOAP::SOAPString
69
+ # # line4 - SOAP::SOAPString
70
+ # # postalCode - SOAP::SOAPString
71
+ # # stateOrProvince - SOAP::SOAPString
72
+ # # timeStamp - SOAP::SOAPBase64
73
+ # class Address
74
+ # attr_accessor :city
75
+ # attr_accessor :countryCode
76
+ # attr_accessor :id
77
+ # attr_accessor :line1
78
+ # attr_accessor :line2
79
+ # attr_accessor :line3
80
+ # attr_accessor :line4
81
+ # attr_accessor :postalCode
82
+ # attr_accessor :stateOrProvince
83
+ # attr_accessor :timeStamp
84
+ #
85
+ # def initialize(city = nil, countryCode = nil, id = nil, line1 = nil, line2 = nil, line3 = nil, line4 = nil, postalCode = nil, stateOrProvince = nil, timeStamp = nil)
86
+ # @city = city
87
+ # @countryCode = countryCode
88
+ # @id = id
89
+ # @line1 = line1
90
+ # @line2 = line2
91
+ # @line3 = line3
92
+ # @line4 = line4
93
+ # @postalCode = postalCode
94
+ # @stateOrProvince = stateOrProvince
95
+ # @timeStamp = timeStamp
96
+ # end
97
+ # end
98
+
99
+ # # {https://adapi.microsoft.com}ApplicationFault
100
+ # # trackingId - SOAP::SOAPString
101
+ # class ApplicationFault
102
+ # attr_accessor :trackingId
103
+ #
104
+ # def initialize(trackingId = nil)
105
+ # @trackingId = trackingId
106
+ # end
107
+ # end
108
+
109
+ # # {https://adapi.microsoft.com}AdApiFaultDetail
110
+ # # trackingId - SOAP::SOAPString
111
+ # # errors - ArrayOfAdApiError
112
+ # class AdApiFaultDetail < ::StandardError
113
+ # attr_accessor :trackingId
114
+ # attr_accessor :errors
115
+ #
116
+ # def initialize(trackingId = nil, errors = nil)
117
+ # @trackingId = trackingId
118
+ # @errors = errors
119
+ # end
120
+ # end
121
+
122
+ # # {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
123
+ # # trackingId - SOAP::SOAPString
124
+ # # operationErrors - ArrayOfOperationError
125
+ # class ApiFault < ::StandardError
126
+ # attr_accessor :trackingId
127
+ # attr_accessor :operationErrors
128
+ #
129
+ # def initialize(trackingId = nil, operationErrors = nil)
130
+ # @trackingId = trackingId
131
+ # @operationErrors = operationErrors
132
+ # end
133
+ # end
134
+
135
+ # {https://adapi.microsoft.com}ArrayOfAdApiError
136
+ class ArrayOfAdApiError < ::Array
137
+ end
138
+
139
+ # # {https://adapi.microsoft.com}AdApiError
140
+ # # code - SOAP::SOAPInt
141
+ # # detail - SOAP::SOAPString
142
+ # # errorCode - SOAP::SOAPString
143
+ # # message - SOAP::SOAPString
144
+ # class AdApiError
145
+ # attr_accessor :code
146
+ # attr_accessor :detail
147
+ # attr_accessor :errorCode
148
+ # attr_accessor :message
149
+ #
150
+ # def initialize(code = nil, detail = nil, errorCode = nil, message = nil)
151
+ # @code = code
152
+ # @detail = detail
153
+ # @errorCode = errorCode
154
+ # @message = message
155
+ # end
156
+ # end
157
+
158
+ # {https://adcenter.microsoft.com/api/customermanagement/Exception}ArrayOfOperationError
159
+ class ArrayOfOperationError < ::Array
160
+ end
161
+
162
+ # # {https://adcenter.microsoft.com/api/customermanagement/Exception}OperationError
163
+ # # code - SOAP::SOAPInt
164
+ # # details - SOAP::SOAPString
165
+ # # message - SOAP::SOAPString
166
+ # class OperationError
167
+ # attr_accessor :code
168
+ # attr_accessor :details
169
+ # attr_accessor :message
170
+ #
171
+ # def initialize(code = nil, details = nil, message = nil)
172
+ # @code = code
173
+ # @details = details
174
+ # @message = message
175
+ # end
176
+ # end
177
+
178
+ # {https://adcenter.microsoft.com/api/customermanagement/Entities}CreditCardType
179
+ class CreditCardType < ::String
180
+ AmericanExpress = CreditCardType.new("AmericanExpress")
181
+ Mastercard = CreditCardType.new("Mastercard")
182
+ Visa = CreditCardType.new("Visa")
183
+ end
184
+
185
+ # {https://adcenter.microsoft.com/api/securedatamanagement}AddPaymentMethodRequest
186
+ # paymentMethod - PaymentMethod
187
+ class AddPaymentMethodRequest
188
+ attr_accessor :paymentMethod
189
+
190
+ def initialize(paymentMethod = nil)
191
+ @paymentMethod = paymentMethod
192
+ end
193
+ end
194
+
195
+ # {https://adcenter.microsoft.com/api/securedatamanagement}AddPaymentMethodResponse
196
+ # paymentMethodId - SOAP::SOAPLong
197
+ class AddPaymentMethodResponse
198
+ attr_accessor :paymentMethodId
199
+
200
+ def initialize(paymentMethodId = nil)
201
+ @paymentMethodId = paymentMethodId
202
+ end
203
+ end
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+ require 'SecureDataManagementServiceDriver.rb'
3
+
4
+ endpoint_url = ARGV.shift
5
+ obj = ISecureDataManagementService.new(endpoint_url)
6
+
7
+ # run ruby with -d to see SOAP wiredumps.
8
+ obj.wiredump_dev = STDERR if $DEBUG
9
+
10
+ # SYNOPSIS
11
+ # AddPaymentMethod(parameters)
12
+ #
13
+ # ARGS
14
+ # parameters AddPaymentMethodRequest - {https://adcenter.microsoft.com/api/securedatamanagement}AddPaymentMethodRequest
15
+ #
16
+ # RETURNS
17
+ # parameters AddPaymentMethodResponse - {https://adcenter.microsoft.com/api/securedatamanagement}AddPaymentMethodResponse
18
+ #
19
+ # RAISES
20
+ # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
21
+ # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
22
+ #
23
+ parameters = nil
24
+ puts obj.addPaymentMethod(parameters)
25
+
26
+
@@ -0,0 +1,47 @@
1
+ require 'SecureDataManagementService.rb'
2
+ require 'SecureDataManagementServiceMappingRegistry.rb'
3
+ require 'soap/rpc/driver'
4
+
5
+ class ISecureDataManagementService < ::SOAP::RPC::Driver
6
+ DefaultEndpointUrl = "https://securityservices.adcenterapi.microsoft.com/Api/SecureDataManagement/v7/SecureDataManagementService.svc"
7
+
8
+ Methods = [
9
+ [ "AddPaymentMethod",
10
+ "addPaymentMethod",
11
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/securedatamanagement", "AddPaymentMethodRequest"]],
12
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/securedatamanagement", "AddPaymentMethodResponse"]] ],
13
+ { :request_style => :document, :request_use => :literal,
14
+ :response_style => :document, :response_use => :literal,
15
+ :faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/securedatamanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/securedatamanagement"}} }
16
+ ]
17
+ ]
18
+
19
+ def initialize(endpoint_url = nil)
20
+ endpoint_url ||= DefaultEndpointUrl
21
+ super(endpoint_url, nil)
22
+ self.mapping_registry = SecureDataManagementServiceMappingRegistry::EncodedRegistry
23
+ self.literal_mapping_registry = SecureDataManagementServiceMappingRegistry::LiteralRegistry
24
+ init_methods
25
+ end
26
+
27
+ private
28
+
29
+ def init_methods
30
+ Methods.each do |definitions|
31
+ opt = definitions.last
32
+ if opt[:request_style] == :document
33
+ add_document_operation(*definitions)
34
+ else
35
+ add_rpc_operation(*definitions)
36
+ qname = definitions[0]
37
+ name = definitions[2]
38
+ if qname.name != name and qname.name.capitalize == name.capitalize
39
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
40
+ __send__(name, *arg)
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
@@ -0,0 +1,376 @@
1
+ require 'SecureDataManagementService.rb'
2
+ require 'soap/mapping'
3
+
4
+ module SecureDataManagementServiceMappingRegistry
5
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
6
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
7
+ NsAdapiMicrosoftCom = "https://adapi.microsoft.com"
8
+ NsC_Exception = "https://adcenter.microsoft.com/api/customermanagement/Exception"
9
+ NsEntities = "https://adcenter.microsoft.com/api/customermanagement/Entities"
10
+ NsSecuredatamanagement = "https://adcenter.microsoft.com/api/securedatamanagement"
11
+
12
+ EncodedRegistry.register(
13
+ :class => PaymentMethod,
14
+ :schema_type => XSD::QName.new(NsEntities, "PaymentMethod"),
15
+ :schema_element => [
16
+ ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
17
+ ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
18
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
19
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
20
+ ]
21
+ )
22
+
23
+ EncodedRegistry.register(
24
+ :class => Address,
25
+ :schema_type => XSD::QName.new(NsEntities, "Address"),
26
+ :schema_element => [
27
+ ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
28
+ ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "CountryCode")], [0, 1]],
29
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
30
+ ["line1", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line1")], [0, 1]],
31
+ ["line2", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line2")], [0, 1]],
32
+ ["line3", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line3")], [0, 1]],
33
+ ["line4", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line4")], [0, 1]],
34
+ ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "PostalCode")], [0, 1]],
35
+ ["stateOrProvince", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "StateOrProvince")], [0, 1]],
36
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
37
+ ]
38
+ )
39
+
40
+ EncodedRegistry.register(
41
+ :class => CreditCardPaymentMethod,
42
+ :schema_type => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
43
+ :schema_basetype => XSD::QName.new(NsEntities, "PaymentMethod"),
44
+ :schema_element => [
45
+ ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
46
+ ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
47
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
48
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
49
+ ["expirationDate", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "ExpirationDate")], [0, 1]],
50
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "FirstName")], [0, 1]],
51
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "LastName")], [0, 1]],
52
+ ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
53
+ ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
54
+ ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
55
+ ["type", ["CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
56
+ ]
57
+ )
58
+
59
+ EncodedRegistry.register(
60
+ :class => AdApiFaultDetail,
61
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
62
+ :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
63
+ :schema_element => [
64
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
65
+ ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
66
+ ]
67
+ )
68
+
69
+ EncodedRegistry.register(
70
+ :class => ApplicationFault,
71
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
72
+ :schema_element => [
73
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
74
+ ]
75
+ )
76
+
77
+ EncodedRegistry.register(
78
+ :class => ArrayOfAdApiError,
79
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
80
+ :schema_element => [
81
+ ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
82
+ ]
83
+ )
84
+
85
+ EncodedRegistry.register(
86
+ :class => AdApiError,
87
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
88
+ :schema_element => [
89
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
90
+ ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
91
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
92
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
93
+ ]
94
+ )
95
+
96
+ EncodedRegistry.register(
97
+ :class => ApiFault,
98
+ :schema_type => XSD::QName.new(NsC_Exception, "ApiFault"),
99
+ :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
100
+ :schema_element => [
101
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
102
+ ["operationErrors", ["ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
103
+ ]
104
+ )
105
+
106
+ EncodedRegistry.register(
107
+ :class => ArrayOfOperationError,
108
+ :schema_type => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
109
+ :schema_element => [
110
+ ["operationError", ["OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
111
+ ]
112
+ )
113
+
114
+ EncodedRegistry.register(
115
+ :class => OperationError,
116
+ :schema_type => XSD::QName.new(NsC_Exception, "OperationError"),
117
+ :schema_element => [
118
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
119
+ ["details", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Details")], [0, 1]],
120
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Message")], [0, 1]]
121
+ ]
122
+ )
123
+
124
+ EncodedRegistry.register(
125
+ :class => CreditCardType,
126
+ :schema_type => XSD::QName.new(NsEntities, "CreditCardType")
127
+ )
128
+
129
+ LiteralRegistry.register(
130
+ :class => PaymentMethod,
131
+ :schema_type => XSD::QName.new(NsEntities, "PaymentMethod"),
132
+ :schema_element => [
133
+ ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
134
+ ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
135
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
136
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
137
+ ]
138
+ )
139
+
140
+ LiteralRegistry.register(
141
+ :class => Address,
142
+ :schema_type => XSD::QName.new(NsEntities, "Address"),
143
+ :schema_element => [
144
+ ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
145
+ ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "CountryCode")], [0, 1]],
146
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
147
+ ["line1", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line1")], [0, 1]],
148
+ ["line2", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line2")], [0, 1]],
149
+ ["line3", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line3")], [0, 1]],
150
+ ["line4", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line4")], [0, 1]],
151
+ ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "PostalCode")], [0, 1]],
152
+ ["stateOrProvince", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "StateOrProvince")], [0, 1]],
153
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
154
+ ]
155
+ )
156
+
157
+ LiteralRegistry.register(
158
+ :class => CreditCardPaymentMethod,
159
+ :schema_type => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
160
+ :schema_basetype => XSD::QName.new(NsEntities, "PaymentMethod"),
161
+ :schema_element => [
162
+ ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
163
+ ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
164
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
165
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
166
+ ["expirationDate", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "ExpirationDate")], [0, 1]],
167
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "FirstName")], [0, 1]],
168
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "LastName")], [0, 1]],
169
+ ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
170
+ ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
171
+ ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
172
+ ["type", ["CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
173
+ ]
174
+ )
175
+
176
+ LiteralRegistry.register(
177
+ :class => AdApiFaultDetail,
178
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
179
+ :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
180
+ :schema_element => [
181
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
182
+ ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
183
+ ]
184
+ )
185
+
186
+ LiteralRegistry.register(
187
+ :class => ApplicationFault,
188
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
189
+ :schema_element => [
190
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
191
+ ]
192
+ )
193
+
194
+ LiteralRegistry.register(
195
+ :class => ArrayOfAdApiError,
196
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
197
+ :schema_element => [
198
+ ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
199
+ ]
200
+ )
201
+
202
+ LiteralRegistry.register(
203
+ :class => AdApiError,
204
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
205
+ :schema_element => [
206
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
207
+ ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
208
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
209
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
210
+ ]
211
+ )
212
+
213
+ LiteralRegistry.register(
214
+ :class => ApiFault,
215
+ :schema_type => XSD::QName.new(NsC_Exception, "ApiFault"),
216
+ :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
217
+ :schema_element => [
218
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
219
+ ["operationErrors", ["ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
220
+ ]
221
+ )
222
+
223
+ LiteralRegistry.register(
224
+ :class => ArrayOfOperationError,
225
+ :schema_type => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
226
+ :schema_element => [
227
+ ["operationError", ["OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
228
+ ]
229
+ )
230
+
231
+ LiteralRegistry.register(
232
+ :class => OperationError,
233
+ :schema_type => XSD::QName.new(NsC_Exception, "OperationError"),
234
+ :schema_element => [
235
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
236
+ ["details", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Details")], [0, 1]],
237
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Message")], [0, 1]]
238
+ ]
239
+ )
240
+
241
+ LiteralRegistry.register(
242
+ :class => CreditCardType,
243
+ :schema_type => XSD::QName.new(NsEntities, "CreditCardType")
244
+ )
245
+
246
+ LiteralRegistry.register(
247
+ :class => AddPaymentMethodRequest,
248
+ :schema_name => XSD::QName.new(NsSecuredatamanagement, "AddPaymentMethodRequest"),
249
+ :schema_element => [
250
+ ["paymentMethod", ["PaymentMethod", XSD::QName.new(NsSecuredatamanagement, "PaymentMethod")], [0, 1]]
251
+ ]
252
+ )
253
+
254
+ LiteralRegistry.register(
255
+ :class => AddPaymentMethodResponse,
256
+ :schema_name => XSD::QName.new(NsSecuredatamanagement, "AddPaymentMethodResponse"),
257
+ :schema_element => [
258
+ ["paymentMethodId", ["SOAP::SOAPLong", XSD::QName.new(NsSecuredatamanagement, "PaymentMethodId")], [0, 1]]
259
+ ]
260
+ )
261
+
262
+ LiteralRegistry.register(
263
+ :class => PaymentMethod,
264
+ :schema_name => XSD::QName.new(NsEntities, "PaymentMethod"),
265
+ :schema_element => [
266
+ ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
267
+ ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
268
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
269
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
270
+ ]
271
+ )
272
+
273
+ LiteralRegistry.register(
274
+ :class => Address,
275
+ :schema_name => XSD::QName.new(NsEntities, "Address"),
276
+ :schema_element => [
277
+ ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
278
+ ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "CountryCode")], [0, 1]],
279
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
280
+ ["line1", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line1")], [0, 1]],
281
+ ["line2", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line2")], [0, 1]],
282
+ ["line3", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line3")], [0, 1]],
283
+ ["line4", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line4")], [0, 1]],
284
+ ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "PostalCode")], [0, 1]],
285
+ ["stateOrProvince", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "StateOrProvince")], [0, 1]],
286
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
287
+ ]
288
+ )
289
+
290
+ LiteralRegistry.register(
291
+ :class => CreditCardPaymentMethod,
292
+ :schema_name => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
293
+ :schema_element => [
294
+ ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
295
+ ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
296
+ ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
297
+ ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
298
+ ["expirationDate", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "ExpirationDate")], [0, 1]],
299
+ ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "FirstName")], [0, 1]],
300
+ ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "LastName")], [0, 1]],
301
+ ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
302
+ ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
303
+ ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
304
+ ["type", ["CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
305
+ ]
306
+ )
307
+
308
+ LiteralRegistry.register(
309
+ :class => CreditCardType,
310
+ :schema_name => XSD::QName.new(NsEntities, "CreditCardType")
311
+ )
312
+
313
+ LiteralRegistry.register(
314
+ :class => AdApiFaultDetail,
315
+ :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
316
+ :schema_element => [
317
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
318
+ ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
319
+ ]
320
+ )
321
+
322
+ LiteralRegistry.register(
323
+ :class => ApplicationFault,
324
+ :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
325
+ :schema_element => [
326
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
327
+ ]
328
+ )
329
+
330
+ LiteralRegistry.register(
331
+ :class => ArrayOfAdApiError,
332
+ :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
333
+ :schema_element => [
334
+ ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
335
+ ]
336
+ )
337
+
338
+ LiteralRegistry.register(
339
+ :class => AdApiError,
340
+ :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
341
+ :schema_element => [
342
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
343
+ ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
344
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
345
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
346
+ ]
347
+ )
348
+
349
+ LiteralRegistry.register(
350
+ :class => ApiFault,
351
+ :schema_name => XSD::QName.new(NsC_Exception, "ApiFault"),
352
+ :schema_element => [
353
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
354
+ ["operationErrors", ["ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
355
+ ]
356
+ )
357
+
358
+ LiteralRegistry.register(
359
+ :class => ArrayOfOperationError,
360
+ :schema_name => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
361
+ :schema_element => [
362
+ ["operationError", ["OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
363
+ ]
364
+ )
365
+
366
+ LiteralRegistry.register(
367
+ :class => OperationError,
368
+ :schema_name => XSD::QName.new(NsC_Exception, "OperationError"),
369
+ :schema_element => [
370
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
371
+ ["details", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Details")], [0, 1]],
372
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Message")], [0, 1]]
373
+ ]
374
+ )
375
+
376
+ end