Class: Starling::Resources::MerchantLocationResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/starling/resources/merchant_location_resource.rb

Overview

A resource representing a Merchant Location returned from the Merchant Locations API

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Starling::Resources::BaseResource

Instance Method Details

#location_nameString

Returns the name of the merchant location.

Returns:

  • (String)

    the name of the merchant location



21
22
23
# File 'lib/starling/resources/merchant_location_resource.rb', line 21

def location_name
  parsed_data['locationName']
end

#mastercard_merchant_category_codeInteger, Fixnum

Returns the MasterCard merchant category code - see here for details.

Returns:

  • (Integer, Fixnum)

    the MasterCard merchant category code - see here for details



28
29
30
# File 'lib/starling/resources/merchant_location_resource.rb', line 28

def mastercard_merchant_category_code
  parsed_data['mastercardMerchantCategoryCode']
end

#merchant_location_uidString

Returns the Starling internal ID of the merchant location.

Returns:

  • (String)

    the Starling internal ID of the merchant location



11
12
13
# File 'lib/starling/resources/merchant_location_resource.rb', line 11

def merchant_location_uid
  parsed_data['merchantLocationUid']
end

#merchant_nameString

Returns the name of the merchant.

Returns:

  • (String)

    the name of the merchant



16
17
18
# File 'lib/starling/resources/merchant_location_resource.rb', line 16

def merchant_name
  parsed_data['merchantName']
end

#merchant_uidString

Returns the Starling internal ID of the merchant.

Returns:

  • (String)

    the Starling internal ID of the merchant



6
7
8
# File 'lib/starling/resources/merchant_location_resource.rb', line 6

def merchant_uid
  parsed_data['merchantUid']
end