class MasterCard::API::Spendcontrols::Travelmarkeralert
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/spendcontrols/travelmarkeralert.rb, line 78 def self.create(mapObj) # #Creates object of type Travelmarkeralert # #@param Dict mapObj, containing the required parameters to create a new object #@return [Travelmarkeralert] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("4cee3443-16fd-424a-ab41-a8b712e42603", Travelmarkeralert.new(mapObj)) end
query(criteria)
click to toggle source
# File lib/mastercard/api/spendcontrols/travelmarkeralert.rb, line 66 def self.query(criteria) # #Query objects of type Travelmarkeralert by id and optional criteria #@param [Dict] criteria #@return [Travelmarkeralert] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("1beac202-4197-4ec3-bf83-fbb437ff4ac0",Travelmarkeralert.new(criteria)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/spendcontrols/travelmarkeralert.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/travelmarkeralert.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