Class: Tray::Checkout::Account

Inherits:
BaseService show all
Defined in:
lib/tray/checkout/account.rb

Instance Method Summary collapse

Instance Method Details

#api_urlObject



5
6
7
# File 'lib/tray/checkout/account.rb', line 5

def api_url
  "#{Tray::Checkout.api_url}/api/people/"
end

#get_by_token(token) ⇒ Object



9
10
11
# File 'lib/tray/checkout/account.rb', line 9

def get_by_token(token)
  request("get_seller_or_company", { token_account: token || Tray::Checkout:: })
end