Class: Dinie::CustomerBankAccount

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

#bank_id ⇒ String (readonly)

Returns the value of attribute bank_id.

Returns:

  • (String)


13
14
15
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 13

def bank_id
  @bank_id
end

#bank_name ⇒ String (readonly)

Returns the value of attribute bank_name.

Returns:

  • (String)


14
15
16
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 14

def bank_name
  @bank_name
end

#branch ⇒ String (readonly)

Returns the value of attribute branch.

Returns:

  • (String)


15
16
17
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 15

def branch
  @branch
end

#digit ⇒ String (readonly)

Returns the value of attribute digit.

Returns:

  • (String)


16
17
18
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 16

def digit
  @digit
end

#id ⇒ bank_account_id (readonly)

Returns the value of attribute id.

Returns:

  • (bank_account_id)


17
18
19
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 17

def id
  @id
end

#kind ⇒ customer_bank_account_kind (readonly)

Returns the value of attribute kind.

Returns:

  • (customer_bank_account_kind)


18
19
20
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 18

def kind
  @kind
end

#number ⇒ String (readonly)

Returns the value of attribute number.

Returns:

  • (String)


19
20
21
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 19

def number
  @number
end

#updated_at ⇒ Integer (readonly)

Returns the value of attribute updated_at.

Returns:

  • (Integer)


20
21
22
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 20

def updated_at
  @updated_at
end

Class Method Details

.deserialize(raw) ⇒ CustomerBankAccount

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



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 ⇒ Hash[Symbol, untyped]

Parameters:

  • bank_id: (String)
  • branch: (String)
  • digit: (String)
  • kind: (String)
  • number: (String)

Returns:

  • (Hash[Symbol, untyped])


24
# File 'sig/dinie/generated/types/customer_bank_account.rbs', line 24

def self.serialize_upsert: (bank_id: String, branch: String, digit: String, kind: String, number: String) -> Hash[Symbol, untyped]

.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