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