class MasterCard::API::Qkr::Beneficiary
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/qkr/beneficiary.rb, line 63 def self.create(mapObj) # #Creates object of type Beneficiary # #@param Dict mapObj, containing the required parameters to create a new object #@return [Beneficiary] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("ceef4eca-f757-4b0d-a9b9-4681f48007be", Beneficiary.new(mapObj)) end
deleteById(id, map = nil)
click to toggle source
# File lib/mastercard/api/qkr/beneficiary.rb, line 82 def self.deleteById(id, map = nil) #Delete object of type Beneficiary by id #@param [String] id #@param [Dict] map, containing additional parameters #@return [Beneficiary] of the response of the deleted instance. #@raise [APIException] an exception from the response status mapObj = Beneficiary.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("48200200-18f0-4393-b32e-1837cd1ba78c", mapObj) end
query(criteria)
click to toggle source
# File lib/mastercard/api/qkr/beneficiary.rb, line 127 def self.query(criteria) # #Query objects of type Beneficiary by id and optional criteria #@param [Dict] criteria #@return [Beneficiary] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("45f93f11-e3be-474e-a097-642aeae0e184",Beneficiary.new(criteria)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/qkr/beneficiary.rb, line 49 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/qkr/beneficiary.rb, line 56 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
delete()
click to toggle source
# File lib/mastercard/api/qkr/beneficiary.rb, line 107 def delete # #Delete object of type Beneficiary #@param [String] id #@return [Beneficiary] of the response of the deleted instance. #@raise [APIException] an exception from the response status # return self.class.execute("48200200-18f0-4393-b32e-1837cd1ba78c", self) end
update()
click to toggle source
# File lib/mastercard/api/qkr/beneficiary.rb, line 140 def update # #Updates an object of type Beneficiary # #@return [Beneficiary] object representing the response. #@raise [APIException] an exception from the response status # return self.class.execute("73c94ecd-720f-448d-8a1f-82ce5083b34a",self) end