Class: ChargeBee::PortalSession

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/portal_session.rb

Defined Under Namespace

Classes: LinkedCustomer

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#access_urlObject

Returns the value of attribute access_url.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def access_url
  @access_url
end

#created_atObject

Returns the value of attribute created_at.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def created_at
  @created_at
end

#customer_idObject

Returns the value of attribute customer_id.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def customer_id
  @customer_id
end

#expires_atObject

Returns the value of attribute expires_at.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def expires_at
  @expires_at
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def id
  @id
end

#linked_customersObject

Returns the value of attribute linked_customers.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def linked_customers
  @linked_customers
end

#login_atObject

Returns the value of attribute login_at.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def 
  @login_at
end

#login_ipaddressObject

Returns the value of attribute login_ipaddress.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def 
  @login_ipaddress
end

#logout_atObject

Returns the value of attribute logout_at.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def logout_at
  @logout_at
end

#logout_ipaddressObject

Returns the value of attribute logout_ipaddress.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def logout_ipaddress
  @logout_ipaddress
end

#redirect_urlObject

Returns the value of attribute redirect_url.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def redirect_url
  @redirect_url
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def status
  @status
end

#tokenObject

Returns the value of attribute token.



8
9
10
# File 'lib/chargebee/models/portal_session.rb', line 8

def token
  @token
end

Class Method Details

.activate(id, params, env = nil, headers = {}) ⇒ Object



26
27
28
# File 'lib/chargebee/models/portal_session.rb', line 26

def self.activate(id, params, env=nil, headers={})
  Request.send('post', uri_path("portal_sessions",id.to_s,"activate"), params, env, headers)
end

.create(params, env = nil, headers = {}) ⇒ Object

OPERATIONS




14
15
16
# File 'lib/chargebee/models/portal_session.rb', line 14

def self.create(params, env=nil, headers={})
  Request.send('post', uri_path("portal_sessions"), params, env, headers)
end

.logout(id, env = nil, headers = {}) ⇒ Object



22
23
24
# File 'lib/chargebee/models/portal_session.rb', line 22

def self.logout(id, env=nil, headers={})
  Request.send('post', uri_path("portal_sessions",id.to_s,"logout"), {}, env, headers)
end

.retrieve(id, env = nil, headers = {}) ⇒ Object



18
19
20
# File 'lib/chargebee/models/portal_session.rb', line 18

def self.retrieve(id, env=nil, headers={})
  Request.send('get', uri_path("portal_sessions",id.to_s), {}, env, headers)
end