Sha256: c300a74c2b4f07b1eca21b66ec6af4efcf0afd1fe3ecfc00abe75da75c1737da

Contents?: true

Size: 1.11 KB

Versions: 24

Compression:

Stored size: 1.11 KB

Contents

module GoTransverseTractApi

  module Product

    class Discount < DiscountCategory

      class << self
        
        #
        # @param {String} type
        #
        def find_by_type type
          GoTransverseTractApi.get_response_for(self, {type: type})
        end

        #
        # @param {Long} discount_category_eid
        #
        def find_by_discount_category_eid discount_category_eid
          GoTransverseTractApi.get_response_for(self, {discount_category_eid: discount_category_eid})
        end
       
        #
        # @param {Boolean} one_time
        #
        def find_by_one_time one_time
          GoTransverseTractApi.get_response_for(self, {one_time: one_time})
        end

        #
        # @param {Boolean} recurring
        #
        def find_by_recurring recurring
          GoTransverseTractApi.get_response_for(self, {recurring: recurring})
        end

        #
        # @param {String} currency_type
        #
        def find_by_currency_type currency_type
          GoTransverseTractApi.get_response_for(self, {currency_type: currency_type})
        end

      end

    end

  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.5.2 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.5.1 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.5.0 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.4.3 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.4.2 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.4.1 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.4.0 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.3.4 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.3.3 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.3.2 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.3.1 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.3.0 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.2.5 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.2.4 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.2.3 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.2.2 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.2.1 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.2.0 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.1.12 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.1.11 lib/gotransverse-tract-api/product/discount.rb