Class: MasterCard::API::Mastercom::Transactions

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

Class Method Summary collapse

Class Method Details

.retrieveAuthorizationDetail(id, criteria = nil) ⇒ Object



95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/mastercard/api/mastercom/transactions.rb', line 95

def self.retrieveAuthorizationDetail(id, criteria = nil)
    #
    #Returns objects of type Transactions by id and optional criteria
    #@param [String] id
    #@param [Dict] criteria
    #@return [Transactions] object representing the response
    #@raise [APIException] an exception from the response status

    mapObj = Transactions.new
    if !(id.nil? || id.to_s.empty?)
      mapObj.set("id", id)
    end
    if !criteria.nil?
        if criteria.instance_of? RequestMap
          mapObj.setAll(criteria.getObject())
        else
          mapObj.setAll(criteria)
        end
    end

    return self.execute("9393bd03-87e5-49c0-b931-a4e54dc8ae97",Transactions.new(mapObj))
end

.retrieveClearingDetail(id, criteria = nil) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/mastercard/api/mastercom/transactions.rb', line 66

def self.retrieveClearingDetail(id, criteria = nil)
    #
    #Returns objects of type Transactions by id and optional criteria
    #@param [String] id
    #@param [Dict] criteria
    #@return [Transactions] object representing the response
    #@raise [APIException] an exception from the response status

    mapObj = Transactions.new
    if !(id.nil? || id.to_s.empty?)
      mapObj.set("id", id)
    end
    if !criteria.nil?
        if criteria.instance_of? RequestMap
          mapObj.setAll(criteria.getObject())
        else
          mapObj.setAll(criteria)
        end
    end

    return self.execute("bcd043b0-9b77-4455-8ad4-2bf606703c84",Transactions.new(mapObj))
end

.searchForTransaction(mapObj) ⇒ Object



120
121
122
123
124
125
126
127
128
# File 'lib/mastercard/api/mastercom/transactions.rb', line 120

def self.searchForTransaction(mapObj)
    #
    #Creates object of type Transactions
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [Transactions] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("1d5ea60a-6b52-4e2b-993c-b66aa11dec90", Transactions.new(mapObj))
end