active_zuora 1.3.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.octopolo.yml +4 -0
  4. data/.soyuz.yml +13 -0
  5. data/.travis.yml +7 -0
  6. data/CHANGELOG.markdown +41 -0
  7. data/Gemfile +4 -0
  8. data/MIT-LICENSE +20 -0
  9. data/README.md +191 -0
  10. data/Rakefile +9 -53
  11. data/TODO.md +2 -0
  12. data/active_zuora.gemspec +25 -59
  13. data/lib/active_zuora.rb +44 -12
  14. data/lib/active_zuora/amend.rb +43 -0
  15. data/lib/active_zuora/base.rb +84 -0
  16. data/lib/active_zuora/batch_subscribe.rb +53 -0
  17. data/lib/active_zuora/belongs_to_associations.rb +56 -0
  18. data/lib/active_zuora/billing_preview.rb +49 -0
  19. data/lib/active_zuora/collection_proxy.rb +38 -0
  20. data/lib/active_zuora/connection.rb +47 -0
  21. data/lib/active_zuora/fields.rb +129 -0
  22. data/lib/active_zuora/fields/array_field_decorator.rb +28 -0
  23. data/lib/active_zuora/fields/boolean_field.rb +12 -0
  24. data/lib/active_zuora/fields/date_field.rb +18 -0
  25. data/lib/active_zuora/fields/date_time_field.rb +19 -0
  26. data/lib/active_zuora/fields/decimal_field.rb +12 -0
  27. data/lib/active_zuora/fields/field.rb +76 -0
  28. data/lib/active_zuora/fields/integer_field.rb +11 -0
  29. data/lib/active_zuora/fields/object_field.rb +31 -0
  30. data/lib/active_zuora/fields/string_field.rb +11 -0
  31. data/lib/active_zuora/generate.rb +43 -0
  32. data/lib/active_zuora/generator.rb +244 -0
  33. data/lib/active_zuora/has_many_associations.rb +37 -0
  34. data/lib/active_zuora/has_many_proxy.rb +50 -0
  35. data/lib/active_zuora/lazy_attr.rb +52 -0
  36. data/lib/active_zuora/persistence.rb +172 -0
  37. data/lib/active_zuora/relation.rb +260 -0
  38. data/lib/active_zuora/scoping.rb +50 -0
  39. data/lib/active_zuora/subscribe.rb +42 -0
  40. data/lib/active_zuora/version.rb +3 -0
  41. data/lib/active_zuora/z_object.rb +21 -0
  42. data/spec/account_integration_spec.rb +41 -0
  43. data/spec/base_spec.rb +39 -0
  44. data/spec/belongs_to_associations_spec.rb +35 -0
  45. data/spec/collection_proxy_spec.rb +28 -0
  46. data/spec/connection_spec.rb +66 -0
  47. data/spec/fields/date_field_spec.rb +35 -0
  48. data/spec/has_many_integration_spec.rb +53 -0
  49. data/spec/lazy_attr_spec.rb +22 -0
  50. data/spec/spec_helper.rb +34 -0
  51. data/spec/subscribe_integration_spec.rb +344 -0
  52. data/spec/zobject_integration_spec.rb +104 -0
  53. data/wsdl/zuora.wsdl +1548 -0
  54. metadata +141 -53
  55. data/LICENSE +0 -202
  56. data/README.rdoc +0 -15
  57. data/VERSION +0 -1
  58. data/custom_fields.yml +0 -17
  59. data/lib/zuora/ZUORA.rb +0 -1398
  60. data/lib/zuora/ZUORADriver.rb +0 -128
  61. data/lib/zuora/ZUORAMappingRegistry.rb +0 -1488
  62. data/lib/zuora/ZuoraServiceClient.rb +0 -124
  63. data/lib/zuora/account.rb +0 -4
  64. data/lib/zuora/api.rb +0 -18
  65. data/lib/zuora/contact.rb +0 -4
  66. data/lib/zuora/rate_plan.rb +0 -4
  67. data/lib/zuora/rate_plan_data.rb +0 -4
  68. data/lib/zuora/subscribe_options.rb +0 -4
  69. data/lib/zuora/subscribe_request.rb +0 -4
  70. data/lib/zuora/subscribe_with_existing_account_request.rb +0 -4
  71. data/lib/zuora/subscription.rb +0 -4
  72. data/lib/zuora/subscription_data.rb +0 -4
  73. data/lib/zuora/zobject.rb +0 -52
  74. data/lib/zuora_client.rb +0 -181
  75. data/lib/zuora_interface.rb +0 -199
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.3.0
@@ -1,17 +0,0 @@
1
- Account:
2
- - ScreenName
3
- - Locale
4
- Subscription:
5
- - AppID
6
- - Subdomain
7
- Product:
8
- - NumInstances
9
- - InclusionList
10
- - AvailabilityList
11
- - ProductType
12
- ProductRatePlan:
13
- - NumInstances
14
- - Slug
15
- - NextSlug
16
- - Duration
17
- - Trial
@@ -1,1398 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- module ZUORA
4
-
5
-
6
- # {http://object.api.zuora.com/}zObject
7
- # fieldsToNull - SOAP::SOAPString
8
- # id - (any)
9
- class ZObject
10
- #BEGIN BASTARDIZING CORE RUBY
11
- class << self; alias_method :attr_accessor_without_attributes, :attr_accessor; end
12
- def self.attr_accessor(*attrs)
13
- @attributes ||= []
14
- @attributes.push *attrs
15
- attr_accessor_without_attributes *attrs
16
- end
17
- #END BASTARDIZATION
18
-
19
- attr_accessor :fieldsToNull
20
- attr_accessor :id
21
-
22
- def initialize(fieldsToNull = [], id = nil)
23
- @fieldsToNull = fieldsToNull
24
- @id = id
25
- end
26
- end
27
-
28
- # {http://object.api.zuora.com/}Account
29
- # fieldsToNull - SOAP::SOAPString
30
- # id - (any)
31
- # accountNumber - SOAP::SOAPString
32
- # allowInvoiceEdit - SOAP::SOAPBoolean
33
- # autoPay - SOAP::SOAPBoolean
34
- # batch - SOAP::SOAPString
35
- # billCycleDay - SOAP::SOAPInt
36
- # billToId - (any)
37
- # createdDate - SOAP::SOAPDateTime
38
- # crmId - SOAP::SOAPString
39
- # currency - SOAP::SOAPString
40
- # customerServiceRepName - SOAP::SOAPString
41
- # defaultPaymentMethodId - (any)
42
- # name - SOAP::SOAPString
43
- # notes - SOAP::SOAPString
44
- # paymentTerm - SOAP::SOAPString
45
- # purchaseOrderNumber - SOAP::SOAPString
46
- # salesRepName - SOAP::SOAPString
47
- # soldToId - (any)
48
- # status - SOAP::SOAPString
49
- # updatedDate - SOAP::SOAPDateTime
50
- class Account < ZObject
51
- attr_accessor :fieldsToNull
52
- attr_accessor :id
53
- attr_accessor :accountNumber
54
- attr_accessor :allowInvoiceEdit
55
- attr_accessor :autoPay
56
- attr_accessor :batch
57
- attr_accessor :billCycleDay
58
- attr_accessor :billToId
59
- attr_accessor :createdDate
60
- attr_accessor :crmId
61
- attr_accessor :currency
62
- attr_accessor :customerServiceRepName
63
- attr_accessor :defaultPaymentMethodId
64
- attr_accessor :paymentGateway
65
- attr_accessor :name
66
- attr_accessor :notes
67
- attr_accessor :paymentTerm
68
- attr_accessor :purchaseOrderNumber
69
- attr_accessor :salesRepName
70
- attr_accessor :soldToId
71
- attr_accessor :status
72
- attr_accessor :updatedDate
73
- attr_accessor :invoiceDeliveryPrefsEmail
74
-
75
- def initialize(fieldsToNull = [], id = nil, accountNumber = nil, allowInvoiceEdit = nil, autoPay = nil, batch = nil, billCycleDay = nil, billToId = nil, createdDate = nil, crmId = nil, currency = nil, customerServiceRepName = nil, defaultPaymentMethodId = nil, paymentGateway = nil, name = nil, notes = nil, paymentTerm = nil, purchaseOrderNumber = nil, salesRepName = nil, soldToId = nil, status = nil, updatedDate = nil)
76
- @fieldsToNull = fieldsToNull
77
- @id = id
78
- @accountNumber = accountNumber
79
- @allowInvoiceEdit = allowInvoiceEdit
80
- @autoPay = autoPay
81
- @batch = batch
82
- @billCycleDay = billCycleDay
83
- @billToId = billToId
84
- @createdDate = createdDate
85
- @crmId = crmId
86
- @currency = currency
87
- @customerServiceRepName = customerServiceRepName
88
- @defaultPaymentMethodId = defaultPaymentMethodId
89
- @paymentGateway = paymentGateway
90
- @name = name
91
- @notes = notes
92
- @paymentTerm = paymentTerm
93
- @purchaseOrderNumber = purchaseOrderNumber
94
- @salesRepName = salesRepName
95
- @soldToId = soldToId
96
- @status = status
97
- @updatedDate = updatedDate
98
- end
99
- end
100
-
101
- class Refund < ZObject
102
- attr_accessor :fieldsToNull
103
- attr_accessor :id
104
- attr_accessor :accountId
105
- attr_accessor :accountingCode
106
- attr_accessor :amount
107
- attr_accessor :comment
108
- attr_accessor :createdById
109
- attr_accessor :createdDate
110
- attr_accessor :gateway
111
- attr_accessor :gatewayResponse
112
- attr_accessor :gatewayResponseCode
113
- attr_accessor :methodType
114
- attr_accessor :paymentId
115
- attr_accessor :referenceID
116
- attr_accessor :refundDate
117
- attr_accessor :refundNumber
118
- attr_accessor :refundTransactionTime
119
- attr_accessor :status
120
- attr_accessor :type
121
-
122
- def initialize(fieldsToNull = [], id = nil, accountId = nil, accountingCode = nil, amount = nil, comment = nil, createdById = nil, createdDate = nil, gateway = nil, gatewayResponse = nil, gatewayResponseCode = nil, methodType = nil, paymentId = nil, referenceID = nil, refundDate = nil, refundNumber = nil, refundTransactionTime = nil, status = nil, type = nil)
123
- @fieldsToNull = fieldsToNull
124
- @id = id
125
- @accountId = accountId
126
- @accountingCode = accountingCode
127
- @amount = amount
128
- @comment = comment
129
- @createdById = createdById
130
- @createdDate = createdDate
131
- @gateway = gateway
132
- @gatewayResponse = gatewayResponse
133
- @gatewayResponseCode = gatewayResponseCode
134
- @methodType = methodType
135
- @paymentId = paymentId
136
- @referenceID = referenceID
137
- @refundDate = refundDate
138
- @refundNumber = refundNumber
139
- @refundTransactionTime = refundTransactionTime
140
- @status = status
141
- @type = type
142
- end
143
- end
144
- # {http://object.api.zuora.com/}Amendment
145
- # fieldsToNull - SOAP::SOAPString
146
- # id - (any)
147
- # contractEffectiveDate - SOAP::SOAPDateTime
148
- # customerAcceptanceDate - SOAP::SOAPDateTime
149
- # description - SOAP::SOAPString
150
- # effectiveDate - SOAP::SOAPDateTime
151
- # initialTerm - SOAP::SOAPLong
152
- # name - SOAP::SOAPString
153
- # renewalTerm - SOAP::SOAPLong
154
- # serviceActivationDate - SOAP::SOAPDateTime
155
- # status - SOAP::SOAPString
156
- # subscriptionId - (any)
157
- # termCommitment - SOAP::SOAPString
158
- # termStartDate - SOAP::SOAPDateTime
159
- # type - SOAP::SOAPString
160
- class Amendment < ZObject
161
- attr_accessor :fieldsToNull
162
- attr_accessor :id
163
- attr_accessor :contractEffectiveDate
164
- attr_accessor :customerAcceptanceDate
165
- attr_accessor :description
166
- attr_accessor :effectiveDate
167
- attr_accessor :initialTerm
168
- attr_accessor :name
169
- attr_accessor :renewalTerm
170
- attr_accessor :serviceActivationDate
171
- attr_accessor :status
172
- attr_accessor :subscriptionId
173
- attr_accessor :termCommitment
174
- attr_accessor :termStartDate
175
- attr_accessor :type
176
- attr_accessor :ratePlanData
177
-
178
- def initialize(fieldsToNull = [], id = nil, contractEffectiveDate = nil, customerAcceptanceDate = nil, description = nil, effectiveDate = nil, initialTerm = nil, name = nil, renewalTerm = nil, serviceActivationDate = nil, status = nil, subscriptionId = nil, termCommitment = nil, termStartDate = nil, type = nil, ratePlanData =[])
179
- @fieldsToNull = fieldsToNull
180
- @id = id
181
- @contractEffectiveDate = contractEffectiveDate
182
- @customerAcceptanceDate = customerAcceptanceDate
183
- @description = description
184
- @effectiveDate = effectiveDate
185
- @initialTerm = initialTerm
186
- @name = name
187
- @renewalTerm = renewalTerm
188
- @serviceActivationDate = serviceActivationDate
189
- @status = status
190
- @subscriptionId = subscriptionId
191
- @termCommitment = termCommitment
192
- @termStartDate = termStartDate
193
- @type = type
194
- @ratePlanData = ratePlanData
195
- end
196
- end
197
-
198
- # {http://object.api.zuora.com/}Contact
199
- # fieldsToNull - SOAP::SOAPString
200
- # id - (any)
201
- # accountId - (any)
202
- # address1 - SOAP::SOAPString
203
- # address2 - SOAP::SOAPString
204
- # city - SOAP::SOAPString
205
- # country - SOAP::SOAPString
206
- # createdDate - SOAP::SOAPDateTime
207
- # fax - SOAP::SOAPString
208
- # firstName - SOAP::SOAPString
209
- # homePhone - SOAP::SOAPString
210
- # lastName - SOAP::SOAPString
211
- # mobilePhone - SOAP::SOAPString
212
- # nickName - SOAP::SOAPString
213
- # otherPhone - SOAP::SOAPString
214
- # otherPhoneType - SOAP::SOAPString
215
- # personalEmail - SOAP::SOAPString
216
- # postalCode - SOAP::SOAPString
217
- # state - SOAP::SOAPString
218
- # updatedDate - SOAP::SOAPDateTime
219
- # workEmail - SOAP::SOAPString
220
- # workPhone - SOAP::SOAPString
221
- class Contact < ZObject
222
- attr_accessor :fieldsToNull
223
- attr_accessor :id
224
- attr_accessor :accountId
225
- attr_accessor :address1
226
- attr_accessor :address2
227
- attr_accessor :city
228
- attr_accessor :country
229
- attr_accessor :createdDate
230
- attr_accessor :fax
231
- attr_accessor :firstName
232
- attr_accessor :homePhone
233
- attr_accessor :lastName
234
- attr_accessor :mobilePhone
235
- attr_accessor :nickName
236
- attr_accessor :otherPhone
237
- attr_accessor :otherPhoneType
238
- attr_accessor :personalEmail
239
- attr_accessor :postalCode
240
- attr_accessor :state
241
- attr_accessor :updatedDate
242
- attr_accessor :workEmail
243
- attr_accessor :workPhone
244
-
245
- def initialize(fieldsToNull = [], id = nil, accountId = nil, address1 = nil, address2 = nil, city = nil, country = nil, createdDate = nil, fax = nil, firstName = nil, homePhone = nil, lastName = nil, mobilePhone = nil, nickName = nil, otherPhone = nil, otherPhoneType = nil, personalEmail = nil, postalCode = nil, state = nil, updatedDate = nil, workEmail = nil, workPhone = nil)
246
- @fieldsToNull = fieldsToNull
247
- @id = id
248
- @accountId = accountId
249
- @address1 = address1
250
- @address2 = address2
251
- @city = city
252
- @country = country
253
- @createdDate = createdDate
254
- @fax = fax
255
- @firstName = firstName
256
- @homePhone = homePhone
257
- @lastName = lastName
258
- @mobilePhone = mobilePhone
259
- @nickName = nickName
260
- @otherPhone = otherPhone
261
- @otherPhoneType = otherPhoneType
262
- @personalEmail = personalEmail
263
- @postalCode = postalCode
264
- @state = state
265
- @updatedDate = updatedDate
266
- @workEmail = workEmail
267
- @workPhone = workPhone
268
- end
269
- end
270
-
271
- # {http://object.api.zuora.com/}Invoice
272
- # fieldsToNull - SOAP::SOAPString
273
- # id - (any)
274
- # accountId - (any)
275
- # amount - SOAP::SOAPDouble
276
- # balance - SOAP::SOAPDouble
277
- # body - SOAP::SOAPString
278
- # dueDate - SOAP::SOAPDateTime
279
- # invoiceDate - SOAP::SOAPDateTime
280
- # invoiceNumber - SOAP::SOAPString
281
- # status - SOAP::SOAPString
282
- # targetDate - SOAP::SOAPDateTime
283
- class Invoice < ZObject
284
- attr_accessor :fieldsToNull
285
- attr_accessor :id
286
- attr_accessor :accountId
287
- attr_accessor :amount
288
- attr_accessor :balance
289
- attr_accessor :body
290
- attr_accessor :dueDate
291
- attr_accessor :invoiceDate
292
- attr_accessor :invoiceNumber
293
- attr_accessor :status
294
- attr_accessor :targetDate
295
-
296
- def initialize(fieldsToNull = [], id = nil, accountId = nil, amount = nil, balance = nil, body = nil, dueDate = nil, invoiceDate = nil, invoiceNumber = nil, status = nil, targetDate = nil)
297
- @fieldsToNull = fieldsToNull
298
- @id = id
299
- @accountId = accountId
300
- @amount = amount
301
- @balance = balance
302
- @body = body
303
- @dueDate = dueDate
304
- @invoiceDate = invoiceDate
305
- @invoiceNumber = invoiceNumber
306
- @status = status
307
- @targetDate = targetDate
308
- end
309
- end
310
-
311
- class InvoiceItemAdjustment < ZObject
312
- attr_accessor :fieldsToNull
313
- attr_accessor :id
314
- attr_accessor :accountId
315
- attr_accessor :amount
316
- attr_accessor :sourceId
317
- attr_accessor :invoiceId
318
- attr_accessor :type
319
- attr_accessor :sourceType
320
- attr_accessor :adjustmentDate
321
-
322
- def initialize(fieldsToNull = [], id = nil, accountId = nil, amount = nil, sourceId = nil, invoiceId = nil, type = nil, sourceType = nil, adjustmentDate = nil)
323
- @fieldsToNull = fieldsToNull
324
- @id = id
325
- @accountId = accountId
326
- @amount = amount
327
- @sourceId = sourceId
328
- @invoiceId = invoiceId
329
- @type = type
330
- @sourceType = sourceType
331
- @adjustmentDate = adjustmentDate
332
- end
333
- end
334
-
335
- class BillRun < ZObject
336
- attr_accessor :fieldsToNull
337
- attr_accessor :id
338
- attr_accessor :accountId
339
- attr_accessor :includesOneTime
340
- attr_accessor :includesRecurring
341
- attr_accessor :includesUsage
342
- attr_accessor :invoiceDate
343
- attr_accessor :targetDate
344
-
345
- def initialize(fieldsToNull = [], id = nil, accountId = nil, includesOneTime = nil, includesRecurring = nil, includesUsage = nil, invoiceDate = nil, status = nil, targetDate = nil)
346
- @fieldsToNull = fieldsToNull
347
- @id = id
348
- @accountId = accountId
349
- @includesOneTime = includesOneTime
350
- @includesRecurring = includesRecurring
351
- @includesUsage = includesUsage
352
- @invoiceDate = invoiceDate
353
- @targetDate = targetDate
354
- end
355
- end
356
-
357
-
358
- # {http://object.api.zuora.com/}Payment
359
- # fieldsToNull - SOAP::SOAPString
360
- # id - (any)
361
- # accountId - (any)
362
- # amount - SOAP::SOAPDouble
363
- # comment - SOAP::SOAPString
364
- # effectiveDate - SOAP::SOAPDateTime
365
- # paymentMethodId - (any)
366
- # referenceId - SOAP::SOAPString
367
- # status - SOAP::SOAPString
368
- # type - SOAP::SOAPString
369
- class Payment < ZObject
370
- attr_accessor :fieldsToNull
371
- attr_accessor :id
372
- attr_accessor :accountId
373
- attr_accessor :amount
374
- attr_accessor :comment
375
- attr_accessor :effectiveDate
376
- attr_accessor :paymentMethodId
377
- attr_accessor :referenceId
378
- attr_accessor :status
379
- attr_accessor :type
380
-
381
- def initialize(fieldsToNull = [], id = nil, accountId = nil, amount = nil, comment = nil, effectiveDate = nil, paymentMethodId = nil, referenceId = nil, status = nil, type = nil)
382
- @fieldsToNull = fieldsToNull
383
- @id = id
384
- @accountId = accountId
385
- @amount = amount
386
- @comment = comment
387
- @effectiveDate = effectiveDate
388
- @paymentMethodId = paymentMethodId
389
- @referenceId = referenceId
390
- @status = status
391
- @type = type
392
- end
393
- end
394
-
395
- # {http://object.api.zuora.com/}InvoicePayment
396
- # fieldsToNull - SOAP::SOAPString
397
- # id - (any)
398
- # amount - SOAP::SOAPDouble
399
- # invoiceId - (any)
400
- # paymentId - (any)
401
- class InvoicePayment < ZObject
402
- attr_accessor :fieldsToNull
403
- attr_accessor :id
404
- attr_accessor :amount
405
- attr_accessor :invoiceId
406
- attr_accessor :paymentId
407
-
408
- def initialize(fieldsToNull = [], id = nil, amount = nil, invoiceId = nil, paymentId = nil)
409
- @fieldsToNull = fieldsToNull
410
- @id = id
411
- @amount = amount
412
- @invoiceId = invoiceId
413
- @paymentId = paymentId
414
- end
415
- end
416
-
417
- # {http://object.api.zuora.com/}PaymentMethod
418
- # fieldsToNull - SOAP::SOAPString
419
- # id - (any)
420
- # accountId - (any)
421
- # achAbaCode - SOAP::SOAPString
422
- # achAccountName - SOAP::SOAPString
423
- # achAccountNumber - SOAP::SOAPString
424
- # achAccountNumberMask - SOAP::SOAPString
425
- # achAccountType - SOAP::SOAPString
426
- # achBankName - SOAP::SOAPString
427
- # active - SOAP::SOAPBoolean
428
- # createdDate - SOAP::SOAPDateTime
429
- # creditCardAddress1 - SOAP::SOAPString
430
- # creditCardAddress2 - SOAP::SOAPString
431
- # creditCardCity - SOAP::SOAPString
432
- # creditCardCountry - SOAP::SOAPString
433
- # creditCardExpirationMonth - SOAP::SOAPInt
434
- # creditCardExpirationYear - SOAP::SOAPInt
435
- # creditCardHolderName - SOAP::SOAPString
436
- # creditCardMaskNumber - SOAP::SOAPString
437
- # creditCardNumber - SOAP::SOAPString
438
- # creditCardPostalCode - SOAP::SOAPString
439
- # creditCardState - SOAP::SOAPString
440
- # creditCardType - SOAP::SOAPString
441
- # lastTransactionDateTime - SOAP::SOAPDateTime
442
- # lastTransactionStatus - SOAP::SOAPString
443
- # name - SOAP::SOAPString
444
- # paypalBaid - SOAP::SOAPString
445
- # paypalEmail - SOAP::SOAPString
446
- # type - SOAP::SOAPString
447
- # updatedDate - SOAP::SOAPDateTime
448
- class PaymentMethod < ZObject
449
- attr_accessor :fieldsToNull
450
- attr_accessor :id
451
- attr_accessor :accountId
452
- attr_accessor :achAbaCode
453
- attr_accessor :achAccountName
454
- attr_accessor :achAccountNumber
455
- attr_accessor :achAccountNumberMask
456
- attr_accessor :achAccountType
457
- attr_accessor :achBankName
458
- attr_accessor :active
459
- attr_accessor :createdDate
460
- attr_accessor :creditCardAddress1
461
- attr_accessor :creditCardAddress2
462
- attr_accessor :creditCardCity
463
- attr_accessor :creditCardCountry
464
- attr_accessor :creditCardExpirationMonth
465
- attr_accessor :creditCardExpirationYear
466
- attr_accessor :creditCardHolderName
467
- attr_accessor :creditCardMaskNumber
468
- attr_accessor :creditCardNumber
469
- attr_accessor :creditCardPostalCode
470
- attr_accessor :creditCardState
471
- attr_accessor :creditCardType
472
- attr_accessor :lastTransactionDateTime
473
- attr_accessor :lastTransactionStatus
474
- attr_accessor :name
475
- attr_accessor :paypalBaid
476
- attr_accessor :paypalEmail
477
- attr_accessor :type
478
- attr_accessor :updatedDate
479
- attr_accessor :numConsecutiveFailures
480
-
481
- def initialize(fieldsToNull = [], id = nil, accountId = nil, achAbaCode = nil, achAccountName = nil, achAccountNumber = nil, achAccountNumberMask = nil, achAccountType = nil, achBankName = nil, active = nil, createdDate = nil, creditCardAddress1 = nil, creditCardAddress2 = nil, creditCardCity = nil, creditCardCountry = nil, creditCardExpirationMonth = nil, creditCardExpirationYear = nil, creditCardHolderName = nil, creditCardMaskNumber = nil, creditCardNumber = nil, creditCardPostalCode = nil, creditCardState = nil, creditCardType = nil, lastTransactionDateTime = nil, lastTransactionStatus = nil, name = nil, paypalBaid = nil, paypalEmail = nil, type = nil, updatedDate = nil, numConsecutiveFailures = nil)
482
- @fieldsToNull = fieldsToNull
483
- @id = id
484
- @accountId = accountId
485
- @achAbaCode = achAbaCode
486
- @achAccountName = achAccountName
487
- @achAccountNumber = achAccountNumber
488
- @achAccountNumberMask = achAccountNumberMask
489
- @achAccountType = achAccountType
490
- @achBankName = achBankName
491
- @active = active
492
- @createdDate = createdDate
493
- @creditCardAddress1 = creditCardAddress1
494
- @creditCardAddress2 = creditCardAddress2
495
- @creditCardCity = creditCardCity
496
- @creditCardCountry = creditCardCountry
497
- @creditCardExpirationMonth = creditCardExpirationMonth
498
- @creditCardExpirationYear = creditCardExpirationYear
499
- @creditCardHolderName = creditCardHolderName
500
- @creditCardMaskNumber = creditCardMaskNumber
501
- @creditCardNumber = creditCardNumber
502
- @creditCardPostalCode = creditCardPostalCode
503
- @creditCardState = creditCardState
504
- @creditCardType = creditCardType
505
- @lastTransactionDateTime = lastTransactionDateTime
506
- @lastTransactionStatus = lastTransactionStatus
507
- @name = name
508
- @paypalBaid = paypalBaid
509
- @paypalEmail = paypalEmail
510
- @type = type
511
- @updatedDate = updatedDate
512
- @numConsecutiveFailures = numConsecutiveFailures
513
- end
514
- end
515
-
516
- # {http://object.api.zuora.com/}Product
517
- # fieldsToNull - SOAP::SOAPString
518
- # id - (any)
519
- # description - SOAP::SOAPString
520
- # effectiveEndDate - SOAP::SOAPDateTime
521
- # effectiveStartDate - SOAP::SOAPDateTime
522
- # name - SOAP::SOAPString
523
- # sKU - SOAP::SOAPString
524
- class Product < ZObject
525
- attr_accessor :fieldsToNull
526
- attr_accessor :id
527
- attr_accessor :description
528
- attr_accessor :effectiveEndDate
529
- attr_accessor :effectiveStartDate
530
- attr_accessor :name
531
- attr_accessor :sKU
532
-
533
- def initialize(fieldsToNull = [], id = nil, description = nil, effectiveEndDate = nil, effectiveStartDate = nil, name = nil, sKU = nil)
534
- @fieldsToNull = fieldsToNull
535
- @id = id
536
- @description = description
537
- @effectiveEndDate = effectiveEndDate
538
- @effectiveStartDate = effectiveStartDate
539
- @name = name
540
- @sKU = sKU
541
- end
542
- end
543
-
544
- # {http://object.api.zuora.com/}ProductRatePlan
545
- # fieldsToNull - SOAP::SOAPString
546
- # id - (any)
547
- # description - SOAP::SOAPString
548
- # effectiveEndDate - SOAP::SOAPDateTime
549
- # effectiveStartDate - SOAP::SOAPDateTime
550
- # name - SOAP::SOAPString
551
- # productId - (any)
552
- class ProductRatePlan < ZObject
553
- attr_accessor :fieldsToNull
554
- attr_accessor :id
555
- attr_accessor :description
556
- attr_accessor :effectiveEndDate
557
- attr_accessor :effectiveStartDate
558
- attr_accessor :name
559
- attr_accessor :productId
560
-
561
- def initialize(fieldsToNull = [], id = nil, description = nil, effectiveEndDate = nil, effectiveStartDate = nil, name = nil, productId = nil)
562
- @fieldsToNull = fieldsToNull
563
- @id = id
564
- @description = description
565
- @effectiveEndDate = effectiveEndDate
566
- @effectiveStartDate = effectiveStartDate
567
- @name = name
568
- @productId = productId
569
- end
570
- end
571
-
572
- # {http://object.api.zuora.com/}ProductRatePlanCharge
573
- # fieldsToNull - SOAP::SOAPString
574
- # id - (any)
575
- # accountingCode - SOAP::SOAPString
576
- # defaultQuantity - SOAP::SOAPDouble
577
- # description - SOAP::SOAPString
578
- # maxQuantity - SOAP::SOAPDouble
579
- # minQuantity - SOAP::SOAPDouble
580
- # model - SOAP::SOAPString
581
- # productRatePlanId - (any)
582
- # type - SOAP::SOAPString
583
- # uOM - SOAP::SOAPString
584
- class ProductRatePlanCharge < ZObject
585
- attr_accessor :fieldsToNull
586
- attr_accessor :id
587
- attr_accessor :accountingCode
588
- attr_accessor :defaultQuantity
589
- attr_accessor :description
590
- attr_accessor :maxQuantity
591
- attr_accessor :minQuantity
592
- attr_accessor :model
593
- attr_accessor :name
594
- attr_accessor :productRatePlanId
595
- attr_accessor :type
596
- attr_accessor :uOM
597
- attr_accessor :chargeModel
598
- attr_accessor :revRecCode
599
- attr_accessor :triggerEvent
600
- attr_accessor :chargeType
601
- attr_accessor :billingPeriod
602
- attr_accessor :billCycleType
603
- attr_accessor :billingPeriodAlignement
604
- attr_accessor :revRecTriggerCondition
605
- attr_accessor :productRatePlanChargeTierData
606
-
607
- def initialize(fieldsToNull = [], id = nil, accountingCode = nil, defaultQuantity = nil, description = nil, maxQuantity = nil, minQuantity = nil, model = nil, name = nil, productRatePlanId = nil, type = nil, uOM = nil, chargeModel = nil, revRecCode=nil, triggerEvent=nil, chargeType=nil, billingPeriod=nil, billCycleType=nil, billingPeriodAlignement=nil, revRecTriggerCondition=nil, productRatePlanChargeTierData=nil)
608
- @fieldsToNull = fieldsToNull
609
- @id = id
610
- @accountingCode = accountingCode
611
- @defaultQuantity = defaultQuantity
612
- @description = description
613
- @maxQuantity = maxQuantity
614
- @minQuantity = minQuantity
615
- @model = model
616
- @name = name
617
- @productRatePlanId = productRatePlanId
618
- @type = type
619
- @uOM = uOM
620
- @chargeModel = chargeModel
621
- @revRecCode=revRecCode,
622
- @triggerEvent=triggerEvent,
623
- @chargeType=chargeType,
624
- @billingPeriod=billingPeriod,
625
- @billCycleType=billCycleType,
626
- @billingPeriodAlignement=billingPeriodAlignement
627
- @revRecTriggerCondition=revRecTriggerCondition
628
- @productRatePlanChargeTierData=productRatePlanChargeTierData
629
- end
630
- end
631
-
632
- class ProductRatePlanChargeTierData < ZObject
633
- attr_accessor :productRatePlanChargeTier
634
-
635
- def initialize(productRatePlanChargeTier = nil)
636
- @productRatePlanChargeTier = productRatePlanChargeTier
637
- end
638
- end
639
-
640
-
641
- # {http://object.api.zuora.com/}ProductRatePlanChargeTier
642
- # fieldsToNull - SOAP::SOAPString
643
- # id - (any)
644
- # endingUnit - SOAP::SOAPDouble
645
- # price - SOAP::SOAPDouble
646
- # productRatePlanChargeId - (any)
647
- # startingUnit - SOAP::SOAPDouble
648
- # tier - SOAP::SOAPInt
649
- class ProductRatePlanChargeTier < ZObject
650
- attr_accessor :fieldsToNull
651
- attr_accessor :id
652
- attr_accessor :endingUnit
653
- attr_accessor :price
654
- attr_accessor :productRatePlanChargeId
655
- attr_accessor :startingUnit
656
- attr_accessor :tier
657
- attr_accessor :active
658
- attr_accessor :currency
659
-
660
- def initialize(fieldsToNull = [], id = nil, endingUnit = nil, price = nil, productRatePlanChargeId = nil, startingUnit = nil, tier = nil, active=nil, currency=nil)
661
- @fieldsToNull = fieldsToNull
662
- @id = id
663
- @endingUnit = endingUnit
664
- @price = price
665
- @productRatePlanChargeId = productRatePlanChargeId
666
- @startingUnit = startingUnit
667
- @tier = tier
668
- @active = active
669
- @currency = currency
670
- end
671
- end
672
-
673
- # {http://object.api.zuora.com/}RatePlan
674
- # fieldsToNull - SOAP::SOAPString
675
- # id - (any)
676
- # amendmentId - (any)
677
- # amendmentSubscriptionRatePlanId - (any)
678
- # amendmentType - SOAP::SOAPString
679
- # name - SOAP::SOAPString
680
- # productRatePlanId - (any)
681
- # subscriptionId - (any)
682
- class RatePlan < ZObject
683
- attr_accessor :fieldsToNull
684
- attr_accessor :id
685
- attr_accessor :amendmentId
686
- attr_accessor :amendmentSubscriptionRatePlanId
687
- attr_accessor :amendmentType
688
- attr_accessor :name
689
- attr_accessor :productRatePlanId
690
- attr_accessor :subscriptionId
691
-
692
- def initialize(fieldsToNull = [], id = nil, amendmentId = nil, amendmentSubscriptionRatePlanId = nil, amendmentType = nil, name = nil, productRatePlanId = nil, subscriptionId = nil)
693
- @fieldsToNull = fieldsToNull
694
- @id = id
695
- @amendmentId = amendmentId
696
- @amendmentSubscriptionRatePlanId = amendmentSubscriptionRatePlanId
697
- @amendmentType = amendmentType
698
- @name = name
699
- @productRatePlanId = productRatePlanId
700
- @subscriptionId = subscriptionId
701
- end
702
- end
703
-
704
- # {http://object.api.zuora.com/}RatePlanCharge
705
- # fieldsToNull - SOAP::SOAPString
706
- # id - (any)
707
- # accountingCode - SOAP::SOAPString
708
- # chargeModel - SOAP::SOAPString
709
- # chargeNumber - SOAP::SOAPString
710
- # chargeType - SOAP::SOAPString
711
- # description - SOAP::SOAPString
712
- # dMRC - SOAP::SOAPDouble
713
- # dTCV - SOAP::SOAPDouble
714
- # includedUnits - SOAP::SOAPDouble
715
- # mRR - SOAP::SOAPDouble
716
- # name - SOAP::SOAPString
717
- # numberOfPeriods - SOAP::SOAPLong
718
- # overagePrice - SOAP::SOAPDouble
719
- # price - SOAP::SOAPDouble
720
- # productRatePlanChargeId - (any)
721
- # quantity - SOAP::SOAPDouble
722
- # ratePlanId - (any)
723
- # tCV - SOAP::SOAPDouble
724
- # triggerEvent - SOAP::SOAPString
725
- # uOM - SOAP::SOAPString
726
- class RatePlanCharge < ZObject
727
- attr_accessor :fieldsToNull
728
- attr_accessor :id
729
- attr_accessor :accountingCode
730
- attr_accessor :chargeModel
731
- attr_accessor :chargeNumber
732
- attr_accessor :chargeType
733
- attr_accessor :description
734
- attr_accessor :dMRC
735
- attr_accessor :dTCV
736
- attr_accessor :includedUnits
737
- attr_accessor :mRR
738
- attr_accessor :name
739
- attr_accessor :numberOfPeriods
740
- attr_accessor :overagePrice
741
- attr_accessor :price
742
- attr_accessor :productRatePlanChargeId
743
- attr_accessor :quantity
744
- attr_accessor :ratePlanId
745
- attr_accessor :tCV
746
- attr_accessor :triggerEvent
747
- attr_accessor :uOM
748
- attr_accessor :chargedThroughDate
749
-
750
- def initialize(fieldsToNull = [], id = nil, accountingCode = nil, chargeModel = nil, chargeNumber = nil, chargeType = nil, description = nil, dMRC = nil, dTCV = nil, includedUnits = nil, mRR = nil, name = nil, numberOfPeriods = nil, overagePrice = nil, price = nil, productRatePlanChargeId = nil, quantity = nil, ratePlanId = nil, tCV = nil, triggerEvent = nil, uOM = nil, chargedThroughDate = nil)
751
- @fieldsToNull = fieldsToNull
752
- @id = id
753
- @accountingCode = accountingCode
754
- @chargeModel = chargeModel
755
- @chargeNumber = chargeNumber
756
- @chargeType = chargeType
757
- @description = description
758
- @dMRC = dMRC
759
- @dTCV = dTCV
760
- @includedUnits = includedUnits
761
- @mRR = mRR
762
- @name = name
763
- @numberOfPeriods = numberOfPeriods
764
- @overagePrice = overagePrice
765
- @price = price
766
- @productRatePlanChargeId = productRatePlanChargeId
767
- @quantity = quantity
768
- @ratePlanId = ratePlanId
769
- @tCV = tCV
770
- @triggerEvent = triggerEvent
771
- @uOM = uOM
772
- @chargedThroughDate = chargedThroughDate
773
- end
774
- end
775
-
776
- # {http://object.api.zuora.com/}RatePlanChargeTier
777
- # fieldsToNull - SOAP::SOAPString
778
- # id - (any)
779
- # endingUnit - SOAP::SOAPDouble
780
- # price - SOAP::SOAPDouble
781
- # priceFormat - SOAP::SOAPString
782
- # ratePlanChargeId - (any)
783
- # startingUnit - SOAP::SOAPDouble
784
- # tier - SOAP::SOAPInt
785
- class RatePlanChargeTier < ZObject
786
- attr_accessor :fieldsToNull
787
- attr_accessor :id
788
- attr_accessor :endingUnit
789
- attr_accessor :price
790
- attr_accessor :priceFormat
791
- attr_accessor :ratePlanChargeId
792
- attr_accessor :startingUnit
793
- attr_accessor :tier
794
-
795
- def initialize(fieldsToNull = [], id = nil, endingUnit = nil, price = nil, priceFormat = nil, ratePlanChargeId = nil, startingUnit = nil, tier = nil)
796
- @fieldsToNull = fieldsToNull
797
- @id = id
798
- @endingUnit = endingUnit
799
- @price = price
800
- @priceFormat = priceFormat
801
- @ratePlanChargeId = ratePlanChargeId
802
- @startingUnit = startingUnit
803
- @tier = tier
804
- end
805
- end
806
-
807
- # {http://object.api.zuora.com/}Subscription
808
- # fieldsToNull - SOAP::SOAPString
809
- # id - (any)
810
- # accountId - (any)
811
- # autoRenew - SOAP::SOAPBoolean
812
- # cancelledDate - SOAP::SOAPDateTime
813
- # contractAcceptanceDate - SOAP::SOAPDateTime
814
- # contractEffectiveDate - SOAP::SOAPDateTime
815
- # currency - SOAP::SOAPString
816
- # initialTerm - SOAP::SOAPInt
817
- # name - SOAP::SOAPString
818
- # notes - SOAP::SOAPString
819
- # originalSubscriptionId - SOAP::SOAPString
820
- # previousSubscriptionId - SOAP::SOAPString
821
- # renewalTerm - SOAP::SOAPInt
822
- # serviceActivationDate - SOAP::SOAPDateTime
823
- # status - SOAP::SOAPString
824
- # termStartDate - SOAP::SOAPDateTime
825
- # version - SOAP::SOAPInt
826
- class Subscription < ZObject
827
- attr_accessor :fieldsToNull
828
- attr_accessor :id
829
- attr_accessor :accountId
830
- attr_accessor :autoRenew
831
- attr_accessor :cancelledDate
832
- attr_accessor :contractAcceptanceDate
833
- attr_accessor :contractEffectiveDate
834
- attr_accessor :currency
835
- attr_accessor :initialTerm
836
- attr_accessor :name
837
- attr_accessor :notes
838
- attr_accessor :originalSubscriptionId
839
- attr_accessor :previousSubscriptionId
840
- attr_accessor :renewalTerm
841
- attr_accessor :serviceActivationDate
842
- attr_accessor :subscriptionEndDate
843
- attr_accessor :status
844
- attr_accessor :termStartDate
845
- attr_accessor :version
846
-
847
- def initialize(fieldsToNull = [], id = nil, accountId = nil, autoRenew = nil, cancelledDate = nil, contractAcceptanceDate = nil, contractEffectiveDate = nil, currency = nil, initialTerm = nil, name = nil, notes = nil, originalSubscriptionId = nil, previousSubscriptionId = nil, renewalTerm = nil, serviceActivationDate = nil, subscriptionEndDate = nil, status = nil, termStartDate = nil, version = nil)
848
- @fieldsToNull = fieldsToNull
849
- @id = id
850
- @accountId = accountId
851
- @autoRenew = autoRenew
852
- @cancelledDate = cancelledDate
853
- @contractAcceptanceDate = contractAcceptanceDate
854
- @contractEffectiveDate = contractEffectiveDate
855
- @currency = currency
856
- @initialTerm = initialTerm
857
- @name = name
858
- @notes = notes
859
- @originalSubscriptionId = originalSubscriptionId
860
- @previousSubscriptionId = previousSubscriptionId
861
- @renewalTerm = renewalTerm
862
- @serviceActivationDate = serviceActivationDate
863
- @subscriptionEndDate= subscriptionEndDate
864
- @status = status
865
- @termStartDate = termStartDate
866
- @version = version
867
- end
868
- end
869
-
870
- # {http://object.api.zuora.com/}Usage
871
- # fieldsToNull - SOAP::SOAPString
872
- # id - (any)
873
- # accountId - (any)
874
- # chargeNumber - SOAP::SOAPString
875
- # endDateTime - SOAP::SOAPDateTime
876
- # quantity - SOAP::SOAPDouble
877
- # rbeStatus - SOAP::SOAPString
878
- # sourceName - SOAP::SOAPString
879
- # sourceType - SOAP::SOAPString
880
- # startDateTime - SOAP::SOAPDateTime
881
- # submissionDateTime - SOAP::SOAPDateTime
882
- # subscriptionNumber - SOAP::SOAPString
883
- # uOM - SOAP::SOAPString
884
- class Usage < ZObject
885
- attr_accessor :fieldsToNull
886
- attr_accessor :id
887
- attr_accessor :accountId
888
- attr_accessor :chargeNumber
889
- attr_accessor :endDateTime
890
- attr_accessor :quantity
891
- attr_accessor :rbeStatus
892
- attr_accessor :sourceName
893
- attr_accessor :sourceType
894
- attr_accessor :startDateTime
895
- attr_accessor :submissionDateTime
896
- attr_accessor :subscriptionNumber
897
- attr_accessor :uOM
898
-
899
- def initialize(fieldsToNull = [], id = nil, accountId = nil, chargeNumber = nil, endDateTime = nil, quantity = nil, rbeStatus = nil, sourceName = nil, sourceType = nil, startDateTime = nil, submissionDateTime = nil, subscriptionNumber = nil, uOM = nil)
900
- @fieldsToNull = fieldsToNull
901
- @id = id
902
- @accountId = accountId
903
- @chargeNumber = chargeNumber
904
- @endDateTime = endDateTime
905
- @quantity = quantity
906
- @rbeStatus = rbeStatus
907
- @sourceName = sourceName
908
- @sourceType = sourceType
909
- @startDateTime = startDateTime
910
- @submissionDateTime = submissionDateTime
911
- @subscriptionNumber = subscriptionNumber
912
- @uOM = uOM
913
- end
914
- end
915
-
916
- # {http://api.zuora.com/}LoginResult
917
- # session - SOAP::SOAPString
918
- # serverUrl - SOAP::SOAPString
919
- class LoginResult
920
- attr_accessor :session
921
- attr_accessor :serverUrl
922
-
923
- def initialize(session = nil, serverUrl = nil)
924
- @session = session
925
- @serverUrl = serverUrl
926
- end
927
- end
928
-
929
- # {http://api.zuora.com/}SubscribeRequest
930
- # account - ZUORA::Account
931
- # paymentMethod - ZUORA::PaymentMethod
932
- # billToContact - ZUORA::Contact
933
- # soldToContact - ZUORA::Contact
934
- # subscribeOptions - ZUORA::SubscribeOptions
935
- # subscriptionData - ZUORA::SubscriptionData
936
- class SubscribeRequest
937
- attr_accessor :account
938
- attr_accessor :paymentMethod
939
- attr_accessor :billToContact
940
- attr_accessor :soldToContact
941
- attr_accessor :subscribeOptions
942
- attr_accessor :subscriptionData
943
-
944
- def initialize(account = nil, paymentMethod = nil, billToContact = nil, soldToContact = nil, subscribeOptions = nil, subscriptionData = nil)
945
- @account = account
946
- @paymentMethod = paymentMethod
947
- @billToContact = billToContact
948
- @soldToContact = soldToContact
949
- @subscribeOptions = subscribeOptions
950
- @subscriptionData = subscriptionData
951
- end
952
- end
953
-
954
- # {http://api.zuora.com/}SubscribeWithExistingAccountRequest
955
- # accountId - (any)
956
- # subscribeOptions - ZUORA::SubscribeOptions
957
- # subscriptionData - ZUORA::SubscriptionData
958
- class SubscribeWithExistingAccountRequest
959
- attr_accessor :accountId
960
- attr_accessor :subscribeOptions
961
- attr_accessor :subscriptionData
962
-
963
- def initialize(accountId = nil, subscribeOptions = nil, subscriptionData = nil)
964
- @accountId = accountId
965
- @subscribeOptions = subscribeOptions
966
- @subscriptionData = subscriptionData
967
- end
968
- end
969
-
970
- # {http://api.zuora.com/}SubscribeOptions
971
- # generateInvoice - SOAP::SOAPBoolean
972
- # processPayments - SOAP::SOAPBoolean
973
- class SubscribeOptions
974
- attr_accessor :generateInvoice
975
- attr_accessor :processPayments
976
-
977
- def initialize(generateInvoice = nil, processPayments = nil)
978
- @generateInvoice = generateInvoice
979
- @processPayments = processPayments
980
- end
981
- end
982
-
983
- # {http://api.zuora.com/}SubscriptionData
984
- # subscription - ZUORA::Subscription
985
- # ratePlanData - ZUORA::RatePlanData
986
- class SubscriptionData
987
- attr_accessor :subscription
988
- attr_accessor :ratePlanData
989
-
990
- def initialize(subscription = nil, ratePlanData = [])
991
- @subscription = subscription
992
- @ratePlanData = ratePlanData
993
- end
994
- end
995
-
996
- # {http://api.zuora.com/}RatePlanData
997
- # ratePlan - ZUORA::RatePlan
998
- # ratePlanCharge - ZUORA::RatePlanCharge
999
- class RatePlanData
1000
- attr_accessor :ratePlan
1001
- attr_accessor :ratePlanCharge
1002
- attr_accessor :ratePlanChargeData
1003
-
1004
- def initialize(ratePlan = nil, ratePlanCharge = nil, ratePlanChargeData = [])
1005
- @ratePlan = ratePlan
1006
- @ratePlanCharge = ratePlanCharge
1007
- @ratePlanChargeData = ratePlanChargeData
1008
- end
1009
- end
1010
-
1011
- class RatePlanChargeData
1012
- attr_accessor :ratePlanCharge
1013
- attr_accessor :ratePlanChargeTier
1014
-
1015
- def initialize(ratePlanCharge = nil, ratePlanChargeTier = [])
1016
- @ratePlanCharge = ratePlanCharge
1017
- @ratePlanChargeTier = ratePlanChargeTier
1018
- end
1019
- end
1020
-
1021
- # {http://api.zuora.com/}SubscribeResult
1022
- # accountId - (any)
1023
- # accountNumber - SOAP::SOAPString
1024
- # errors - ZUORA::Error
1025
- # invoiceId - (any)
1026
- # invoiceNumber - SOAP::SOAPString
1027
- # paymentTransactionNumber - SOAP::SOAPString
1028
- # subscriptionId - (any)
1029
- # subscriptionNumber - SOAP::SOAPString
1030
- # success - SOAP::SOAPBoolean
1031
- class SubscribeResult
1032
- attr_accessor :accountId
1033
- attr_accessor :accountNumber
1034
- attr_accessor :errors
1035
- attr_accessor :invoiceId
1036
- attr_accessor :invoiceNumber
1037
- attr_accessor :paymentTransactionNumber
1038
- attr_accessor :subscriptionId
1039
- attr_accessor :subscriptionNumber
1040
- attr_accessor :success
1041
-
1042
- def initialize(accountId = nil, accountNumber = nil, errors = [], invoiceId = nil, invoiceNumber = nil, paymentTransactionNumber = nil, subscriptionId = nil, subscriptionNumber = nil, success = nil)
1043
- @accountId = accountId
1044
- @accountNumber = accountNumber
1045
- @errors = errors
1046
- @invoiceId = invoiceId
1047
- @invoiceNumber = invoiceNumber
1048
- @paymentTransactionNumber = paymentTransactionNumber
1049
- @subscriptionId = subscriptionId
1050
- @subscriptionNumber = subscriptionNumber
1051
- @success = success
1052
- end
1053
- end
1054
-
1055
- # {http://api.zuora.com/}SaveResult
1056
- # errors - ZUORA::Error
1057
- # id - (any)
1058
- # success - SOAP::SOAPBoolean
1059
- class SaveResult
1060
- attr_accessor :errors
1061
- attr_accessor :id
1062
- attr_accessor :success
1063
-
1064
- def initialize(errors = [], id = nil, success = nil)
1065
- @errors = errors
1066
- @id = id
1067
- @success = success
1068
- end
1069
- end
1070
-
1071
- # {http://api.zuora.com/}DeleteResult
1072
- # errors - ZUORA::Error
1073
- # id - (any)
1074
- # success - SOAP::SOAPBoolean
1075
- class DeleteResult
1076
- attr_accessor :errors
1077
- attr_accessor :id
1078
- attr_accessor :success
1079
-
1080
- def initialize(errors = [], id = nil, success = nil)
1081
- @errors = errors
1082
- @id = id
1083
- @success = success
1084
- end
1085
- end
1086
-
1087
- # {http://api.zuora.com/}QueryResult
1088
- # done - SOAP::SOAPBoolean
1089
- # queryLocator - (any)
1090
- # records - ZUORA::ZObject
1091
- # size - SOAP::SOAPInt
1092
- class QueryResult
1093
- attr_accessor :done
1094
- attr_accessor :queryLocator
1095
- attr_accessor :records
1096
- attr_accessor :size
1097
-
1098
- def initialize(done = nil, queryLocator = nil, records = [], size = nil)
1099
- @done = done
1100
- @queryLocator = queryLocator
1101
- @records = records
1102
- @size = size
1103
- end
1104
- end
1105
-
1106
- # {http://api.zuora.com/}Error
1107
- # code - ZUORA::ErrorCode
1108
- # message - SOAP::SOAPString
1109
- # field - SOAP::SOAPString
1110
- class Error
1111
- attr_accessor :code
1112
- attr_accessor :message
1113
- attr_accessor :field
1114
-
1115
- def initialize(code = nil, message = nil, field = nil)
1116
- @code = code
1117
- @message = message
1118
- @field = field
1119
- end
1120
- end
1121
-
1122
- # {http://fault.api.zuora.com/}ApiFault
1123
- # faultCode - ZUORA::ErrorCode
1124
- # faultMessage - SOAP::SOAPString
1125
- class ApiFault
1126
- attr_accessor :faultCode
1127
- attr_accessor :faultMessage
1128
-
1129
- def initialize(faultCode = nil, faultMessage = nil)
1130
- @faultCode = faultCode
1131
- @faultMessage = faultMessage
1132
- end
1133
- end
1134
-
1135
- # {http://fault.api.zuora.com/}LoginFault
1136
- # faultCode - ZUORA::ErrorCode
1137
- # faultMessage - SOAP::SOAPString
1138
- class LoginFault < ::StandardError
1139
- attr_accessor :faultCode
1140
- attr_accessor :faultMessage
1141
-
1142
- def initialize(faultCode = nil, faultMessage = nil)
1143
- @faultCode = faultCode
1144
- @faultMessage = faultMessage
1145
- end
1146
- end
1147
-
1148
- # {http://fault.api.zuora.com/}InvalidTypeFault
1149
- # faultCode - ZUORA::ErrorCode
1150
- # faultMessage - SOAP::SOAPString
1151
- class InvalidTypeFault < ::StandardError
1152
- attr_accessor :faultCode
1153
- attr_accessor :faultMessage
1154
-
1155
- def initialize(faultCode = nil, faultMessage = nil)
1156
- @faultCode = faultCode
1157
- @faultMessage = faultMessage
1158
- end
1159
- end
1160
-
1161
- # {http://fault.api.zuora.com/}InvalidValueFault
1162
- # faultCode - ZUORA::ErrorCode
1163
- # faultMessage - SOAP::SOAPString
1164
- class InvalidValueFault < ::StandardError
1165
- attr_accessor :faultCode
1166
- attr_accessor :faultMessage
1167
-
1168
- def initialize(faultCode = nil, faultMessage = nil)
1169
- @faultCode = faultCode
1170
- @faultMessage = faultMessage
1171
- end
1172
- end
1173
-
1174
- # {http://fault.api.zuora.com/}MalformedQueryFault
1175
- # faultCode - ZUORA::ErrorCode
1176
- # faultMessage - SOAP::SOAPString
1177
- class MalformedQueryFault < ::StandardError
1178
- attr_accessor :faultCode
1179
- attr_accessor :faultMessage
1180
-
1181
- def initialize(faultCode = nil, faultMessage = nil)
1182
- @faultCode = faultCode
1183
- @faultMessage = faultMessage
1184
- end
1185
- end
1186
-
1187
- # {http://fault.api.zuora.com/}InvalidQueryLocatorFault
1188
- # faultCode - ZUORA::ErrorCode
1189
- # faultMessage - SOAP::SOAPString
1190
- class InvalidQueryLocatorFault < ::StandardError
1191
- attr_accessor :faultCode
1192
- attr_accessor :faultMessage
1193
-
1194
- def initialize(faultCode = nil, faultMessage = nil)
1195
- @faultCode = faultCode
1196
- @faultMessage = faultMessage
1197
- end
1198
- end
1199
-
1200
- # {http://fault.api.zuora.com/}UnexpectedErrorFault
1201
- # faultCode - ZUORA::ErrorCode
1202
- # faultMessage - SOAP::SOAPString
1203
- class UnexpectedErrorFault < ::StandardError
1204
- attr_accessor :faultCode
1205
- attr_accessor :faultMessage
1206
-
1207
- def initialize(faultCode = nil, faultMessage = nil)
1208
- @faultCode = faultCode
1209
- @faultMessage = faultMessage
1210
- end
1211
- end
1212
-
1213
- # {http://api.zuora.com/}ErrorCode
1214
- class ErrorCode < ::String
1215
- API_DISABLED = ErrorCode.new("API_DISABLED")
1216
- CANNOT_DELETE = ErrorCode.new("CANNOT_DELETE")
1217
- CREDIT_CARD_PROCESSING_FAILURE = ErrorCode.new("CREDIT_CARD_PROCESSING_FAILURE")
1218
- DUPLICATE_VALUE = ErrorCode.new("DUPLICATE_VALUE")
1219
- INVALID_FIELD = ErrorCode.new("INVALID_FIELD")
1220
- INVALID_ID = ErrorCode.new("INVALID_ID")
1221
- INVALID_LOGIN = ErrorCode.new("INVALID_LOGIN")
1222
- INVALID_SESSION = ErrorCode.new("INVALID_SESSION")
1223
- INVALID_TYPE = ErrorCode.new("INVALID_TYPE")
1224
- INVALID_VALUE = ErrorCode.new("INVALID_VALUE")
1225
- INVALID_VERSION = ErrorCode.new("INVALID_VERSION")
1226
- MALFORMED_QUERY = ErrorCode.new("MALFORMED_QUERY")
1227
- MAX_RECORDS_EXCEEDED = ErrorCode.new("MAX_RECORDS_EXCEEDED")
1228
- MISSING_REQUIRED_VALUE = ErrorCode.new("MISSING_REQUIRED_VALUE")
1229
- TRANSACTION_FAILED = ErrorCode.new("TRANSACTION_FAILED")
1230
- UNKNOWN_ERROR = ErrorCode.new("UNKNOWN_ERROR")
1231
- end
1232
-
1233
- # {http://api.zuora.com/}login
1234
- # username - SOAP::SOAPString
1235
- # password - SOAP::SOAPString
1236
- class Login
1237
- attr_accessor :username
1238
- attr_accessor :password
1239
-
1240
- def initialize(username = nil, password = nil)
1241
- @username = username
1242
- @password = password
1243
- end
1244
- end
1245
-
1246
- # {http://api.zuora.com/}loginResponse
1247
- # result - ZUORA::LoginResult
1248
- class LoginResponse
1249
- attr_accessor :result
1250
-
1251
- def initialize(result = nil)
1252
- @result = result
1253
- end
1254
- end
1255
-
1256
- # {http://api.zuora.com/}subscribe
1257
- class Subscribe < ::Array
1258
- end
1259
-
1260
- # {http://api.zuora.com/}subscribeWithExistingAccount
1261
- class SubscribeWithExistingAccount < ::Array
1262
- end
1263
-
1264
- # {http://api.zuora.com/}subscribeResponse
1265
- class SubscribeResponse < ::Array
1266
- end
1267
-
1268
- # {http://api.zuora.com/}create
1269
- class Create < ::Array
1270
- end
1271
-
1272
- # {http://api.zuora.com/}createResponse
1273
- class CreateResponse < ::Array
1274
- end
1275
-
1276
- # {http://api.zuora.com/}create
1277
- class Generate < ::Array
1278
- end
1279
-
1280
- # {http://api.zuora.com/}createResponse
1281
- class GenerateResponse < ::Array
1282
- end
1283
-
1284
- # {http://api.zuora.com/}update
1285
- class Update < ::Array
1286
- end
1287
-
1288
- # {http://api.zuora.com/}updateResponse
1289
- class UpdateResponse < ::Array
1290
- end
1291
-
1292
- # {http://api.zuora.com/}delete
1293
- # type - SOAP::SOAPString
1294
- # ids - (any)
1295
- class Delete
1296
- attr_accessor :type
1297
- attr_accessor :ids
1298
-
1299
- def initialize(type = nil, ids = [])
1300
- @type = type
1301
- @ids = ids
1302
- end
1303
- end
1304
-
1305
- # {http://api.zuora.com/}deleteResponse
1306
- class DeleteResponse < ::Array
1307
- end
1308
-
1309
- # {http://api.zuora.com/}query
1310
- # queryString - SOAP::SOAPString
1311
- class Query
1312
- attr_accessor :queryString
1313
-
1314
- def initialize(queryString = nil)
1315
- @queryString = queryString
1316
- end
1317
- end
1318
-
1319
- # {http://api.zuora.com/}queryResponse
1320
- # result - ZUORA::QueryResult
1321
- class QueryResponse
1322
- attr_accessor :result
1323
-
1324
- def initialize(result = nil)
1325
- @result = result
1326
- end
1327
- end
1328
-
1329
- # {http://api.zuora.com/}SessionHeader
1330
- # session - SOAP::SOAPString
1331
- class SessionHeader
1332
- attr_accessor :session
1333
-
1334
- def initialize(session = nil)
1335
- @session = session
1336
- end
1337
-
1338
- def on_outbound_headeritem(test)
1339
- sobj = SOAP::SOAPElement.new(XSD::QName.new("ns1", 'SessionHeader'))
1340
- sobj.add(SOAP::SOAPElement.new(XSD::QName.new("ns1", "session"), @session))
1341
- ::SOAP::SOAPHeaderItem.new(sobj, false)
1342
- end
1343
- end
1344
-
1345
- # {http://api.zuora.com/}DummyHeader
1346
- # account - ZUORA::Account
1347
- # amendment - ZUORA::Amendment
1348
- # invoice - ZUORA::Invoice
1349
- # payment - ZUORA::Payment
1350
- # invoicePayment - ZUORA::InvoicePayment
1351
- # product - ZUORA::Product
1352
- # productRatePlan - ZUORA::ProductRatePlan
1353
- # productRatePlanCharge - ZUORA::ProductRatePlanCharge
1354
- # productRatePlanChargeTier - ZUORA::ProductRatePlanChargeTier
1355
- # ratePlan - ZUORA::RatePlan
1356
- # ratePlanCharge - ZUORA::RatePlanCharge
1357
- # ratePlanChargeTier - ZUORA::RatePlanChargeTier
1358
- # usage - ZUORA::Usage
1359
- class DummyHeader
1360
- attr_accessor :account
1361
- attr_accessor :amendment
1362
- attr_accessor :invoice
1363
- attr_accessor :payment
1364
- attr_accessor :invoicePayment
1365
- attr_accessor :product
1366
- attr_accessor :productRatePlan
1367
- attr_accessor :productRatePlanCharge
1368
- attr_accessor :productRatePlanChargeTier
1369
- attr_accessor :ratePlan
1370
- attr_accessor :ratePlanCharge
1371
- attr_accessor :ratePlanChargeTier
1372
- attr_accessor :usage
1373
- attr_reader :__xmlele_any
1374
-
1375
- def set_any(elements)
1376
- @__xmlele_any = elements
1377
- end
1378
-
1379
- def initialize(account = nil, amendment = nil, invoice = nil, payment = nil, invoicePayment = nil, product = nil, productRatePlan = nil, productRatePlanCharge = nil, productRatePlanChargeTier = nil, ratePlan = nil, ratePlanCharge = nil, ratePlanChargeTier = nil, usage = nil)
1380
- @account = account
1381
- @amendment = amendment
1382
- @invoice = invoice
1383
- @payment = payment
1384
- @invoicePayment = invoicePayment
1385
- @product = product
1386
- @productRatePlan = productRatePlan
1387
- @productRatePlanCharge = productRatePlanCharge
1388
- @productRatePlanChargeTier = productRatePlanChargeTier
1389
- @ratePlan = ratePlan
1390
- @ratePlanCharge = ratePlanCharge
1391
- @ratePlanChargeTier = ratePlanChargeTier
1392
- @usage = usage
1393
- @__xmlele_any = nil
1394
- end
1395
- end
1396
-
1397
-
1398
- end