active_zuora 1.5.2 → 2.0.0

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