Sha256: 2d7b1778a8d5dda51a140ab7bc823a60b5d10bc45973a1344f977b862a921fa4

Contents?: true

Size: 987 Bytes

Versions: 1

Compression:

Stored size: 987 Bytes

Contents

module GoTransverseTractApi

  module Product

    class DiscountIdentifier

      class << self

        #
        # @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

1 entries across 1 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.5.3 lib/gotransverse-tract-api/product/discount_identifier.rb