Sha256: 08c0c6471cd2814e258882067fd83fd200250d3f9517716b1e07347500c72e37
Contents?: true
Size: 1.16 KB
Versions: 10
Compression:
Stored size: 1.16 KB
Contents
module ChargeBee class Gift < Model class Gifter < Model attr_accessor :customer_id, :invoice_id, :signature, :note end class GiftReceiver < Model attr_accessor :customer_id, :subscription_id, :first_name, :last_name, :email end class GiftTimeline < Model attr_accessor :status, :occurred_at end attr_accessor :id, :status, :scheduled_at, :auto_claim, :claim_expiry_date, :resource_version, :updated_at, :gifter, :gift_receiver, :gift_timelines # OPERATIONS #----------- def self.create(params, env=nil, headers={}) Request.send('post', uri_path("gifts"), params, env, headers) end def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("gifts",id.to_s), {}, env, headers) end def self.list(params={}, env=nil, headers={}) Request.send_list_request('get', uri_path("gifts"), params, env, headers) end def self.claim(id, env=nil, headers={}) Request.send('post', uri_path("gifts",id.to_s,"claim"), {}, env, headers) end def self.cancel(id, env=nil, headers={}) Request.send('post', uri_path("gifts",id.to_s,"cancel"), {}, env, headers) end end # ~Gift end # ~ChargeBee
Version data entries
10 entries across 10 versions & 1 rubygems