with
    stg_xero__bank_transactions as (
        select * from {{ ref("stg_xero__bank_transactions") }}
    )
select
    id_bank_transaction,
    id_prepayment,
    id_overpayment,
    reference,
    transaction_type,
    transaction_status,
    transaction_at_utc,
    date_string,
    total_amount_local_curr,
    subtotal_local_curr,
    total_tax_local_curr,
    transaction_currency_iso_4217,
    exchange_rate_to_gbp,
    line_amount_tax_inclusiveness,
    full_contact_details,
    line_items,
    bank_account,
    is_reconciled,
    has_attachments,
    url,
    external_link_provider_name,
    updated_at_utc,
    updated_date_utc,
    dwh_extracted_at_utc
from stg_xero__bank_transactions
