Sha256: 247e08e3bdc0f6a47e53e1b5afb1ab996b87f90d5f65207697e95acab5686b5d

Contents?: true

Size: 379 Bytes

Versions: 14

Compression:

Stored size: 379 Bytes

Contents

module ChargeBee
  class CouponCode < Model

  attr_accessor :code, :coupon_id, :coupon_set_name

  # OPERATIONS
  #-----------
    
  def self.create(params, env=nil)
    Request.send('post', "/coupon_codes", params, env)
  end    

  def self.retrieve(id, env=nil)
    Request.send('get', "/coupon_codes/#{id.to_s}", {}, env)
  end    

  end # ~CouponCode
end # ~ChargeBee    

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
chargebee-1.3.9 lib/chargebee/models/coupon_code.rb
chargebee-1.3.8 lib/chargebee/models/coupon_code.rb
chargebee-1.3.7 lib/chargebee/models/coupon_code.rb
chargebee-1.3.6 lib/chargebee/models/coupon_code.rb
chargebee-1.3.5 lib/chargebee/models/coupon_code.rb
chargebee-1.3.4 lib/chargebee/models/coupon_code.rb
chargebee-1.3.3 lib/chargebee/models/coupon_code.rb
chargebee-1.3.2 lib/chargebee/models/coupon_code.rb
chargebee-1.3.1 lib/chargebee/models/coupon_code.rb
chargebee-1.3.0 lib/chargebee/models/coupon_code.rb
chargebee-1.2.9 lib/chargebee/models/coupon_code.rb
chargebee-1.2.8 lib/chargebee/models/coupon_code.rb
chargebee-1.2.7 lib/chargebee/models/coupon_code.rb
chargebee-1.2.6 lib/chargebee/models/coupon_code.rb