class MasterCard::API::P2m::TransferNotificationRegistration

Public Class Methods

create(mapObj) click to toggle source
# File lib/mastercard/api/p2m/transfernotificationregistration.rb, line 63
def self.create(mapObj)
    #
    #Creates object of type TransferNotificationRegistration
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [TransferNotificationRegistration] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("b58b7fee-95fc-42f0-b7ad-e67d3c01c7fc", TransferNotificationRegistration.new(mapObj))
end
deleteById(id, map = nil) click to toggle source
# File lib/mastercard/api/p2m/transfernotificationregistration.rb, line 82
def self.deleteById(id, map = nil)
    #Delete object of type TransferNotificationRegistration by id

    #@param [String] id
    #@param [Dict] map, containing additional parameters
    #@return [TransferNotificationRegistration] of the response of the deleted instance.
    #@raise [APIException] an exception from the response status


    mapObj = TransferNotificationRegistration.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("4752e3ed-e554-4c72-bfc2-82035dba69de", mapObj)
end
readby(id, criteria = nil) click to toggle source
# File lib/mastercard/api/p2m/transfernotificationregistration.rb, line 126
def self.readby(id, criteria = nil)
    #
    #Returns objects of type TransferNotificationRegistration by id and optional criteria
    #@param [String] id
    #@param [Dict] criteria
    #@return [TransferNotificationRegistration] object representing the response
    #@raise [APIException] an exception from the response status

    mapObj = TransferNotificationRegistration.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("9e7e46f3-b69b-49eb-b8a7-1e70bb724975",TransferNotificationRegistration.new(mapObj))
end

Protected Class Methods

getOperationConfig(operationUUID) click to toggle source
# File lib/mastercard/api/p2m/transfernotificationregistration.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/p2m/transfernotificationregistration.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/p2m/transfernotificationregistration.rb, line 107
def delete
    #
    #Delete object of type TransferNotificationRegistration

    #@param [String] id
    #@return [TransferNotificationRegistration] of the response of the deleted instance.
    #@raise [APIException] an exception from the response status
    #

    return self.class.execute("4752e3ed-e554-4c72-bfc2-82035dba69de", self)
end
update() click to toggle source
# File lib/mastercard/api/p2m/transfernotificationregistration.rb, line 152
def update
    #
    #Updates an object of type TransferNotificationRegistration
    #
    #@return [TransferNotificationRegistration] object representing the response.
    #@raise [APIException] an exception from the response status
    #
    return self.class.execute("70f3aff4-7309-4e8c-ab8c-dbc42d9ace61",self)
end