Class: ChargeBee::HostedPage

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

Defined Under Namespace

Classes: Content

Instance Attribute Summary collapse

Class Method Summary collapse

Instance 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

#business_entity_idObject

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_infoObject

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_atObject

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

#embedObject

Returns the value of attribute embed.



4
5
6
# File 'lib/chargebee/models/hosted_page.rb', line 4

def embed
  @embed
end

#expires_atObject

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_reasonObject

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/chargebee/models/hosted_page.rb', line 4

def id
  @id
end

#pass_thru_contentObject

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_versionObject

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

#stateObject

Returns the value of attribute state.



4
5
6
# File 'lib/chargebee/models/hosted_page.rb', line 4

def state
  @state
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/chargebee/models/hosted_page.rb', line 4

def type
  @type
end

#updated_atObject

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

#urlObject

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, headers={})
  Request.send('post', uri_path("hosted_pages","accept_quote"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages",id.to_s,"acknowledge"), {}, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","checkout_existing"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","checkout_existing_for_items"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","checkout_gift"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","checkout_gift_for_items"), 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_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, headers={})
  Request.send('post', uri_path("hosted_pages","checkout_new_for_items"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","checkout_one_time"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","checkout_one_time_for_items"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","claim_gift"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","collect_now"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","extend_subscription"), params, env, headers)
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, headers={})
  Request.send_list_request('get', uri_path("hosted_pages"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","manage_payment_sources"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","pre_cancel"), params, env, headers)
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, headers={})
  Request.send('get', uri_path("hosted_pages",id.to_s), {}, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","retrieve_agreement_pdf"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","update_card"), params, env, headers)
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, headers={})
  Request.send('post', uri_path("hosted_pages","update_payment_method"), params, env, headers)
end

Instance Method Details

#contentObject



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