lib/tessitura_rest/web/session.rb in tessitura_rest-0.2.4 vs lib/tessitura_rest/web/session.rb in tessitura_rest-0.2.5
- old
+ new
@@ -33,9 +33,14 @@
options.merge!(:body => parameters)
response = self.class.put(base_api_endpoint("Web/Session/#{key}/Expiration"), options)
JSON.parse(response.body)
end
+ def load_existing_order(key, order_id, options={})
+ options.merge!({:basic_auth => @auth})
+ self.class.post(base_api_endpoint("Web/Session/#{key}/LoadOrder/#{order_id}"), options)
+ end
+
def get_promotion(key, code, options={})
parameters =
{
'PromoCode': code
}