Class: Dinie::CustomerBankAccount

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



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/dinie/generated/types/customer_bank_account.rb', line 16

def self.deserialize(raw)
  new(
    bank_id: raw[:bank_id],
    bank_name: raw[:bank_name],
    branch: raw[:branch],
    digit: raw[:digit],
    id: raw[:id],
    kind: raw[:kind],
    number: raw[:number],
    updated_at: raw[:updated_at]
  )
end

.serialize_upsert_bank_account(bank_id:, branch:, digit:, kind:, number:) ⇒ Object



29
30
31
# File 'lib/dinie/generated/types/customer_bank_account.rb', line 29

def self.(bank_id:, branch:, digit:, kind:, number:)
  { bank_account: { bank_id:, branch:, digit:, kind:, number: } }
end