Sha256: b1b3c91d0ca74cd0b51b81240905941cf78715eb7c6c9d0619db8923a70c9780
Contents?: true
Size: 523 Bytes
Versions: 12
Compression:
Stored size: 523 Bytes
Contents
module PriceTypes def get_price_type(id, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/PriceTypes/#{id}"), options) JSON.parse(response.body) end def get_price_type_details(id, mode_of_sale, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/PriceTypes/Details?performanceIds=#{id}&modeOfSaleId=#{mode_of_sale}"), options) JSON.parse(response.body) end end
Version data entries
12 entries across 12 versions & 1 rubygems