Sha256: 730a60036cff8fd51c4ee8355f4eaf8bf44103a456b4a5b73d65cca77e49a597
Contents?: true
Size: 927 Bytes
Versions: 1
Compression:
Stored size: 927 Bytes
Contents
module Spree module API class Client module Orders def orders(options={}) get('orders', options)['orders'] end def order(order_number, options={}) get("orders/#{order_number}", options) end def create_order(options={}) post("orders", options) end def update_order_address(order_number, options={}) put("orders/#{order_number}/address", options) end def set_order_shipping_method(order_number, shipping_method_id, options={}) order_options = (options[:order] || {}).merge(:shipping_method_id => shipping_method_id) put("orders/#{order_number}", options.merge(order: order_options)) end def empty_order(order_number, options={}) put("orders/#{order_number}/empty", options) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree-api-client-0.0.2 | lib/spree-api-client/orders.rb |