Sha256: 4ef709211d80f63d14ac5230cd28c471919776846af9d4f190847c210479b598
Contents?: true
Size: 1.12 KB
Versions: 10
Compression:
Stored size: 1.12 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 if @values[:content].nil? nil else Content.new(@values[:content]) end 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
10 entries across 10 versions & 1 rubygems