Class: Levelup::Endpoints::MerchantOrders
- Defined in:
- lib/levelup/endpoints/merchant_orders.rb
Overview
The endpoint holding all functions relating to a single merchant’s orders. This is a v14 endpoint and should not be expected to remain functional indefinitely.
Instance Method Summary collapse
-
#details(uuid, merchant_access_token) ⇒ Object
Provides merchant-facing details about a specific order.
-
#initialize(merchant_id) ⇒ MerchantOrders
constructor
A new instance of MerchantOrders.
Constructor Details
#initialize(merchant_id) ⇒ MerchantOrders
Returns a new instance of MerchantOrders.
6 7 8 |
# File 'lib/levelup/endpoints/merchant_orders.rb', line 6 def initialize(merchant_id) self.id = merchant_id end |
Instance Method Details
#details(uuid, merchant_access_token) ⇒ Object
Provides merchant-facing details about a specific order. For more information about the parameters, @see Requests::CreateOrderDetails.
12 13 14 15 |
# File 'lib/levelup/endpoints/merchant_orders.rb', line 12 def details(uuid, merchant_access_token) Requests::CreateOrderDetails.new(merchant_access_token: merchant_access_token). send_to_api(:get, endpoint_path(:v14) + "/#{uuid}") end |