Module: Epages::REST::Orders
Instance Method Summary collapse
-
#order(order, options = {}) ⇒ Object
implements the calls in developer.epages.com/apps/api-reference/get-shops-shopid-orders-orderid.html.
-
#orders(options = {}) ⇒ Object
implements the calls in developer.epages.com/apps/api-reference/get-shops-shopid-orders.html.
-
#update_order(order, options = {}, locale = 'en_GB') ⇒ Object
implements the calls in developer.epages.com/apps/api-reference/patch-shops-shopid-orders-orderid.html.
Methods included from Utils
#epages_id, #format_date, #format_dates_options, #parse_legal_info, #parse_links, #parse_price_info, #parse_product_lowest_price, #parse_product_variations, #parse_suggestions_to_products, #parse_variation_object, #parse_variations, #perform_delete_request, #perform_delete_with_object, #perform_get_request, #perform_get_with_key_and_objects, #perform_get_with_object, #perform_get_with_objects, #perform_multipart_post_with_objects, #perform_patch_with_object, #perform_post_request, #perform_post_with_key_and_objects, #perform_post_with_object, #perform_post_with_objects, #perform_put_request, #perform_put_with_object, #perform_request, #perform_request_with_key_and_objects, #perform_request_with_object, #perform_request_with_objects, #process_thread
Instance Method Details
#order(order, options = {}) ⇒ Object
implements the calls in developer.epages.com/apps/api-reference/get-shops-shopid-orders-orderid.html
15 16 17 18 |
# File 'lib/epages/rest/orders.rb', line 15 def order(order, = {}) id = epages_id(order) perform_get_with_object("/orders/#{id}", , Epages::Order) end |
#orders(options = {}) ⇒ Object
implements the calls in developer.epages.com/apps/api-reference/get-shops-shopid-orders.html
10 11 12 |
# File 'lib/epages/rest/orders.rb', line 10 def orders( = {}) perform_get_with_object('/orders', , Epages::OrdersResponse) end |
#update_order(order, options = {}, locale = 'en_GB') ⇒ Object
implements the calls in developer.epages.com/apps/api-reference/patch-shops-shopid-orders-orderid.html
21 22 23 24 |
# File 'lib/epages/rest/orders.rb', line 21 def update_order(order, = {}, locale = 'en_GB') id = epages_id(order) perform_patch_with_object("/orders/#{id}?locale=#{locale}", , Epages::Order) end |