Module: PactasItero::Api::Orders

Included in:
PactasItero::Api
Defined in:
lib/pactas_itero/api/orders.rb

Instance Method Summary collapse

Instance Method Details

#commit_order(order_id, options = {}) ⇒ Object



15
16
17
18
# File 'lib/pactas_itero/api/orders.rb', line 15

def commit_order(order_id, options = {})
  options = options.camelize_keys
  post "api/v1/orders/#{order_id}/commit", options
end

#create_order(options = {}) ⇒ Object



6
7
8
9
# File 'lib/pactas_itero/api/orders.rb', line 6

def create_order(options = {})
  options = options.camelize_keys
  post "api/v1/orders", options
end

#order(order_id, options = {}) ⇒ Object



11
12
13
# File 'lib/pactas_itero/api/orders.rb', line 11

def order(order_id, options = {})
  get "api/v1/orders/#{order_id}", options
end