active_zuora 1.3.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.
data/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,15 @@
1
+ == ActiveZoura
2
+
3
+ Client for Zuora API
4
+
5
+ This is a wrapper for sample code provided by {Zuora}[http://developer.zuora.com/samplecode.html]
6
+
7
+ This is a fork of the Zuora4r Gem that has started to develop a mind of its own.
8
+ The fork is adding a new interface to the gem along with removing parts deemed unnecessary.
9
+ The underlying implementation of the zuora4r gem is still in place but that is going to change in the future.
10
+
11
+
12
+ == Installing the Gem
13
+ $ sudo gem sources -a http://gemcutter.org
14
+ $ sudo gem install active_zuora
15
+
@@ -0,0 +1,56 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "active_zuora"
8
+ gem.summary = "Active Zuora"
9
+ gem.description = "A client for Zuora API"
10
+ gem.email = "anfleene@gmail.com"
11
+ gem.homepage = "http://github.com/anfleene/active_zuora"
12
+ gem.authors = ["anfleene"]
13
+ gem.files = FileList["CHANGES", "active_zuora.gemspec", "Rakefile", "README", "VERSION", "custom_fields.yml",
14
+ "lib/**/*"]
15
+ gem.add_dependency "soap4r", ">= 1.5.8"
16
+ gem.add_dependency "json_pure", ">= 1.4.6"
17
+ gem.requirements = ["none"]
18
+ end
19
+ Jeweler::GemcutterTasks.new
20
+ rescue LoadError
21
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
22
+ end
23
+
24
+ require 'rake/testtask'
25
+ Rake::TestTask.new(:test) do |test|
26
+ test.libs << 'lib' << 'test'
27
+ test.pattern = 'test/**/test_*.rb'
28
+ test.verbose = true
29
+ end
30
+
31
+ begin
32
+ require 'rcov/rcovtask'
33
+ Rcov::RcovTask.new do |test|
34
+ test.libs << 'test'
35
+ test.pattern = 'test/**/test_*.rb'
36
+ test.verbose = true
37
+ end
38
+ rescue LoadError
39
+ task :rcov do
40
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
41
+ end
42
+ end
43
+
44
+ task :test => :check_dependencies
45
+
46
+ task :default => :test
47
+
48
+ require 'rake/rdoctask'
49
+ Rake::RDocTask.new do |rdoc|
50
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
51
+
52
+ rdoc.rdoc_dir = 'rdoc'
53
+ rdoc.title = "active_zuora #{version}"
54
+ rdoc.rdoc_files.include('README*')
55
+ rdoc.rdoc_files.include('lib/**/*.rb')
56
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.3.0
@@ -0,0 +1,64 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "active_zuora"
8
+ s.version = "1.3.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["anfleene"]
12
+ s.date = "2012-01-20"
13
+ s.description = "A client for Zuora API"
14
+ s.email = "anfleene@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ "Rakefile",
21
+ "VERSION",
22
+ "active_zuora.gemspec",
23
+ "custom_fields.yml",
24
+ "lib/active_zuora.rb",
25
+ "lib/zuora/ZUORA.rb",
26
+ "lib/zuora/ZUORADriver.rb",
27
+ "lib/zuora/ZUORAMappingRegistry.rb",
28
+ "lib/zuora/ZuoraServiceClient.rb",
29
+ "lib/zuora/account.rb",
30
+ "lib/zuora/api.rb",
31
+ "lib/zuora/contact.rb",
32
+ "lib/zuora/rate_plan.rb",
33
+ "lib/zuora/rate_plan_data.rb",
34
+ "lib/zuora/subscribe_options.rb",
35
+ "lib/zuora/subscribe_request.rb",
36
+ "lib/zuora/subscribe_with_existing_account_request.rb",
37
+ "lib/zuora/subscription.rb",
38
+ "lib/zuora/subscription_data.rb",
39
+ "lib/zuora/zobject.rb",
40
+ "lib/zuora_client.rb",
41
+ "lib/zuora_interface.rb"
42
+ ]
43
+ s.homepage = "http://github.com/anfleene/active_zuora"
44
+ s.require_paths = ["lib"]
45
+ s.requirements = ["none"]
46
+ s.rubygems_version = "1.8.10"
47
+ s.summary = "Active Zuora"
48
+
49
+ if s.respond_to? :specification_version then
50
+ s.specification_version = 3
51
+
52
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
+ s.add_runtime_dependency(%q<soap4r>, [">= 1.5.8"])
54
+ s.add_runtime_dependency(%q<json_pure>, [">= 1.4.6"])
55
+ else
56
+ s.add_dependency(%q<soap4r>, [">= 1.5.8"])
57
+ s.add_dependency(%q<json_pure>, [">= 1.4.6"])
58
+ end
59
+ else
60
+ s.add_dependency(%q<soap4r>, [">= 1.5.8"])
61
+ s.add_dependency(%q<json_pure>, [">= 1.4.6"])
62
+ end
63
+ end
64
+
@@ -0,0 +1,17 @@
1
+ Account:
2
+ - ScreenName
3
+ - Locale
4
+ Subscription:
5
+ - AppID
6
+ - Subdomain
7
+ Product:
8
+ - NumInstances
9
+ - InclusionList
10
+ - AvailabilityList
11
+ - ProductType
12
+ ProductRatePlan:
13
+ - NumInstances
14
+ - Slug
15
+ - NextSlug
16
+ - Duration
17
+ - Trial
@@ -0,0 +1,13 @@
1
+ require 'delegate'
2
+ require 'zuora_client'
3
+ require 'zuora/zobject'
4
+ require 'zuora/account'
5
+ require 'zuora/contact'
6
+ require 'zuora/rate_plan'
7
+ require 'zuora/rate_plan_data'
8
+ require 'zuora/subscribe_options'
9
+ require 'zuora/subscribe_request'
10
+ require 'zuora/subscribe_with_existing_account_request'
11
+ require 'zuora/subscription'
12
+ require 'zuora/subscription_data'
13
+
@@ -0,0 +1,1398 @@
1
+ require 'xsd/qname'
2
+
3
+ module ZUORA
4
+
5
+
6
+ # {http://object.api.zuora.com/}zObject
7
+ # fieldsToNull - SOAP::SOAPString
8
+ # id - (any)
9
+ class ZObject
10
+ #BEGIN BASTARDIZING CORE RUBY
11
+ class << self; alias_method :attr_accessor_without_attributes, :attr_accessor; end
12
+ def self.attr_accessor(*attrs)
13
+ @attributes ||= []
14
+ @attributes.push *attrs
15
+ attr_accessor_without_attributes *attrs
16
+ end
17
+ #END BASTARDIZATION
18
+
19
+ attr_accessor :fieldsToNull
20
+ attr_accessor :id
21
+
22
+ def initialize(fieldsToNull = [], id = nil)
23
+ @fieldsToNull = fieldsToNull
24
+ @id = id
25
+ end
26
+ end
27
+
28
+ # {http://object.api.zuora.com/}Account
29
+ # fieldsToNull - SOAP::SOAPString
30
+ # id - (any)
31
+ # accountNumber - SOAP::SOAPString
32
+ # allowInvoiceEdit - SOAP::SOAPBoolean
33
+ # autoPay - SOAP::SOAPBoolean
34
+ # batch - SOAP::SOAPString
35
+ # billCycleDay - SOAP::SOAPInt
36
+ # billToId - (any)
37
+ # createdDate - SOAP::SOAPDateTime
38
+ # crmId - SOAP::SOAPString
39
+ # currency - SOAP::SOAPString
40
+ # customerServiceRepName - SOAP::SOAPString
41
+ # defaultPaymentMethodId - (any)
42
+ # name - SOAP::SOAPString
43
+ # notes - SOAP::SOAPString
44
+ # paymentTerm - SOAP::SOAPString
45
+ # purchaseOrderNumber - SOAP::SOAPString
46
+ # salesRepName - SOAP::SOAPString
47
+ # soldToId - (any)
48
+ # status - SOAP::SOAPString
49
+ # updatedDate - SOAP::SOAPDateTime
50
+ class Account < ZObject
51
+ attr_accessor :fieldsToNull
52
+ attr_accessor :id
53
+ attr_accessor :accountNumber
54
+ attr_accessor :allowInvoiceEdit
55
+ attr_accessor :autoPay
56
+ attr_accessor :batch
57
+ attr_accessor :billCycleDay
58
+ attr_accessor :billToId
59
+ attr_accessor :createdDate
60
+ attr_accessor :crmId
61
+ attr_accessor :currency
62
+ attr_accessor :customerServiceRepName
63
+ attr_accessor :defaultPaymentMethodId
64
+ attr_accessor :paymentGateway
65
+ attr_accessor :name
66
+ attr_accessor :notes
67
+ attr_accessor :paymentTerm
68
+ attr_accessor :purchaseOrderNumber
69
+ attr_accessor :salesRepName
70
+ attr_accessor :soldToId
71
+ attr_accessor :status
72
+ attr_accessor :updatedDate
73
+ attr_accessor :invoiceDeliveryPrefsEmail
74
+
75
+ def initialize(fieldsToNull = [], id = nil, accountNumber = nil, allowInvoiceEdit = nil, autoPay = nil, batch = nil, billCycleDay = nil, billToId = nil, createdDate = nil, crmId = nil, currency = nil, customerServiceRepName = nil, defaultPaymentMethodId = nil, paymentGateway = nil, name = nil, notes = nil, paymentTerm = nil, purchaseOrderNumber = nil, salesRepName = nil, soldToId = nil, status = nil, updatedDate = nil)
76
+ @fieldsToNull = fieldsToNull
77
+ @id = id
78
+ @accountNumber = accountNumber
79
+ @allowInvoiceEdit = allowInvoiceEdit
80
+ @autoPay = autoPay
81
+ @batch = batch
82
+ @billCycleDay = billCycleDay
83
+ @billToId = billToId
84
+ @createdDate = createdDate
85
+ @crmId = crmId
86
+ @currency = currency
87
+ @customerServiceRepName = customerServiceRepName
88
+ @defaultPaymentMethodId = defaultPaymentMethodId
89
+ @paymentGateway = paymentGateway
90
+ @name = name
91
+ @notes = notes
92
+ @paymentTerm = paymentTerm
93
+ @purchaseOrderNumber = purchaseOrderNumber
94
+ @salesRepName = salesRepName
95
+ @soldToId = soldToId
96
+ @status = status
97
+ @updatedDate = updatedDate
98
+ end
99
+ end
100
+
101
+ class Refund < ZObject
102
+ attr_accessor :fieldsToNull
103
+ attr_accessor :id
104
+ attr_accessor :accountId
105
+ attr_accessor :accountingCode
106
+ attr_accessor :amount
107
+ attr_accessor :comment
108
+ attr_accessor :createdById
109
+ attr_accessor :createdDate
110
+ attr_accessor :gateway
111
+ attr_accessor :gatewayResponse
112
+ attr_accessor :gatewayResponseCode
113
+ attr_accessor :methodType
114
+ attr_accessor :paymentId
115
+ attr_accessor :referenceID
116
+ attr_accessor :refundDate
117
+ attr_accessor :refundNumber
118
+ attr_accessor :refundTransactionTime
119
+ attr_accessor :status
120
+ attr_accessor :type
121
+
122
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, accountingCode = nil, amount = nil, comment = nil, createdById = nil, createdDate = nil, gateway = nil, gatewayResponse = nil, gatewayResponseCode = nil, methodType = nil, paymentId = nil, referenceID = nil, refundDate = nil, refundNumber = nil, refundTransactionTime = nil, status = nil, type = nil)
123
+ @fieldsToNull = fieldsToNull
124
+ @id = id
125
+ @accountId = accountId
126
+ @accountingCode = accountingCode
127
+ @amount = amount
128
+ @comment = comment
129
+ @createdById = createdById
130
+ @createdDate = createdDate
131
+ @gateway = gateway
132
+ @gatewayResponse = gatewayResponse
133
+ @gatewayResponseCode = gatewayResponseCode
134
+ @methodType = methodType
135
+ @paymentId = paymentId
136
+ @referenceID = referenceID
137
+ @refundDate = refundDate
138
+ @refundNumber = refundNumber
139
+ @refundTransactionTime = refundTransactionTime
140
+ @status = status
141
+ @type = type
142
+ end
143
+ end
144
+ # {http://object.api.zuora.com/}Amendment
145
+ # fieldsToNull - SOAP::SOAPString
146
+ # id - (any)
147
+ # contractEffectiveDate - SOAP::SOAPDateTime
148
+ # customerAcceptanceDate - SOAP::SOAPDateTime
149
+ # description - SOAP::SOAPString
150
+ # effectiveDate - SOAP::SOAPDateTime
151
+ # initialTerm - SOAP::SOAPLong
152
+ # name - SOAP::SOAPString
153
+ # renewalTerm - SOAP::SOAPLong
154
+ # serviceActivationDate - SOAP::SOAPDateTime
155
+ # status - SOAP::SOAPString
156
+ # subscriptionId - (any)
157
+ # termCommitment - SOAP::SOAPString
158
+ # termStartDate - SOAP::SOAPDateTime
159
+ # type - SOAP::SOAPString
160
+ class Amendment < ZObject
161
+ attr_accessor :fieldsToNull
162
+ attr_accessor :id
163
+ attr_accessor :contractEffectiveDate
164
+ attr_accessor :customerAcceptanceDate
165
+ attr_accessor :description
166
+ attr_accessor :effectiveDate
167
+ attr_accessor :initialTerm
168
+ attr_accessor :name
169
+ attr_accessor :renewalTerm
170
+ attr_accessor :serviceActivationDate
171
+ attr_accessor :status
172
+ attr_accessor :subscriptionId
173
+ attr_accessor :termCommitment
174
+ attr_accessor :termStartDate
175
+ attr_accessor :type
176
+ attr_accessor :ratePlanData
177
+
178
+ def initialize(fieldsToNull = [], id = nil, contractEffectiveDate = nil, customerAcceptanceDate = nil, description = nil, effectiveDate = nil, initialTerm = nil, name = nil, renewalTerm = nil, serviceActivationDate = nil, status = nil, subscriptionId = nil, termCommitment = nil, termStartDate = nil, type = nil, ratePlanData =[])
179
+ @fieldsToNull = fieldsToNull
180
+ @id = id
181
+ @contractEffectiveDate = contractEffectiveDate
182
+ @customerAcceptanceDate = customerAcceptanceDate
183
+ @description = description
184
+ @effectiveDate = effectiveDate
185
+ @initialTerm = initialTerm
186
+ @name = name
187
+ @renewalTerm = renewalTerm
188
+ @serviceActivationDate = serviceActivationDate
189
+ @status = status
190
+ @subscriptionId = subscriptionId
191
+ @termCommitment = termCommitment
192
+ @termStartDate = termStartDate
193
+ @type = type
194
+ @ratePlanData = ratePlanData
195
+ end
196
+ end
197
+
198
+ # {http://object.api.zuora.com/}Contact
199
+ # fieldsToNull - SOAP::SOAPString
200
+ # id - (any)
201
+ # accountId - (any)
202
+ # address1 - SOAP::SOAPString
203
+ # address2 - SOAP::SOAPString
204
+ # city - SOAP::SOAPString
205
+ # country - SOAP::SOAPString
206
+ # createdDate - SOAP::SOAPDateTime
207
+ # fax - SOAP::SOAPString
208
+ # firstName - SOAP::SOAPString
209
+ # homePhone - SOAP::SOAPString
210
+ # lastName - SOAP::SOAPString
211
+ # mobilePhone - SOAP::SOAPString
212
+ # nickName - SOAP::SOAPString
213
+ # otherPhone - SOAP::SOAPString
214
+ # otherPhoneType - SOAP::SOAPString
215
+ # personalEmail - SOAP::SOAPString
216
+ # postalCode - SOAP::SOAPString
217
+ # state - SOAP::SOAPString
218
+ # updatedDate - SOAP::SOAPDateTime
219
+ # workEmail - SOAP::SOAPString
220
+ # workPhone - SOAP::SOAPString
221
+ class Contact < ZObject
222
+ attr_accessor :fieldsToNull
223
+ attr_accessor :id
224
+ attr_accessor :accountId
225
+ attr_accessor :address1
226
+ attr_accessor :address2
227
+ attr_accessor :city
228
+ attr_accessor :country
229
+ attr_accessor :createdDate
230
+ attr_accessor :fax
231
+ attr_accessor :firstName
232
+ attr_accessor :homePhone
233
+ attr_accessor :lastName
234
+ attr_accessor :mobilePhone
235
+ attr_accessor :nickName
236
+ attr_accessor :otherPhone
237
+ attr_accessor :otherPhoneType
238
+ attr_accessor :personalEmail
239
+ attr_accessor :postalCode
240
+ attr_accessor :state
241
+ attr_accessor :updatedDate
242
+ attr_accessor :workEmail
243
+ attr_accessor :workPhone
244
+
245
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, address1 = nil, address2 = nil, city = nil, country = nil, createdDate = nil, fax = nil, firstName = nil, homePhone = nil, lastName = nil, mobilePhone = nil, nickName = nil, otherPhone = nil, otherPhoneType = nil, personalEmail = nil, postalCode = nil, state = nil, updatedDate = nil, workEmail = nil, workPhone = nil)
246
+ @fieldsToNull = fieldsToNull
247
+ @id = id
248
+ @accountId = accountId
249
+ @address1 = address1
250
+ @address2 = address2
251
+ @city = city
252
+ @country = country
253
+ @createdDate = createdDate
254
+ @fax = fax
255
+ @firstName = firstName
256
+ @homePhone = homePhone
257
+ @lastName = lastName
258
+ @mobilePhone = mobilePhone
259
+ @nickName = nickName
260
+ @otherPhone = otherPhone
261
+ @otherPhoneType = otherPhoneType
262
+ @personalEmail = personalEmail
263
+ @postalCode = postalCode
264
+ @state = state
265
+ @updatedDate = updatedDate
266
+ @workEmail = workEmail
267
+ @workPhone = workPhone
268
+ end
269
+ end
270
+
271
+ # {http://object.api.zuora.com/}Invoice
272
+ # fieldsToNull - SOAP::SOAPString
273
+ # id - (any)
274
+ # accountId - (any)
275
+ # amount - SOAP::SOAPDouble
276
+ # balance - SOAP::SOAPDouble
277
+ # body - SOAP::SOAPString
278
+ # dueDate - SOAP::SOAPDateTime
279
+ # invoiceDate - SOAP::SOAPDateTime
280
+ # invoiceNumber - SOAP::SOAPString
281
+ # status - SOAP::SOAPString
282
+ # targetDate - SOAP::SOAPDateTime
283
+ class Invoice < ZObject
284
+ attr_accessor :fieldsToNull
285
+ attr_accessor :id
286
+ attr_accessor :accountId
287
+ attr_accessor :amount
288
+ attr_accessor :balance
289
+ attr_accessor :body
290
+ attr_accessor :dueDate
291
+ attr_accessor :invoiceDate
292
+ attr_accessor :invoiceNumber
293
+ attr_accessor :status
294
+ attr_accessor :targetDate
295
+
296
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, amount = nil, balance = nil, body = nil, dueDate = nil, invoiceDate = nil, invoiceNumber = nil, status = nil, targetDate = nil)
297
+ @fieldsToNull = fieldsToNull
298
+ @id = id
299
+ @accountId = accountId
300
+ @amount = amount
301
+ @balance = balance
302
+ @body = body
303
+ @dueDate = dueDate
304
+ @invoiceDate = invoiceDate
305
+ @invoiceNumber = invoiceNumber
306
+ @status = status
307
+ @targetDate = targetDate
308
+ end
309
+ end
310
+
311
+ class InvoiceItemAdjustment < ZObject
312
+ attr_accessor :fieldsToNull
313
+ attr_accessor :id
314
+ attr_accessor :accountId
315
+ attr_accessor :amount
316
+ attr_accessor :sourceId
317
+ attr_accessor :invoiceId
318
+ attr_accessor :type
319
+ attr_accessor :sourceType
320
+ attr_accessor :adjustmentDate
321
+
322
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, amount = nil, sourceId = nil, invoiceId = nil, type = nil, sourceType = nil, adjustmentDate = nil)
323
+ @fieldsToNull = fieldsToNull
324
+ @id = id
325
+ @accountId = accountId
326
+ @amount = amount
327
+ @sourceId = sourceId
328
+ @invoiceId = invoiceId
329
+ @type = type
330
+ @sourceType = sourceType
331
+ @adjustmentDate = adjustmentDate
332
+ end
333
+ end
334
+
335
+ class BillRun < ZObject
336
+ attr_accessor :fieldsToNull
337
+ attr_accessor :id
338
+ attr_accessor :accountId
339
+ attr_accessor :includesOneTime
340
+ attr_accessor :includesRecurring
341
+ attr_accessor :includesUsage
342
+ attr_accessor :invoiceDate
343
+ attr_accessor :targetDate
344
+
345
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, includesOneTime = nil, includesRecurring = nil, includesUsage = nil, invoiceDate = nil, status = nil, targetDate = nil)
346
+ @fieldsToNull = fieldsToNull
347
+ @id = id
348
+ @accountId = accountId
349
+ @includesOneTime = includesOneTime
350
+ @includesRecurring = includesRecurring
351
+ @includesUsage = includesUsage
352
+ @invoiceDate = invoiceDate
353
+ @targetDate = targetDate
354
+ end
355
+ end
356
+
357
+
358
+ # {http://object.api.zuora.com/}Payment
359
+ # fieldsToNull - SOAP::SOAPString
360
+ # id - (any)
361
+ # accountId - (any)
362
+ # amount - SOAP::SOAPDouble
363
+ # comment - SOAP::SOAPString
364
+ # effectiveDate - SOAP::SOAPDateTime
365
+ # paymentMethodId - (any)
366
+ # referenceId - SOAP::SOAPString
367
+ # status - SOAP::SOAPString
368
+ # type - SOAP::SOAPString
369
+ class Payment < ZObject
370
+ attr_accessor :fieldsToNull
371
+ attr_accessor :id
372
+ attr_accessor :accountId
373
+ attr_accessor :amount
374
+ attr_accessor :comment
375
+ attr_accessor :effectiveDate
376
+ attr_accessor :paymentMethodId
377
+ attr_accessor :referenceId
378
+ attr_accessor :status
379
+ attr_accessor :type
380
+
381
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, amount = nil, comment = nil, effectiveDate = nil, paymentMethodId = nil, referenceId = nil, status = nil, type = nil)
382
+ @fieldsToNull = fieldsToNull
383
+ @id = id
384
+ @accountId = accountId
385
+ @amount = amount
386
+ @comment = comment
387
+ @effectiveDate = effectiveDate
388
+ @paymentMethodId = paymentMethodId
389
+ @referenceId = referenceId
390
+ @status = status
391
+ @type = type
392
+ end
393
+ end
394
+
395
+ # {http://object.api.zuora.com/}InvoicePayment
396
+ # fieldsToNull - SOAP::SOAPString
397
+ # id - (any)
398
+ # amount - SOAP::SOAPDouble
399
+ # invoiceId - (any)
400
+ # paymentId - (any)
401
+ class InvoicePayment < ZObject
402
+ attr_accessor :fieldsToNull
403
+ attr_accessor :id
404
+ attr_accessor :amount
405
+ attr_accessor :invoiceId
406
+ attr_accessor :paymentId
407
+
408
+ def initialize(fieldsToNull = [], id = nil, amount = nil, invoiceId = nil, paymentId = nil)
409
+ @fieldsToNull = fieldsToNull
410
+ @id = id
411
+ @amount = amount
412
+ @invoiceId = invoiceId
413
+ @paymentId = paymentId
414
+ end
415
+ end
416
+
417
+ # {http://object.api.zuora.com/}PaymentMethod
418
+ # fieldsToNull - SOAP::SOAPString
419
+ # id - (any)
420
+ # accountId - (any)
421
+ # achAbaCode - SOAP::SOAPString
422
+ # achAccountName - SOAP::SOAPString
423
+ # achAccountNumber - SOAP::SOAPString
424
+ # achAccountNumberMask - SOAP::SOAPString
425
+ # achAccountType - SOAP::SOAPString
426
+ # achBankName - SOAP::SOAPString
427
+ # active - SOAP::SOAPBoolean
428
+ # createdDate - SOAP::SOAPDateTime
429
+ # creditCardAddress1 - SOAP::SOAPString
430
+ # creditCardAddress2 - SOAP::SOAPString
431
+ # creditCardCity - SOAP::SOAPString
432
+ # creditCardCountry - SOAP::SOAPString
433
+ # creditCardExpirationMonth - SOAP::SOAPInt
434
+ # creditCardExpirationYear - SOAP::SOAPInt
435
+ # creditCardHolderName - SOAP::SOAPString
436
+ # creditCardMaskNumber - SOAP::SOAPString
437
+ # creditCardNumber - SOAP::SOAPString
438
+ # creditCardPostalCode - SOAP::SOAPString
439
+ # creditCardState - SOAP::SOAPString
440
+ # creditCardType - SOAP::SOAPString
441
+ # lastTransactionDateTime - SOAP::SOAPDateTime
442
+ # lastTransactionStatus - SOAP::SOAPString
443
+ # name - SOAP::SOAPString
444
+ # paypalBaid - SOAP::SOAPString
445
+ # paypalEmail - SOAP::SOAPString
446
+ # type - SOAP::SOAPString
447
+ # updatedDate - SOAP::SOAPDateTime
448
+ class PaymentMethod < ZObject
449
+ attr_accessor :fieldsToNull
450
+ attr_accessor :id
451
+ attr_accessor :accountId
452
+ attr_accessor :achAbaCode
453
+ attr_accessor :achAccountName
454
+ attr_accessor :achAccountNumber
455
+ attr_accessor :achAccountNumberMask
456
+ attr_accessor :achAccountType
457
+ attr_accessor :achBankName
458
+ attr_accessor :active
459
+ attr_accessor :createdDate
460
+ attr_accessor :creditCardAddress1
461
+ attr_accessor :creditCardAddress2
462
+ attr_accessor :creditCardCity
463
+ attr_accessor :creditCardCountry
464
+ attr_accessor :creditCardExpirationMonth
465
+ attr_accessor :creditCardExpirationYear
466
+ attr_accessor :creditCardHolderName
467
+ attr_accessor :creditCardMaskNumber
468
+ attr_accessor :creditCardNumber
469
+ attr_accessor :creditCardPostalCode
470
+ attr_accessor :creditCardState
471
+ attr_accessor :creditCardType
472
+ attr_accessor :lastTransactionDateTime
473
+ attr_accessor :lastTransactionStatus
474
+ attr_accessor :name
475
+ attr_accessor :paypalBaid
476
+ attr_accessor :paypalEmail
477
+ attr_accessor :type
478
+ attr_accessor :updatedDate
479
+ attr_accessor :numConsecutiveFailures
480
+
481
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, achAbaCode = nil, achAccountName = nil, achAccountNumber = nil, achAccountNumberMask = nil, achAccountType = nil, achBankName = nil, active = nil, createdDate = nil, creditCardAddress1 = nil, creditCardAddress2 = nil, creditCardCity = nil, creditCardCountry = nil, creditCardExpirationMonth = nil, creditCardExpirationYear = nil, creditCardHolderName = nil, creditCardMaskNumber = nil, creditCardNumber = nil, creditCardPostalCode = nil, creditCardState = nil, creditCardType = nil, lastTransactionDateTime = nil, lastTransactionStatus = nil, name = nil, paypalBaid = nil, paypalEmail = nil, type = nil, updatedDate = nil, numConsecutiveFailures = nil)
482
+ @fieldsToNull = fieldsToNull
483
+ @id = id
484
+ @accountId = accountId
485
+ @achAbaCode = achAbaCode
486
+ @achAccountName = achAccountName
487
+ @achAccountNumber = achAccountNumber
488
+ @achAccountNumberMask = achAccountNumberMask
489
+ @achAccountType = achAccountType
490
+ @achBankName = achBankName
491
+ @active = active
492
+ @createdDate = createdDate
493
+ @creditCardAddress1 = creditCardAddress1
494
+ @creditCardAddress2 = creditCardAddress2
495
+ @creditCardCity = creditCardCity
496
+ @creditCardCountry = creditCardCountry
497
+ @creditCardExpirationMonth = creditCardExpirationMonth
498
+ @creditCardExpirationYear = creditCardExpirationYear
499
+ @creditCardHolderName = creditCardHolderName
500
+ @creditCardMaskNumber = creditCardMaskNumber
501
+ @creditCardNumber = creditCardNumber
502
+ @creditCardPostalCode = creditCardPostalCode
503
+ @creditCardState = creditCardState
504
+ @creditCardType = creditCardType
505
+ @lastTransactionDateTime = lastTransactionDateTime
506
+ @lastTransactionStatus = lastTransactionStatus
507
+ @name = name
508
+ @paypalBaid = paypalBaid
509
+ @paypalEmail = paypalEmail
510
+ @type = type
511
+ @updatedDate = updatedDate
512
+ @numConsecutiveFailures = numConsecutiveFailures
513
+ end
514
+ end
515
+
516
+ # {http://object.api.zuora.com/}Product
517
+ # fieldsToNull - SOAP::SOAPString
518
+ # id - (any)
519
+ # description - SOAP::SOAPString
520
+ # effectiveEndDate - SOAP::SOAPDateTime
521
+ # effectiveStartDate - SOAP::SOAPDateTime
522
+ # name - SOAP::SOAPString
523
+ # sKU - SOAP::SOAPString
524
+ class Product < ZObject
525
+ attr_accessor :fieldsToNull
526
+ attr_accessor :id
527
+ attr_accessor :description
528
+ attr_accessor :effectiveEndDate
529
+ attr_accessor :effectiveStartDate
530
+ attr_accessor :name
531
+ attr_accessor :sKU
532
+
533
+ def initialize(fieldsToNull = [], id = nil, description = nil, effectiveEndDate = nil, effectiveStartDate = nil, name = nil, sKU = nil)
534
+ @fieldsToNull = fieldsToNull
535
+ @id = id
536
+ @description = description
537
+ @effectiveEndDate = effectiveEndDate
538
+ @effectiveStartDate = effectiveStartDate
539
+ @name = name
540
+ @sKU = sKU
541
+ end
542
+ end
543
+
544
+ # {http://object.api.zuora.com/}ProductRatePlan
545
+ # fieldsToNull - SOAP::SOAPString
546
+ # id - (any)
547
+ # description - SOAP::SOAPString
548
+ # effectiveEndDate - SOAP::SOAPDateTime
549
+ # effectiveStartDate - SOAP::SOAPDateTime
550
+ # name - SOAP::SOAPString
551
+ # productId - (any)
552
+ class ProductRatePlan < ZObject
553
+ attr_accessor :fieldsToNull
554
+ attr_accessor :id
555
+ attr_accessor :description
556
+ attr_accessor :effectiveEndDate
557
+ attr_accessor :effectiveStartDate
558
+ attr_accessor :name
559
+ attr_accessor :productId
560
+
561
+ def initialize(fieldsToNull = [], id = nil, description = nil, effectiveEndDate = nil, effectiveStartDate = nil, name = nil, productId = nil)
562
+ @fieldsToNull = fieldsToNull
563
+ @id = id
564
+ @description = description
565
+ @effectiveEndDate = effectiveEndDate
566
+ @effectiveStartDate = effectiveStartDate
567
+ @name = name
568
+ @productId = productId
569
+ end
570
+ end
571
+
572
+ # {http://object.api.zuora.com/}ProductRatePlanCharge
573
+ # fieldsToNull - SOAP::SOAPString
574
+ # id - (any)
575
+ # accountingCode - SOAP::SOAPString
576
+ # defaultQuantity - SOAP::SOAPDouble
577
+ # description - SOAP::SOAPString
578
+ # maxQuantity - SOAP::SOAPDouble
579
+ # minQuantity - SOAP::SOAPDouble
580
+ # model - SOAP::SOAPString
581
+ # productRatePlanId - (any)
582
+ # type - SOAP::SOAPString
583
+ # uOM - SOAP::SOAPString
584
+ class ProductRatePlanCharge < ZObject
585
+ attr_accessor :fieldsToNull
586
+ attr_accessor :id
587
+ attr_accessor :accountingCode
588
+ attr_accessor :defaultQuantity
589
+ attr_accessor :description
590
+ attr_accessor :maxQuantity
591
+ attr_accessor :minQuantity
592
+ attr_accessor :model
593
+ attr_accessor :name
594
+ attr_accessor :productRatePlanId
595
+ attr_accessor :type
596
+ attr_accessor :uOM
597
+ attr_accessor :chargeModel
598
+ attr_accessor :revRecCode
599
+ attr_accessor :triggerEvent
600
+ attr_accessor :chargeType
601
+ attr_accessor :billingPeriod
602
+ attr_accessor :billCycleType
603
+ attr_accessor :billingPeriodAlignement
604
+ attr_accessor :revRecTriggerCondition
605
+ attr_accessor :productRatePlanChargeTierData
606
+
607
+ def initialize(fieldsToNull = [], id = nil, accountingCode = nil, defaultQuantity = nil, description = nil, maxQuantity = nil, minQuantity = nil, model = nil, name = nil, productRatePlanId = nil, type = nil, uOM = nil, chargeModel = nil, revRecCode=nil, triggerEvent=nil, chargeType=nil, billingPeriod=nil, billCycleType=nil, billingPeriodAlignement=nil, revRecTriggerCondition=nil, productRatePlanChargeTierData=nil)
608
+ @fieldsToNull = fieldsToNull
609
+ @id = id
610
+ @accountingCode = accountingCode
611
+ @defaultQuantity = defaultQuantity
612
+ @description = description
613
+ @maxQuantity = maxQuantity
614
+ @minQuantity = minQuantity
615
+ @model = model
616
+ @name = name
617
+ @productRatePlanId = productRatePlanId
618
+ @type = type
619
+ @uOM = uOM
620
+ @chargeModel = chargeModel
621
+ @revRecCode=revRecCode,
622
+ @triggerEvent=triggerEvent,
623
+ @chargeType=chargeType,
624
+ @billingPeriod=billingPeriod,
625
+ @billCycleType=billCycleType,
626
+ @billingPeriodAlignement=billingPeriodAlignement
627
+ @revRecTriggerCondition=revRecTriggerCondition
628
+ @productRatePlanChargeTierData=productRatePlanChargeTierData
629
+ end
630
+ end
631
+
632
+ class ProductRatePlanChargeTierData < ZObject
633
+ attr_accessor :productRatePlanChargeTier
634
+
635
+ def initialize(productRatePlanChargeTier = nil)
636
+ @productRatePlanChargeTier = productRatePlanChargeTier
637
+ end
638
+ end
639
+
640
+
641
+ # {http://object.api.zuora.com/}ProductRatePlanChargeTier
642
+ # fieldsToNull - SOAP::SOAPString
643
+ # id - (any)
644
+ # endingUnit - SOAP::SOAPDouble
645
+ # price - SOAP::SOAPDouble
646
+ # productRatePlanChargeId - (any)
647
+ # startingUnit - SOAP::SOAPDouble
648
+ # tier - SOAP::SOAPInt
649
+ class ProductRatePlanChargeTier < ZObject
650
+ attr_accessor :fieldsToNull
651
+ attr_accessor :id
652
+ attr_accessor :endingUnit
653
+ attr_accessor :price
654
+ attr_accessor :productRatePlanChargeId
655
+ attr_accessor :startingUnit
656
+ attr_accessor :tier
657
+ attr_accessor :active
658
+ attr_accessor :currency
659
+
660
+ def initialize(fieldsToNull = [], id = nil, endingUnit = nil, price = nil, productRatePlanChargeId = nil, startingUnit = nil, tier = nil, active=nil, currency=nil)
661
+ @fieldsToNull = fieldsToNull
662
+ @id = id
663
+ @endingUnit = endingUnit
664
+ @price = price
665
+ @productRatePlanChargeId = productRatePlanChargeId
666
+ @startingUnit = startingUnit
667
+ @tier = tier
668
+ @active = active
669
+ @currency = currency
670
+ end
671
+ end
672
+
673
+ # {http://object.api.zuora.com/}RatePlan
674
+ # fieldsToNull - SOAP::SOAPString
675
+ # id - (any)
676
+ # amendmentId - (any)
677
+ # amendmentSubscriptionRatePlanId - (any)
678
+ # amendmentType - SOAP::SOAPString
679
+ # name - SOAP::SOAPString
680
+ # productRatePlanId - (any)
681
+ # subscriptionId - (any)
682
+ class RatePlan < ZObject
683
+ attr_accessor :fieldsToNull
684
+ attr_accessor :id
685
+ attr_accessor :amendmentId
686
+ attr_accessor :amendmentSubscriptionRatePlanId
687
+ attr_accessor :amendmentType
688
+ attr_accessor :name
689
+ attr_accessor :productRatePlanId
690
+ attr_accessor :subscriptionId
691
+
692
+ def initialize(fieldsToNull = [], id = nil, amendmentId = nil, amendmentSubscriptionRatePlanId = nil, amendmentType = nil, name = nil, productRatePlanId = nil, subscriptionId = nil)
693
+ @fieldsToNull = fieldsToNull
694
+ @id = id
695
+ @amendmentId = amendmentId
696
+ @amendmentSubscriptionRatePlanId = amendmentSubscriptionRatePlanId
697
+ @amendmentType = amendmentType
698
+ @name = name
699
+ @productRatePlanId = productRatePlanId
700
+ @subscriptionId = subscriptionId
701
+ end
702
+ end
703
+
704
+ # {http://object.api.zuora.com/}RatePlanCharge
705
+ # fieldsToNull - SOAP::SOAPString
706
+ # id - (any)
707
+ # accountingCode - SOAP::SOAPString
708
+ # chargeModel - SOAP::SOAPString
709
+ # chargeNumber - SOAP::SOAPString
710
+ # chargeType - SOAP::SOAPString
711
+ # description - SOAP::SOAPString
712
+ # dMRC - SOAP::SOAPDouble
713
+ # dTCV - SOAP::SOAPDouble
714
+ # includedUnits - SOAP::SOAPDouble
715
+ # mRR - SOAP::SOAPDouble
716
+ # name - SOAP::SOAPString
717
+ # numberOfPeriods - SOAP::SOAPLong
718
+ # overagePrice - SOAP::SOAPDouble
719
+ # price - SOAP::SOAPDouble
720
+ # productRatePlanChargeId - (any)
721
+ # quantity - SOAP::SOAPDouble
722
+ # ratePlanId - (any)
723
+ # tCV - SOAP::SOAPDouble
724
+ # triggerEvent - SOAP::SOAPString
725
+ # uOM - SOAP::SOAPString
726
+ class RatePlanCharge < ZObject
727
+ attr_accessor :fieldsToNull
728
+ attr_accessor :id
729
+ attr_accessor :accountingCode
730
+ attr_accessor :chargeModel
731
+ attr_accessor :chargeNumber
732
+ attr_accessor :chargeType
733
+ attr_accessor :description
734
+ attr_accessor :dMRC
735
+ attr_accessor :dTCV
736
+ attr_accessor :includedUnits
737
+ attr_accessor :mRR
738
+ attr_accessor :name
739
+ attr_accessor :numberOfPeriods
740
+ attr_accessor :overagePrice
741
+ attr_accessor :price
742
+ attr_accessor :productRatePlanChargeId
743
+ attr_accessor :quantity
744
+ attr_accessor :ratePlanId
745
+ attr_accessor :tCV
746
+ attr_accessor :triggerEvent
747
+ attr_accessor :uOM
748
+ attr_accessor :chargedThroughDate
749
+
750
+ def initialize(fieldsToNull = [], id = nil, accountingCode = nil, chargeModel = nil, chargeNumber = nil, chargeType = nil, description = nil, dMRC = nil, dTCV = nil, includedUnits = nil, mRR = nil, name = nil, numberOfPeriods = nil, overagePrice = nil, price = nil, productRatePlanChargeId = nil, quantity = nil, ratePlanId = nil, tCV = nil, triggerEvent = nil, uOM = nil, chargedThroughDate = nil)
751
+ @fieldsToNull = fieldsToNull
752
+ @id = id
753
+ @accountingCode = accountingCode
754
+ @chargeModel = chargeModel
755
+ @chargeNumber = chargeNumber
756
+ @chargeType = chargeType
757
+ @description = description
758
+ @dMRC = dMRC
759
+ @dTCV = dTCV
760
+ @includedUnits = includedUnits
761
+ @mRR = mRR
762
+ @name = name
763
+ @numberOfPeriods = numberOfPeriods
764
+ @overagePrice = overagePrice
765
+ @price = price
766
+ @productRatePlanChargeId = productRatePlanChargeId
767
+ @quantity = quantity
768
+ @ratePlanId = ratePlanId
769
+ @tCV = tCV
770
+ @triggerEvent = triggerEvent
771
+ @uOM = uOM
772
+ @chargedThroughDate = chargedThroughDate
773
+ end
774
+ end
775
+
776
+ # {http://object.api.zuora.com/}RatePlanChargeTier
777
+ # fieldsToNull - SOAP::SOAPString
778
+ # id - (any)
779
+ # endingUnit - SOAP::SOAPDouble
780
+ # price - SOAP::SOAPDouble
781
+ # priceFormat - SOAP::SOAPString
782
+ # ratePlanChargeId - (any)
783
+ # startingUnit - SOAP::SOAPDouble
784
+ # tier - SOAP::SOAPInt
785
+ class RatePlanChargeTier < ZObject
786
+ attr_accessor :fieldsToNull
787
+ attr_accessor :id
788
+ attr_accessor :endingUnit
789
+ attr_accessor :price
790
+ attr_accessor :priceFormat
791
+ attr_accessor :ratePlanChargeId
792
+ attr_accessor :startingUnit
793
+ attr_accessor :tier
794
+
795
+ def initialize(fieldsToNull = [], id = nil, endingUnit = nil, price = nil, priceFormat = nil, ratePlanChargeId = nil, startingUnit = nil, tier = nil)
796
+ @fieldsToNull = fieldsToNull
797
+ @id = id
798
+ @endingUnit = endingUnit
799
+ @price = price
800
+ @priceFormat = priceFormat
801
+ @ratePlanChargeId = ratePlanChargeId
802
+ @startingUnit = startingUnit
803
+ @tier = tier
804
+ end
805
+ end
806
+
807
+ # {http://object.api.zuora.com/}Subscription
808
+ # fieldsToNull - SOAP::SOAPString
809
+ # id - (any)
810
+ # accountId - (any)
811
+ # autoRenew - SOAP::SOAPBoolean
812
+ # cancelledDate - SOAP::SOAPDateTime
813
+ # contractAcceptanceDate - SOAP::SOAPDateTime
814
+ # contractEffectiveDate - SOAP::SOAPDateTime
815
+ # currency - SOAP::SOAPString
816
+ # initialTerm - SOAP::SOAPInt
817
+ # name - SOAP::SOAPString
818
+ # notes - SOAP::SOAPString
819
+ # originalSubscriptionId - SOAP::SOAPString
820
+ # previousSubscriptionId - SOAP::SOAPString
821
+ # renewalTerm - SOAP::SOAPInt
822
+ # serviceActivationDate - SOAP::SOAPDateTime
823
+ # status - SOAP::SOAPString
824
+ # termStartDate - SOAP::SOAPDateTime
825
+ # version - SOAP::SOAPInt
826
+ class Subscription < ZObject
827
+ attr_accessor :fieldsToNull
828
+ attr_accessor :id
829
+ attr_accessor :accountId
830
+ attr_accessor :autoRenew
831
+ attr_accessor :cancelledDate
832
+ attr_accessor :contractAcceptanceDate
833
+ attr_accessor :contractEffectiveDate
834
+ attr_accessor :currency
835
+ attr_accessor :initialTerm
836
+ attr_accessor :name
837
+ attr_accessor :notes
838
+ attr_accessor :originalSubscriptionId
839
+ attr_accessor :previousSubscriptionId
840
+ attr_accessor :renewalTerm
841
+ attr_accessor :serviceActivationDate
842
+ attr_accessor :subscriptionEndDate
843
+ attr_accessor :status
844
+ attr_accessor :termStartDate
845
+ attr_accessor :version
846
+
847
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, autoRenew = nil, cancelledDate = nil, contractAcceptanceDate = nil, contractEffectiveDate = nil, currency = nil, initialTerm = nil, name = nil, notes = nil, originalSubscriptionId = nil, previousSubscriptionId = nil, renewalTerm = nil, serviceActivationDate = nil, subscriptionEndDate = nil, status = nil, termStartDate = nil, version = nil)
848
+ @fieldsToNull = fieldsToNull
849
+ @id = id
850
+ @accountId = accountId
851
+ @autoRenew = autoRenew
852
+ @cancelledDate = cancelledDate
853
+ @contractAcceptanceDate = contractAcceptanceDate
854
+ @contractEffectiveDate = contractEffectiveDate
855
+ @currency = currency
856
+ @initialTerm = initialTerm
857
+ @name = name
858
+ @notes = notes
859
+ @originalSubscriptionId = originalSubscriptionId
860
+ @previousSubscriptionId = previousSubscriptionId
861
+ @renewalTerm = renewalTerm
862
+ @serviceActivationDate = serviceActivationDate
863
+ @subscriptionEndDate= subscriptionEndDate
864
+ @status = status
865
+ @termStartDate = termStartDate
866
+ @version = version
867
+ end
868
+ end
869
+
870
+ # {http://object.api.zuora.com/}Usage
871
+ # fieldsToNull - SOAP::SOAPString
872
+ # id - (any)
873
+ # accountId - (any)
874
+ # chargeNumber - SOAP::SOAPString
875
+ # endDateTime - SOAP::SOAPDateTime
876
+ # quantity - SOAP::SOAPDouble
877
+ # rbeStatus - SOAP::SOAPString
878
+ # sourceName - SOAP::SOAPString
879
+ # sourceType - SOAP::SOAPString
880
+ # startDateTime - SOAP::SOAPDateTime
881
+ # submissionDateTime - SOAP::SOAPDateTime
882
+ # subscriptionNumber - SOAP::SOAPString
883
+ # uOM - SOAP::SOAPString
884
+ class Usage < ZObject
885
+ attr_accessor :fieldsToNull
886
+ attr_accessor :id
887
+ attr_accessor :accountId
888
+ attr_accessor :chargeNumber
889
+ attr_accessor :endDateTime
890
+ attr_accessor :quantity
891
+ attr_accessor :rbeStatus
892
+ attr_accessor :sourceName
893
+ attr_accessor :sourceType
894
+ attr_accessor :startDateTime
895
+ attr_accessor :submissionDateTime
896
+ attr_accessor :subscriptionNumber
897
+ attr_accessor :uOM
898
+
899
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, chargeNumber = nil, endDateTime = nil, quantity = nil, rbeStatus = nil, sourceName = nil, sourceType = nil, startDateTime = nil, submissionDateTime = nil, subscriptionNumber = nil, uOM = nil)
900
+ @fieldsToNull = fieldsToNull
901
+ @id = id
902
+ @accountId = accountId
903
+ @chargeNumber = chargeNumber
904
+ @endDateTime = endDateTime
905
+ @quantity = quantity
906
+ @rbeStatus = rbeStatus
907
+ @sourceName = sourceName
908
+ @sourceType = sourceType
909
+ @startDateTime = startDateTime
910
+ @submissionDateTime = submissionDateTime
911
+ @subscriptionNumber = subscriptionNumber
912
+ @uOM = uOM
913
+ end
914
+ end
915
+
916
+ # {http://api.zuora.com/}LoginResult
917
+ # session - SOAP::SOAPString
918
+ # serverUrl - SOAP::SOAPString
919
+ class LoginResult
920
+ attr_accessor :session
921
+ attr_accessor :serverUrl
922
+
923
+ def initialize(session = nil, serverUrl = nil)
924
+ @session = session
925
+ @serverUrl = serverUrl
926
+ end
927
+ end
928
+
929
+ # {http://api.zuora.com/}SubscribeRequest
930
+ # account - ZUORA::Account
931
+ # paymentMethod - ZUORA::PaymentMethod
932
+ # billToContact - ZUORA::Contact
933
+ # soldToContact - ZUORA::Contact
934
+ # subscribeOptions - ZUORA::SubscribeOptions
935
+ # subscriptionData - ZUORA::SubscriptionData
936
+ class SubscribeRequest
937
+ attr_accessor :account
938
+ attr_accessor :paymentMethod
939
+ attr_accessor :billToContact
940
+ attr_accessor :soldToContact
941
+ attr_accessor :subscribeOptions
942
+ attr_accessor :subscriptionData
943
+
944
+ def initialize(account = nil, paymentMethod = nil, billToContact = nil, soldToContact = nil, subscribeOptions = nil, subscriptionData = nil)
945
+ @account = account
946
+ @paymentMethod = paymentMethod
947
+ @billToContact = billToContact
948
+ @soldToContact = soldToContact
949
+ @subscribeOptions = subscribeOptions
950
+ @subscriptionData = subscriptionData
951
+ end
952
+ end
953
+
954
+ # {http://api.zuora.com/}SubscribeWithExistingAccountRequest
955
+ # accountId - (any)
956
+ # subscribeOptions - ZUORA::SubscribeOptions
957
+ # subscriptionData - ZUORA::SubscriptionData
958
+ class SubscribeWithExistingAccountRequest
959
+ attr_accessor :accountId
960
+ attr_accessor :subscribeOptions
961
+ attr_accessor :subscriptionData
962
+
963
+ def initialize(accountId = nil, subscribeOptions = nil, subscriptionData = nil)
964
+ @accountId = accountId
965
+ @subscribeOptions = subscribeOptions
966
+ @subscriptionData = subscriptionData
967
+ end
968
+ end
969
+
970
+ # {http://api.zuora.com/}SubscribeOptions
971
+ # generateInvoice - SOAP::SOAPBoolean
972
+ # processPayments - SOAP::SOAPBoolean
973
+ class SubscribeOptions
974
+ attr_accessor :generateInvoice
975
+ attr_accessor :processPayments
976
+
977
+ def initialize(generateInvoice = nil, processPayments = nil)
978
+ @generateInvoice = generateInvoice
979
+ @processPayments = processPayments
980
+ end
981
+ end
982
+
983
+ # {http://api.zuora.com/}SubscriptionData
984
+ # subscription - ZUORA::Subscription
985
+ # ratePlanData - ZUORA::RatePlanData
986
+ class SubscriptionData
987
+ attr_accessor :subscription
988
+ attr_accessor :ratePlanData
989
+
990
+ def initialize(subscription = nil, ratePlanData = [])
991
+ @subscription = subscription
992
+ @ratePlanData = ratePlanData
993
+ end
994
+ end
995
+
996
+ # {http://api.zuora.com/}RatePlanData
997
+ # ratePlan - ZUORA::RatePlan
998
+ # ratePlanCharge - ZUORA::RatePlanCharge
999
+ class RatePlanData
1000
+ attr_accessor :ratePlan
1001
+ attr_accessor :ratePlanCharge
1002
+ attr_accessor :ratePlanChargeData
1003
+
1004
+ def initialize(ratePlan = nil, ratePlanCharge = nil, ratePlanChargeData = [])
1005
+ @ratePlan = ratePlan
1006
+ @ratePlanCharge = ratePlanCharge
1007
+ @ratePlanChargeData = ratePlanChargeData
1008
+ end
1009
+ end
1010
+
1011
+ class RatePlanChargeData
1012
+ attr_accessor :ratePlanCharge
1013
+ attr_accessor :ratePlanChargeTier
1014
+
1015
+ def initialize(ratePlanCharge = nil, ratePlanChargeTier = [])
1016
+ @ratePlanCharge = ratePlanCharge
1017
+ @ratePlanChargeTier = ratePlanChargeTier
1018
+ end
1019
+ end
1020
+
1021
+ # {http://api.zuora.com/}SubscribeResult
1022
+ # accountId - (any)
1023
+ # accountNumber - SOAP::SOAPString
1024
+ # errors - ZUORA::Error
1025
+ # invoiceId - (any)
1026
+ # invoiceNumber - SOAP::SOAPString
1027
+ # paymentTransactionNumber - SOAP::SOAPString
1028
+ # subscriptionId - (any)
1029
+ # subscriptionNumber - SOAP::SOAPString
1030
+ # success - SOAP::SOAPBoolean
1031
+ class SubscribeResult
1032
+ attr_accessor :accountId
1033
+ attr_accessor :accountNumber
1034
+ attr_accessor :errors
1035
+ attr_accessor :invoiceId
1036
+ attr_accessor :invoiceNumber
1037
+ attr_accessor :paymentTransactionNumber
1038
+ attr_accessor :subscriptionId
1039
+ attr_accessor :subscriptionNumber
1040
+ attr_accessor :success
1041
+
1042
+ def initialize(accountId = nil, accountNumber = nil, errors = [], invoiceId = nil, invoiceNumber = nil, paymentTransactionNumber = nil, subscriptionId = nil, subscriptionNumber = nil, success = nil)
1043
+ @accountId = accountId
1044
+ @accountNumber = accountNumber
1045
+ @errors = errors
1046
+ @invoiceId = invoiceId
1047
+ @invoiceNumber = invoiceNumber
1048
+ @paymentTransactionNumber = paymentTransactionNumber
1049
+ @subscriptionId = subscriptionId
1050
+ @subscriptionNumber = subscriptionNumber
1051
+ @success = success
1052
+ end
1053
+ end
1054
+
1055
+ # {http://api.zuora.com/}SaveResult
1056
+ # errors - ZUORA::Error
1057
+ # id - (any)
1058
+ # success - SOAP::SOAPBoolean
1059
+ class SaveResult
1060
+ attr_accessor :errors
1061
+ attr_accessor :id
1062
+ attr_accessor :success
1063
+
1064
+ def initialize(errors = [], id = nil, success = nil)
1065
+ @errors = errors
1066
+ @id = id
1067
+ @success = success
1068
+ end
1069
+ end
1070
+
1071
+ # {http://api.zuora.com/}DeleteResult
1072
+ # errors - ZUORA::Error
1073
+ # id - (any)
1074
+ # success - SOAP::SOAPBoolean
1075
+ class DeleteResult
1076
+ attr_accessor :errors
1077
+ attr_accessor :id
1078
+ attr_accessor :success
1079
+
1080
+ def initialize(errors = [], id = nil, success = nil)
1081
+ @errors = errors
1082
+ @id = id
1083
+ @success = success
1084
+ end
1085
+ end
1086
+
1087
+ # {http://api.zuora.com/}QueryResult
1088
+ # done - SOAP::SOAPBoolean
1089
+ # queryLocator - (any)
1090
+ # records - ZUORA::ZObject
1091
+ # size - SOAP::SOAPInt
1092
+ class QueryResult
1093
+ attr_accessor :done
1094
+ attr_accessor :queryLocator
1095
+ attr_accessor :records
1096
+ attr_accessor :size
1097
+
1098
+ def initialize(done = nil, queryLocator = nil, records = [], size = nil)
1099
+ @done = done
1100
+ @queryLocator = queryLocator
1101
+ @records = records
1102
+ @size = size
1103
+ end
1104
+ end
1105
+
1106
+ # {http://api.zuora.com/}Error
1107
+ # code - ZUORA::ErrorCode
1108
+ # message - SOAP::SOAPString
1109
+ # field - SOAP::SOAPString
1110
+ class Error
1111
+ attr_accessor :code
1112
+ attr_accessor :message
1113
+ attr_accessor :field
1114
+
1115
+ def initialize(code = nil, message = nil, field = nil)
1116
+ @code = code
1117
+ @message = message
1118
+ @field = field
1119
+ end
1120
+ end
1121
+
1122
+ # {http://fault.api.zuora.com/}ApiFault
1123
+ # faultCode - ZUORA::ErrorCode
1124
+ # faultMessage - SOAP::SOAPString
1125
+ class ApiFault
1126
+ attr_accessor :faultCode
1127
+ attr_accessor :faultMessage
1128
+
1129
+ def initialize(faultCode = nil, faultMessage = nil)
1130
+ @faultCode = faultCode
1131
+ @faultMessage = faultMessage
1132
+ end
1133
+ end
1134
+
1135
+ # {http://fault.api.zuora.com/}LoginFault
1136
+ # faultCode - ZUORA::ErrorCode
1137
+ # faultMessage - SOAP::SOAPString
1138
+ class LoginFault < ::StandardError
1139
+ attr_accessor :faultCode
1140
+ attr_accessor :faultMessage
1141
+
1142
+ def initialize(faultCode = nil, faultMessage = nil)
1143
+ @faultCode = faultCode
1144
+ @faultMessage = faultMessage
1145
+ end
1146
+ end
1147
+
1148
+ # {http://fault.api.zuora.com/}InvalidTypeFault
1149
+ # faultCode - ZUORA::ErrorCode
1150
+ # faultMessage - SOAP::SOAPString
1151
+ class InvalidTypeFault < ::StandardError
1152
+ attr_accessor :faultCode
1153
+ attr_accessor :faultMessage
1154
+
1155
+ def initialize(faultCode = nil, faultMessage = nil)
1156
+ @faultCode = faultCode
1157
+ @faultMessage = faultMessage
1158
+ end
1159
+ end
1160
+
1161
+ # {http://fault.api.zuora.com/}InvalidValueFault
1162
+ # faultCode - ZUORA::ErrorCode
1163
+ # faultMessage - SOAP::SOAPString
1164
+ class InvalidValueFault < ::StandardError
1165
+ attr_accessor :faultCode
1166
+ attr_accessor :faultMessage
1167
+
1168
+ def initialize(faultCode = nil, faultMessage = nil)
1169
+ @faultCode = faultCode
1170
+ @faultMessage = faultMessage
1171
+ end
1172
+ end
1173
+
1174
+ # {http://fault.api.zuora.com/}MalformedQueryFault
1175
+ # faultCode - ZUORA::ErrorCode
1176
+ # faultMessage - SOAP::SOAPString
1177
+ class MalformedQueryFault < ::StandardError
1178
+ attr_accessor :faultCode
1179
+ attr_accessor :faultMessage
1180
+
1181
+ def initialize(faultCode = nil, faultMessage = nil)
1182
+ @faultCode = faultCode
1183
+ @faultMessage = faultMessage
1184
+ end
1185
+ end
1186
+
1187
+ # {http://fault.api.zuora.com/}InvalidQueryLocatorFault
1188
+ # faultCode - ZUORA::ErrorCode
1189
+ # faultMessage - SOAP::SOAPString
1190
+ class InvalidQueryLocatorFault < ::StandardError
1191
+ attr_accessor :faultCode
1192
+ attr_accessor :faultMessage
1193
+
1194
+ def initialize(faultCode = nil, faultMessage = nil)
1195
+ @faultCode = faultCode
1196
+ @faultMessage = faultMessage
1197
+ end
1198
+ end
1199
+
1200
+ # {http://fault.api.zuora.com/}UnexpectedErrorFault
1201
+ # faultCode - ZUORA::ErrorCode
1202
+ # faultMessage - SOAP::SOAPString
1203
+ class UnexpectedErrorFault < ::StandardError
1204
+ attr_accessor :faultCode
1205
+ attr_accessor :faultMessage
1206
+
1207
+ def initialize(faultCode = nil, faultMessage = nil)
1208
+ @faultCode = faultCode
1209
+ @faultMessage = faultMessage
1210
+ end
1211
+ end
1212
+
1213
+ # {http://api.zuora.com/}ErrorCode
1214
+ class ErrorCode < ::String
1215
+ API_DISABLED = ErrorCode.new("API_DISABLED")
1216
+ CANNOT_DELETE = ErrorCode.new("CANNOT_DELETE")
1217
+ CREDIT_CARD_PROCESSING_FAILURE = ErrorCode.new("CREDIT_CARD_PROCESSING_FAILURE")
1218
+ DUPLICATE_VALUE = ErrorCode.new("DUPLICATE_VALUE")
1219
+ INVALID_FIELD = ErrorCode.new("INVALID_FIELD")
1220
+ INVALID_ID = ErrorCode.new("INVALID_ID")
1221
+ INVALID_LOGIN = ErrorCode.new("INVALID_LOGIN")
1222
+ INVALID_SESSION = ErrorCode.new("INVALID_SESSION")
1223
+ INVALID_TYPE = ErrorCode.new("INVALID_TYPE")
1224
+ INVALID_VALUE = ErrorCode.new("INVALID_VALUE")
1225
+ INVALID_VERSION = ErrorCode.new("INVALID_VERSION")
1226
+ MALFORMED_QUERY = ErrorCode.new("MALFORMED_QUERY")
1227
+ MAX_RECORDS_EXCEEDED = ErrorCode.new("MAX_RECORDS_EXCEEDED")
1228
+ MISSING_REQUIRED_VALUE = ErrorCode.new("MISSING_REQUIRED_VALUE")
1229
+ TRANSACTION_FAILED = ErrorCode.new("TRANSACTION_FAILED")
1230
+ UNKNOWN_ERROR = ErrorCode.new("UNKNOWN_ERROR")
1231
+ end
1232
+
1233
+ # {http://api.zuora.com/}login
1234
+ # username - SOAP::SOAPString
1235
+ # password - SOAP::SOAPString
1236
+ class Login
1237
+ attr_accessor :username
1238
+ attr_accessor :password
1239
+
1240
+ def initialize(username = nil, password = nil)
1241
+ @username = username
1242
+ @password = password
1243
+ end
1244
+ end
1245
+
1246
+ # {http://api.zuora.com/}loginResponse
1247
+ # result - ZUORA::LoginResult
1248
+ class LoginResponse
1249
+ attr_accessor :result
1250
+
1251
+ def initialize(result = nil)
1252
+ @result = result
1253
+ end
1254
+ end
1255
+
1256
+ # {http://api.zuora.com/}subscribe
1257
+ class Subscribe < ::Array
1258
+ end
1259
+
1260
+ # {http://api.zuora.com/}subscribeWithExistingAccount
1261
+ class SubscribeWithExistingAccount < ::Array
1262
+ end
1263
+
1264
+ # {http://api.zuora.com/}subscribeResponse
1265
+ class SubscribeResponse < ::Array
1266
+ end
1267
+
1268
+ # {http://api.zuora.com/}create
1269
+ class Create < ::Array
1270
+ end
1271
+
1272
+ # {http://api.zuora.com/}createResponse
1273
+ class CreateResponse < ::Array
1274
+ end
1275
+
1276
+ # {http://api.zuora.com/}create
1277
+ class Generate < ::Array
1278
+ end
1279
+
1280
+ # {http://api.zuora.com/}createResponse
1281
+ class GenerateResponse < ::Array
1282
+ end
1283
+
1284
+ # {http://api.zuora.com/}update
1285
+ class Update < ::Array
1286
+ end
1287
+
1288
+ # {http://api.zuora.com/}updateResponse
1289
+ class UpdateResponse < ::Array
1290
+ end
1291
+
1292
+ # {http://api.zuora.com/}delete
1293
+ # type - SOAP::SOAPString
1294
+ # ids - (any)
1295
+ class Delete
1296
+ attr_accessor :type
1297
+ attr_accessor :ids
1298
+
1299
+ def initialize(type = nil, ids = [])
1300
+ @type = type
1301
+ @ids = ids
1302
+ end
1303
+ end
1304
+
1305
+ # {http://api.zuora.com/}deleteResponse
1306
+ class DeleteResponse < ::Array
1307
+ end
1308
+
1309
+ # {http://api.zuora.com/}query
1310
+ # queryString - SOAP::SOAPString
1311
+ class Query
1312
+ attr_accessor :queryString
1313
+
1314
+ def initialize(queryString = nil)
1315
+ @queryString = queryString
1316
+ end
1317
+ end
1318
+
1319
+ # {http://api.zuora.com/}queryResponse
1320
+ # result - ZUORA::QueryResult
1321
+ class QueryResponse
1322
+ attr_accessor :result
1323
+
1324
+ def initialize(result = nil)
1325
+ @result = result
1326
+ end
1327
+ end
1328
+
1329
+ # {http://api.zuora.com/}SessionHeader
1330
+ # session - SOAP::SOAPString
1331
+ class SessionHeader
1332
+ attr_accessor :session
1333
+
1334
+ def initialize(session = nil)
1335
+ @session = session
1336
+ end
1337
+
1338
+ def on_outbound_headeritem(test)
1339
+ sobj = SOAP::SOAPElement.new(XSD::QName.new("ns1", 'SessionHeader'))
1340
+ sobj.add(SOAP::SOAPElement.new(XSD::QName.new("ns1", "session"), @session))
1341
+ ::SOAP::SOAPHeaderItem.new(sobj, false)
1342
+ end
1343
+ end
1344
+
1345
+ # {http://api.zuora.com/}DummyHeader
1346
+ # account - ZUORA::Account
1347
+ # amendment - ZUORA::Amendment
1348
+ # invoice - ZUORA::Invoice
1349
+ # payment - ZUORA::Payment
1350
+ # invoicePayment - ZUORA::InvoicePayment
1351
+ # product - ZUORA::Product
1352
+ # productRatePlan - ZUORA::ProductRatePlan
1353
+ # productRatePlanCharge - ZUORA::ProductRatePlanCharge
1354
+ # productRatePlanChargeTier - ZUORA::ProductRatePlanChargeTier
1355
+ # ratePlan - ZUORA::RatePlan
1356
+ # ratePlanCharge - ZUORA::RatePlanCharge
1357
+ # ratePlanChargeTier - ZUORA::RatePlanChargeTier
1358
+ # usage - ZUORA::Usage
1359
+ class DummyHeader
1360
+ attr_accessor :account
1361
+ attr_accessor :amendment
1362
+ attr_accessor :invoice
1363
+ attr_accessor :payment
1364
+ attr_accessor :invoicePayment
1365
+ attr_accessor :product
1366
+ attr_accessor :productRatePlan
1367
+ attr_accessor :productRatePlanCharge
1368
+ attr_accessor :productRatePlanChargeTier
1369
+ attr_accessor :ratePlan
1370
+ attr_accessor :ratePlanCharge
1371
+ attr_accessor :ratePlanChargeTier
1372
+ attr_accessor :usage
1373
+ attr_reader :__xmlele_any
1374
+
1375
+ def set_any(elements)
1376
+ @__xmlele_any = elements
1377
+ end
1378
+
1379
+ def initialize(account = nil, amendment = nil, invoice = nil, payment = nil, invoicePayment = nil, product = nil, productRatePlan = nil, productRatePlanCharge = nil, productRatePlanChargeTier = nil, ratePlan = nil, ratePlanCharge = nil, ratePlanChargeTier = nil, usage = nil)
1380
+ @account = account
1381
+ @amendment = amendment
1382
+ @invoice = invoice
1383
+ @payment = payment
1384
+ @invoicePayment = invoicePayment
1385
+ @product = product
1386
+ @productRatePlan = productRatePlan
1387
+ @productRatePlanCharge = productRatePlanCharge
1388
+ @productRatePlanChargeTier = productRatePlanChargeTier
1389
+ @ratePlan = ratePlan
1390
+ @ratePlanCharge = ratePlanCharge
1391
+ @ratePlanChargeTier = ratePlanChargeTier
1392
+ @usage = usage
1393
+ @__xmlele_any = nil
1394
+ end
1395
+ end
1396
+
1397
+
1398
+ end