Class: Dinie::Transaction

Inherits:
Internal::Model show all
Defined in:
lib/dinie/generated/types/transaction.rb

Constant Summary

Constants inherited from Internal::Model

Internal::Model::REDACTED_ATTRIBUTES

Class Method Summary collapse

Methods inherited from Internal::Model

#==, attribute, attributes, #deconstruct_keys, #hash, inherited, #initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from Dinie::Internal::Model

Class Method Details

.deserialize(raw) ⇒ Object



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/dinie/generated/types/transaction.rb', line 23

def self.deserialize(raw)
  new(
    amount_due: raw[:amount_due],
    amount_paid: raw[:amount_paid],
    amount_remaining: raw[:amount_remaining],
    created_at: raw[:created_at],
    days_overdue: raw[:days_overdue],
    due_date: raw[:due_date],
    fees: raw[:fees],
    id: raw[:id],
    interest: raw[:interest],
    loan_id: raw[:loan_id],
    paid_at: raw[:paid_at],
    principal: raw[:principal],
    status: raw[:status],
    type: raw[:type],
    updated_at: raw[:updated_at]
  )
end