Module: Levelup::Templates::MerchantAuthenticated

Included in:
Requests::GetOrder, Requests::GiveMerchantCredit, Requests::ListLocations, Requests::ListOrders, Requests::RefundOrder
Defined in:
lib/levelup/templates/merchant_authenticated.rb

Overview

A template to apply to any requests requiring v15 merchant authentication. If your request requires v14 merchant authentication, include this module and define auth_type as :merchant_v14.

Authentication template - only apply one authentication template per request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#merchant_access_tokenObject

An access token for a merchant that has granted you ‘manage_merchant_orders’ permissions.



12
13
14
# File 'lib/levelup/templates/merchant_authenticated.rb', line 12

def merchant_access_token
  @merchant_access_token
end

Instance Method Details

#auth_typeObject



14
15
16
# File 'lib/levelup/templates/merchant_authenticated.rb', line 14

def auth_type
  :merchant
end