Class: MasterCard::API::Spendcontrols::Budgetdecline

Inherits:
Core::Model::BaseObject
  • Object
show all
Includes:
Core::Model
Defined in:
lib/mastercard/api/spendcontrols/budgetdecline.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/budgetdecline.rb', line 78

def self.create(mapObj)
	#
	#Creates object of type Budgetdecline
	#
	#@param Dict mapObj, containing the required parameters to create a new object
	#@return [Budgetdecline] of the response of created instance.
	#@raise [APIException] an exception from the response status
	return self.execute("c8d552c9-7a9d-4669-87cd-0b7203bb3ac8", Budgetdecline.new(mapObj))
end

.query(criteria) ⇒ Object



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

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

	return self.execute("c576d61c-266f-49e7-8bce-5942540a7c94",Budgetdecline.new(criteria))
end