Sha256: e3bda0e5de6506bf85e1a4fc0699c7f2e094e074c2fdf596e95026943e6ac1c1

Contents?: true

Size: 429 Bytes

Versions: 5

Compression:

Stored size: 429 Bytes

Contents

require "flex_commerce_api/api_base"
module FlexCommerce
  #
  # A flex commerce Coupon model
  #
  # A coupon can be created with a cart id the path
  #
  # It is used much like an active record model.
  #
  # Examples:
  #
  # FlexCommerce::Coupon.create(coupon_code: "coupon1", path: { cart_id: current_cart.id })
  #
  class Coupon < FlexCommerceApi::ApiBase
    belongs_to :cart, class_name: "FlexCommerce::Cart"

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flex_commerce_api-0.8.3 app/models/coupon.rb
flex_commerce_api-0.8.2 app/models/coupon.rb
flex_commerce_api-0.8.1 app/models/coupon.rb
flex_commerce_api-0.7 app/models/coupon.rb
flex_commerce_api-0.6.57 app/models/coupon.rb