class MasterCard::API::BlockchainB2bxb::Payments
Public Class Methods
create(mapObj)
click to toggle source
# File lib/mastercard/api/blockchainb2bxb/payments.rb, line 79 def self.create(mapObj) # #Creates object of type Payments # #@param Dict mapObj, containing the required parameters to create a new object #@return [Payments] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("862c7648-7d68-4f6f-97c7-34514feb2917", Payments.new(mapObj)) end
query(criteria)
click to toggle source
# File lib/mastercard/api/blockchainb2bxb/payments.rb, line 67 def self.query(criteria) # #Query objects of type Payments by id and optional criteria #@param [Dict] criteria #@return [Payments] object representing the response. #@raise [APIException] an exception from the response status # return self.execute("2c0ee91a-d847-4ca2-a629-c82475c8f3ae",Payments.new(criteria)) end
read(id, criteria = nil)
click to toggle source
# File lib/mastercard/api/blockchainb2bxb/payments.rb, line 99 def self.read(id, criteria = nil) # #Returns objects of type Payments by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [Payments] object representing the response #@raise [APIException] an exception from the response status mapObj = Payments.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("239e408c-40de-4bc8-a42c-3db1dfc730a4",Payments.new(mapObj)) end
Protected Class Methods
getOperationConfig(operationUUID)
click to toggle source
# File lib/mastercard/api/blockchainb2bxb/payments.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/blockchainb2bxb/payments.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