zuora4r 1.0.7 → 1.0.8
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 +3 -1
- data/lib/zuora/ZUORAMappingRegistry.rb +2 -0
- data/lib/zuora_client.rb +12 -3
- data/zuora4r.gemspec +20 -21
- metadata +6 -6
data/Rakefile
CHANGED
data/lib/zuora/ZUORA.rb
CHANGED
@@ -768,11 +768,12 @@ class Subscription < ZObject
|
|
768
768
|
attr_accessor :previousSubscriptionId
|
769
769
|
attr_accessor :renewalTerm
|
770
770
|
attr_accessor :serviceActivationDate
|
771
|
+
attr_accessor :subscriptionEndDate
|
771
772
|
attr_accessor :status
|
772
773
|
attr_accessor :termStartDate
|
773
774
|
attr_accessor :version
|
774
775
|
|
775
|
-
def initialize(fieldsToNull = [], id = nil, accountId = nil, autoRenew = nil, cancelledDate = nil, contractAcceptanceDate = nil, contractEffectiveDate = nil, currency = nil, initialTerm = nil, name = nil, notes = nil, originalSubscriptionId = nil, previousSubscriptionId = nil, renewalTerm = nil, serviceActivationDate = nil, status = nil, termStartDate = nil, version = nil)
|
776
|
+
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)
|
776
777
|
@fieldsToNull = fieldsToNull
|
777
778
|
@id = id
|
778
779
|
@accountId = accountId
|
@@ -788,6 +789,7 @@ class Subscription < ZObject
|
|
788
789
|
@previousSubscriptionId = previousSubscriptionId
|
789
790
|
@renewalTerm = renewalTerm
|
790
791
|
@serviceActivationDate = serviceActivationDate
|
792
|
+
@subscriptionEndDate= subscriptionEndDate
|
791
793
|
@status = status
|
792
794
|
@termStartDate = termStartDate
|
793
795
|
@version = version
|
@@ -364,6 +364,7 @@ module DefaultMappingRegistry
|
|
364
364
|
["previousSubscriptionId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "PreviousSubscriptionId")], [0, 1]],
|
365
365
|
["renewalTerm", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "RenewalTerm")], [0, 1]],
|
366
366
|
["serviceActivationDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceActivationDate")], [0, 1]],
|
367
|
+
["subscriptionEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionEndDate")], [0, 1]],
|
367
368
|
["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
|
368
369
|
["termStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TermStartDate")], [0, 1]],
|
369
370
|
["version", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "Version")], [0, 1]]
|
@@ -949,6 +950,7 @@ module DefaultMappingRegistry
|
|
949
950
|
["previousSubscriptionId", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "PreviousSubscriptionId")], [0, 1]],
|
950
951
|
["renewalTerm", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "RenewalTerm")], [0, 1]],
|
951
952
|
["serviceActivationDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "ServiceActivationDate")], [0, 1]],
|
953
|
+
["subscriptionEndDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "SubscriptionEndDate")], [0, 1]],
|
952
954
|
["status", ["SOAP::SOAPString", XSD::QName.new(NsObjectApiZuoraCom, "Status")], [0, 1]],
|
953
955
|
["termStartDate", ["SOAP::SOAPDateTime", XSD::QName.new(NsObjectApiZuoraCom, "TermStartDate")], [0, 1]],
|
954
956
|
["version", ["SOAP::SOAPInt", XSD::QName.new(NsObjectApiZuoraCom, "Version")], [0, 1]]
|
data/lib/zuora_client.rb
CHANGED
@@ -43,8 +43,8 @@ end
|
|
43
43
|
|
44
44
|
|
45
45
|
class ZuoraClient
|
46
|
-
PROD_URL = 'https://www.zuora.com/apps/services/a/
|
47
|
-
SANDBOX_URL = 'https://apisandbox.zuora.com/apps/services/a/
|
46
|
+
PROD_URL = 'https://www.zuora.com/apps/services/a/27.0'
|
47
|
+
SANDBOX_URL = 'https://apisandbox.zuora.com/apps/services/a/27.0'
|
48
48
|
|
49
49
|
def initialize(username, password, url=PROD_URL)
|
50
50
|
$ZUORA_USER = username
|
@@ -81,6 +81,15 @@ class ZuoraClient
|
|
81
81
|
result
|
82
82
|
end
|
83
83
|
|
84
|
+
def subscribe(obj)
|
85
|
+
begin
|
86
|
+
response = @client.subscribe(obj)
|
87
|
+
return response
|
88
|
+
rescue Exception => e
|
89
|
+
puts e.message
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
84
93
|
def create(obj)
|
85
94
|
begin
|
86
95
|
response = @client.create(obj)
|
@@ -141,4 +150,4 @@ class ZuoraClient
|
|
141
150
|
end
|
142
151
|
|
143
152
|
|
144
|
-
end
|
153
|
+
end
|
data/zuora4r.gemspec
CHANGED
@@ -1,49 +1,48 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
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.8"
|
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{
|
12
|
+
s.date = %q{2011-01-18}
|
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"]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"LICENSE",
|
18
|
-
|
18
|
+
"README.rdoc"
|
19
19
|
]
|
20
20
|
s.files = [
|
21
21
|
"Rakefile",
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
22
|
+
"bin/zq",
|
23
|
+
"bin/zuora-bill-run",
|
24
|
+
"bin/zuora-create",
|
25
|
+
"bin/zuora-delete",
|
26
|
+
"bin/zuora-payment-run",
|
27
|
+
"bin/zuora-query",
|
28
|
+
"bin/zuora-update",
|
29
|
+
"lib/zuora/ZUORA.rb",
|
30
|
+
"lib/zuora/ZUORADriver.rb",
|
31
|
+
"lib/zuora/ZUORAMappingRegistry.rb",
|
32
|
+
"lib/zuora/ZuoraServiceClient.rb",
|
33
|
+
"lib/zuora/api.rb",
|
34
|
+
"lib/zuora_client.rb",
|
35
|
+
"lib/zuora_interface.rb",
|
36
|
+
"zuora4r.gemspec"
|
37
37
|
]
|
38
38
|
s.homepage = %q{http://github.com/cloocher/zuora4r}
|
39
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
40
39
|
s.require_paths = ["lib"]
|
41
40
|
s.requirements = ["none"]
|
42
41
|
s.rubygems_version = %q{1.3.7}
|
43
42
|
s.summary = %q{Zuora4r}
|
44
43
|
s.test_files = [
|
45
44
|
"test/helper.rb",
|
46
|
-
|
45
|
+
"test/test_zuora_client.rb"
|
47
46
|
]
|
48
47
|
|
49
48
|
if s.respond_to? :specification_version then
|
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: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 8
|
10
|
+
version: 1.0.8
|
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:
|
18
|
+
date: 2011-01-18 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -91,8 +91,8 @@ homepage: http://github.com/cloocher/zuora4r
|
|
91
91
|
licenses: []
|
92
92
|
|
93
93
|
post_install_message:
|
94
|
-
rdoc_options:
|
95
|
-
|
94
|
+
rdoc_options: []
|
95
|
+
|
96
96
|
require_paths:
|
97
97
|
- lib
|
98
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|