Class: MasterCard::API::McaidAnalytics::Merchants

Inherits:
Core::Model::BaseObject
  • Object
show all
Includes:
Core::Model
Defined in:
lib/mastercard/api/mcaidanalytics/merchants.rb

Class Method Summary collapse

Class Method Details

.getOperationConfig(uuid) ⇒ Object

Raises:

  • (NotImplementedError)


45
46
47
48
49
50
# File 'lib/mastercard/api/mcaidanalytics/merchants.rb', line 45

def self.getOperationConfig(uuid)
    if @__store.key?(uuid)
        return @__store[uuid]
    end
    raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
end

.getOperationMetadataObject



52
53
54
# File 'lib/mastercard/api/mcaidanalytics/merchants.rb', line 52

def self.()
    return .new(SDKConfig.getVersion(), SDKConfig.getHost())
end

.listByCriteria(criteria = nil) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/mastercard/api/mcaidanalytics/merchants.rb', line 60

def self.listByCriteria(criteria = nil)
    #
    #List objects of type Merchants
    #
    #@param Dict criteria
    #@return Array of Merchants object matching the criteria.

    if criteria.nil?
        return self.execute("3ddeb082-5b2c-4e3b-ad2a-3aedd1d13e33",Merchants.new)
    else
        return self.execute("3ddeb082-5b2c-4e3b-ad2a-3aedd1d13e33",Merchants.new(criteria))
    end
end