Class: MasterCard::API::Blockchain::TransactionEntry
- Inherits:
-
Core::Model::BaseObject
- Object
- Core::Model::BaseObject
- MasterCard::API::Blockchain::TransactionEntry
- Includes:
- Core::Model
- Defined in:
- lib/mastercard/api/blockchain/transactionentry.rb
Class Method Summary collapse
Class Method Details
.create(mapObj) ⇒ Object
90 91 92 93 94 95 96 97 98 |
# File 'lib/mastercard/api/blockchain/transactionentry.rb', line 90 def self.create(mapObj) # #Creates object of type TransactionEntry # #@param Dict mapObj, containing the required parameters to create a new object #@return [TransactionEntry] of the response of created instance. #@raise [APIException] an exception from the response status return self.execute("b1db4894-92b6-418f-a497-ea72c4290b1b", TransactionEntry.new(mapObj)) end |
.read(id, criteria = nil) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/mastercard/api/blockchain/transactionentry.rb', line 65 def self.read(id, criteria = nil) # #Returns objects of type TransactionEntry by id and optional criteria #@param [String] id #@param [Dict] criteria #@return [TransactionEntry] object representing the response #@raise [APIException] an exception from the response status mapObj = TransactionEntry.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("a8a586ff-3a1f-45eb-8f7f-c44525e7b6af",TransactionEntry.new(mapObj)) end |