class MasterCard::API::P2p::PaymentTransfer
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/p2p/paymenttransfer.rb, line 62 def self.create(mapObj) # #Creates object of type PaymentTransfer # #@param Dict mapObj, containing the required parameters to create a new object #@return [PaymentTransfer] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("bf833b90-9bfb-4bb6-98f9-4f5c012c7e51", PaymentTransfer.new(mapObj)) end
readByID(id, criteria = nil)
click to toggle source
# File lib/mastercard/api/p2p/paymenttransfer.rb, line 82 def self.readByID(id, criteria = nil) # #Returns objects of type PaymentTransfer by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [PaymentTransfer] object representing the response #@raise [APIException] an exception from the response status mapObj = PaymentTransfer.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("c1a1e381-db60-41c0-a5e7-183d227fb21b",PaymentTransfer.new(mapObj)) end
readByReference(criteria)
click to toggle source
# File lib/mastercard/api/p2p/paymenttransfer.rb, line 112 def self.readByReference(criteria) # #Query objects of type PaymentTransfer by id and optional criteria #@param [Dict] criteria #@return [PaymentTransfer] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("ff62e58b-1971-4a65-b8e8-d155f5b5f015",PaymentTransfer.new(criteria)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/p2p/paymenttransfer.rb, line 48 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/p2p/paymenttransfer.rb, line 55 def self.getOperationMetadata() return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride()) end