class MasterCard::API::Qkr::Trans
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/qkr/trans.rb, line 63 def self.create(mapObj) # #Creates object of type Trans # #@param Dict mapObj, containing the required parameters to create a new object #@return [Trans] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("0435a905-880c-4713-860d-3045a28553b6", Trans.new(mapObj)) end
query(criteria)
click to toggle source
# File lib/mastercard/api/qkr/trans.rb, line 84 def self.query(criteria) # #Query objects of type Trans by id and optional criteria #@param [Dict] criteria #@return [Trans] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("25cf9283-158a-419f-9477-3acd9e753d01",Trans.new(criteria)) end
read(id, criteria = nil)
click to toggle source
# File lib/mastercard/api/qkr/trans.rb, line 100 def self.read(id, criteria = nil) # #Returns objects of type Trans by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [Trans] object representing the response #@raise [APIException] an exception from the response status mapObj = Trans.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("9ab6303a-4539-4319-93d8-ff45539d41e9",Trans.new(mapObj)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/qkr/trans.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/trans.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/trans.rb, line 126 def update # #Updates an object of type Trans # #@return [Trans] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("eafad4be-08bf-4257-bd8e-7c58cd38f766",self) end