Class: Levelup::Endpoints::MerchantFundedCredits

Inherits:
Base
  • Object
show all
Defined in:
lib/levelup/endpoints/merchant_funded_credits.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#give(give_credit_request) ⇒ Object



6
7
8
9
10
# File 'lib/levelup/endpoints/merchant_funded_credits.rb', line 6

def give(give_credit_request)
  request = build_request(give_credit_request,
    Requests::GiveMerchantCredit)
  request.send_to_api(:post, endpoint_path)
end