class MasterCard::API::McOn::BundleProfile
Public Class Methods
createUser(mapObj)
click to toggle source
# File lib/mastercard/api/mcon/bundleprofile.rb, line 64 def self.createUser(mapObj) # #Creates object of type BundleProfile # #@param Dict mapObj, containing the required parameters to create a new object #@return [BundleProfile] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("ccff9a33-58af-4940-b9e8-1558edd52538", BundleProfile.new(mapObj)) end
deleteUserById(id, map = nil)
click to toggle source
# File lib/mastercard/api/mcon/bundleprofile.rb, line 83 def self.deleteUserById(id, map = nil) #Delete object of type BundleProfile by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [BundleProfile] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = BundleProfile.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("c2c54b4d-2b23-4ae7-b537-0d1f94ec7b83", mapObj) end
patchUser(mapObj)
click to toggle source
# File lib/mastercard/api/mcon/bundleprofile.rb, line 123 def self.patchUser(mapObj) # #Creates object of type BundleProfile # #@param Dict mapObj, containing the required parameters to create a new object #@return [BundleProfile] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("d74ab067-a623-4398-b1f6-c821d7f948a5", BundleProfile.new(mapObj)) end
readUser(id, criteria = nil)
click to toggle source
# File lib/mastercard/api/mcon/bundleprofile.rb, line 143 def self.readUser(id, criteria = nil) # #Returns objects of type BundleProfile by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [BundleProfile] object representing the response #@raise [APIException] an exception from the response status mapObj = BundleProfile.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("0db1446a-d974-4d1b-93ba-bb671d16b172",BundleProfile.new(mapObj)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/mcon/bundleprofile.rb, line 50 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/bundleprofile.rb, line 57 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
deleteUser()
click to toggle source
# File lib/mastercard/api/mcon/bundleprofile.rb, line 108 def deleteUser # #Delete object of type BundleProfile #@param [String] id #@return [BundleProfile] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("c2c54b4d-2b23-4ae7-b537-0d1f94ec7b83", self) end
updateUser()
click to toggle source
# File lib/mastercard/api/mcon/bundleprofile.rb, line 169 def updateUser # #Updates an object of type BundleProfile # #@return [BundleProfile] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("ae94a9c0-80b9-4fa8-b71e-2ffddd7c94cb",self) end