lib/tessitura_rest/web/session.rb in tessitura_rest-0.4.2 vs lib/tessitura_rest/web/session.rb in tessitura_rest-0.4.3
- old
+ new
@@ -60,9 +60,15 @@
options.merge!(:body => parameters)
response = self.class.post(base_api_endpoint("Web/Session/#{key}/PromoCode"), options)
JSON.parse(response.body)
end
+ def get_renewals(key, season_id, renewal, mode_of_sale, options={})
+ options.merge!(basic_auth: @auth, headers: @headers)
+ response = self.class.get(base_api_endpoint("Web/Session/#{key}/Orders/Search?seasonId=#{season_id}&renewalsOnly=#{renewal}&modeOfSaleId=#{mode_of_sale}"), options)
+ JSON.parse(response.body)
+ end
+
def send_credentials(key, email, login_type, template_id, options={})
parameters =
{
'TemplateFormatId': template_id,
'LoginTypeId': login_type,