class Mindee::Product::FR::BankAccountDetails::BankAccountDetailsV2Document
Bank Account Details API version 2.0 document data.
def initialize(prediction, page_id)
-
page_id
(Integer, nil
) -- -
prediction
(Hash
) --
def initialize(prediction, page_id) super @account_holders_names = Parsing::Standard::StringField.new( prediction['account_holders_names'], page_id ) @bban = Product::FR::BankAccountDetails::BankAccountDetailsV2Bban.new(prediction['bban'], page_id) @iban = Parsing::Standard::StringField.new(prediction['iban'], page_id) @swift_code = Parsing::Standard::StringField.new( prediction['swift_code'], page_id ) end
def to_s
-
(String)
-
def to_s bban = @bban.to_s out_str = String.new out_str << "\n:Account Holder's Names: #{@account_holders_names}".rstrip out_str << "\n:Basic Bank Account Number:" out_str << bban out_str << "\n:IBAN: #{@iban}".rstrip out_str << "\n:SWIFT Code: #{@swift_code}".rstrip out_str[1..].to_s end