Class: Inttegro::BankAccount::Updated

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/bank_account/updated.rb

Overview

Typed representation of the updated object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#branch ⇒ String? (readonly)

Value of the branch field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: branch.

Returns:

  • (String, nil)


54
55
56
57
58
59
60
61
# File 'lib/inttegro/bank_account/updated.rb', line 54

class Updated < T::Struct
  const :branch, T.nilable(String), default: nil
  const :holder, Inttegro::FinancialAccount::Owner
  const :name, String
  const :number, String
  const :sort_code, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#holder ⇒ Inttegro::FinancialAccount::Owner (readonly)

Value of the holder field in the Inttegro API payload.

Required in the API payload. Wire name: holder.



54
55
56
57
58
59
60
61
# File 'lib/inttegro/bank_account/updated.rb', line 54

class Updated < T::Struct
  const :branch, T.nilable(String), default: nil
  const :holder, Inttegro::FinancialAccount::Owner
  const :name, String
  const :number, String
  const :sort_code, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#name ⇒ String (readonly)

Value of the name field in the Inttegro API payload.

Required in the API payload. Wire name: name.

Returns:

  • (String)


54
55
56
57
58
59
60
61
# File 'lib/inttegro/bank_account/updated.rb', line 54

class Updated < T::Struct
  const :branch, T.nilable(String), default: nil
  const :holder, Inttegro::FinancialAccount::Owner
  const :name, String
  const :number, String
  const :sort_code, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#number ⇒ String (readonly)

Value of the number field in the Inttegro API payload.

Required in the API payload. Wire name: number.

Returns:

  • (String)


54
55
56
57
58
59
60
61
# File 'lib/inttegro/bank_account/updated.rb', line 54

class Updated < T::Struct
  const :branch, T.nilable(String), default: nil
  const :holder, Inttegro::FinancialAccount::Owner
  const :name, String
  const :number, String
  const :sort_code, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#sort_code ⇒ String? (readonly)

Value of the sort_code field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: sort_code.

Returns:

  • (String, nil)


54
55
56
57
58
59
60
61
# File 'lib/inttegro/bank_account/updated.rb', line 54

class Updated < T::Struct
  const :branch, T.nilable(String), default: nil
  const :holder, Inttegro::FinancialAccount::Owner
  const :name, String
  const :number, String
  const :sort_code, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end

#swift_code ⇒ String? (readonly)

Value of the swift_code field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: swift_code.

Returns:

  • (String, nil)


54
55
56
57
58
59
60
61
# File 'lib/inttegro/bank_account/updated.rb', line 54

class Updated < T::Struct
  const :branch, T.nilable(String), default: nil
  const :holder, Inttegro::FinancialAccount::Owner
  const :name, String
  const :number, String
  const :sort_code, T.nilable(String), default: nil
  const :swift_code, T.nilable(String), default: nil
end