Class: MasterCard::API::McOn::Benefits
- Inherits:
-
Core::Model::BaseObject
- Object
- Core::Model::BaseObject
- MasterCard::API::McOn::Benefits
- Includes:
- Core::Model
- Defined in:
- lib/mastercard/api/mcon/benefits.rb
Class Method Summary collapse
- .getAssignedBenefits(criteria) ⇒ Object
- .getBenefitDetail(criteria) ⇒ Object
- .getBenefits(criteria) ⇒ Object
- .getProgramTerms(criteria) ⇒ Object
- .selectBenefits(mapObj) ⇒ Object
- .userBenefitsRegistrationStatus(criteria) ⇒ Object
Class Method Details
.getAssignedBenefits(criteria) ⇒ Object
70 71 72 73 74 75 76 77 78 79 |
# 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) ⇒ Object
87 88 89 90 91 92 93 94 95 96 |
# 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) ⇒ Object
104 105 106 107 108 109 110 111 112 113 |
# 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) ⇒ Object
137 138 139 140 141 142 143 144 145 146 |
# 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) ⇒ Object
116 117 118 119 120 121 122 123 124 |
# 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) ⇒ Object
154 155 156 157 158 159 160 161 162 163 |
# 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 |