Class: Redox::Request::Financial
- Inherits:
-
Object
- Object
- Redox::Request::Financial
- Defined in:
- lib/redox/request/financial.rb
Constant Summary collapse
- TRANSACTION_META =
Redox::Models::Meta.new(EventType: 'Transaction', DataModel: 'Financial')
Class Method Summary collapse
Class Method Details
.create(financial, meta: Redox::Models::Meta.new) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/redox/request/financial.rb', line 8 def self.create(financial, meta: Redox::Models::Meta.new) = TRANSACTION_META.merge() Redox::Models::Model.from_response(RedoxClient.connection.request(body: Redox::Request.build_body( financial, ))) end |