class MasterCard::API::McOn::Benefits
Public Class Methods
getAssignedBenefits(criteria)
click to toggle source
# File lib/mastercard/api/mcon/benefits.rb, line 70 def self.getAssignedBenefits(criteria) # #Query objects of type Benefits by id and optional criteria #@param [Dict] criteria #@return [Benefits] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("23aa63ec-82a4-4135-bde2-7f90dc27ebdf",Benefits.new(criteria)) end
getBenefitDetail(criteria)
click to toggle source
# File lib/mastercard/api/mcon/benefits.rb, line 87 def self.getBenefitDetail(criteria) # #Query objects of type Benefits by id and optional criteria #@param [Dict] criteria #@return [Benefits] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("da6073ef-5bb2-4feb-ad63-05b118f76205",Benefits.new(criteria)) end
getBenefits(criteria)
click to toggle source
# File lib/mastercard/api/mcon/benefits.rb, line 104 def self.getBenefits(criteria) # #Query objects of type Benefits by id and optional criteria #@param [Dict] criteria #@return [Benefits] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("c501d04f-0914-46be-a385-f8811487604f",Benefits.new(criteria)) end
getProgramTerms(criteria)
click to toggle source
# File lib/mastercard/api/mcon/benefits.rb, line 137 def self.getProgramTerms(criteria) # #Query objects of type Benefits by id and optional criteria #@param [Dict] criteria #@return [Benefits] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("6bd3a165-8714-4d48-b3d8-dc921330b37a",Benefits.new(criteria)) end
selectBenefits(mapObj)
click to toggle source
# File lib/mastercard/api/mcon/benefits.rb, line 116 def self.selectBenefits(mapObj) # #Creates object of type Benefits # #@param Dict mapObj, containing the required parameters to create a new object #@return [Benefits] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("b0b687dc-88eb-4ad5-82b8-434ce76ac3d0", Benefits.new(mapObj)) end
userBenefitsRegistrationStatus(criteria)
click to toggle source
# File lib/mastercard/api/mcon/benefits.rb, line 154 def self.userBenefitsRegistrationStatus(criteria) # #Query objects of type Benefits by id and optional criteria #@param [Dict] criteria #@return [Benefits] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("f234385e-e12b-4d76-b217-7fc2a5123d95",Benefits.new(criteria)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/mcon/benefits.rb, line 51 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/mcon/benefits.rb, line 58 def self.getOperationMetadata() return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride()) end