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