class Mindee::Parsing::Standard::PaymentDetailsField
Represents payment details for invoices and receipts
def initialize(prediction, page_id, reconstructed: false)
-
reconstructed
(bool
) -- -
page_id
(Integer, nil
) -- -
prediction
(Hash
) --
def initialize(prediction, page_id, reconstructed: false) super @account_number = prediction['account_number'] @iban = prediction['iban'] @routing_number = prediction['routing_number'] @swift = prediction['swift'] end
def to_s
-
(String)
-
def to_s out_str = String.new out_str << "#{@account_number}; " if @account_number out_str << "#{@iban}; " if @iban out_str << "#{@routing_number}; " if @routing_number out_str << "#{@swift}; " if @swift out_str.strip end