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("ef71142f-9e18-4053-b35e-e71f95e388b9", 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("055001bf-4a21-4da1-a519-7fe8ba6aef72",TransactionEntry.new(mapObj)) end |