class MasterCard::API::Spendcontrols::CombinationctrlsalertresourcefilterId
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/spendcontrols/combinationctrlsalertresourcefilterid.rb, line 134 def self.create(mapObj) # #Creates object of type CombinationctrlsalertresourcefilterId # #@param Dict mapObj, containing the required parameters to create a new object #@return [CombinationctrlsalertresourcefilterId] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("a0495e0d-0f88-482e-997d-a2157d89962c", CombinationctrlsalertresourcefilterId.new(mapObj)) end
deleteById(id, map = nil)
click to toggle source
# File lib/mastercard/api/spendcontrols/combinationctrlsalertresourcefilterid.rb, line 65 def self.deleteById(id, map = nil) #Delete object of type CombinationctrlsalertresourcefilterId by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [CombinationctrlsalertresourcefilterId] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = CombinationctrlsalertresourcefilterId.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("3473f917-df86-439a-93ef-12a7226aef4c", mapObj) end
read(id, criteria = nil)
click to toggle source
# File lib/mastercard/api/spendcontrols/combinationctrlsalertresourcefilterid.rb, line 109 def self.read(id, criteria = nil) # #Returns objects of type CombinationctrlsalertresourcefilterId by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [CombinationctrlsalertresourcefilterId] object representing the response #@raise [APIException] an exception from the response status mapObj = CombinationctrlsalertresourcefilterId.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("05d02262-b531-4737-a2aa-672fd1eec41b",CombinationctrlsalertresourcefilterId.new(mapObj)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/spendcontrols/combinationctrlsalertresourcefilterid.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/spendcontrols/combinationctrlsalertresourcefilterid.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/spendcontrols/combinationctrlsalertresourcefilterid.rb, line 90 def delete # #Delete object of type CombinationctrlsalertresourcefilterId #@param [String] id #@return [CombinationctrlsalertresourcefilterId] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("3473f917-df86-439a-93ef-12a7226aef4c", self) end