Class: Dinie::Events::CreditOfferData

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



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/dinie/generated/events/credit_offer.rb', line 12

def self.deserialize(raw)
  new(
    approved_amount: raw[:approved_amount],
    customer_id: raw[:customer_id],
    due_date_rule: raw[:due_date_rule],
    external_id: raw[:external_id],
    id: raw[:id],
    installments: raw[:installments],
    min_amount: raw[:min_amount],
    monthly_interest_rate: raw[:monthly_interest_rate],
    status: raw[:status],
    valid_until: raw[:valid_until]
  )
end