class MasterCard::API::McOn::Offers
Public Class Methods
activateOffer(mapObj)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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)
click to toggle source
# 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
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/mcon/offers.rb, line 58 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/offers.rb, line 65 def self.getOperationMetadata() return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride()) end