Class: MasterCard::API::Spendcontrols::Combinationctrlsalertresource

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

Class Method Summary collapse

Class Method Details

.create(mapObj) ⇒ Object



78
79
80
81
82
83
84
85
86
# File 'lib/mastercard/api/spendcontrols/combinationctrlsalertresource.rb', line 78

def self.create(mapObj)
	#
	#Creates object of type Combinationctrlsalertresource
	#
	#@param Dict mapObj, containing the required parameters to create a new object
	#@return [Combinationctrlsalertresource] of the response of created instance.
	#@raise [APIException] an exception from the response status
	return self.execute("97a166fe-e3be-4478-bd82-67c12af4fb83", Combinationctrlsalertresource.new(mapObj))
end

.query(criteria) ⇒ Object



66
67
68
69
70
71
72
73
74
75
# File 'lib/mastercard/api/spendcontrols/combinationctrlsalertresource.rb', line 66

def self.query(criteria)
	#
	#Query objects of type Combinationctrlsalertresource by id and optional criteria
	#@param [Dict] criteria
	#@return [Combinationctrlsalertresource] object representing the response.
	#@raise [APIException] an exception from the response status
	#

	return self.execute("a4bc0cd2-b416-4a8f-88c4-c063a571a413",Combinationctrlsalertresource.new(criteria))
end