Class: MasterCard::API::McOn::Offers

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

Class Method Summary collapse

Class Method Details

.activateOffer(mapObj) ⇒ Object



89
90
91
92
93
94
95
96
97
# File 'lib/mastercard/api/mcon/offers.rb', line 89

def self.activateOffer(mapObj)
    #
    #Creates object of type Offers
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [Offers] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("a8ca9113-dc6f-4050-b593-e70e43f5e338", Offers.new(mapObj))
end

.favoriteOffer(mapObj) ⇒ Object



122
123
124
125
126
127
128
129
130
# File 'lib/mastercard/api/mcon/offers.rb', line 122

def self.favoriteOffer(mapObj)
    #
    #Creates object of type Offers
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [Offers] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("5f0d5b7d-83d3-4279-a9f7-92ad9953a5ff", Offers.new(mapObj))
end

.getOfferDetail(criteria) ⇒ Object



110
111
112
113
114
115
116
117
118
119
# File 'lib/mastercard/api/mcon/offers.rb', line 110

def self.getOfferDetail(criteria)
    #
    #Query objects of type Offers by id and optional criteria
    #@param [Dict] criteria
    #@return [Offers] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("9e1f807c-ef33-4fd6-87c5-87f6ccfe0f82",Offers.new(criteria))
end

.getOffers(criteria) ⇒ Object



77
78
79
80
81
82
83
84
85
86
# File 'lib/mastercard/api/mcon/offers.rb', line 77

def self.getOffers(criteria)
    #
    #Query objects of type Offers by id and optional criteria
    #@param [Dict] criteria
    #@return [Offers] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("5892b910-2ea7-4c98-8b09-77ae08c54a15",Offers.new(criteria))
end

.getPoints(criteria) ⇒ Object



225
226
227
228
229
230
231
232
233
234
# File 'lib/mastercard/api/mcon/offers.rb', line 225

def self.getPoints(criteria)
    #
    #Query objects of type Offers by id and optional criteria
    #@param [Dict] criteria
    #@return [Offers] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("cd7da981-da72-4720-9177-d82316c40088",Offers.new(criteria))
end

.getPointsExpiring(criteria) ⇒ Object



208
209
210
211
212
213
214
215
216
217
# File 'lib/mastercard/api/mcon/offers.rb', line 208

def self.getPointsExpiring(criteria)
    #
    #Query objects of type Offers by id and optional criteria
    #@param [Dict] criteria
    #@return [Offers] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("f3741d6d-1b72-4116-bba5-3c9e0a90c3df",Offers.new(criteria))
end

.getRedeemedOffers(criteria) ⇒ Object



191
192
193
194
195
196
197
198
199
200
# File 'lib/mastercard/api/mcon/offers.rb', line 191

def self.getRedeemedOffers(criteria)
    #
    #Query objects of type Offers by id and optional criteria
    #@param [Dict] criteria
    #@return [Offers] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("92c794bd-5e99-4619-9a0a-f280c9fc6d97",Offers.new(criteria))
end

.getVoucherDetail(criteria) ⇒ Object



276
277
278
279
280
281
282
283
284
285
# File 'lib/mastercard/api/mcon/offers.rb', line 276

def self.getVoucherDetail(criteria)
    #
    #Query objects of type Offers by id and optional criteria
    #@param [Dict] criteria
    #@return [Offers] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("058c47fb-6873-4a58-b396-9547aa4f076e",Offers.new(criteria))
end

.getVouchers(criteria) ⇒ Object



259
260
261
262
263
264
265
266
267
268
# File 'lib/mastercard/api/mcon/offers.rb', line 259

def self.getVouchers(criteria)
    #
    #Query objects of type Offers by id and optional criteria
    #@param [Dict] criteria
    #@return [Offers] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("557e5827-954c-427d-84dc-e3e74643201f",Offers.new(criteria))
end

.redeemOffer(mapObj) ⇒ Object



138
139
140
141
142
143
144
145
146
# File 'lib/mastercard/api/mcon/offers.rb', line 138

def self.redeemOffer(mapObj)
    #
    #Creates object of type Offers
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [Offers] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("2183962d-aba8-4f1d-b6cf-325f7192aa87", Offers.new(mapObj))
end

.submitOfferPromo(mapObj) ⇒ Object



170
171
172
173
174
175
176
177
178
# File 'lib/mastercard/api/mcon/offers.rb', line 170

def self.submitOfferPromo(mapObj)
    #
    #Creates object of type Offers
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [Offers] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("eb7846df-0f91-4fa6-a2c7-11b5bb153da0", Offers.new(mapObj))
end

.unfavoriteOffer(mapObj) ⇒ Object



154
155
156
157
158
159
160
161
162
# File 'lib/mastercard/api/mcon/offers.rb', line 154

def self.unfavoriteOffer(mapObj)
    #
    #Creates object of type Offers
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [Offers] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("fc6debb0-fc50-487e-91bd-2889eac11735", Offers.new(mapObj))
end

.userOffersRegistrationStatus(criteria) ⇒ Object



242
243
244
245
246
247
248
249
250
251
# File 'lib/mastercard/api/mcon/offers.rb', line 242

def self.userOffersRegistrationStatus(criteria)
    #
    #Query objects of type Offers by id and optional criteria
    #@param [Dict] criteria
    #@return [Offers] object representing the response.
    #@raise [APIException] an exception from the response status
    #

    return self.execute("42aec0d3-88ea-4b9f-ad85-fe2c28d7e30c",Offers.new(criteria))
end