adcenter-client 7.0.2 → 7.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/History.txt +6 -0
  2. data/Manifest.txt +5 -16
  3. data/README.txt +14 -10
  4. data/Rakefile.rb +2 -2
  5. data/VERSION +1 -0
  6. data/bin/get_adcenter_account_info.rb +45 -0
  7. data/{bin → devel}/gen_wsdl_drivers.rb +1 -1
  8. data/{bin → devel}/wsdl.yml +0 -0
  9. data/lib/AdministrationServiceDriver.rb +7 -3
  10. data/lib/AdministrationServiceMappingRegistry.rb +27 -23
  11. data/lib/CampaignManagementServiceDriver.rb +90 -86
  12. data/lib/CampaignManagementServiceMappingRegistry.rb +1213 -1209
  13. data/lib/CustomerBillingServiceDriver.rb +12 -8
  14. data/lib/CustomerBillingServiceMappingRegistry.rb +123 -119
  15. data/lib/CustomerManagementServiceDriver.rb +22 -18
  16. data/lib/CustomerManagementServiceMappingRegistry.rb +318 -314
  17. data/lib/ReportingServiceDriver.rb +7 -3
  18. data/lib/ReportingServiceMappingRegistry.rb +926 -922
  19. data/lib/SecureDataManagementServiceDriver.rb +6 -2
  20. data/lib/SecureDataManagementServiceMappingRegistry.rb +62 -58
  21. data/lib/adcenter_client.rb +6 -3
  22. data/lib/adcenter_service.rb +6 -2
  23. data/lib/adcenter_wrapper_entities.rb +8170 -0
  24. data/lib/administration_service.rb +3 -1
  25. data/lib/campaign_management_service.rb +1 -1
  26. data/lib/customer_billing_service.rb +1 -1
  27. data/lib/customer_management_service.rb +1 -1
  28. data/lib/defaultDriver.rb +5 -1
  29. data/lib/defaultMappingRegistry.rb +68 -64
  30. data/lib/notification_management.rb +1 -1
  31. data/lib/reporting_service.rb +1 -1
  32. data/lib/secure_data_management_service.rb +1 -1
  33. data/test/customer_management_service_test.rb +4 -4
  34. data/test/test_helper.rb +1 -0
  35. metadata +19 -27
  36. data/lib/AdministrationService.rb +0 -79
  37. data/lib/AdministrationServiceClient.rb +0 -40
  38. data/lib/CampaignManagementService.rb +0 -3458
  39. data/lib/CampaignManagementServiceClient.rb +0 -1370
  40. data/lib/CustomerBillingService.rb +0 -390
  41. data/lib/CustomerBillingServiceClient.rb +0 -126
  42. data/lib/CustomerManagementService.rb +0 -1284
  43. data/lib/CustomerManagementServiceClient.rb +0 -282
  44. data/lib/NotificationManagementClient.rb +0 -89
  45. data/lib/ReportingService.rb +0 -2121
  46. data/lib/ReportingServiceClient.rb +0 -42
  47. data/lib/SecureDataManagementService.rb +0 -203
  48. data/lib/SecureDataManagementServiceClient.rb +0 -26
  49. data/lib/default.rb +0 -636
@@ -1,390 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- # {http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong
4
- class ArrayOflong < ::Array
5
- end
6
-
7
- # {http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring
8
- class ArrayOfstring < ::Array
9
- end
10
-
11
- # {https://adcenter.microsoft.com/api/customermanagement/Entities}ArrayOfInvoiceInfo
12
- class ArrayOfInvoiceInfo < ::Array
13
- end
14
-
15
- # {https://adcenter.microsoft.com/api/customermanagement/Entities}InvoiceInfo
16
- # accountId - SOAP::SOAPLong
17
- # accountName - SOAP::SOAPString
18
- # accountNumber - SOAP::SOAPString
19
- # amount - SOAP::SOAPDouble
20
- # currencyCode - SOAP::SOAPString
21
- # invoiceDate - SOAP::SOAPDateTime
22
- # invoiceId - SOAP::SOAPLong
23
- class InvoiceInfo
24
- attr_accessor :accountId
25
- attr_accessor :accountName
26
- attr_accessor :accountNumber
27
- attr_accessor :amount
28
- attr_accessor :currencyCode
29
- attr_accessor :invoiceDate
30
- attr_accessor :invoiceId
31
-
32
- def initialize(accountId = nil, accountName = nil, accountNumber = nil, amount = nil, currencyCode = nil, invoiceDate = nil, invoiceId = nil)
33
- @accountId = accountId
34
- @accountName = accountName
35
- @accountNumber = accountNumber
36
- @amount = amount
37
- @currencyCode = currencyCode
38
- @invoiceDate = invoiceDate
39
- @invoiceId = invoiceId
40
- end
41
- end
42
-
43
- # {https://adcenter.microsoft.com/api/customermanagement/Entities}ArrayOfInvoice
44
- class ArrayOfInvoice < ::Array
45
- end
46
-
47
- # {https://adcenter.microsoft.com/api/customermanagement/Entities}Invoice
48
- # data - SOAP::SOAPBase64
49
- # id - SOAP::SOAPLong
50
- # type - DataType
51
- class Invoice
52
- attr_accessor :data
53
- attr_accessor :id
54
- attr_accessor :type
55
-
56
- def initialize(data = nil, id = nil, type = nil)
57
- @data = data
58
- @id = id
59
- @type = type
60
- end
61
- end
62
-
63
- # {https://adcenter.microsoft.com/api/customermanagement/Entities}InsertionOrder
64
- # accountId - SOAP::SOAPLong
65
- # balanceAmount - SOAP::SOAPDouble
66
- # bookingCountryCode - SOAP::SOAPString
67
- # comment - SOAP::SOAPString
68
- # endDate - SOAP::SOAPDateTime
69
- # insertionOrderId - SOAP::SOAPLong
70
- # lastModifiedByUserId - SOAP::SOAPLong
71
- # lastModifiedTime - SOAP::SOAPDateTime
72
- # notificationThreshold - SOAP::SOAPDouble
73
- # referenceId - SOAP::SOAPLong
74
- # spendCapAmount - SOAP::SOAPDouble
75
- # startDate - SOAP::SOAPDateTime
76
- class InsertionOrder
77
- attr_accessor :accountId
78
- attr_accessor :balanceAmount
79
- attr_accessor :bookingCountryCode
80
- attr_accessor :comment
81
- attr_accessor :endDate
82
- attr_accessor :insertionOrderId
83
- attr_accessor :lastModifiedByUserId
84
- attr_accessor :lastModifiedTime
85
- attr_accessor :notificationThreshold
86
- attr_accessor :referenceId
87
- attr_accessor :spendCapAmount
88
- attr_accessor :startDate
89
-
90
- def initialize(accountId = nil, balanceAmount = nil, bookingCountryCode = nil, comment = nil, endDate = nil, insertionOrderId = nil, lastModifiedByUserId = nil, lastModifiedTime = nil, notificationThreshold = nil, referenceId = nil, spendCapAmount = nil, startDate = nil)
91
- @accountId = accountId
92
- @balanceAmount = balanceAmount
93
- @bookingCountryCode = bookingCountryCode
94
- @comment = comment
95
- @endDate = endDate
96
- @insertionOrderId = insertionOrderId
97
- @lastModifiedByUserId = lastModifiedByUserId
98
- @lastModifiedTime = lastModifiedTime
99
- @notificationThreshold = notificationThreshold
100
- @referenceId = referenceId
101
- @spendCapAmount = spendCapAmount
102
- @startDate = startDate
103
- end
104
- end
105
-
106
- # {https://adcenter.microsoft.com/api/customermanagement/Entities}ArrayOfInsertionOrder
107
- class ArrayOfInsertionOrder < ::Array
108
- end
109
-
110
- # {https://adcenter.microsoft.com/api/customermanagement/Exception}ArrayOfOperationError
111
- class ArrayOfOperationError < ::Array
112
- end
113
-
114
- # # {https://adcenter.microsoft.com/api/customermanagement/Exception}OperationError
115
- # # code - SOAP::SOAPInt
116
- # # details - SOAP::SOAPString
117
- # # message - SOAP::SOAPString
118
- # class OperationError
119
- # attr_accessor :code
120
- # attr_accessor :details
121
- # attr_accessor :message
122
- #
123
- # def initialize(code = nil, details = nil, message = nil)
124
- # @code = code
125
- # @details = details
126
- # @message = message
127
- # end
128
- # end
129
-
130
- # {https://adcenter.microsoft.com/api/customermanagement/Exception}ArrayOfBatchError
131
- class ArrayOfBatchError < ::Array
132
- end
133
-
134
- # # {https://adcenter.microsoft.com/api/customermanagement/Exception}BatchError
135
- # # code - SOAP::SOAPInt
136
- # # details - SOAP::SOAPString
137
- # # index - SOAP::SOAPInt
138
- # # message - SOAP::SOAPString
139
- # class BatchError
140
- # attr_accessor :code
141
- # attr_accessor :details
142
- # attr_accessor :index
143
- # attr_accessor :message
144
- #
145
- # def initialize(code = nil, details = nil, index = nil, message = nil)
146
- # @code = code
147
- # @details = details
148
- # @index = index
149
- # @message = message
150
- # end
151
- # end
152
-
153
- # # {https://adapi.microsoft.com}ApplicationFault
154
- # # trackingId - SOAP::SOAPString
155
- # class ApplicationFault
156
- # attr_accessor :trackingId
157
- #
158
- # def initialize(trackingId = nil)
159
- # @trackingId = trackingId
160
- # end
161
- # end
162
-
163
- # {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
164
- # trackingId - SOAP::SOAPString
165
- # operationErrors - ArrayOfOperationError
166
- class ApiFault < ::StandardError
167
- attr_accessor :trackingId
168
- attr_accessor :operationErrors
169
-
170
- def initialize(trackingId = nil, operationErrors = nil)
171
- @trackingId = trackingId
172
- @operationErrors = operationErrors
173
- end
174
- end
175
-
176
- # {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
177
- # trackingId - SOAP::SOAPString
178
- # operationErrors - ArrayOfOperationError
179
- # batchErrors - ArrayOfBatchError
180
- class ApiBatchFault < ::StandardError
181
- attr_accessor :trackingId
182
- attr_accessor :operationErrors
183
- attr_accessor :batchErrors
184
-
185
- def initialize(trackingId = nil, operationErrors = nil, batchErrors = nil)
186
- @trackingId = trackingId
187
- @operationErrors = operationErrors
188
- @batchErrors = batchErrors
189
- end
190
- end
191
-
192
- # # {https://adapi.microsoft.com}AdApiFaultDetail
193
- # # trackingId - SOAP::SOAPString
194
- # # errors - ArrayOfAdApiError
195
- # class AdApiFaultDetail < ::StandardError
196
- # attr_accessor :trackingId
197
- # attr_accessor :errors
198
- #
199
- # def initialize(trackingId = nil, errors = nil)
200
- # @trackingId = trackingId
201
- # @errors = errors
202
- # end
203
- # end
204
-
205
- # {https://adapi.microsoft.com}ArrayOfAdApiError
206
- class ArrayOfAdApiError < ::Array
207
- end
208
-
209
- # # {https://adapi.microsoft.com}AdApiError
210
- # # code - SOAP::SOAPInt
211
- # # detail - SOAP::SOAPString
212
- # # errorCode - SOAP::SOAPString
213
- # # message - SOAP::SOAPString
214
- # class AdApiError
215
- # attr_accessor :code
216
- # attr_accessor :detail
217
- # attr_accessor :errorCode
218
- # attr_accessor :message
219
- #
220
- # def initialize(code = nil, detail = nil, errorCode = nil, message = nil)
221
- # @code = code
222
- # @detail = detail
223
- # @errorCode = errorCode
224
- # @message = message
225
- # end
226
- # end
227
-
228
- # {https://adcenter.microsoft.com/api/customermanagement/Entities}DataType
229
- class DataType < ::String
230
- Pdf = DataType.new("Pdf")
231
- Xml = DataType.new("Xml")
232
- end
233
-
234
- # {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesInfoRequest
235
- # accountIds - ArrayOflong
236
- # startDate - SOAP::SOAPDateTime
237
- # endDate - SOAP::SOAPDateTime
238
- class GetInvoicesInfoRequest
239
- attr_accessor :accountIds
240
- attr_accessor :startDate
241
- attr_accessor :endDate
242
-
243
- def initialize(accountIds = nil, startDate = nil, endDate = nil)
244
- @accountIds = accountIds
245
- @startDate = startDate
246
- @endDate = endDate
247
- end
248
- end
249
-
250
- # {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesInfoResponse
251
- # invoicesInfo - ArrayOfInvoiceInfo
252
- class GetInvoicesInfoResponse
253
- attr_accessor :invoicesInfo
254
-
255
- def initialize(invoicesInfo = nil)
256
- @invoicesInfo = invoicesInfo
257
- end
258
- end
259
-
260
- # {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesRequest
261
- # invoiceIds - ArrayOflong
262
- # type - DataType
263
- class GetInvoicesRequest
264
- attr_accessor :invoiceIds
265
- attr_accessor :type
266
-
267
- def initialize(invoiceIds = nil, type = nil)
268
- @invoiceIds = invoiceIds
269
- @type = type
270
- end
271
- end
272
-
273
- # {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesResponse
274
- # invoices - ArrayOfInvoice
275
- class GetInvoicesResponse
276
- attr_accessor :invoices
277
-
278
- def initialize(invoices = nil)
279
- @invoices = invoices
280
- end
281
- end
282
-
283
- # {https://adcenter.microsoft.com/api/customerbilling}GetDisplayInvoicesRequest
284
- # invoiceIds - ArrayOflong
285
- # type - DataType
286
- class GetDisplayInvoicesRequest
287
- attr_accessor :invoiceIds
288
- attr_accessor :type
289
-
290
- def initialize(invoiceIds = nil, type = nil)
291
- @invoiceIds = invoiceIds
292
- @type = type
293
- end
294
- end
295
-
296
- # {https://adcenter.microsoft.com/api/customerbilling}GetDisplayInvoicesResponse
297
- # invoices - ArrayOfInvoice
298
- class GetDisplayInvoicesResponse
299
- attr_accessor :invoices
300
-
301
- def initialize(invoices = nil)
302
- @invoices = invoices
303
- end
304
- end
305
-
306
- # {https://adcenter.microsoft.com/api/customerbilling}AddInsertionOrderRequest
307
- # insertionOrder - InsertionOrder
308
- class AddInsertionOrderRequest
309
- attr_accessor :insertionOrder
310
-
311
- def initialize(insertionOrder = nil)
312
- @insertionOrder = insertionOrder
313
- end
314
- end
315
-
316
- # {https://adcenter.microsoft.com/api/customerbilling}AddInsertionOrderResponse
317
- # insertionOrderId - SOAP::SOAPLong
318
- # createTime - SOAP::SOAPDateTime
319
- class AddInsertionOrderResponse
320
- attr_accessor :insertionOrderId
321
- attr_accessor :createTime
322
-
323
- def initialize(insertionOrderId = nil, createTime = nil)
324
- @insertionOrderId = insertionOrderId
325
- @createTime = createTime
326
- end
327
- end
328
-
329
- # {https://adcenter.microsoft.com/api/customerbilling}UpdateInsertionOrderRequest
330
- # insertionOrder - InsertionOrder
331
- class UpdateInsertionOrderRequest
332
- attr_accessor :insertionOrder
333
-
334
- def initialize(insertionOrder = nil)
335
- @insertionOrder = insertionOrder
336
- end
337
- end
338
-
339
- # {https://adcenter.microsoft.com/api/customerbilling}UpdateInsertionOrderResponse
340
- # lastModifiedTime - SOAP::SOAPDateTime
341
- class UpdateInsertionOrderResponse
342
- attr_accessor :lastModifiedTime
343
-
344
- def initialize(lastModifiedTime = nil)
345
- @lastModifiedTime = lastModifiedTime
346
- end
347
- end
348
-
349
- # {https://adcenter.microsoft.com/api/customerbilling}GetInsertionOrdersByAccountRequest
350
- # accountId - SOAP::SOAPLong
351
- # insertionOrderIds - ArrayOflong
352
- class GetInsertionOrdersByAccountRequest
353
- attr_accessor :accountId
354
- attr_accessor :insertionOrderIds
355
-
356
- def initialize(accountId = nil, insertionOrderIds = nil)
357
- @accountId = accountId
358
- @insertionOrderIds = insertionOrderIds
359
- end
360
- end
361
-
362
- # {https://adcenter.microsoft.com/api/customerbilling}GetInsertionOrdersByAccountResponse
363
- # insertionOrders - ArrayOfInsertionOrder
364
- class GetInsertionOrdersByAccountResponse
365
- attr_accessor :insertionOrders
366
-
367
- def initialize(insertionOrders = nil)
368
- @insertionOrders = insertionOrders
369
- end
370
- end
371
-
372
- # {https://adcenter.microsoft.com/api/customerbilling}GetKOHIOInvoicesRequest
373
- # invoiceIds - ArrayOfstring
374
- class GetKOHIOInvoicesRequest
375
- attr_accessor :invoiceIds
376
-
377
- def initialize(invoiceIds = nil)
378
- @invoiceIds = invoiceIds
379
- end
380
- end
381
-
382
- # {https://adcenter.microsoft.com/api/customerbilling}GetKOHIOInvoicesResponse
383
- # invoices - ArrayOfInvoice
384
- class GetKOHIOInvoicesResponse
385
- attr_accessor :invoices
386
-
387
- def initialize(invoices = nil)
388
- @invoices = invoices
389
- end
390
- end
@@ -1,126 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'CustomerBillingServiceDriver.rb'
3
-
4
- endpoint_url = ARGV.shift
5
- obj = ICustomerBillingService.new(endpoint_url)
6
-
7
- # run ruby with -d to see SOAP wiredumps.
8
- obj.wiredump_dev = STDERR if $DEBUG
9
-
10
- # SYNOPSIS
11
- # GetInvoicesInfo(parameters)
12
- #
13
- # ARGS
14
- # parameters GetInvoicesInfoRequest - {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesInfoRequest
15
- #
16
- # RETURNS
17
- # parameters GetInvoicesInfoResponse - {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesInfoResponse
18
- #
19
- # RAISES
20
- # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
21
- # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
22
- # detail ApiBatchFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
23
- #
24
- parameters = nil
25
- puts obj.getInvoicesInfo(parameters)
26
-
27
- # SYNOPSIS
28
- # GetInvoices(parameters)
29
- #
30
- # ARGS
31
- # parameters GetInvoicesRequest - {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesRequest
32
- #
33
- # RETURNS
34
- # parameters GetInvoicesResponse - {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesResponse
35
- #
36
- # RAISES
37
- # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
38
- # detail ApiBatchFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
39
- # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
40
- #
41
- parameters = nil
42
- puts obj.getInvoices(parameters)
43
-
44
- # SYNOPSIS
45
- # GetDisplayInvoices(parameters)
46
- #
47
- # ARGS
48
- # parameters GetDisplayInvoicesRequest - {https://adcenter.microsoft.com/api/customerbilling}GetDisplayInvoicesRequest
49
- #
50
- # RETURNS
51
- # parameters GetDisplayInvoicesResponse - {https://adcenter.microsoft.com/api/customerbilling}GetDisplayInvoicesResponse
52
- #
53
- # RAISES
54
- # detail ApiBatchFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
55
- # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
56
- # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
57
- #
58
- parameters = nil
59
- puts obj.getDisplayInvoices(parameters)
60
-
61
- # SYNOPSIS
62
- # AddInsertionOrder(parameters)
63
- #
64
- # ARGS
65
- # parameters AddInsertionOrderRequest - {https://adcenter.microsoft.com/api/customerbilling}AddInsertionOrderRequest
66
- #
67
- # RETURNS
68
- # parameters AddInsertionOrderResponse - {https://adcenter.microsoft.com/api/customerbilling}AddInsertionOrderResponse
69
- #
70
- # RAISES
71
- # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
72
- # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
73
- #
74
- parameters = nil
75
- puts obj.addInsertionOrder(parameters)
76
-
77
- # SYNOPSIS
78
- # UpdateInsertionOrder(parameters)
79
- #
80
- # ARGS
81
- # parameters UpdateInsertionOrderRequest - {https://adcenter.microsoft.com/api/customerbilling}UpdateInsertionOrderRequest
82
- #
83
- # RETURNS
84
- # parameters UpdateInsertionOrderResponse - {https://adcenter.microsoft.com/api/customerbilling}UpdateInsertionOrderResponse
85
- #
86
- # RAISES
87
- # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
88
- # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
89
- #
90
- parameters = nil
91
- puts obj.updateInsertionOrder(parameters)
92
-
93
- # SYNOPSIS
94
- # GetInsertionOrdersByAccount(parameters)
95
- #
96
- # ARGS
97
- # parameters GetInsertionOrdersByAccountRequest - {https://adcenter.microsoft.com/api/customerbilling}GetInsertionOrdersByAccountRequest
98
- #
99
- # RETURNS
100
- # parameters GetInsertionOrdersByAccountResponse - {https://adcenter.microsoft.com/api/customerbilling}GetInsertionOrdersByAccountResponse
101
- #
102
- # RAISES
103
- # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
104
- # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
105
- #
106
- parameters = nil
107
- puts obj.getInsertionOrdersByAccount(parameters)
108
-
109
- # SYNOPSIS
110
- # GetKOHIOInvoices(parameters)
111
- #
112
- # ARGS
113
- # parameters GetKOHIOInvoicesRequest - {https://adcenter.microsoft.com/api/customerbilling}GetKOHIOInvoicesRequest
114
- #
115
- # RETURNS
116
- # parameters GetKOHIOInvoicesResponse - {https://adcenter.microsoft.com/api/customerbilling}GetKOHIOInvoicesResponse
117
- #
118
- # RAISES
119
- # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
120
- # detail ApiBatchFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
121
- # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
122
- #
123
- parameters = nil
124
- puts obj.getKOHIOInvoices(parameters)
125
-
126
-