Class: ShopifyAPI::Order
- Defined in:
- lib/shopify_api.rb
Instance Method Summary collapse
Methods included from Countable
Instance Method Details
#capture(amount = "") ⇒ Object
262 263 264 |
# File 'lib/shopify_api.rb', line 262 def capture(amount = "") Transaction.create(:amount => amount, :kind => "capture", :order_id => id) end |
#close ⇒ Object
254 |
# File 'lib/shopify_api.rb', line 254 def close; load_attributes_from_response(post(:close)); end |
#open ⇒ Object
256 |
# File 'lib/shopify_api.rb', line 256 def open; load_attributes_from_response(post(:open)); end |
#transactions ⇒ Object
258 259 260 |
# File 'lib/shopify_api.rb', line 258 def transactions Transaction.find(:all, :params => { :order_id => id }) end |