class MasterCard::API::Qkr::User
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/qkr/user.rb, line 63 def self.create(mapObj) # #Creates object of type User # #@param Dict mapObj, containing the required parameters to create a new object #@return [User] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("a5c612df-dcce-4b7a-889b-fe0479a60a7d", User.new(mapObj)) end
deleteById(id, map = nil)
click to toggle source
# File lib/mastercard/api/qkr/user.rb, line 82 def self.deleteById(id, map = nil) #Delete object of type User by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [User] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = User.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("5501e030-acd3-498c-aeea-f19bc78db843", mapObj) end
query(criteria)
click to toggle source
# File lib/mastercard/api/qkr/user.rb, line 127 def self.query(criteria) # #Query objects of type User by id and optional criteria #@param [Dict] criteria #@return [User] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("eaf5ebe4-5582-49f0-9f56-f0c74e4dea44",User.new(criteria)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/qkr/user.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/user.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
delete()
click to toggle source
# File lib/mastercard/api/qkr/user.rb, line 107 def delete # #Delete object of type User #@param [String] id #@return [User] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("5501e030-acd3-498c-aeea-f19bc78db843", self) end
update()
click to toggle source
# File lib/mastercard/api/qkr/user.rb, line 140 def update # #Updates an object of type User # #@return [User] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("ea202c1d-a575-498c-bc46-1712c0d0ac47",self) end