class MasterCard::API::Transfer::FundsTransfer

Public Class Methods

create(mapObj) click to toggle source
# File lib/mastercard/api/transfer/fundstransfer.rb, line 62
def self.create(mapObj)
    #
    #Creates object of type FundsTransfer
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [FundsTransfer] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("df44be87-afe6-46ac-b3e8-0eabb22cdbd2", FundsTransfer.new(mapObj))
end
readByID(id, criteria = nil) click to toggle source
# File lib/mastercard/api/transfer/fundstransfer.rb, line 82
def self.readByID(id, criteria = nil)
    #
    #Returns objects of type FundsTransfer by id and optional criteria
    #@param [String] id
    #@param [Dict] criteria
    #@return [FundsTransfer] object representing the response
    #@raise [APIException] an exception from the response status

    mapObj = FundsTransfer.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("7b183624-52d5-4a50-8e8f-0324963edaa0",FundsTransfer.new(mapObj))
end
readByReference(criteria) click to toggle source
# File lib/mastercard/api/transfer/fundstransfer.rb, line 112
def self.readByReference(criteria)
    #
    #Query objects of type FundsTransfer by id and optional criteria
    #@param [Dict] criteria
    #@return [FundsTransfer] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("0145cfa0-d5b8-402c-b0f6-eea44180ff5f",FundsTransfer.new(criteria))
end

Protected Class Methods

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