class MasterCard::API::Spendalerts::Controls
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/spendalerts/controls.rb, line 122 def self.create(mapObj) # #Creates object of type Controls # #@param Dict mapObj, containing the required parameters to create a new object #@return [Controls] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("9b37b997-0fe3-4855-9964-2ea9c8833f83", Controls.new(mapObj)) end
deleteById(id, map = nil)
click to toggle source
# File lib/mastercard/api/spendalerts/controls.rb, line 65 def self.deleteById(id, map = nil) #Delete object of type Controls by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [Controls] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = Controls.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("a2fa3dd1-d155-4236-ae68-16281f194d6e", mapObj) end
query(criteria)
click to toggle source
# File lib/mastercard/api/spendalerts/controls.rb, line 110 def self.query(criteria) # #Query objects of type Controls by id and optional criteria #@param [Dict] criteria #@return [Controls] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("cc41d5bd-0234-482f-9379-495567ce2d69",Controls.new(criteria)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/spendalerts/controls.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/spendalerts/controls.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
Public Instance Methods
delete()
click to toggle source
# File lib/mastercard/api/spendalerts/controls.rb, line 90 def delete # #Delete object of type Controls #@param [String] id #@return [Controls] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("a2fa3dd1-d155-4236-ae68-16281f194d6e", self) end