Class: Levelup::Endpoints::LocationMerchantFundedCredit
- Defined in:
- lib/levelup/endpoints/location_merchant_funded_credit.rb
Overview
The endpoint holding all functions relating to managing merchant-funded credit.
Instance Method Summary collapse
- #get(payment_token_data, merchant_access_token) ⇒ Object
-
#initialize(location_id) ⇒ LocationMerchantFundedCredit
constructor
A new instance of LocationMerchantFundedCredit.
Constructor Details
#initialize(location_id) ⇒ LocationMerchantFundedCredit
Returns a new instance of LocationMerchantFundedCredit.
5 6 7 |
# File 'lib/levelup/endpoints/location_merchant_funded_credit.rb', line 5 def initialize(location_id) @id = location_id end |
Instance Method Details
#get(payment_token_data, merchant_access_token) ⇒ Object
9 10 11 12 13 14 |
# 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 |