Class: ChargeBee::HostedPage
- Defined in:
- lib/chargebee/models/hosted_page.rb
Defined Under Namespace
Classes: Content
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#embed ⇒ Object
Returns the value of attribute embed.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#failure_reason ⇒ Object
Returns the value of attribute failure_reason.
-
#id ⇒ Object
Returns the value of attribute id.
-
#pass_thru_content ⇒ Object
Returns the value of attribute pass_thru_content.
-
#state ⇒ Object
Returns the value of attribute state.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
- .checkout_existing(params, env = nil, headers = {}) ⇒ Object
-
.checkout_new(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .checkout_onetime_addons(params, env = nil, headers = {}) ⇒ Object
- .checkout_onetime_charge(params, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update_card(params, env = nil, headers = {}) ⇒ Object
- .update_payment_method(params, env = nil, headers = {}) ⇒ Object
Instance Method Summary collapse
Methods inherited from Model
construct, #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
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def created_at @created_at end |
#embed ⇒ Object
Returns the value of attribute embed.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def @embed end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def expires_at @expires_at end |
#failure_reason ⇒ Object
Returns the value of attribute failure_reason.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def failure_reason @failure_reason end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def id @id end |
#pass_thru_content ⇒ Object
Returns the value of attribute pass_thru_content.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def pass_thru_content @pass_thru_content end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def state @state end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/chargebee/models/hosted_page.rb', line 4 def url @url end |
Class Method Details
.checkout_existing(params, env = nil, headers = {}) ⇒ Object
25 26 27 |
# File 'lib/chargebee/models/hosted_page.rb', line 25 def self.checkout_existing(params, env=nil, headers={}) Request.send('post', uri_path("hosted_pages","checkout_existing"), params, env, headers) end |
.checkout_new(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
21 22 23 |
# File 'lib/chargebee/models/hosted_page.rb', line 21 def self.checkout_new(params, env=nil, headers={}) Request.send('post', uri_path("hosted_pages","checkout_new"), params, env, headers) end |
.checkout_onetime_addons(params, env = nil, headers = {}) ⇒ Object
41 42 43 |
# File 'lib/chargebee/models/hosted_page.rb', line 41 def self.checkout_onetime_addons(params, env=nil, headers={}) Request.send('post', uri_path("hosted_pages","checkout_onetime_addons"), params, env, headers) end |
.checkout_onetime_charge(params, env = nil, headers = {}) ⇒ Object
37 38 39 |
# File 'lib/chargebee/models/hosted_page.rb', line 37 def self.checkout_onetime_charge(params, env=nil, headers={}) Request.send('post', uri_path("hosted_pages","checkout_onetime_charge"), params, env, headers) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
45 46 47 |
# File 'lib/chargebee/models/hosted_page.rb', line 45 def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("hosted_pages",id.to_s), {}, env, headers) end |