Class: MasterCard::API::Spendcontrols::BudgetdeclinewithbudgetId
- Inherits:
-
Core::Model::BaseObject
- Object
- Core::Model::BaseObject
- MasterCard::API::Spendcontrols::BudgetdeclinewithbudgetId
- Includes:
- Core::Model
- Defined in:
- lib/mastercard/api/spendcontrols/budgetdeclinewithbudgetid.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create(mapObj) ⇒ Object
134 135 136 137 138 139 140 141 142 |
# File 'lib/mastercard/api/spendcontrols/budgetdeclinewithbudgetid.rb', line 134 def self.create(mapObj) # #Creates object of type BudgetdeclinewithbudgetId # #@param Dict mapObj, containing the required parameters to create a new object #@return [BudgetdeclinewithbudgetId] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("bfadcc8f-6bf9-4dba-9ecf-637564fbe8e2", BudgetdeclinewithbudgetId.new(mapObj)) end |
.deleteById(id, map = nil) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/mastercard/api/spendcontrols/budgetdeclinewithbudgetid.rb', line 65 def self.deleteById(id, map = nil) #Delete object of type BudgetdeclinewithbudgetId by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [BudgetdeclinewithbudgetId] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = BudgetdeclinewithbudgetId.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("f55a2eaa-e569-4577-bb30-61643cf12cda", mapObj) end |
.read(id, criteria = nil) ⇒ Object
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/mastercard/api/spendcontrols/budgetdeclinewithbudgetid.rb', line 109 def self.read(id, criteria = nil) # #Returns objects of type BudgetdeclinewithbudgetId by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [BudgetdeclinewithbudgetId] object representing the response #@raise [APIException] an exception from the response status mapObj = BudgetdeclinewithbudgetId.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("2d9379d5-19c9-4953-ab73-1893c98d8ea4",BudgetdeclinewithbudgetId.new(mapObj)) end |
Instance Method Details
#delete ⇒ Object
90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/mastercard/api/spendcontrols/budgetdeclinewithbudgetid.rb', line 90 def delete # #Delete object of type BudgetdeclinewithbudgetId #@param [String] id #@return [BudgetdeclinewithbudgetId] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("f55a2eaa-e569-4577-bb30-61643cf12cda", self) end |