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.1.10 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.1.9 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.1.8 lib/gotransverse-tract-api/product/discount.rb
gotransverse-tract-api-0.1.7 lib/gotransverse-tract-api/product/discount.rb