Class: MasterCard::API::MappingServices::Mapping
- Inherits:
-
Core::Model::BaseObject
- Object
- Core::Model::BaseObject
- MasterCard::API::MappingServices::Mapping
- Includes:
- Core::Model
- Defined in:
- lib/mastercard/api/mappingservices/mapping.rb
Class Method Summary collapse
- .addAdditonalData(mapObj) ⇒ Object
- .addMappingAccount(mapObj) ⇒ Object
- .createMapping(mapObj) ⇒ Object
- .deleteAdditionalDataById(id, map = nil) ⇒ Object
- .deleteMappingAccountById(id, map = nil) ⇒ Object
- .deleteMappingById(id, map = nil) ⇒ Object
- .listAllAccounts(criteria) ⇒ Object
- .listAllAdditionalData(criteria) ⇒ Object
- .listByReferenceOrCustomerIdentifier(criteria) ⇒ Object
- .readByAdditionalDataId(id, criteria = nil) ⇒ Object
- .readByMappingAccountId(id, criteria = nil) ⇒ Object
- .readByMappingId(id, criteria = nil) ⇒ Object
- .searchMapping(mapObj) ⇒ Object
Instance Method Summary collapse
- #deleteAdditionalData ⇒ Object
- #deleteMapping ⇒ Object
- #deleteMappingAccount ⇒ Object
- #updateAdditonalData ⇒ Object
- #updateMapping ⇒ Object
- #updateMappingAccount ⇒ Object
Class Method Details
.addAdditonalData(mapObj) ⇒ Object
75 76 77 78 79 80 81 82 83 |
# 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) ⇒ Object
91 92 93 94 95 96 97 98 99 |
# 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) ⇒ Object
107 108 109 110 111 112 113 114 115 |
# 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) ⇒ Object
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
# 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) ⇒ Object
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# 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) ⇒ Object
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 |
# 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) ⇒ Object
257 258 259 260 261 262 263 264 265 266 |
# 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) ⇒ Object
274 275 276 277 278 279 280 281 282 283 |
# 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) ⇒ Object
378 379 380 381 382 383 384 385 386 387 |
# 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) ⇒ Object
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
# 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) ⇒ Object
319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 |
# 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) ⇒ Object
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
# 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) ⇒ Object
390 391 392 393 394 395 396 397 398 |
# 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 |
Instance Method Details
#deleteAdditionalData ⇒ Object
151 152 153 154 155 156 157 158 159 160 161 |
# 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 ⇒ Object
194 195 196 197 198 199 200 201 202 203 204 |
# 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 ⇒ Object
237 238 239 240 241 242 243 244 245 246 247 |
# 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 ⇒ Object
407 408 409 410 411 412 413 414 415 |
# 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 ⇒ Object
424 425 426 427 428 429 430 431 432 |
# 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 ⇒ Object
441 442 443 444 445 446 447 448 449 |
# 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 |