chargebee 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/chargebee.gemspec +3 -2
- data/lib/chargebee.rb +2 -1
- data/lib/chargebee/models/portal_session.rb +23 -0
- data/lib/chargebee/result.rb +4 -0
- metadata +3 -2
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### v1.4.1 (2014-05-28)
|
2
|
+
* * *
|
3
|
+
New API to support Single Sign-on (SSO) to access the customer portal, if you already have your own authentication for your website. See https://apidocs.chargebee.com/docs/api/portal_sessions?lang=ruby.
|
4
|
+
|
1
5
|
### v1.4.0 (2014-05-23)
|
2
6
|
* * *
|
3
7
|
* New API to create customer without subscription. See https://apidocs.chargebee.com/docs/api/customers#create_a_customer
|
data/chargebee.gemspec
CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
|
|
4
4
|
s.rubygems_version = '1.3.5'
|
5
5
|
|
6
6
|
s.name = 'chargebee'
|
7
|
-
s.version = '1.4.
|
8
|
-
s.date = '2014-05-
|
7
|
+
s.version = '1.4.1'
|
8
|
+
s.date = '2014-05-28'
|
9
9
|
|
10
10
|
s.summary = "Ruby client for Chargebee API."
|
11
11
|
s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
|
@@ -51,6 +51,7 @@ Gem::Specification.new do |s|
|
|
51
51
|
lib/chargebee/models/invoice.rb
|
52
52
|
lib/chargebee/models/model.rb
|
53
53
|
lib/chargebee/models/plan.rb
|
54
|
+
lib/chargebee/models/portal_session.rb
|
54
55
|
lib/chargebee/models/subscription.rb
|
55
56
|
lib/chargebee/models/transaction.rb
|
56
57
|
lib/chargebee/request.rb
|
data/lib/chargebee.rb
CHANGED
@@ -22,11 +22,12 @@ require File.dirname(__FILE__) + '/chargebee/models/addon'
|
|
22
22
|
require File.dirname(__FILE__) + '/chargebee/models/coupon'
|
23
23
|
require File.dirname(__FILE__) + '/chargebee/models/coupon_code'
|
24
24
|
require File.dirname(__FILE__) + '/chargebee/models/comment'
|
25
|
+
require File.dirname(__FILE__) + '/chargebee/models/portal_session'
|
25
26
|
require File.dirname(__FILE__) + '/chargebee/models/download'
|
26
27
|
|
27
28
|
module ChargeBee
|
28
29
|
|
29
|
-
VERSION = '1.4.
|
30
|
+
VERSION = '1.4.1'
|
30
31
|
|
31
32
|
@@default_env = nil
|
32
33
|
@@verify_ca_certs = true
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module ChargeBee
|
2
|
+
class PortalSession < Model
|
3
|
+
|
4
|
+
attr_accessor :id, :access_url, :redirect_url, :status, :created_at, :expires_at, :customer_id,
|
5
|
+
:login_at, :logout_at, :login_ipaddress, :logout_ipaddress
|
6
|
+
|
7
|
+
# OPERATIONS
|
8
|
+
#-----------
|
9
|
+
|
10
|
+
def self.create(params, env=nil)
|
11
|
+
Request.send('post', uri_path("portal_sessions"), params, env)
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.retrieve(id, env=nil)
|
15
|
+
Request.send('get', uri_path("portal_sessions",id.to_s), {}, env)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.logout(id, env=nil)
|
19
|
+
Request.send('post', uri_path("portal_sessions",id.to_s,"logout"), {}, env)
|
20
|
+
end
|
21
|
+
|
22
|
+
end # ~PortalSession
|
23
|
+
end # ~ChargeBee
|
data/lib/chargebee/result.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: chargebee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.4.
|
5
|
+
version: 1.4.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Rajaraman S
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2014-05-
|
14
|
+
date: 2014-05-28 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json_pure
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- lib/chargebee/models/invoice.rb
|
93
93
|
- lib/chargebee/models/model.rb
|
94
94
|
- lib/chargebee/models/plan.rb
|
95
|
+
- lib/chargebee/models/portal_session.rb
|
95
96
|
- lib/chargebee/models/subscription.rb
|
96
97
|
- lib/chargebee/models/transaction.rb
|
97
98
|
- lib/chargebee/request.rb
|