class MasterCard::API::Qkr::UserSession

Public Class Methods

create(mapObj) click to toggle source
# File lib/mastercard/api/qkr/usersession.rb, line 61
def self.create(mapObj)
    #
    #Creates object of type UserSession
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [UserSession] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("a8a503bc-a747-474c-bfd4-0f7bf757b471", UserSession.new(mapObj))
end
deleteById(id, map = nil) click to toggle source
# File lib/mastercard/api/qkr/usersession.rb, line 80
def self.deleteById(id, map = nil)
    #Delete object of type UserSession by id

    #@param [String] id
    #@param [Dict] map, containing additional parameters
    #@return [UserSession] of the response of the deleted instance.
    #@raise [APIException] an exception from the response status


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

    return self.execute("f129a727-4265-44e2-8c67-1e0e8381040c", mapObj)
end

Protected Class Methods

getOperationConfig(operationUUID) click to toggle source
# File lib/mastercard/api/qkr/usersession.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/qkr/usersession.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

Public Instance Methods

delete() click to toggle source
# File lib/mastercard/api/qkr/usersession.rb, line 105
def delete
    #
    #Delete object of type UserSession

    #@param [String] id
    #@return [UserSession] of the response of the deleted instance.
    #@raise [APIException] an exception from the response status
    #

    return self.class.execute("f129a727-4265-44e2-8c67-1e0e8381040c", self)
end