Sha256: 98498abdae8b874a0d6aa7f173a8056a9bbf778887b5a8f28e4d98072a13aa1d

Contents?: true

Size: 1.05 KB

Versions: 13

Compression:

Stored size: 1.05 KB

Contents

module GoTransverseTractApi

  module Product

    class DiscountIdentifier

      class << self

        def find_all 
          GoTransverseTractApi.get_response_for(self)
        end

        #
        # @param {Long} eid
        # @param {String} query_scope (default: 'SHALLOW')
        #
        def find_by_eid eid, query_scope=nil
          GoTransverseTractApi.get_response_for(self, {eid: eid, queryScope: query_scope})
        end

        #
        # @param {Long} identifier
        # @param {String} query_scope (default: 'SHALLOW')
        #
        def find_by_identifier identifier, query_scope=nil
          GoTransverseTractApi.get_response_for(self, {identifier: identifier, queryScope: query_scope})
        end

        #
        # @param {Long} order_item_eid
        # @param {String} query_scope (default: 'SHALLOW')
        #
        def find_by_order_item_eid order_item_eid, query_scope=nil
          GoTransverseTractApi.get_response_for(self, {order_item_eid: order_item_eid, queryScope: query_scope})
        end

      end

    end

  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.7.4 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.7.3 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.7.2 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.7.1 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.7.0 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.6.7 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.6.6 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.6.5 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.6.4 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.6.3 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.6.2 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.6.1 lib/gotransverse-tract-api/product/discount_identifier.rb
gotransverse-tract-api-0.6.0 lib/gotransverse-tract-api/product/discount_identifier.rb