Module: Levelup::Templates::MerchantAndUserAuthenticated

Included in:
Requests::CreateOrder
Defined in:
lib/levelup/templates/merchant_and_user_authenticated.rb

Overview

A template to apply to any requests requiring both merchant and user authentication. 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.



7
8
9
# File 'lib/levelup/templates/merchant_and_user_authenticated.rb', line 7

def merchant_access_token
  @merchant_access_token
end

#user_access_tokenObject

An access token for a user that has granted you ‘create_orders’ permissions.



9
10
11
# File 'lib/levelup/templates/merchant_and_user_authenticated.rb', line 9

def user_access_token
  @user_access_token
end

Instance Method Details

#auth_typeObject



11
12
13
# File 'lib/levelup/templates/merchant_and_user_authenticated.rb', line 11

def auth_type
  :merchant_and_user
end