class MasterCard::API::Qkr::ExternalTrans

Public Class Methods

create(mapObj) click to toggle source
# File lib/mastercard/api/qkr/externaltrans.rb, line 63
def self.create(mapObj)
    #
    #Creates object of type ExternalTrans
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [ExternalTrans] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("d1b11885-c512-4a8b-af7c-ab8e3dcbd5bb", ExternalTrans.new(mapObj))
end
query(criteria) click to toggle source
# File lib/mastercard/api/qkr/externaltrans.rb, line 84
def self.query(criteria)
    #
    #Query objects of type ExternalTrans by id and optional criteria
    #@param [Dict] criteria
    #@return [ExternalTrans] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("33bf3d55-dff0-49bb-9235-140d9719f7d5",ExternalTrans.new(criteria))
end
read(id, criteria = nil) click to toggle source
# File lib/mastercard/api/qkr/externaltrans.rb, line 100
def self.read(id, criteria = nil)
    #
    #Returns objects of type ExternalTrans by id and optional criteria
    #@param [String] id
    #@param [Dict] criteria
    #@return [ExternalTrans] object representing the response
    #@raise [APIException] an exception from the response status

    mapObj = ExternalTrans.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("d1882de6-b0e9-4172-a3c0-a80e3337fdc4",ExternalTrans.new(mapObj))
end

Protected Class Methods

getOperationConfig(operationUUID) click to toggle source
# File lib/mastercard/api/qkr/externaltrans.rb, line 49
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/qkr/externaltrans.rb, line 56
def self.getOperationMetadata()
    return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
end

Public Instance Methods

update() click to toggle source
# File lib/mastercard/api/qkr/externaltrans.rb, line 126
def update
    #
    #Updates an object of type ExternalTrans
    #
    #@return [ExternalTrans] object representing the response.
    #@raise [APIException] an exception from the response status
    #
    return self.class.execute("c4db5e89-de63-441c-9cc1-2a48aa848e3a",self)
end