Sha256: 61b154070d9b1567da3ea9d368fe2ed6fcc161fef260a5c1637bb9c2fd7c10d5
Contents?: true
Size: 1.05 KB
Versions: 19
Compression:
Stored size: 1.05 KB
Contents
module ChargeBee class HostedPage < Model attr_accessor :id, :type, :url, :state, :failure_reason, :pass_thru_content, :embed, :created_at, :expires_at class Content < Result end def content Content.new(@values[:content]) end # OPERATIONS #----------- def self.checkout_new(params, env=nil) Request.send('post', "/hosted_pages/checkout_new", params, env) end def self.checkout_existing(params, env=nil) Request.send('post', "/hosted_pages/checkout_existing", params, env) end def self.update_card(params, env=nil) Request.send('post', "/hosted_pages/update_card", params, env) end def self.checkout_onetime_charge(params, env=nil) Request.send('post', "/hosted_pages/checkout_onetime_charge", params, env) end def self.checkout_onetime_addons(params, env=nil) Request.send('post', "/hosted_pages/checkout_onetime_addons", params, env) end def self.retrieve(id, env=nil) Request.send('get', "/hosted_pages/#{id.to_s}", {}, env) end end # ~HostedPage end # ~ChargeBee
Version data entries
19 entries across 19 versions & 1 rubygems