Module: PactasItero::Api::Orders
- Included in:
- PactasItero::Api
- Defined in:
- lib/pactas_itero/api/orders.rb
Instance Method Summary collapse
- #commit_order(order_id, options = {}) ⇒ Object
- #create_order(options = {}) ⇒ Object
- #order(order_id, options = {}) ⇒ Object
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, = {}) = .camelize_keys post "api/v1/orders/#{order_id}/commit", end |
#create_order(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/pactas_itero/api/orders.rb', line 6 def create_order( = {}) = .camelize_keys post "api/v1/orders", end |
#order(order_id, options = {}) ⇒ Object
11 12 13 |
# File 'lib/pactas_itero/api/orders.rb', line 11 def order(order_id, = {}) get "api/v1/orders/#{order_id}", end |