Class: MasterCard::API::McOn::Benefits

Inherits:
Core::Model::BaseObject
  • Object
show all
Includes:
Core::Model
Defined in:
lib/mastercard/api/mcon/benefits.rb

Class Method Summary collapse

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("b25744fe-d95a-42fb-8a3f-640c02f1b16f",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("471fb7f6-4b7e-4a8c-8206-bebb4e70268f",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("3b6b4fdb-182b-46b5-95cd-7cc21094e838",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("b59fb736-cdd1-4977-bdb9-e4c1c0f4136c",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("1ff7ecdf-dc11-46db-973e-f1cce4030b7d", 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("f8d996d5-10f4-4dd3-af53-a0d6ecbc49fc",Benefits.new(criteria))
end