zuora4r 1.2.2 → 1.2.3

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.
@@ -30,7 +30,7 @@ It also provides scripts to query, create, update, delete Zuora Objects, as well
30
30
  export ZPASS=zuora_password
31
31
 
32
32
  # create new payment method
33
- zuora-create -u $ZUSER -p ZPASS -e sandbox '{"PaymentMethod": {"accountId": "4028e6992a031d78012a1b132dba1c9b", "creditCardAddress1": "52 Vexford Lane", "creditCardCity": "United States", "creditCardExpirationMonth": "12", "creditCardExpirationYear": "2010", "creditCardHolderName": "Firstly Lastly", "creditCardNumber": "4111111111111111", "creditCardPostalCode": "22042", "creditCardState": "California", "creditCardType": "Visa", "type": "CreditCard"}}'
33
+ zuora-create -u $ZUSER -p $ZPASS -e sandbox '{"PaymentMethod": {"accountId": "4028e6992a031d78012a1b132dba1c9b", "creditCardAddress1": "52 Vexford Lane", "creditCardCity": "United States", "creditCardExpirationMonth": "12", "creditCardExpirationYear": "2010", "creditCardHolderName": "Firstly Lastly", "creditCardNumber": "4111111111111111", "creditCardPostalCode": "22042", "creditCardState": "California", "creditCardType": "Visa", "type": "CreditCard"}}'
34
34
  [
35
35
  {
36
36
  "success": true,
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
@@ -299,6 +299,30 @@ class Invoice < ZObject
299
299
  end
300
300
  end
301
301
 
302
+ class InvoiceItemAdjustment < ZObject
303
+ attr_accessor :fieldsToNull
304
+ attr_accessor :id
305
+ attr_accessor :accountId
306
+ attr_accessor :amount
307
+ attr_accessor :sourceId
308
+ attr_accessor :invoiceId
309
+ attr_accessor :type
310
+ attr_accessor :sourceType
311
+ attr_accessor :adjustmentDate
312
+
313
+ def initialize(fieldsToNull = [], id = nil, accountId = nil, amount = nil, sourceId = nil, invoiceId = nil, type = nil, sourceType = nil, adjustmentDate = nil)
314
+ @fieldsToNull = fieldsToNull
315
+ @id = id
316
+ @accountId = accountId
317
+ @amount = amount
318
+ @sourceId = sourceId
319
+ @invoiceId = invoiceId
320
+ @type = type
321
+ @sourceType = sourceType
322
+ @adjustmentDate = adjustmentDate
323
+ end
324
+ end
325
+
302
326
  class BillRun < ZObject
303
327
  attr_accessor :fieldsToNull
304
328
  attr_accessor :id
@@ -712,8 +736,9 @@ class RatePlanCharge < ZObject
712
736
  attr_accessor :tCV
713
737
  attr_accessor :triggerEvent
714
738
  attr_accessor :uOM
739
+ attr_accessor :chargedThroughDate
715
740
 
716
- 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)
741
+ 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)
717
742
  @fieldsToNull = fieldsToNull
718
743
  @id = id
719
744
  @accountingCode = accountingCode
@@ -735,6 +760,7 @@ class RatePlanCharge < ZObject
735
760
  @tCV = tCV
736
761
  @triggerEvent = triggerEvent
737
762
  @uOM = uOM
763
+ @chargedThroughDate = chargedThroughDate
738
764
  end
739
765
  end
740
766
 
@@ -152,6 +152,23 @@ module DefaultMappingRegistry
152
152
  ]
153
153
  )
154
154
 
155
+ EncodedRegistry.register(
156
+ :class => ZUORA::InvoiceItemAdjustment,
157
+ :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "InvoiceItemAdjustment"),
158
+ :schema_basetype => XSD::QName.new(NsObjectApiZuoraCom, "zObject"),
159
+ :schema_element => [
160
+ ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
161
+ ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
162
+ ["accountId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
163
+ ["amount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Amount")], [0, 1]],
164
+ ["sourceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "SourceId")], [0, 1]],
165
+ ["invoiceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "InvoiceId")], [0, 1]],
166
+ ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
167
+ ["sourceType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "SourceType")], [0, 1]],
168
+ ["adjustmentDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "AdjustmentDate")], [0, 1]]
169
+ ]
170
+ )
171
+
155
172
  EncodedRegistry.register(
156
173
  :class => ZUORA::Payment,
157
174
  :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "Payment"),
@@ -347,7 +364,8 @@ module DefaultMappingRegistry
347
364
  ["ratePlanId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "RatePlanId")], [0, 1]],
348
365
  ["tCV", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "TCV")], [0, 1]],
349
366
  ["triggerEvent", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TriggerEvent")], [0, 1]],
350
- ["uOM", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "UOM")], [0, 1]]
367
+ ["uOM", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "UOM")], [0, 1]],
368
+ ["chargedThroughDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ChargedThroughDate")], [0, 1]],
351
369
  ]
352
370
  )
353
371
 
@@ -754,6 +772,23 @@ module DefaultMappingRegistry
754
772
  ["targetDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TargetDate")], [0, 1]]
755
773
  ]
756
774
  )
775
+
776
+ LiteralRegistry.register(
777
+ :class => ZUORA::InvoiceItemAdjustment,
778
+ :schema_type => XSD::QName.new(NsObjectApiZuoraCom, "InvoiceItemAdjustment"),
779
+ :schema_basetype => XSD::QName.new(NsObjectApiZuoraCom, "zObject"),
780
+ :schema_element => [
781
+ ["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
782
+ ["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
783
+ ["accountId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
784
+ ["amount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Amount")], [0, 1]],
785
+ ["sourceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "SourceId")], [0, 1]],
786
+ ["invoiceId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "InvoiceId")], [0, 1]],
787
+ ["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]],
788
+ ["sourceType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "SourceType")], [0, 1]],
789
+ ["adjustmentDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "AdjustmentDate")], [0, 1]]
790
+ ]
791
+ )
757
792
 
758
793
  LiteralRegistry.register(
759
794
  :class => ZUORA::BillRun,
@@ -966,7 +1001,8 @@ module DefaultMappingRegistry
966
1001
  ["ratePlanId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "RatePlanId")], [0, 1]],
967
1002
  ["tCV", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "TCV")], [0, 1]],
968
1003
  ["triggerEvent", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "TriggerEvent")], [0, 1]],
969
- ["uOM", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "UOM")], [0, 1]]
1004
+ ["uOM", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "UOM")], [0, 1]],
1005
+ ["chargedThroughDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ChargedThroughDate")], [0, 1]],
970
1006
  ]
971
1007
  )
972
1008
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora4r
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 2
10
- version: 1.2.2
9
+ - 3
10
+ version: 1.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cloocher
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-17 00:00:00 -07:00
18
+ date: 2011-07-12 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency