Class: Atrium::MerchantsApi
- Inherits:
-
Object
- Object
- Atrium::MerchantsApi
- Defined in:
- lib/atrium-ruby/api/merchants_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#initialize(api_client = ApiClient.default) ⇒ MerchantsApi
constructor
A new instance of MerchantsApi.
-
#list_merchant_locations(merchant_guid, opts = {}) ⇒ MerchantLocationsResponseBody
List merchant locations Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
-
#list_merchants(opts = {}) ⇒ MerchantsResponseBody
List merchants Returns a list of merchnants.
-
#read_merchant(merchant_guid, opts = {}) ⇒ MerchantResponseBody
Read merchant Returns information about a particular merchant, such as a logo, name, and website.
-
#read_merchant_location(merchant_guid, merchant_location_guid, opts = {}) ⇒ MerchantLocationResponseBody
Read merchant location Retuns a specific location associated with a merchant, including physical location, latitude, longitude, etc.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ MerchantsApi
Returns a new instance of MerchantsApi.
15 16 17 |
# File 'lib/atrium-ruby/api/merchants_api.rb', line 15 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
13 14 15 |
# File 'lib/atrium-ruby/api/merchants_api.rb', line 13 def api_client @api_client end |
Instance Method Details
#list_merchant_locations(merchant_guid, opts = {}) ⇒ MerchantLocationsResponseBody
List merchant locations Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
25 26 27 28 |
# File 'lib/atrium-ruby/api/merchants_api.rb', line 25 def list_merchant_locations(merchant_guid, opts = {}) data, _status_code, _headers = list_merchant_locations_with_http_info(merchant_guid, opts) data end |
#list_merchants(opts = {}) ⇒ MerchantsResponseBody
List merchants Returns a list of merchnants.
36 37 38 39 |
# File 'lib/atrium-ruby/api/merchants_api.rb', line 36 def list_merchants(opts = {}) data, _status_code, _headers = list_merchants_with_http_info(opts) data end |
#read_merchant(merchant_guid, opts = {}) ⇒ MerchantResponseBody
Read merchant Returns information about a particular merchant, such as a logo, name, and website.
46 47 48 49 |
# File 'lib/atrium-ruby/api/merchants_api.rb', line 46 def read_merchant(merchant_guid, opts = {}) data, _status_code, _headers = read_merchant_with_http_info(merchant_guid, opts) data end |
#read_merchant_location(merchant_guid, merchant_location_guid, opts = {}) ⇒ MerchantLocationResponseBody
Read merchant location Retuns a specific location associated with a merchant, including physical location, latitude, longitude, etc.
57 58 59 60 |
# File 'lib/atrium-ruby/api/merchants_api.rb', line 57 def read_merchant_location(merchant_guid, merchant_location_guid, opts = {}) data, _status_code, _headers = read_merchant_location_with_http_info(merchant_guid, merchant_location_guid, opts) data end |