class MasterCard::API::MerchantRetailLocations::RetailUnitMerchants
Public Class Methods
getApiVersion()
click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitmerchants.rb, line 76 def self.getApiVersion return "0.0.1" end
query(criteria)
click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitmerchants.rb, line 88 def self.query(criteria) # #Query objects of type RetailUnitMerchants by id and optional criteria #@param type criteria #@return RetailUnitMerchants object representing the response. # obj = RetailUnitMerchants.new(criteria) return self.queryObject(obj) end
Public Instance Methods
getHeaderParams(action)
click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitmerchants.rb, line 52 def getHeaderParams(action) #Returns a list containing header params #@return list action = action.upcase if action == "QUERY" return [] end raise StandardError.new("Invalid action supplied: #{action.to_s}") end
getQueryParams(action)
click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitmerchants.rb, line 64 def getQueryParams(action) #Returns a list containing query params #@return list action = action.upcase if action == "QUERY" return ["PageOffset","PageLength","RetailUnitType","RetailUnitId","Period","Industry","StreetAddress","City","CountrySubdivision","PostalCode"] end raise StandardError.new("Invalid action supplied: #{action.to_s}") end
getResourcePath(action)
click to toggle source
# File lib/mastercard/api/merchantretaillocations/retailunitmerchants.rb, line 38 def getResourcePath(action) #Returns the resource path based on the action #@return str action = action.upcase if action == "QUERY" return "/upfront/v1/upfront/retailunitmerchants" end raise StandardError.new("Invalid action supplied: #{action.to_s}") end