class MasterCard::API::Spendcontrols::Budgetdecline
Public Class Methods
create(mapObj)
click to toggle source
# 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)
click to toggle source
# 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
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/spendcontrols/budgetdecline.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/budgetdecline.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