class Levelup::Endpoints::LocationMerchantFundedCredit

The endpoint holding all functions relating to managing merchant-funded credit.

Public Class Methods

new(location_id) click to toggle source
# File lib/levelup/endpoints/location_merchant_funded_credit.rb, line 5
def initialize(location_id)
  @id = location_id
end

Public Instance Methods

get(payment_token_data, merchant_access_token) click to toggle source
# File lib/levelup/endpoints/location_merchant_funded_credit.rb, line 9
def get(payment_token_data, merchant_access_token)
  @payment_token_data = payment_token_data
  Requests::GetLocationMerchantFundedCredit.new(
      merchant_access_token: merchant_access_token).
    send_to_api :get, endpoint_path
end

Private Instance Methods

path() click to toggle source
# File lib/levelup/endpoints/location_merchant_funded_credit.rb, line 18
def path
  "locations/#{@id}/merchant_funded_credit?payment_token_data=#{@payment_token_data}"
end