class MasterCard::API::MappingServices::Mapping
Public Class Methods
addAdditonalData(mapObj)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 75 def self.addAdditonalData(mapObj) # #Creates object of type Mapping # #@param Dict mapObj, containing the required parameters to create a new object #@return [Mapping] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("6ab75199-b605-4051-a378-881454c85bad", Mapping.new(mapObj)) end
addMappingAccount(mapObj)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 91 def self.addMappingAccount(mapObj) # #Creates object of type Mapping # #@param Dict mapObj, containing the required parameters to create a new object #@return [Mapping] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("60da0153-7a7b-4740-af37-6f2c6cbb6010", Mapping.new(mapObj)) end
createMapping(mapObj)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 107 def self.createMapping(mapObj) # #Creates object of type Mapping # #@param Dict mapObj, containing the required parameters to create a new object #@return [Mapping] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("cb3eb25a-78fc-4612-8052-8bbb368c46ce", Mapping.new(mapObj)) end
deleteAdditionalDataById(id, map = nil)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 126 def self.deleteAdditionalDataById(id, map = nil) #Delete object of type Mapping by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [Mapping] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = Mapping.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("2bdd086c-2346-4731-89ca-94efe9cd7dd7", mapObj) end
deleteMappingAccountById(id, map = nil)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 212 def self.deleteMappingAccountById(id, map = nil) #Delete object of type Mapping by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [Mapping] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = Mapping.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("8c94f9c5-0493-45f9-9b0c-87f5d48600b5", mapObj) end
deleteMappingById(id, map = nil)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 169 def self.deleteMappingById(id, map = nil) #Delete object of type Mapping by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [Mapping] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = Mapping.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("9319bd90-706b-483c-8deb-4601c346000f", mapObj) end
listAllAccounts(criteria)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 257 def self.listAllAccounts(criteria) # #Query objects of type Mapping by id and optional criteria #@param [Dict] criteria #@return [Mapping] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("899b45f7-5d1e-4cd1-a57d-8a9141890412",Mapping.new(criteria)) end
listAllAdditionalData(criteria)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 274 def self.listAllAdditionalData(criteria) # #Query objects of type Mapping by id and optional criteria #@param [Dict] criteria #@return [Mapping] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("37f8c951-53fd-450f-9a84-95d19915cd79",Mapping.new(criteria)) end
listByReferenceOrCustomerIdentifier(criteria)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 378 def self.listByReferenceOrCustomerIdentifier(criteria) # #Query objects of type Mapping by id and optional criteria #@param [Dict] criteria #@return [Mapping] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("ea211a63-061d-47e5-afc7-838181721627",Mapping.new(criteria)) end
readByAdditionalDataId(id, criteria = nil)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 290 def self.readByAdditionalDataId(id, criteria = nil) # #Returns objects of type Mapping by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [Mapping] object representing the response #@raise [APIException] an exception from the response status mapObj = Mapping.new if !(id.nil? || id.to_s.empty?) mapObj.set("id", id) end if !criteria.nil? if criteria.instance_of? RequestMap mapObj.setAll(criteria.getObject()) else mapObj.setAll(criteria) end end return self.execute("1b95654b-f5fd-4f9d-a13a-b6eb40a17bec",Mapping.new(mapObj)) end
readByMappingAccountId(id, criteria = nil)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 319 def self.readByMappingAccountId(id, criteria = nil) # #Returns objects of type Mapping by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [Mapping] object representing the response #@raise [APIException] an exception from the response status mapObj = Mapping.new if !(id.nil? || id.to_s.empty?) mapObj.set("id", id) end if !criteria.nil? if criteria.instance_of? RequestMap mapObj.setAll(criteria.getObject()) else mapObj.setAll(criteria) end end return self.execute("9fa07208-9a11-41df-98e5-c7fa82570ae9",Mapping.new(mapObj)) end
readByMappingId(id, criteria = nil)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 348 def self.readByMappingId(id, criteria = nil) # #Returns objects of type Mapping by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [Mapping] object representing the response #@raise [APIException] an exception from the response status mapObj = Mapping.new if !(id.nil? || id.to_s.empty?) mapObj.set("id", id) end if !criteria.nil? if criteria.instance_of? RequestMap mapObj.setAll(criteria.getObject()) else mapObj.setAll(criteria) end end return self.execute("8f778e3a-4226-45fa-bf22-8598875564fe",Mapping.new(mapObj)) end
searchMapping(mapObj)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 390 def self.searchMapping(mapObj) # #Creates object of type Mapping # #@param Dict mapObj, containing the required parameters to create a new object #@return [Mapping] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("d8294a30-f333-4fa5-bbf4-212f7cb9495d", Mapping.new(mapObj)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 61 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/mappingservices/mapping.rb, line 68 def self.getOperationMetadata() return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride()) end
Public Instance Methods
deleteAdditionalData()
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 151 def deleteAdditionalData # #Delete object of type Mapping #@param [String] id #@return [Mapping] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("2bdd086c-2346-4731-89ca-94efe9cd7dd7", self) end
deleteMapping()
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 194 def deleteMapping # #Delete object of type Mapping #@param [String] id #@return [Mapping] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("9319bd90-706b-483c-8deb-4601c346000f", self) end
deleteMappingAccount()
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 237 def deleteMappingAccount # #Delete object of type Mapping #@param [String] id #@return [Mapping] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("8c94f9c5-0493-45f9-9b0c-87f5d48600b5", self) end
updateAdditonalData()
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 407 def updateAdditonalData # #Updates an object of type Mapping # #@return [Mapping] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("2893bda0-0b05-4670-82de-716f698d612e",self) end
updateMapping()
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 424 def updateMapping # #Updates an object of type Mapping # #@return [Mapping] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("b8b291ba-bbf1-4e44-88aa-bf3e22aaf82e",self) end
updateMappingAccount()
click to toggle source
# File lib/mastercard/api/mappingservices/mapping.rb, line 441 def updateMappingAccount # #Updates an object of type Mapping # #@return [Mapping] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("7bb7b688-87a1-4f79-a12c-e90fa7396a0a",self) end