with
    int_xero__bank_transactions as (
        select * from {{ ref("int_xero__bank_transactions") }}
    )
select
    bt.id_bank_transaction as id_bank_transaction,
    bt.id_prepayment as id_prepayment,
    bt.id_overpayment as id_overpayment,
    bt.id_contact as id_contact,
    bt.id_bank_account as id_bank_account,
    bt.reference as reference,
    bt.transaction_type as transaction_type,
    bt.transaction_sign as transaction_sign,
    bt.transaction_status as transaction_status,
    bt.transaction_at_utc as transaction_at_utc,
    bt.transaction_date_utc as transaction_date_utc,
    bt.date_string as date_string,
    bt.total_amount_local_curr as total_amount_local_curr,
    bt.total_amount_in_gbp as total_amount_in_gbp,
    bt.total_amount_wo_tax_local_curr as total_amount_wo_tax_local_curr,
    bt.total_amount_wo_tax_in_gbp as total_amount_wo_tax_in_gbp,
    bt.total_tax_local_curr as total_tax_local_curr,
    bt.total_tax_in_gbp as total_tax_in_gbp,
    bt.transaction_currency_iso_4217 as transaction_currency_iso_4217,
    bt.exchange_rate_to_gbp as exchange_rate_to_gbp,
    bt.line_amount_tax_inclusiveness as line_amount_tax_inclusiveness,
    bt.is_reconciled as is_reconciled,
    bt.has_attachments as has_attachments,
    bt.url as url,
    bt.external_link_provider_name as external_link_provider_name,
    bt.updated_at_utc as updated_at_utc,
    bt.updated_date_utc as updated_date_utc,
    bt.dwh_extracted_at_utc as dwh_extracted_at_utc
from int_xero__bank_transactions bt
