Sha256: 789cb1de065f413f6934ecc45e2c1fe4b2123625f3d5d27f73b78e58f33279a7
Contents?: true
Size: 550 Bytes
Versions: 10
Compression:
Stored size: 550 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, source, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/PriceTypes/Details?performanceIds=#{id}&modeOfSaleId=#{mode_of_sale}&sourceId=#{source}"), options) JSON.parse(response.body) end end
Version data entries
10 entries across 10 versions & 1 rubygems