Class: MasterCard::API::Qkr::UserSession

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(mapObj) ⇒ Object



61
62
63
64
65
66
67
68
69
# 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) ⇒ Object



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# 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

Instance Method Details

#deleteObject



105
106
107
108
109
110
111
112
113
114
115
# 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