Class: Dinie::Events::LoanPaymentReceivedData

Inherits:
Internal::Model show all
Defined in:
lib/dinie/generated/events/loan_payment_received.rb,
sig/dinie/generated/events/loan_payment_received.rbs

Constant Summary

Constants inherited from Internal::Model

Internal::Model::REDACTED_ATTRIBUTES

Instance Attribute Summary collapse

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

Instance Attribute Details

#id ⇒ loan_id (readonly)

Returns the value of attribute id.

Returns:

  • (loan_id)


15
16
17
# File 'sig/dinie/generated/events/loan_payment_received.rbs', line 15

def id
  @id
end

#payment ⇒ LoanPayment (readonly)

Returns the value of attribute payment.

Returns:



16
17
18
# File 'sig/dinie/generated/events/loan_payment_received.rbs', line 16

def payment
  @payment
end

#status ⇒ loan_status (readonly)

Returns the value of attribute status.

Returns:

  • (loan_status)


17
18
19
# File 'sig/dinie/generated/events/loan_payment_received.rbs', line 17

def status
  @status
end

Class Method Details

.deserialize(raw) ⇒ LoanPaymentReceivedData

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



23
24
25
26
27
28
29
# File 'lib/dinie/generated/events/loan_payment_received.rb', line 23

def self.deserialize(raw)
  new(
    id: raw[:id],
    payment: LoanPayment.deserialize(raw[:payment]),
    status: raw[:status]
  )
end