Sha256: cf60df590939906184006f6884fc0f86b0cf465b5b269fc22b07a411c68d8ff0
Contents?: true
Size: 780 Bytes
Versions: 6
Compression:
Stored size: 780 Bytes
Contents
module Cart def web_cart_text(session_key, options={}) options.merge!({:basic_auth => @auth}) self.class.get(base_api_endpoint("Web/Cart/#{session_key}/Messages?messageTypes=#{ENV['WEB_CART_TEXT']}&savedCart=false"), options) end def order_confirm_text(session_key, options={}) options.merge!({:basic_auth => @auth}) self.class.get(base_api_endpoint("Web/Cart/#{session_key}?messageTypes=#{ENV['ORDER_CONFIRM_TEXT']}&savedCart=true"), options) end def change_mode_of_sale(session_key, code, options={}) parameters = { 'ModeOfSaleId': code } options.merge!({:basic_auth => @auth}) options.merge!(:body => parameters) self.class.put(base_api_endpoint("Web/Cart/#{session_key}/Properties"), options) end end
Version data entries
6 entries across 6 versions & 1 rubygems