Sha256: c6875e0a4a9c7adedb0be615217d9c815844af6849a136e3dfc263267521b4ff
Contents?: true
Size: 829 Bytes
Versions: 8
Compression:
Stored size: 829 Bytes
Contents
module ChargeBee class Coupon < Model attr_accessor :id, :name, :invoice_name, :discount_type, :discount_percentage, :discount_amount, :discount_quantity, :duration_type, :duration_month, :valid_till, :max_redemptions, :status, :apply_discount_on, :apply_on, :plan_constraint, :addon_constraint, :created_at, :archived_at, :plan_ids, :addon_ids, :redemptions, :invoice_notes, :meta_data # OPERATIONS #----------- def self.create(params, env=nil, headers={}) Request.send('post', uri_path("coupons"), params, env, headers) end def self.list(params={}, env=nil, headers={}) Request.send('get', uri_path("coupons"), params, env, headers) end def self.retrieve(id, env=nil, headers={}) Request.send('get', uri_path("coupons",id.to_s), {}, env, headers) end end # ~Coupon end # ~ChargeBee
Version data entries
8 entries across 8 versions & 1 rubygems