class Levelup::Endpoints::MerchantOrders
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.
Attributes
id[RW]
Public Class Methods
new(merchant_id)
click to toggle source
# File lib/levelup/endpoints/merchant_orders.rb, line 6 def initialize(merchant_id) self.id = merchant_id end
Public Instance Methods
details(uuid, merchant_access_token)
click to toggle source
Provides merchant-facing details about a specific order. For more information about the parameters, @see Requests::CreateOrderDetails.
# 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
Private Instance Methods
path()
click to toggle source
# File lib/levelup/endpoints/merchant_orders.rb, line 21 def path "merchants/#{id}/orders" end