class MasterCard::API::Spendcontrols::Budgetalert
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/spendcontrols/budgetalert.rb, line 78 def self.create(mapObj) # #Creates object of type Budgetalert # #@param Dict mapObj, containing the required parameters to create a new object #@return [Budgetalert] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("e00f560e-d7e7-4dfd-b9c3-5f34090a0bf7", Budgetalert.new(mapObj)) end
query(criteria)
click to toggle source
# File lib/mastercard/api/spendcontrols/budgetalert.rb, line 66 def self.query(criteria) # #Query objects of type Budgetalert by id and optional criteria #@param [Dict] criteria #@return [Budgetalert] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("9201dbae-1503-4b1b-be2c-8c7807647478",Budgetalert.new(criteria)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/spendcontrols/budgetalert.rb, line 47 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/budgetalert.rb, line 54 def self.getOperationMetadata() return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride()) end