module GoTransverseTractApi module Product class ProductPrice # # @param {Long} eid # @param {Hash} options # def self.find_by_eid eid, options={} return nil unless eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} product_eid # @param {Hash} options # def self.find_by_product_eid product_eid, options={} return nil unless product_eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {DateTime} from_date # @param {Hash} options # def self.find_from_date from_date, options={} return nil unless from_date.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({from_date: from_date}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {DateTime} thru_date # @param {Hash} options # def self.find_thru_date thru_date, options={} return nil unless thru_date.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({thru_date: thru_date}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} price_list_eid # @param {Hash} options # def self.find_by_price_list_eid price_list_eid, options={} return nil unless price_list_eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_eid: price_list_eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Boolean} price_list_is_master # @param {Hash} options # def self.find_by_price_list_is_master price_list_is_master, options={} return nil unless price_list_is_master.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({price_list_is_master: price_list_is_master}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {String} currency_type # @param {Hash} options # def self.find_by_currency_type currency_type, options={} return nil unless currency_type.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options) GoTransverseTractApi.get_response_for(self, params) end end end end