class MasterCard::API::Crossborder::RetrievePayment

Public Class Methods

readByID(id, criteria = nil) click to toggle source
# File lib/mastercard/api/crossborder/retrievepayment.rb, line 65
def self.readByID(id, criteria = nil)
    #
    #Returns objects of type RetrievePayment by id and optional criteria
    #@param [String] id
    #@param [Dict] criteria
    #@return [RetrievePayment] object representing the response
    #@raise [APIException] an exception from the response status

    mapObj = RetrievePayment.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("cb5be22f-cd94-4c35-9d1f-15ed9bd57742",RetrievePayment.new(mapObj))
end
readByReference(criteria) click to toggle source
# File lib/mastercard/api/crossborder/retrievepayment.rb, line 95
def self.readByReference(criteria)
    #
    #Query objects of type RetrievePayment by id and optional criteria
    #@param [Dict] criteria
    #@return [RetrievePayment] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("19f56957-43e4-4569-a116-b770cbce6d20",RetrievePayment.new(criteria))
end

Protected Class Methods

getOperationConfig(operationUUID) click to toggle source
# File lib/mastercard/api/crossborder/retrievepayment.rb, line 47
def self.getOperationConfig(operationUUID)
    if @__store.key?(operationUUID)
        return @__store[operationUUID]
    end
    raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
end
getOperationMetadata() click to toggle source
# File lib/mastercard/api/crossborder/retrievepayment.rb, line 54
def self.getOperationMetadata()
    return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
end