class MasterCard::API::Spendcontrols::Travelmarkerdecline
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/spendcontrols/travelmarkerdecline.rb, line 61 def self.create(mapObj) # #Creates object of type Travelmarkerdecline # #@param Dict mapObj, containing the required parameters to create a new object #@return [Travelmarkerdecline] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("f66979db-696e-45e6-b564-5bbb468c1ae1", Travelmarkerdecline.new(mapObj)) end
query(criteria)
click to toggle source
# File lib/mastercard/api/spendcontrols/travelmarkerdecline.rb, line 82 def self.query(criteria) # #Query objects of type Travelmarkerdecline by id and optional criteria #@param [Dict] criteria #@return [Travelmarkerdecline] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("1d943b2a-ef17-4222-be51-c8cd351ad025",Travelmarkerdecline.new(criteria)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/spendcontrols/travelmarkerdecline.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/travelmarkerdecline.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