Class: Dinie::Events::LoanCreatedData

Inherits:
Internal::Model show all
Defined in:
lib/dinie/generated/events/loan_created.rb,
sig/dinie/generated/events/loan_created.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

#credit_offer_id ⇒ credit_offer_id (readonly)

Returns the value of attribute credit_offer_id.

Returns:



6
7
8
# File 'sig/dinie/generated/events/loan_created.rbs', line 6

def credit_offer_id
  @credit_offer_id
end

#customer_id ⇒ customer_id (readonly)

Returns the value of attribute customer_id.

Returns:



7
8
9
# File 'sig/dinie/generated/events/loan_created.rbs', line 7

def customer_id
  @customer_id
end

#id ⇒ loan_id (readonly)

Returns the value of attribute id.

Returns:

  • (loan_id)


8
9
10
# File 'sig/dinie/generated/events/loan_created.rbs', line 8

def id
  @id
end

#installment_count ⇒ Integer (readonly)

Returns the value of attribute installment_count.

Returns:

  • (Integer)


9
10
11
# File 'sig/dinie/generated/events/loan_created.rbs', line 9

def installment_count
  @installment_count
end

#requested_amount ⇒ money (readonly)

Returns the value of attribute requested_amount.

Returns:

  • (money)


10
11
12
# File 'sig/dinie/generated/events/loan_created.rbs', line 10

def requested_amount
  @requested_amount
end

#signing_url ⇒ String? (readonly)

Returns the value of attribute signing_url.

Returns:

  • (String, nil)


11
12
13
# File 'sig/dinie/generated/events/loan_created.rbs', line 11

def signing_url
  @signing_url
end

#status ⇒ loan_status (readonly)

Returns the value of attribute status.

Returns:

  • (loan_status)


12
13
14
# File 'sig/dinie/generated/events/loan_created.rbs', line 12

def status
  @status
end

Class Method Details

.deserialize(raw) ⇒ LoanCreatedData

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/dinie/generated/events/loan_created.rb', line 11

def self.deserialize(raw)
  new(
    credit_offer_id: raw[:credit_offer_id],
    customer_id: raw[:customer_id],
    id: raw[:id],
    installment_count: raw[:installment_count],
    requested_amount: raw[:requested_amount],
    signing_url: raw[:signing_url],
    status: raw[:status]
  )
end