Sha256: 80cecab0b51d886efb2e0b7ae8c8ef408fb7116c5944eeb061a93ce5f3efee32

Contents?: true

Size: 615 Bytes

Versions: 5

Compression:

Stored size: 615 Bytes

Contents

require "flex_commerce_api/api_base"
module FlexCommerce
  #
  # A flex commerce Promotion model
  #
  # This model provides access to the flex commerce promotion
  #
  class Promotion < FlexCommerceApi::ApiBase
    # This adds the ability to call archive method on Promotion
    # 
    # @usage FlexCommerce::Promotion.find(<id>).archive
    custom_endpoint :archive, on: :member, request_method: :patch

    # This adds the ability to call unarchive method on Promotion
    # 
    # @usage FlexCommerce::Promotion.find(<id>).unarchive
    custom_endpoint :unarchive, on: :member, request_method: :patch
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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