class MasterCard::API::Moneysend::CardMapping
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/moneysend/cardmapping.rb, line 64 def self.create(mapObj) # #Creates object of type CardMapping # #@param Dict mapObj, containing the required parameters to create a new object #@return [CardMapping] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("d39dda38-e867-4d7f-93f8-658c2ece07e2", CardMapping.new(mapObj)) end
deleteById(id, map = nil)
click to toggle source
# File lib/mastercard/api/moneysend/cardmapping.rb, line 83 def self.deleteById(id, map = nil) #Delete object of type CardMapping by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [CardMapping] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = CardMapping.new if !(id.nil? || id.to_s.empty?) mapObj.set("id", id) end if !map.nil? if map.instance_of? RequestMap mapObj.setAll(map.getObject()) else mapObj.setAll(map) end end return self.execute("8ed8856e-5acc-477e-91ec-e8e42cfd4776", mapObj) end
Protected Class Methods
getOperationConfig(uuid)
click to toggle source
# File lib/mastercard/api/moneysend/cardmapping.rb, line 50 def self.getOperationConfig(uuid) if @__store.key?(uuid) return @__store[uuid] end raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid) end
getOperationMetadata()
click to toggle source
# File lib/mastercard/api/moneysend/cardmapping.rb, line 57 def self.getOperationMetadata() return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext()) end
Public Instance Methods
delete()
click to toggle source
# File lib/mastercard/api/moneysend/cardmapping.rb, line 108 def delete # #Delete object of type CardMapping #@param [String] id #@return [CardMapping] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("8ed8856e-5acc-477e-91ec-e8e42cfd4776", self) end
deleteSubscriberID()
click to toggle source
# File lib/mastercard/api/moneysend/cardmapping.rb, line 124 def deleteSubscriberID # #Updates an object of type CardMapping # #@return [CardMapping] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("4e2db90f-1051-457d-856c-645f7c95cb63",self) end
read()
click to toggle source
# File lib/mastercard/api/moneysend/cardmapping.rb, line 141 def read # #Updates an object of type CardMapping # #@return [CardMapping] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("c17fff52-7d25-430c-9e87-8590bb8f6fe6",self) end
update()
click to toggle source
# File lib/mastercard/api/moneysend/cardmapping.rb, line 158 def update # #Updates an object of type CardMapping # #@return [CardMapping] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("631bcad2-b81f-4a2f-8bd5-6afe7d6bc162",self) end