class Levelup::Requests::AuthenticateMerchant
Represents a request to generate a merchant access token.
Attributes
api_key[RW]
Your merchant's API key (accepts app API key as well)
password[RW]
Your merchant account's password
username[RW]
The username used to log into your merchant account
Public Instance Methods
auth_type()
click to toggle source
# File lib/levelup/requests/authenticate_merchant.rb, line 12 def auth_type :none end
body()
click to toggle source
# File lib/levelup/requests/authenticate_merchant.rb, line 16 def body { access_token: to_hash } end
response_from_hash(hash)
click to toggle source
# File lib/levelup/requests/authenticate_merchant.rb, line 20 def response_from_hash(hash) Responses::Success.new(hash['access_token']) end