zuora4r 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/zuora/ZUORA.rb +43 -0
- data/lib/zuora/ZUORAMappingRegistry.rb +54 -0
- data/zuora4r.gemspec +2 -2
- metadata +4 -4
data/Rakefile
CHANGED
data/lib/zuora/ZUORA.rb
CHANGED
@@ -88,6 +88,49 @@ class Account < ZObject
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
+
class Refund < ZObject
|
92
|
+
attr_accessor :fieldsToNull
|
93
|
+
attr_accessor :id
|
94
|
+
attr_accessor :accountId
|
95
|
+
attr_accessor :accountingCode
|
96
|
+
attr_accessor :amount
|
97
|
+
attr_accessor :comment
|
98
|
+
attr_accessor :createdById
|
99
|
+
attr_accessor :createdDate
|
100
|
+
attr_accessor :gateway
|
101
|
+
attr_accessor :gatewayResponse
|
102
|
+
attr_accessor :gatewayResponseCode
|
103
|
+
attr_accessor :methodType
|
104
|
+
attr_accessor :paymentId
|
105
|
+
attr_accessor :referenceID
|
106
|
+
attr_accessor :refundDate
|
107
|
+
attr_accessor :refundNumber
|
108
|
+
attr_accessor :refundTransactionTime
|
109
|
+
attr_accessor :status
|
110
|
+
attr_accessor :type
|
111
|
+
|
112
|
+
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)
|
113
|
+
@fieldsToNull = fieldsToNull
|
114
|
+
@id = id
|
115
|
+
@accountId = accountId
|
116
|
+
@accountingCode = accountingCode
|
117
|
+
@amount = amount
|
118
|
+
@comment = comment
|
119
|
+
@createdById = createdById
|
120
|
+
@createdDate = createdDate
|
121
|
+
@gateway = gateway
|
122
|
+
@gatewayResponse = gatewayResponse
|
123
|
+
@gatewayResponseCode = gatewayResponseCode
|
124
|
+
@methodType = methodType
|
125
|
+
@paymentId = paymentId
|
126
|
+
@referenceID = referenceID
|
127
|
+
@refundDate = refundDate
|
128
|
+
@refundNumber = refundNumber
|
129
|
+
@refundTransactionTime = refundTransactionTime
|
130
|
+
@status = status
|
131
|
+
@type = type
|
132
|
+
end
|
133
|
+
end
|
91
134
|
# {http://object.api.zuora.com/}Amendment
|
92
135
|
# fieldsToNull - SOAP::SOAPString
|
93
136
|
# id - (any)
|
@@ -51,6 +51,33 @@ module DefaultMappingRegistry
|
|
51
51
|
]
|
52
52
|
)
|
53
53
|
|
54
|
+
EncodedRegistry.register(
|
55
|
+
:class => ZUORA::Refund,
|
56
|
+
:schema_type => XSD::QName.new(NsObjectApiZuoraCom, "Refund"),
|
57
|
+
:schema_basetype => XSD::QName.new(NsObjectApiZuoraCom, "zObject"),
|
58
|
+
:schema_element => [
|
59
|
+
["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
|
60
|
+
["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
|
61
|
+
["accountId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
|
62
|
+
["accountingCode", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AccountingCode")], [0, 1]],
|
63
|
+
["amount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Amount")], [0, 1]],
|
64
|
+
["comment", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Comment")], [0, 1]],
|
65
|
+
["createdById", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "CreatedById")], [0, 1]],
|
66
|
+
["createdDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CreatedDate")], [0, 1]],
|
67
|
+
["gateway", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Gateway")], [0, 1]],
|
68
|
+
["gatewayResponse", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayResponse")], [0, 1]],
|
69
|
+
["gatewayResponseCode", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayResponseCode")], [0, 1]],
|
70
|
+
["methodType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "MethodType")], [0, 1]],
|
71
|
+
["paymentId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "PaymentId")], [0, 1]],
|
72
|
+
["referenceID", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ReferenceID")], [0, 1]],
|
73
|
+
["refundDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "RefundDate")], [0, 1]],
|
74
|
+
["refundNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "RefundNumber")], [0, 1]],
|
75
|
+
["refundTransactionTime", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "RefundTransactionTime")], [0, 1]],
|
76
|
+
["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
|
77
|
+
["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]]
|
78
|
+
]
|
79
|
+
)
|
80
|
+
|
54
81
|
EncodedRegistry.register(
|
55
82
|
:class => ZUORA::Amendment,
|
56
83
|
:schema_type => XSD::QName.new(NsObjectApiZuoraCom, "Amendment"),
|
@@ -593,6 +620,33 @@ module DefaultMappingRegistry
|
|
593
620
|
]
|
594
621
|
)
|
595
622
|
|
623
|
+
LiteralRegistry.register(
|
624
|
+
:class => ZUORA::Refund,
|
625
|
+
:schema_type => XSD::QName.new(NsObjectApiZuoraCom, "Refund"),
|
626
|
+
:schema_basetype => XSD::QName.new(NsObjectApiZuoraCom, "zObject"),
|
627
|
+
:schema_element => [
|
628
|
+
["fieldsToNull", "SOAP::SOAPString[]", [0, nil]],
|
629
|
+
["id", [nil, XSD::QName.new(NsObjectApiZuoraCom, "Id")], [0, 1]],
|
630
|
+
["accountId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AccountId")], [0, 1]],
|
631
|
+
["accountingCode", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "AccountingCode")], [0, 1]],
|
632
|
+
["amount", ["SOAP::SOAPDouble", XSD::QName.new(NsObjectApiZuoraCom, "Amount")], [0, 1]],
|
633
|
+
["comment", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Comment")], [0, 1]],
|
634
|
+
["createdById", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "CreatedById")], [0, 1]],
|
635
|
+
["createdDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "CreatedDate")], [0, 1]],
|
636
|
+
["gateway", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Gateway")], [0, 1]],
|
637
|
+
["gatewayResponse", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayResponse")], [0, 1]],
|
638
|
+
["gatewayResponseCode", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "GatewayResponseCode")], [0, 1]],
|
639
|
+
["methodType", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "MethodType")], [0, 1]],
|
640
|
+
["paymentId", [nil, XSD::QName.new(NsObjectApiZuoraCom, "PaymentId")], [0, 1]],
|
641
|
+
["referenceID", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "ReferenceID")], [0, 1]],
|
642
|
+
["refundDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "RefundDate")], [0, 1]],
|
643
|
+
["refundNumber", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "RefundNumber")], [0, 1]],
|
644
|
+
["refundTransactionTime", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "RefundTransactionTime")], [0, 1]],
|
645
|
+
["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
|
646
|
+
["type", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Type")], [0, 1]]
|
647
|
+
]
|
648
|
+
)
|
649
|
+
|
596
650
|
LiteralRegistry.register(
|
597
651
|
:class => ZUORA::Amendment,
|
598
652
|
:schema_type => XSD::QName.new(NsObjectApiZuoraCom, "Amendment"),
|
data/zuora4r.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{zuora4r}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Cloocher"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-10-07}
|
13
13
|
s.description = %q{A client for Zuora API}
|
14
14
|
s.email = %q{gene@ning.com}
|
15
15
|
s.executables = ["zuora-query", "zuora-create", "zuora-update", "zuora-bill-run", "zuora-payment-run", "zuora-delete", "zq"]
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 7
|
10
|
+
version: 1.0.7
|
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: 2010-
|
18
|
+
date: 2010-10-07 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|