Class: Levelup::Endpoints::LocationOrders
- Defined in:
- lib/levelup/endpoints/location_orders.rb
Overview
The endpoint holding all functions relating to orders for a specific location. This is a v14 endpoint and should not be expected to remain functional indefinitely.
Instance Method Summary collapse
-
#initialize(location_id) ⇒ LocationOrders
constructor
A new instance of LocationOrders.
-
#list(merchant_access_token) ⇒ Object
Gets a list of orders made at this location.
Constructor Details
#initialize(location_id) ⇒ LocationOrders
Returns a new instance of LocationOrders.
6 7 8 |
# File 'lib/levelup/endpoints/location_orders.rb', line 6 def initialize(location_id) self.id = location_id end |
Instance Method Details
#list(merchant_access_token) ⇒ Object
Gets a list of orders made at this location. This list is paginated.
12 13 14 15 |
# File 'lib/levelup/endpoints/location_orders.rb', line 12 def list(merchant_access_token) Requests::ListOrders.new(merchant_access_token: merchant_access_token). send_to_api(:get, endpoint_path(:v14)) end |