class Starling::Resources::MerchantLocationResource
A resource representing a Merchant Location returned from the Merchant Locations API
Public Instance Methods
location_name()
click to toggle source
@return [String] the name of the merchant location
# File lib/starling/resources/merchant_location_resource.rb, line 21 def location_name parsed_data['locationName'] end
mastercard_merchant_category_code()
click to toggle source
@return [Integer, Fixnum] the MasterCard merchant category code - see
{https://www.mastercard.us/content/dam/mccom/en-us/docments/rules/quick-reference-booklet-me-nov_2015.pdf here} for details
# File lib/starling/resources/merchant_location_resource.rb, line 28 def mastercard_merchant_category_code parsed_data['mastercardMerchantCategoryCode'] end
merchant_location_uid()
click to toggle source
@return [String] the Starling
internal ID of the merchant location
# File lib/starling/resources/merchant_location_resource.rb, line 11 def merchant_location_uid parsed_data['merchantLocationUid'] end
merchant_name()
click to toggle source
@return [String] the name of the merchant
# File lib/starling/resources/merchant_location_resource.rb, line 16 def merchant_name parsed_data['merchantName'] end
merchant_uid()
click to toggle source
@return [String] the Starling
internal ID of the merchant
# File lib/starling/resources/merchant_location_resource.rb, line 6 def merchant_uid parsed_data['merchantUid'] end