Module: Mercadoshops::Core::Orders

Included in:
Api
Defined in:
lib/mercadoshops/core/orders.rb

Instance Method Summary collapse

Instance Method Details

#get_order(order_id) ⇒ Object



10
11
12
13
14
# File 'lib/mercadoshops/core/orders.rb', line 10

def get_order(order_id)
  filters.merge!({ access_token: @access_token })

  get_request("/shops/#{seller_id}/orders/#{order_id}", filters).body
end

#search_orders(seller_id, filters = {}) ⇒ Object



4
5
6
7
8
# File 'lib/mercadoshops/core/orders.rb', line 4

def search_orders(seller_id, filters={})
  filters.merge!({ access_token: @access_token })

  get_request("/shops/#{seller_id}/orders/search", filters).body
end