Sha256: 28de62836bfb1ff2a88ea6e1c939abb44e56715962a646015b114ba82d124b03
Contents?: true
Size: 1.29 KB
Versions: 6
Compression:
Stored size: 1.29 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', uri_path("hosted_pages","checkout_new"), params, env) end def self.checkout_existing(params, env=nil) Request.send('post', uri_path("hosted_pages","checkout_existing"), params, env) end def self.update_card(params, env=nil) Request.send('post', uri_path("hosted_pages","update_card"), params, env) end def self.update_payment_method(params, env=nil) Request.send('post', uri_path("hosted_pages","update_payment_method"), params, env) end def self.checkout_onetime_charge(params, env=nil) Request.send('post', uri_path("hosted_pages","checkout_onetime_charge"), params, env) end def self.checkout_onetime_addons(params, env=nil) Request.send('post', uri_path("hosted_pages","checkout_onetime_addons"), params, env) end def self.retrieve(id, env=nil) Request.send('get', uri_path("hosted_pages",id.to_s), {}, env) end end # ~HostedPage end # ~ChargeBee
Version data entries
6 entries across 6 versions & 1 rubygems