active_zuora 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/README.rdoc +22 -1
  2. data/Rakefile +0 -9
  3. data/VERSION +1 -1
  4. data/active_zuora.gemspec +43 -13
  5. data/lib/active_zuora.rb +5 -10
  6. data/lib/active_zuora/account.rb +27 -0
  7. data/lib/active_zuora/amendment.rb +7 -0
  8. data/lib/active_zuora/bill_run.rb +4 -0
  9. data/lib/active_zuora/contact.rb +7 -0
  10. data/lib/active_zuora/invoice.rb +46 -0
  11. data/lib/active_zuora/invoice_item.rb +26 -0
  12. data/lib/active_zuora/invoice_item_adjustment.rb +4 -0
  13. data/lib/active_zuora/invoice_payment.rb +11 -0
  14. data/lib/active_zuora/payment.rb +18 -0
  15. data/lib/active_zuora/payment_method.rb +10 -0
  16. data/lib/active_zuora/product.rb +4 -0
  17. data/lib/active_zuora/product_rate_plan.rb +9 -0
  18. data/lib/active_zuora/product_rate_plan_charge.rb +11 -0
  19. data/lib/active_zuora/product_rate_plan_charge_tier.rb +7 -0
  20. data/lib/active_zuora/product_rate_plan_charge_tier_data.rb +4 -0
  21. data/lib/active_zuora/rate_plan.rb +16 -0
  22. data/lib/active_zuora/rate_plan_charge.rb +44 -0
  23. data/lib/active_zuora/rate_plan_charge_data.rb +4 -0
  24. data/lib/active_zuora/rate_plan_charge_tier.rb +4 -0
  25. data/lib/{zuora → active_zuora}/rate_plan_data.rb +0 -0
  26. data/lib/active_zuora/refund.rb +4 -0
  27. data/lib/{zuora → active_zuora}/subscribe_options.rb +0 -0
  28. data/lib/active_zuora/subscribe_request.rb +13 -0
  29. data/lib/{zuora → active_zuora}/subscribe_with_existing_account_request.rb +0 -0
  30. data/lib/active_zuora/subscription.rb +17 -0
  31. data/lib/{zuora → active_zuora}/subscription_data.rb +0 -0
  32. data/lib/active_zuora/usage.rb +4 -0
  33. data/lib/active_zuora/zobject.rb +156 -0
  34. data/lib/zuora/ZUORA.rb +180 -27
  35. data/lib/zuora/ZUORADriver.rb +17 -0
  36. data/lib/zuora/ZUORAMappingRegistry.rb +236 -23
  37. data/lib/zuora_client.rb +28 -24
  38. data/lib/zuora_interface.rb +21 -5
  39. metadata +112 -17
  40. data/lib/zuora/account.rb +0 -4
  41. data/lib/zuora/contact.rb +0 -4
  42. data/lib/zuora/rate_plan.rb +0 -4
  43. data/lib/zuora/subscribe_request.rb +0 -4
  44. data/lib/zuora/subscription.rb +0 -4
  45. data/lib/zuora/zobject.rb +0 -52
@@ -21,6 +21,14 @@ class Soap < ::SOAP::RPC::Driver
21
21
  :response_style => :document, :response_use => :literal,
22
22
  :faults => {"ZUORA::UnexpectedErrorFault_"=>{:name=>"UnexpectedErrorFault", :encodingstyle=>"document", :ns=>"http://api.zuora.com/", :use=>"literal", :namespace=>nil}} }
23
23
  ],
24
+ [ "",
25
+ "amend",
26
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://api.zuora.com/", "amend"]],
27
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://api.zuora.com/", "amendResponse"]] ],
28
+ { :request_style => :document, :request_use => :literal,
29
+ :response_style => :document, :response_use => :literal,
30
+ :faults => {"ZUORA::UnexpectedErrorFault_"=>{:name=>"UnexpectedErrorFault", :encodingstyle=>"document", :ns=>"http://api.zuora.com/", :use=>"literal", :namespace=>nil}} }
31
+ ],
24
32
  [ "",
25
33
  "subscribeWithExistingAccount",
26
34
  [ ["in", "parameters", ["::SOAP::SOAPElement", "http://api.zuora.com/", "subscribeWithExistingAccount"]],
@@ -61,6 +69,14 @@ class Soap < ::SOAP::RPC::Driver
61
69
  :response_style => :document, :response_use => :literal,
62
70
  :faults => {"ZUORA::InvalidQueryLocatorFault_"=>{:name=>"InvalidQueryLocatorFault", :encodingstyle=>"document", :ns=>"http://api.zuora.com/", :use=>"literal", :namespace=>nil}, "ZUORA::MalformedQueryFault_"=>{:name=>"MalformedQueryFault", :encodingstyle=>"document", :ns=>"http://api.zuora.com/", :use=>"literal", :namespace=>nil}, "ZUORA::UnexpectedErrorFault_"=>{:name=>"UnexpectedErrorFault", :encodingstyle=>"document", :ns=>"http://api.zuora.com/", :use=>"literal", :namespace=>nil}} }
63
71
  ],
72
+ [ "",
73
+ "queryMore",
74
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "http://api.zuora.com/", "queryMore"]],
75
+ ["out", "parameters", ["::SOAP::SOAPElement", "http://api.zuora.com/", "queryMoreResponse"]] ],
76
+ { :request_style => :document, :request_use => :literal,
77
+ :response_style => :document, :response_use => :literal,
78
+ :faults => {"ZUORA::InvalidQueryLocatorFault_"=>{:name=>"InvalidQueryLocatorFault", :encodingstyle=>"document", :ns=>"http://api.zuora.com/", :use=>"literal", :namespace=>nil}, "ZUORA::MalformedQueryFault_"=>{:name=>"MalformedQueryFault", :encodingstyle=>"document", :ns=>"http://api.zuora.com/", :use=>"literal", :namespace=>nil}, "ZUORA::UnexpectedErrorFault_"=>{:name=>"UnexpectedErrorFault", :encodingstyle=>"document", :ns=>"http://api.zuora.com/", :use=>"literal", :namespace=>nil}} }
79
+ ],
64
80
  [ "",
65
81
  "delete",
66
82
  [ ["in", "parameters", ["::SOAP::SOAPElement", "http://api.zuora.com/", "delete"]],
@@ -78,6 +94,7 @@ class Soap < ::SOAP::RPC::Driver
78
94
  streamhandler.client.receive_timeout = 360
79
95
  self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
80
96
  self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
97
+ self.wiredump_dev = STDERR if $DEBUG || ENV['DEBUG']
81
98
  end
82
99
 
83
100
 
@@ -29,6 +29,7 @@ module DefaultMappingRegistry
29
29
  ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
30
30
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
31
31
  ["accountNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AccountNumber")], [0, 1]],
32
+ ["additionalEmailAddresses", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AdditionalEmailAddresses")], [0, 1]],
32
33
  ["allowInvoiceEdit", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "AllowInvoiceEdit")], [0, 1]],
33
34
  ["autoPay", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "AutoPay")], [0, 1]],
34
35
  ["batch", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Batch")], [0, 1]],
@@ -86,6 +87,7 @@ module DefaultMappingRegistry
86
87
  :schema_element => [
87
88
  ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
88
89
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
90
+ ["autoRenew", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "AutoRenew")], [0, 1]],
89
91
  ["contractEffectiveDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ContractEffectiveDate")], [0, 1]],
90
92
  ["customerAcceptanceDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CustomerAcceptanceDate")], [0, 1]],
91
93
  ["description", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Description")], [0, 1]],
@@ -93,10 +95,10 @@ module DefaultMappingRegistry
93
95
  ["initialTerm", ["SOAP::SOAPLong", XSD::QName.new(NsObjectApiZuoraCom, "InitialTerm")], [0, 1]],
94
96
  ["name", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Name")], [0, 1]],
95
97
  ["renewalTerm", ["SOAP::SOAPLong", XSD::QName.new(NsObjectApiZuoraCom, "RenewalTerm")], [0, 1]],
98
+ ["termType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TermType")], [0, 1]],
96
99
  ["serviceActivationDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceActivationDate")], [0, 1]],
97
100
  ["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
98
101
  ["subscriptionId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionId")], [0, 1]],
99
- ["termCommitment", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TermCommitment")], [0, 1]],
100
102
  ["termStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TermStartDate")], [0, 1]],
101
103
  ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
102
104
  ["ratePlanData", ["ZUORA::RatePlanData", XSD::QName.new(NsObjectApiZuoraCom, "RatePlanData")], [0, 1]]
@@ -152,6 +154,32 @@ module DefaultMappingRegistry
152
154
  ]
153
155
  )
154
156
 
157
+ EncodedRegistry.register(
158
+ :class => ZUORA::InvoiceItem,
159
+ :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "InvoiceItem"),
160
+ :schema_basetype => XSD::QName.new(NsObjectApiZuoraCom, "zObject"),
161
+ :schema_element => [
162
+ ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
163
+ ["chargeAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "ChargeAmount")], [0, 1]],
164
+ ["chargeDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ChargeDate")], [0, 1]],
165
+ ["chargeDescription", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeDescription")], [0, 1]],
166
+ ["chargeName", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeName")], [0, 1]],
167
+ ["invoiceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "InvoiceId")], [0, 1]],
168
+ ["processingType", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "ProcessingType")], [0, 1]],
169
+ ["productId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "ProductId")], [0, 1]],
170
+ ["productDescription", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ProductDescription")], [0, 1]],
171
+ ["productName", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ProductName")], [0, 1]],
172
+ ["quantity", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Quantity")], [0, 1]],
173
+ ["ratePlanChargeId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "RatePlanChargeId")], [0, 1]],
174
+ ["serviceEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceEndDate")], [0, 1]],
175
+ ["serviceStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceStartDate")], [0, 1]],
176
+ ["subscriptionId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionId")], [0, 1]],
177
+ ["subscriptionNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionNumber")], [0, 1]],
178
+ ["taxAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "TaxAmount")], [0, 1]],
179
+ ["taxExemptAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "TaxExemptAmount")], [0, 1]],
180
+ ["unitPrice", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "UnitPrice")], [0, 1]]
181
+ ]
182
+ )
155
183
  EncodedRegistry.register(
156
184
  :class => ZUORA::InvoiceItemAdjustment,
157
185
  :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "InvoiceItemAdjustment"),
@@ -163,12 +191,12 @@ module DefaultMappingRegistry
163
191
  ["amount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Amount")], [0, 1]],
164
192
  ["sourceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "SourceId")], [0, 1]],
165
193
  ["invoiceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "InvoiceId")], [0, 1]],
166
- ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
194
+ ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
167
195
  ["sourceType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "SourceType")], [0, 1]],
168
196
  ["adjustmentDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "AdjustmentDate")], [0, 1]]
169
197
  ]
170
198
  )
171
-
199
+
172
200
  EncodedRegistry.register(
173
201
  :class => ZUORA::Payment,
174
202
  :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "Payment"),
@@ -178,12 +206,22 @@ module DefaultMappingRegistry
178
206
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
179
207
  ["accountId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
180
208
  ["amount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Amount")], [0, 1]],
209
+ ["appliedInvoiceAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "AppliedInvoiceAmount")], [0, 1]],
210
+ ["cancelledOn", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CancelledOn")], [0, 1]],
211
+ ["createdDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CreatedDate")], [0, 1]],
212
+ ["gatewayResponse", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayResponse")], [0, 1]],
213
+ ["gatewayResponseCode", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayResponseCode")], [0, 1]],
214
+ ["gatewayState", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayState")], [0, 1]],
215
+ ["invoiceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "InvoiceId")], [0, 1]],
181
216
  ["comment", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Comment")], [0, 1]],
182
217
  ["effectiveDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "EffectiveDate")], [0, 1]],
183
218
  ["paymentMethodId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "PaymentMethodId")], [0, 1]],
184
219
  ["referenceId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ReferenceId")], [0, 1]],
220
+ ["refundAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "RefundAmount")], [0, 1]],
185
221
  ["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
186
- ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]]
222
+ ["settledOn", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "SettledOn")], [0, 1]],
223
+ ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
224
+ ["updatedDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "UpdatedDate")], [0, 1]]
187
225
  ]
188
226
  )
189
227
 
@@ -347,6 +385,8 @@ module DefaultMappingRegistry
347
385
  ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
348
386
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
349
387
  ["accountingCode", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AccountingCode")], [0, 1]],
388
+ ["billCycleDay", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "BillCycleDay")], [0, 1]],
389
+ ["billCycleType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "BillCycleType")], [0, 1]],
350
390
  ["chargeModel", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeModel")], [0, 1]],
351
391
  ["chargeNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeNumber")], [0, 1]],
352
392
  ["chargeType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeType")], [0, 1]],
@@ -354,6 +394,7 @@ module DefaultMappingRegistry
354
394
  ["dMRC", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "DMRC")], [0, 1]],
355
395
  ["dTCV", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "DTCV")], [0, 1]],
356
396
  ["includedUnits", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "IncludedUnits")], [0, 1]],
397
+ ["isLastSegment", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "IsLastSegment")], [0, 1]],
357
398
  ["mRR", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "MRR")], [0, 1]],
358
399
  ["name", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Name")], [0, 1]],
359
400
  ["numberOfPeriods", ["SOAP::SOAPLong", XSD::QName.new(NsObjectApiZuoraCom, "NumberOfPeriods")], [0, 1]],
@@ -363,9 +404,10 @@ module DefaultMappingRegistry
363
404
  ["quantity", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Quantity")], [0, 1]],
364
405
  ["ratePlanId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "RatePlanId")], [0, 1]],
365
406
  ["tCV", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "TCV")], [0, 1]],
407
+ ["triggerDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TriggerDate")], [0, 1]],
366
408
  ["triggerEvent", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TriggerEvent")], [0, 1]],
367
409
  ["uOM", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "UOM")], [0, 1]],
368
- ["chargedThroughDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ChargedThroughDate")], [0, 1]],
410
+ ["chargedThroughDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ChargedThroughDate")], [0, 1]]
369
411
  ]
370
412
  )
371
413
 
@@ -395,19 +437,20 @@ module DefaultMappingRegistry
395
437
  ["accountId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
396
438
  ["autoRenew", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "AutoRenew")], [0, 1]],
397
439
  ["cancelledDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CancelledDate")], [0, 1]],
440
+ ["createdDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CreatedDate")], [0, 1]],
398
441
  ["contractAcceptanceDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ContractAcceptanceDate")], [0, 1]],
399
442
  ["contractEffectiveDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ContractEffectiveDate")], [0, 1]],
400
- ["currency", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Currency")], [0, 1]],
401
443
  ["initialTerm", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "InitialTerm")], [0, 1]],
402
444
  ["name", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Name")], [0, 1]],
403
445
  ["notes", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Notes")], [0, 1]],
404
- ["originalSubscriptionId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "OriginalSubscriptionId")], [0, 1]],
405
- ["previousSubscriptionId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "PreviousSubscriptionId")], [0, 1]],
446
+ ["originalId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "OriginalId")], [0, 1]],
447
+ ["previousSubscriptionId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "PreviousSubscriptionId")], [0, 1]],
406
448
  ["renewalTerm", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "RenewalTerm")], [0, 1]],
407
449
  ["serviceActivationDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceActivationDate")], [0, 1]],
408
450
  ["subscriptionEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionEndDate")], [0, 1]],
409
451
  ["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
410
452
  ["termStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TermStartDate")], [0, 1]],
453
+ ["termEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TermEndDate")], [0, 1]],
411
454
  ["version", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "Version")], [0, 1]]
412
455
  ]
413
456
  )
@@ -420,7 +463,9 @@ module DefaultMappingRegistry
420
463
  ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
421
464
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
422
465
  ["accountId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
466
+ ["chargeId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "ChargeId")], [0, 1]],
423
467
  ["chargeNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeNumber")], [0, 1]],
468
+ ["description", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Description")], [0, 1]],
424
469
  ["endDateTime", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "EndDateTime")], [0, 1]],
425
470
  ["quantity", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Quantity")], [0, 1]],
426
471
  ["rbeStatus", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "RbeStatus")], [0, 1]],
@@ -488,7 +533,6 @@ module DefaultMappingRegistry
488
533
  :schema_type => XSD::QName.new(NsApiZuoraCom, "RatePlanData"),
489
534
  :schema_element => [
490
535
  ["ratePlan", ["ZUORA::RatePlan", XSD::QName.new(NsApiZuoraCom, "RatePlan")], [0, 1]],
491
- ["ratePlanCharge", ["ZUORA::RatePlanCharge[]", XSD::QName.new(NsApiZuoraCom, "RatePlanCharge")], [0, nil]],
492
536
  ["ratePlanChargeData", ["ZUORA::RatePlanChargeData[]", XSD::QName.new(NsApiZuoraCom, "RatePlanChargeData")], [0, nil]]
493
537
  ]
494
538
  )
@@ -518,6 +562,53 @@ module DefaultMappingRegistry
518
562
  ]
519
563
  )
520
564
 
565
+ EncodedRegistry.register(
566
+ :class => ZUORA::AmendRequest,
567
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "AmendRequest"),
568
+ :schema_element => [
569
+ ["amendment", ["ZUORA::Amendment", XSD::QName.new(NsApiZuoraCom, "Amendments")], [0, 1]],
570
+ ["amendOptions", ["ZUORA::AmendOptions", XSD::QName.new(NsApiZuoraCom, "AmendOptions")], [0, 1]],
571
+ ["previewOptions", ["ZUORA::PreviewOptions", XSD::QName.new(NsApiZuoraCom, "PreviewOptions")], [0, 1]]
572
+ ]
573
+ )
574
+
575
+ EncodedRegistry.register(
576
+ :class => ZUORA::AmendOptions,
577
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "AmendOptions"),
578
+ :schema_element => [
579
+ ["generateInvoice", ["SOAP::SOAPBoolean", XSD::QName.new(NsApiZuoraCom, "GenerateInvoice")], [0, 1]],
580
+ ["invoiceProcessingOptions", ["ZUORA::InvoiceProcessingOptions", XSD::QName.new(NsApiZuoraCom, "InvoiceProcessingOptions")], [0, 1]],
581
+ ["processPayments", ["SOAP::SOAPBoolean", XSD::QName.new(NsApiZuoraCom, "ProcessPayments")], [0, 1]]
582
+ ]
583
+ )
584
+
585
+ EncodedRegistry.register(
586
+ :class => ZUORA::InvoiceProcessingOptions,
587
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "InvoiceProcessingOptions"),
588
+ :schema_element => [
589
+ ["invoiceTargetDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsApiZuoraCom, "InvoiceTargetDate")], [0, 1]]
590
+ ]
591
+ )
592
+
593
+ EncodedRegistry.register(
594
+ :class => ZUORA::PreviewOptions,
595
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "PreviewOptions"),
596
+ :schema_element => [
597
+ ["enablePreviewMode", ["SOAP::SOAPBoolean", XSD::QName.new(NsApiZuoraCom, "EnablePreviewMode")], [0, 1]],
598
+ ["numberOfPeriods", ["SOAP::SOAPInt", XSD::QName.new(NsApiZuoraCom, "NumberOfPeriods")], [0, 1]]
599
+ ]
600
+ )
601
+
602
+ EncodedRegistry.register(
603
+ :class => ZUORA::AmendResult,
604
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "AmendResult"),
605
+ :schema_element => [
606
+ ["amendmentIds", [nil, XSD::QName.new(NsApiZuoraCom, "AmendmentIds")], [0, nil]],
607
+ ["errors", ["ZUORA::Error[]", XSD::QName.new(NsApiZuoraCom, "Errors")], [0, nil]],
608
+ ["success", ["SOAP::SOAPBoolean", XSD::QName.new(NsApiZuoraCom, "Success")], [0, 1]]
609
+ ]
610
+ )
611
+
521
612
  EncodedRegistry.register(
522
613
  :class => ZUORA::SaveResult,
523
614
  :schema_type => XSD::QName.new(NsApiZuoraCom, "SaveResult"),
@@ -651,6 +742,7 @@ module DefaultMappingRegistry
651
742
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
652
743
  ["accountNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AccountNumber")], [0, 1]],
653
744
  ["allowInvoiceEdit", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "AllowInvoiceEdit")], [0, 1]],
745
+ ["additionalEmailAddresses", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AdditionalEmailAddresses")], [0, 1]],
654
746
  ["autoPay", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "AutoPay")], [0, 1]],
655
747
  ["batch", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Batch")], [0, 1]],
656
748
  ["billCycleDay", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "BillCycleDay")], [0, 1]],
@@ -707,6 +799,7 @@ module DefaultMappingRegistry
707
799
  :schema_element => [
708
800
  ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
709
801
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
802
+ ["autoRenew", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "AutoRenew")], [0, 1]],
710
803
  ["contractEffectiveDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ContractEffectiveDate")], [0, 1]],
711
804
  ["customerAcceptanceDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CustomerAcceptanceDate")], [0, 1]],
712
805
  ["description", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Description")], [0, 1]],
@@ -714,10 +807,10 @@ module DefaultMappingRegistry
714
807
  ["initialTerm", ["SOAP::SOAPLong", XSD::QName.new(NsObjectApiZuoraCom, "InitialTerm")], [0, 1]],
715
808
  ["name", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Name")], [0, 1]],
716
809
  ["renewalTerm", ["SOAP::SOAPLong", XSD::QName.new(NsObjectApiZuoraCom, "RenewalTerm")], [0, 1]],
810
+ ["termType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TermType")], [0, 1]],
717
811
  ["serviceActivationDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceActivationDate")], [0, 1]],
718
812
  ["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
719
813
  ["subscriptionId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionId")], [0, 1]],
720
- ["termCommitment", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TermCommitment")], [0, 1]],
721
814
  ["termStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TermStartDate")], [0, 1]],
722
815
  ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
723
816
  ["ratePlanData", ["ZUORA::RatePlanData", XSD::QName.new(NsObjectApiZuoraCom, "RatePlanData")], [0, 1]]
@@ -772,7 +865,34 @@ module DefaultMappingRegistry
772
865
  ["targetDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TargetDate")], [0, 1]]
773
866
  ]
774
867
  )
775
-
868
+
869
+ LiteralRegistry.register(
870
+ :class => ZUORA::InvoiceItem,
871
+ :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "InvoiceItem"),
872
+ :schema_basetype => XSD::QName.new(NsObjectApiZuoraCom, "zObject"),
873
+ :schema_element => [
874
+ ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
875
+ ["chargeAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "ChargeAmount")], [0, 1]],
876
+ ["chargeDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ChargeDate")], [0, 1]],
877
+ ["chargeDescription", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeDescription")], [0, 1]],
878
+ ["chargeName", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeName")], [0, 1]],
879
+ ["invoiceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "InvoiceId")], [0, 1]],
880
+ ["processingType", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "ProcessingType")], [0, 1]],
881
+ ["productId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "ProductId")], [0, 1]],
882
+ ["productDescription", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ProductDescription")], [0, 1]],
883
+ ["productName", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ProductName")], [0, 1]],
884
+ ["quantity", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Quantity")], [0, 1]],
885
+ ["ratePlanChargeId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "RatePlanChargeId")], [0, 1]],
886
+ ["serviceEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceEndDate")], [0, 1]],
887
+ ["serviceStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceStartDate")], [0, 1]],
888
+ ["subscriptionId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionId")], [0, 1]],
889
+ ["subscriptionNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionNumber")], [0, 1]],
890
+ ["taxAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "TaxAmount")], [0, 1]],
891
+ ["taxExemptAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "TaxExemptAmount")], [0, 1]],
892
+ ["unitPrice", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "UnitPrice")], [0, 1]]
893
+ ]
894
+ )
895
+
776
896
  LiteralRegistry.register(
777
897
  :class => ZUORA::InvoiceItemAdjustment,
778
898
  :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "InvoiceItemAdjustment"),
@@ -784,7 +904,7 @@ module DefaultMappingRegistry
784
904
  ["amount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Amount")], [0, 1]],
785
905
  ["sourceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "SourceId")], [0, 1]],
786
906
  ["invoiceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "InvoiceId")], [0, 1]],
787
- ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
907
+ ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
788
908
  ["sourceType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "SourceType")], [0, 1]],
789
909
  ["adjustmentDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "AdjustmentDate")], [0, 1]]
790
910
  ]
@@ -792,7 +912,7 @@ module DefaultMappingRegistry
792
912
 
793
913
  LiteralRegistry.register(
794
914
  :class => ZUORA::BillRun,
795
- :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "Invoice"),
915
+ :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "BillRun"),
796
916
  :schema_basetype => XSD::QName.new(NsObjectApiZuoraCom, "zObject"),
797
917
  :schema_element => [
798
918
  ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
@@ -815,12 +935,22 @@ module DefaultMappingRegistry
815
935
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
816
936
  ["accountId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
817
937
  ["amount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Amount")], [0, 1]],
938
+ ["appliedInvoiceAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "AppliedInvoiceAmount")], [0, 1]],
939
+ ["cancelledOn", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CancelledOn")], [0, 1]],
940
+ ["createdDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CreatedDate")], [0, 1]],
941
+ ["gatewayResponse", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayResponse")], [0, 1]],
942
+ ["gatewayResponseCode", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayResponseCode")], [0, 1]],
943
+ ["gatewayState", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayState")], [0, 1]],
944
+ ["invoiceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "InvoiceId")], [0, 1]],
818
945
  ["comment", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Comment")], [0, 1]],
819
946
  ["effectiveDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "EffectiveDate")], [0, 1]],
820
947
  ["paymentMethodId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "PaymentMethodId")], [0, 1]],
821
948
  ["referenceId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ReferenceId")], [0, 1]],
949
+ ["refundAmount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "RefundAmount")], [0, 1]],
822
950
  ["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
823
- ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]]
951
+ ["settledOn", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "SettledOn")], [0, 1]],
952
+ ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
953
+ ["updatedDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "UpdatedDate")], [0, 1]]
824
954
  ]
825
955
  )
826
956
 
@@ -918,9 +1048,7 @@ module DefaultMappingRegistry
918
1048
  ["description", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Description")], [0, 1]],
919
1049
  ["maxQuantity", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "MaxQuantity")], [0, 1]],
920
1050
  ["minQuantity", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "MinQuantity")], [0, 1]],
921
- ["model", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Model")], [0, 1]],
922
1051
  ["productRatePlanId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "ProductRatePlanId")], [0, 1]],
923
- ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
924
1052
  ["uOM", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "UOM")], [0, 1]],
925
1053
  ["name", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Name")], [0, 1]],
926
1054
  ["chargeModel", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeModel")], [0, 1]],
@@ -929,9 +1057,7 @@ module DefaultMappingRegistry
929
1057
  ["chargeType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeType")], [0, 1]],
930
1058
  ["billingPeriod", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "BillingPeriod")], [0, 1]],
931
1059
  ["billCycleType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "BillCycleType")], [0, 1]],
932
- ["billingPeriodAlignement", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "BillingPeriodAlignement")], [0, 1]],
933
- ["revRecTriggerCondition", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "RevRecTriggerCondition")], [0, 1]],
934
- ["productRatePlanChargeTierData", ["ZUORA::ProductRatePlanChargeTierData", XSD::QName.new(NsObjectApiZuoraCom, "ProductRatePlanChargeTierData")], [0, 1]]
1060
+ ["revRecTriggerCondition", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "RevRecTriggerCondition")], [0, 1]]
935
1061
  ]
936
1062
  )
937
1063
 
@@ -984,6 +1110,8 @@ module DefaultMappingRegistry
984
1110
  ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
985
1111
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
986
1112
  ["accountingCode", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AccountingCode")], [0, 1]],
1113
+ ["billCycleDay", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "BillCycleDay")], [0, 1]],
1114
+ ["billCycleType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "BillCycleType")], [0, 1]],
987
1115
  ["chargeModel", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeModel")], [0, 1]],
988
1116
  ["chargeNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeNumber")], [0, 1]],
989
1117
  ["chargeType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeType")], [0, 1]],
@@ -991,6 +1119,7 @@ module DefaultMappingRegistry
991
1119
  ["dMRC", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "DMRC")], [0, 1]],
992
1120
  ["dTCV", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "DTCV")], [0, 1]],
993
1121
  ["includedUnits", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "IncludedUnits")], [0, 1]],
1122
+ ["isLastSegment", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "IsLastSegment")], [0, 1]],
994
1123
  ["mRR", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "MRR")], [0, 1]],
995
1124
  ["name", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Name")], [0, 1]],
996
1125
  ["numberOfPeriods", ["SOAP::SOAPLong", XSD::QName.new(NsObjectApiZuoraCom, "NumberOfPeriods")], [0, 1]],
@@ -1000,9 +1129,10 @@ module DefaultMappingRegistry
1000
1129
  ["quantity", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Quantity")], [0, 1]],
1001
1130
  ["ratePlanId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "RatePlanId")], [0, 1]],
1002
1131
  ["tCV", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "TCV")], [0, 1]],
1132
+ ["triggerDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TriggerDate")], [0, 1]],
1003
1133
  ["triggerEvent", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TriggerEvent")], [0, 1]],
1004
1134
  ["uOM", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "UOM")], [0, 1]],
1005
- ["chargedThroughDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ChargedThroughDate")], [0, 1]],
1135
+ ["chargedThroughDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ChargedThroughDate")], [0, 1]]
1006
1136
  ]
1007
1137
  )
1008
1138
 
@@ -1032,19 +1162,22 @@ module DefaultMappingRegistry
1032
1162
  ["accountId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
1033
1163
  ["autoRenew", ["SOAP::SOAPBoolean", XSD::QName.new(NsObjectApiZuoraCom, "AutoRenew")], [0, 1]],
1034
1164
  ["cancelledDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CancelledDate")], [0, 1]],
1165
+ ["createdDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CreatedDate")], [0, 1]],
1035
1166
  ["contractAcceptanceDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ContractAcceptanceDate")], [0, 1]],
1036
1167
  ["contractEffectiveDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ContractEffectiveDate")], [0, 1]],
1037
1168
  ["currency", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Currency")], [0, 1]],
1038
1169
  ["initialTerm", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "InitialTerm")], [0, 1]],
1039
1170
  ["name", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Name")], [0, 1]],
1040
1171
  ["notes", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Notes")], [0, 1]],
1041
- ["originalSubscriptionId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "OriginalSubscriptionId")], [0, 1]],
1042
- ["previousSubscriptionId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "PreviousSubscriptionId")], [0, 1]],
1172
+ ["originalId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "OriginalId")], [0, 1]],
1173
+ ["previousSubscriptionId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "PreviousSubscriptionId")], [0, 1]],
1043
1174
  ["renewalTerm", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "RenewalTerm")], [0, 1]],
1044
1175
  ["serviceActivationDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceActivationDate")], [0, 1]],
1045
1176
  ["subscriptionEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionEndDate")], [0, 1]],
1046
1177
  ["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
1047
1178
  ["termStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TermStartDate")], [0, 1]],
1179
+ ["termEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TermEndDate")], [0, 1]],
1180
+ ["termType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TermType")], [0, 1]],
1048
1181
  ["version", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "Version")], [0, 1]]
1049
1182
  ]
1050
1183
  )
@@ -1057,7 +1190,9 @@ module DefaultMappingRegistry
1057
1190
  ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
1058
1191
  ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
1059
1192
  ["accountId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
1193
+ ["chargeId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "ChargeId")], [0, 1]],
1060
1194
  ["chargeNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ChargeNumber")], [0, 1]],
1195
+ ["description", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Description")], [0, 1]],
1061
1196
  ["endDateTime", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "EndDateTime")], [0, 1]],
1062
1197
  ["quantity", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Quantity")], [0, 1]],
1063
1198
  ["rbeStatus", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "RbeStatus")], [0, 1]],
@@ -1125,7 +1260,6 @@ module DefaultMappingRegistry
1125
1260
  :schema_type => XSD::QName.new(NsApiZuoraCom, "RatePlanData"),
1126
1261
  :schema_element => [
1127
1262
  ["ratePlan", ["ZUORA::RatePlan", XSD::QName.new(NsApiZuoraCom, "RatePlan")], [0, 1]],
1128
- ["ratePlanCharge", ["ZUORA::RatePlanCharge[]", XSD::QName.new(NsApiZuoraCom, "RatePlanCharge")], [0, nil]],
1129
1263
  ["ratePlanChargeData", ["ZUORA::RatePlanChargeData[]", XSD::QName.new(NsApiZuoraCom, "RatePlanChargeData")], [0, nil]]
1130
1264
  ]
1131
1265
  )
@@ -1155,6 +1289,53 @@ module DefaultMappingRegistry
1155
1289
  ]
1156
1290
  )
1157
1291
 
1292
+ LiteralRegistry.register(
1293
+ :class => ZUORA::AmendRequest,
1294
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "AmendRequest"),
1295
+ :schema_element => [
1296
+ ["amendment", ["ZUORA::Amendment", XSD::QName.new(NsApiZuoraCom, "Amendments")], [0, 1]],
1297
+ ["amendOptions", ["ZUORA::AmendOptions", XSD::QName.new(NsApiZuoraCom, "AmendOptions")], [0, 1]],
1298
+ ["previewOptions", ["ZUORA::PreviewOptions", XSD::QName.new(NsApiZuoraCom, "PreviewOptions")], [0, 1]]
1299
+ ]
1300
+ )
1301
+
1302
+ LiteralRegistry.register(
1303
+ :class => ZUORA::AmendOptions,
1304
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "AmendOptions"),
1305
+ :schema_element => [
1306
+ ["generateInvoice", ["SOAP::SOAPBoolean", XSD::QName.new(NsApiZuoraCom, "GenerateInvoice")], [0, 1]],
1307
+ ["invoiceProcessingOptions", ["ZUORA::InvoiceProcessingOptions", XSD::QName.new(NsApiZuoraCom, "InvoiceProcessingOptions")], [0, 1]],
1308
+ ["processPayments", ["SOAP::SOAPBoolean", XSD::QName.new(NsApiZuoraCom, "ProcessPayments")], [0, 1]]
1309
+ ]
1310
+ )
1311
+
1312
+ LiteralRegistry.register(
1313
+ :class => ZUORA::InvoiceProcessingOptions,
1314
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "InvoiceProcessingOptions"),
1315
+ :schema_element => [
1316
+ ["invoiceTargetDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsApiZuoraCom, "InvoiceTargetDate")], [0, 1]]
1317
+ ]
1318
+ )
1319
+
1320
+ LiteralRegistry.register(
1321
+ :class => ZUORA::PreviewOptions,
1322
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "PreviewOptions"),
1323
+ :schema_element => [
1324
+ ["enablePreviewMode", ["SOAP::SOAPBoolean", XSD::QName.new(NsApiZuoraCom, "EnablePreviewMode")], [0, 1]],
1325
+ ["numberOfPeriods", ["SOAP::SOAPInt", XSD::QName.new(NsApiZuoraCom, "NumberOfPeriods")], [0, 1]]
1326
+ ]
1327
+ )
1328
+
1329
+ LiteralRegistry.register(
1330
+ :class => ZUORA::AmendResult,
1331
+ :schema_type => XSD::QName.new(NsApiZuoraCom, "AmendResult"),
1332
+ :schema_element => [
1333
+ ["amendmentIds", [nil, XSD::QName.new(NsApiZuoraCom, "AmendmentIds")], [0, nil]],
1334
+ ["errors", ["ZUORA::Error[]", XSD::QName.new(NsApiZuoraCom, "Errors")], [0, nil]],
1335
+ ["success", ["SOAP::SOAPBoolean", XSD::QName.new(NsApiZuoraCom, "Success")], [0, 1]]
1336
+ ]
1337
+ )
1338
+
1158
1339
  LiteralRegistry.register(
1159
1340
  :class => ZUORA::SaveResult,
1160
1341
  :schema_type => XSD::QName.new(NsApiZuoraCom, "SaveResult"),
@@ -1311,6 +1492,22 @@ module DefaultMappingRegistry
1311
1492
  ]
1312
1493
  )
1313
1494
 
1495
+ LiteralRegistry.register(
1496
+ :class => ZUORA::Amend,
1497
+ :schema_name => XSD::QName.new(NsApiZuoraCom, "amend"),
1498
+ :schema_element => [
1499
+ ["requests", "ZUORA::AmendRequest[]", [0, nil]]
1500
+ ]
1501
+ )
1502
+
1503
+ LiteralRegistry.register(
1504
+ :class => ZUORA::AmendResponse,
1505
+ :schema_name => XSD::QName.new(NsApiZuoraCom, "amendResponse"),
1506
+ :schema_element => [
1507
+ ["results", "ZUORA::AmendResult[]", [0, nil]]
1508
+ ]
1509
+ )
1510
+
1314
1511
  LiteralRegistry.register(
1315
1512
  :class => ZUORA::Create,
1316
1513
  :schema_name => XSD::QName.new(NsApiZuoraCom, "create"),
@@ -1392,6 +1589,22 @@ module DefaultMappingRegistry
1392
1589
  ]
1393
1590
  )
1394
1591
 
1592
+ LiteralRegistry.register(
1593
+ :class => ZUORA::QueryMore,
1594
+ :schema_name => XSD::QName.new(NsApiZuoraCom, "queryMore"),
1595
+ :schema_element => [
1596
+ ["queryLocator", "SOAP::SOAPString"]
1597
+ ]
1598
+ )
1599
+
1600
+ LiteralRegistry.register(
1601
+ :class => ZUORA::QueryMoreResponse,
1602
+ :schema_name => XSD::QName.new(NsApiZuoraCom, "queryMoreResponse"),
1603
+ :schema_element => [
1604
+ ["result", "ZUORA::QueryResult"]
1605
+ ]
1606
+ )
1607
+
1395
1608
  LiteralRegistry.register(
1396
1609
  :class => ZUORA::SessionHeader,
1397
1610
  :schema_name => XSD::QName.new(NsApiZuoraCom, "SessionHeader"),