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