Class: ChargeBee::HostedPage
- Inherits:
-
Model
- Object
- Model
- ChargeBee::HostedPage
show all
- Defined in:
- lib/chargebee/models/hosted_page.rb
Defined Under Namespace
Classes: Content
Instance Attribute Summary collapse
Class Method Summary
collapse
-
.accept_quote(params, env = nil, headers = {}) ⇒ Object
-
.acknowledge(id, env = nil, headers = {}) ⇒ Object
-
.checkout_existing(params, env = nil, headers = {}) ⇒ Object
-
.checkout_existing_for_items(params, env = nil, headers = {}) ⇒ Object
-
.checkout_gift(params, env = nil, headers = {}) ⇒ Object
-
.checkout_gift_for_items(params = {}, env = nil, headers = {}) ⇒ Object
-
.checkout_new(params, env = nil, headers = {}) ⇒ Object
-
.checkout_new_for_items(params, env = nil, headers = {}) ⇒ Object
-
.checkout_one_time(params = {}, env = nil, headers = {}) ⇒ Object
-
.checkout_one_time_for_items(params, env = nil, headers = {}) ⇒ Object
-
.claim_gift(params, env = nil, headers = {}) ⇒ Object
-
.collect_now(params, env = nil, headers = {}) ⇒ Object
-
.events(params, env = nil, headers = {}) ⇒ Object
-
.extend_subscription(params, env = nil, headers = {}) ⇒ Object
-
.list(params = {}, env = nil, headers = {}) ⇒ Object
-
.manage_payment_sources(params, env = nil, headers = {}) ⇒ Object
-
.pre_cancel(params, env = nil, headers = {}) ⇒ Object
-
.retrieve(id, env = nil, headers = {}) ⇒ Object
-
.retrieve_agreement_pdf(params, env = nil, headers = {}) ⇒ Object
-
.update_card(params, env = nil, headers = {}) ⇒ Object
-
.update_payment_method(params, env = nil, headers = {}) ⇒ Object
-
.view_voucher(params, env = nil, headers = {}) ⇒ Object
Instance Method Summary
collapse
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #to_s, uri_path
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class ChargeBee::Model
Instance Attribute Details
#business_entity_id ⇒ Object
Returns the value of attribute business_entity_id.
4
5
6
|
# File 'lib/chargebee/models/hosted_page.rb', line 4
def business_entity_id
@business_entity_id
end
|
#checkout_info ⇒ Object
Returns the value of attribute checkout_info.
4
5
6
|
# File 'lib/chargebee/models/hosted_page.rb', line 4
def checkout_info
@checkout_info
end
|
#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
@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
|
#resource_version ⇒ Object
Returns the value of attribute resource_version.
4
5
6
|
# File 'lib/chargebee/models/hosted_page.rb', line 4
def resource_version
@resource_version
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
|
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4
5
6
|
# File 'lib/chargebee/models/hosted_page.rb', line 4
def updated_at
@updated_at
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
.accept_quote(params, env = nil, headers = {}) ⇒ Object
61
62
63
|
# File 'lib/chargebee/models/hosted_page.rb', line 61
def self.accept_quote(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","accept_quote"), params, env, )
end
|
.acknowledge(id, env = nil, headers = {}) ⇒ Object
85
86
87
|
# File 'lib/chargebee/models/hosted_page.rb', line 85
def self.acknowledge(id, env=nil, ={})
Request.send('post', uri_path("hosted_pages",id.to_s,"acknowledge"), {}, env, )
end
|
.checkout_existing(params, env = nil, headers = {}) ⇒ Object
37
38
39
|
# File 'lib/chargebee/models/hosted_page.rb', line 37
def self.checkout_existing(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","checkout_existing"), params, env, )
end
|
.checkout_existing_for_items(params, env = nil, headers = {}) ⇒ Object
41
42
43
|
# File 'lib/chargebee/models/hosted_page.rb', line 41
def self.checkout_existing_for_items(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","checkout_existing_for_items"), params, env, )
end
|
.checkout_gift(params, env = nil, headers = {}) ⇒ Object
69
70
71
|
# File 'lib/chargebee/models/hosted_page.rb', line 69
def self.checkout_gift(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","checkout_gift"), params, env, )
end
|
.checkout_gift_for_items(params = {}, env = nil, headers = {}) ⇒ Object
73
74
75
|
# File 'lib/chargebee/models/hosted_page.rb', line 73
def self.checkout_gift_for_items(params={}, env=nil, ={})
Request.send('post', uri_path("hosted_pages","checkout_gift_for_items"), params, env, )
end
|
.checkout_new(params, env = nil, headers = {}) ⇒ Object
21
22
23
|
# File 'lib/chargebee/models/hosted_page.rb', line 21
def self.checkout_new(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","checkout_new"), params, env, )
end
|
.checkout_new_for_items(params, env = nil, headers = {}) ⇒ Object
33
34
35
|
# File 'lib/chargebee/models/hosted_page.rb', line 33
def self.checkout_new_for_items(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","checkout_new_for_items"), params, env, )
end
|
.checkout_one_time(params = {}, env = nil, headers = {}) ⇒ Object
25
26
27
|
# File 'lib/chargebee/models/hosted_page.rb', line 25
def self.checkout_one_time(params={}, env=nil, ={})
Request.send('post', uri_path("hosted_pages","checkout_one_time"), params, env, )
end
|
.checkout_one_time_for_items(params, env = nil, headers = {}) ⇒ Object
29
30
31
|
# File 'lib/chargebee/models/hosted_page.rb', line 29
def self.checkout_one_time_for_items(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","checkout_one_time_for_items"), params, env, )
end
|
.claim_gift(params, env = nil, headers = {}) ⇒ Object
77
78
79
|
# File 'lib/chargebee/models/hosted_page.rb', line 77
def self.claim_gift(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","claim_gift"), params, env, )
end
|
.collect_now(params, env = nil, headers = {}) ⇒ Object
57
58
59
|
# File 'lib/chargebee/models/hosted_page.rb', line 57
def self.collect_now(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","collect_now"), params, env, )
end
|
.events(params, env = nil, headers = {}) ⇒ Object
101
102
103
|
# File 'lib/chargebee/models/hosted_page.rb', line 101
def self.events(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","events"), params, env, )
end
|
.extend_subscription(params, env = nil, headers = {}) ⇒ Object
65
66
67
|
# File 'lib/chargebee/models/hosted_page.rb', line 65
def self.extend_subscription(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","extend_subscription"), params, env, )
end
|
.list(params = {}, env = nil, headers = {}) ⇒ Object
93
94
95
|
# File 'lib/chargebee/models/hosted_page.rb', line 93
def self.list(params={}, env=nil, ={})
Request.send_list_request('get', uri_path("hosted_pages"), params, env, )
end
|
.manage_payment_sources(params, env = nil, headers = {}) ⇒ Object
53
54
55
|
# File 'lib/chargebee/models/hosted_page.rb', line 53
def self.manage_payment_sources(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","manage_payment_sources"), params, env, )
end
|
.pre_cancel(params, env = nil, headers = {}) ⇒ Object
97
98
99
|
# File 'lib/chargebee/models/hosted_page.rb', line 97
def self.pre_cancel(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","pre_cancel"), params, env, )
end
|
.retrieve(id, env = nil, headers = {}) ⇒ Object
89
90
91
|
# File 'lib/chargebee/models/hosted_page.rb', line 89
def self.retrieve(id, env=nil, ={})
Request.send('get', uri_path("hosted_pages",id.to_s), {}, env, )
end
|
.retrieve_agreement_pdf(params, env = nil, headers = {}) ⇒ Object
81
82
83
|
# File 'lib/chargebee/models/hosted_page.rb', line 81
def self.retrieve_agreement_pdf(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","retrieve_agreement_pdf"), params, env, )
end
|
.update_card(params, env = nil, headers = {}) ⇒ Object
45
46
47
|
# File 'lib/chargebee/models/hosted_page.rb', line 45
def self.update_card(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","update_card"), params, env, )
end
|
.update_payment_method(params, env = nil, headers = {}) ⇒ Object
49
50
51
|
# File 'lib/chargebee/models/hosted_page.rb', line 49
def self.update_payment_method(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","update_payment_method"), params, env, )
end
|
.view_voucher(params, env = nil, headers = {}) ⇒ Object
105
106
107
|
# File 'lib/chargebee/models/hosted_page.rb', line 105
def self.view_voucher(params, env=nil, ={})
Request.send('post', uri_path("hosted_pages","view_voucher"), params, env, )
end
|
Instance Method Details
#content ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/chargebee/models/hosted_page.rb', line 10
def content
if @values[:content].nil?
nil
else
Content.new(@values[:content])
end
end
|