Class: Starling::Services::MerchantLocationsService
- Inherits:
-
BaseService
- Object
- BaseService
- Starling::Services::MerchantLocationsService
- Defined in:
- lib/starling/services/merchant_locations_service.rb
Overview
A service for accessing the Merchant API’s Get Location endpoint
Instance Method Summary collapse
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Starling::Services::BaseService
Instance Method Details
#get(merchant_id, merchant_location_id, params: {}, headers: {}) ⇒ Resources::MerchantLocationResource
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/starling/services/merchant_locations_service.rb', line 16 def get(merchant_id, merchant_location_id, params: {}, headers: {}) response = api_service.make_request( :get, "/merchants/#{merchant_id}/locations/#{merchant_location_id}", params: params, headers: headers ) resource.new(response: response) end |