Class: Inttegro::Payment::MethodSnapshotBankAccount

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/payment/method_snapshot_bank_account.rb

Overview

Typed representation of the method snapshot bank account 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

#ghana_bank_account ⇒ Inttegro::Payment::MethodSnapshotBankAccountGhanaBankAccount? (readonly)

Value of the ghana_bank_account field in the Inttegro API payload.

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



30
31
32
33
# File 'lib/inttegro/payment/method_snapshot_bank_account.rb', line 30

class MethodSnapshotBankAccount < T::Struct
  const :type, String
  const :ghana_bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccountGhanaBankAccount), default: nil
end

#type ⇒ String (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.

Returns:

  • (String)


30
31
32
33
# File 'lib/inttegro/payment/method_snapshot_bank_account.rb', line 30

class MethodSnapshotBankAccount < T::Struct
  const :type, String
  const :ghana_bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccountGhanaBankAccount), default: nil
end