Module: PriceTypes
- Included in:
- TessituraRest
- Defined in:
- lib/tessitura_rest/txn/price_types.rb
Instance Method Summary collapse
- #get_price_type(id, options = {}) ⇒ Object
- #get_price_type_details(id, mode_of_sale, options = {}) ⇒ Object
Instance Method Details
#get_price_type(id, options = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/tessitura_rest/txn/price_types.rb', line 3 def get_price_type(id, ={}) .merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/PriceTypes/#{id}"), ) JSON.parse(response.body) end |
#get_price_type_details(id, mode_of_sale, options = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/tessitura_rest/txn/price_types.rb', line 9 def get_price_type_details(id, mode_of_sale, ={}) .merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/PriceTypes/Details?performanceIds=#{id}&modeOfSaleId=#{mode_of_sale}"), ) JSON.parse(response.body) end |