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, #respond_to_missing?, #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
111
112
113
114
115
116
117
118
|
# File 'lib/chargebee/models/hosted_page.rb', line 111
def self.accept_quote(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","accept_quote"), params, env, ,nil, false, jsonKeys, options)
end
|
.acknowledge(id, env = nil, headers = {}) ⇒ Object
165
166
167
168
169
170
171
172
|
# File 'lib/chargebee/models/hosted_page.rb', line 165
def self.acknowledge(id, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages",id.to_s,"acknowledge"), {}, env, ,nil, false, jsonKeys, options)
end
|
.checkout_existing(params, env = nil, headers = {}) ⇒ Object
57
58
59
60
61
62
63
64
|
# File 'lib/chargebee/models/hosted_page.rb', line 57
def self.checkout_existing(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","checkout_existing"), params, env, ,nil, false, jsonKeys, options)
end
|
.checkout_existing_for_items(params, env = nil, headers = {}) ⇒ Object
66
67
68
69
70
71
72
73
|
# File 'lib/chargebee/models/hosted_page.rb', line 66
def self.checkout_existing_for_items(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","checkout_existing_for_items"), params, env, ,nil, false, jsonKeys, options)
end
|
.checkout_gift(params, env = nil, headers = {}) ⇒ Object
129
130
131
132
133
134
135
136
|
# File 'lib/chargebee/models/hosted_page.rb', line 129
def self.checkout_gift(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","checkout_gift"), params, env, ,nil, false, jsonKeys, options)
end
|
.checkout_gift_for_items(params = {}, env = nil, headers = {}) ⇒ Object
138
139
140
141
142
143
144
145
|
# File 'lib/chargebee/models/hosted_page.rb', line 138
def self.checkout_gift_for_items(params={}, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","checkout_gift_for_items"), params, env, ,nil, false, jsonKeys, options)
end
|
.checkout_new(params, env = nil, headers = {}) ⇒ Object
21
22
23
24
25
26
27
28
|
# File 'lib/chargebee/models/hosted_page.rb', line 21
def self.checkout_new(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","checkout_new"), params, env, ,nil, false, jsonKeys, options)
end
|
.checkout_new_for_items(params, env = nil, headers = {}) ⇒ Object
48
49
50
51
52
53
54
55
|
# File 'lib/chargebee/models/hosted_page.rb', line 48
def self.checkout_new_for_items(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","checkout_new_for_items"), params, env, ,nil, false, jsonKeys, options)
end
|
.checkout_one_time(params = {}, env = nil, headers = {}) ⇒ Object
30
31
32
33
34
35
36
37
|
# File 'lib/chargebee/models/hosted_page.rb', line 30
def self.checkout_one_time(params={}, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","checkout_one_time"), params, env, ,nil, false, jsonKeys, options)
end
|
.checkout_one_time_for_items(params, env = nil, headers = {}) ⇒ Object
39
40
41
42
43
44
45
46
|
# File 'lib/chargebee/models/hosted_page.rb', line 39
def self.checkout_one_time_for_items(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","checkout_one_time_for_items"), params, env, ,nil, false, jsonKeys, options)
end
|
.claim_gift(params, env = nil, headers = {}) ⇒ Object
147
148
149
150
151
152
153
154
|
# File 'lib/chargebee/models/hosted_page.rb', line 147
def self.claim_gift(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","claim_gift"), params, env, ,nil, false, jsonKeys, options)
end
|
.collect_now(params, env = nil, headers = {}) ⇒ Object
102
103
104
105
106
107
108
109
|
# File 'lib/chargebee/models/hosted_page.rb', line 102
def self.collect_now(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","collect_now"), params, env, ,nil, false, jsonKeys, options)
end
|
.events(params, env = nil, headers = {}) ⇒ Object
197
198
199
200
201
202
203
204
205
|
# File 'lib/chargebee/models/hosted_page.rb', line 197
def self.events(params, env=nil, ={})
jsonKeys = {
:event_data => 0,
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","events"), params, env, ,nil, false, jsonKeys, options)
end
|
.extend_subscription(params, env = nil, headers = {}) ⇒ Object
120
121
122
123
124
125
126
127
|
# File 'lib/chargebee/models/hosted_page.rb', line 120
def self.extend_subscription(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","extend_subscription"), params, env, ,nil, false, jsonKeys, options)
end
|
.list(params = {}, env = nil, headers = {}) ⇒ Object
181
182
183
184
185
186
|
# File 'lib/chargebee/models/hosted_page.rb', line 181
def self.list(params={}, env=nil, ={})
jsonKeys = {
}
options = {}
Request.send_list_request('get', uri_path("hosted_pages"), params, env, ,nil, false, jsonKeys, options)
end
|
.manage_payment_sources(params, env = nil, headers = {}) ⇒ Object
93
94
95
96
97
98
99
100
|
# File 'lib/chargebee/models/hosted_page.rb', line 93
def self.manage_payment_sources(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","manage_payment_sources"), params, env, ,nil, false, jsonKeys, options)
end
|
.pre_cancel(params, env = nil, headers = {}) ⇒ Object
188
189
190
191
192
193
194
195
|
# File 'lib/chargebee/models/hosted_page.rb', line 188
def self.pre_cancel(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","pre_cancel"), params, env, ,nil, false, jsonKeys, options)
end
|
.retrieve(id, env = nil, headers = {}) ⇒ Object
174
175
176
177
178
179
|
# File 'lib/chargebee/models/hosted_page.rb', line 174
def self.retrieve(id, env=nil, ={})
jsonKeys = {
}
options = {}
Request.send('get', uri_path("hosted_pages",id.to_s), {}, env, ,nil, false, jsonKeys, options)
end
|
.retrieve_agreement_pdf(params, env = nil, headers = {}) ⇒ Object
156
157
158
159
160
161
162
163
|
# File 'lib/chargebee/models/hosted_page.rb', line 156
def self.retrieve_agreement_pdf(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","retrieve_agreement_pdf"), params, env, ,nil, false, jsonKeys, options)
end
|
.update_card(params, env = nil, headers = {}) ⇒ Object
75
76
77
78
79
80
81
82
|
# File 'lib/chargebee/models/hosted_page.rb', line 75
def self.update_card(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","update_card"), params, env, ,nil, false, jsonKeys, options)
end
|
.update_payment_method(params, env = nil, headers = {}) ⇒ Object
84
85
86
87
88
89
90
91
|
# File 'lib/chargebee/models/hosted_page.rb', line 84
def self.update_payment_method(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","update_payment_method"), params, env, ,nil, false, jsonKeys, options)
end
|
.view_voucher(params, env = nil, headers = {}) ⇒ Object
207
208
209
210
211
212
213
214
|
# File 'lib/chargebee/models/hosted_page.rb', line 207
def self.view_voucher(params, env=nil, ={})
jsonKeys = {
}
options = {
:isIdempotent => true
}
Request.send('post', uri_path("hosted_pages","view_voucher"), params, env, ,nil, false, jsonKeys, options)
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
|