class Mindee::Product::FR::BankAccountDetails::BankAccountDetailsV2Bban

Full extraction of BBAN, including: branch code, bank code, account and key.

def initialize(prediction, page_id)

Parameters:
  • page_id (Integer, nil) --
  • prediction (Hash) --
def initialize(prediction, page_id)
  super
  @bban_bank_code = prediction['bban_bank_code']
  @bban_branch_code = prediction['bban_branch_code']
  @bban_key = prediction['bban_key']
  @bban_number = prediction['bban_number']
  @page_id = page_id
end

def printable_values

Returns:
  • (Hash) -
def printable_values
  printable = {}
  printable[:bban_bank_code] = format_for_display(@bban_bank_code)
  printable[:bban_branch_code] = format_for_display(@bban_branch_code)
  printable[:bban_key] = format_for_display(@bban_key)
  printable[:bban_number] = format_for_display(@bban_number)
  printable
end

def to_s

Returns:
  • (String) -
def to_s
  printable = printable_values
  out_str = String.new
  out_str << "\n  :Bank Code: #{printable[:bban_bank_code]}"
  out_str << "\n  :Branch Code: #{printable[:bban_branch_code]}"
  out_str << "\n  :Key: #{printable[:bban_key]}"
  out_str << "\n  :Account Number: #{printable[:bban_number]}"
  out_str
end