<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <!--
        Default configuration parameters for Fusion Claims.
        noupdate="1" ensures these are ONLY set on first install,
        never overwritten during module upgrades.
    -->
    <data noupdate="1">

        <!-- ADP Billing -->
        <record id="config_vendor_code" model="ir.config_parameter">
            <field name="key">fusion_claims.vendor_code</field>
            <field name="value"></field>
        </record>
        <record id="config_adp_posting_base_date" model="ir.config_parameter">
            <field name="key">fusion_claims.adp_posting_base_date</field>
            <field name="value">2026-01-23</field>
        </record>
        <record id="config_adp_posting_frequency_days" model="ir.config_parameter">
            <field name="key">fusion_claims.adp_posting_frequency_days</field>
            <field name="value">14</field>
        </record>

        <!-- Email Notifications -->
        <record id="config_enable_email_notifications" model="ir.config_parameter">
            <field name="key">fusion_claims.enable_email_notifications</field>
            <field name="value">True</field>
        </record>
        <record id="config_application_reminder_days" model="ir.config_parameter">
            <field name="key">fusion_claims.application_reminder_days</field>
            <field name="value">4</field>
        </record>
        <record id="config_application_reminder_2_days" model="ir.config_parameter">
            <field name="key">fusion_claims.application_reminder_2_days</field>
            <field name="value">4</field>
        </record>

        <!-- AI Settings -->
        <record id="config_ai_model" model="ir.config_parameter">
            <field name="key">fusion_claims.ai_model</field>
            <field name="value">gpt-4o-mini</field>
        </record>
        <record id="config_auto_parse_xml" model="ir.config_parameter">
            <field name="key">fusion_claims.auto_parse_xml</field>
            <field name="value">True</field>
        </record>

        <!-- Field Mappings (defaults for fresh installs) -->
        <record id="config_field_sale_type" model="ir.config_parameter">
            <field name="key">fusion_claims.field_sale_type</field>
            <field name="value">x_fc_sale_type</field>
        </record>
        <record id="config_field_so_client_type" model="ir.config_parameter">
            <field name="key">fusion_claims.field_so_client_type</field>
            <field name="value">x_fc_client_type</field>
        </record>
        <record id="config_field_so_authorizer" model="ir.config_parameter">
            <field name="key">fusion_claims.field_so_authorizer</field>
            <field name="value">x_fc_authorizer_id</field>
        </record>
        <record id="config_field_invoice_type" model="ir.config_parameter">
            <field name="key">fusion_claims.field_invoice_type</field>
            <field name="value">x_fc_invoice_type</field>
        </record>
        <record id="config_field_inv_client_type" model="ir.config_parameter">
            <field name="key">fusion_claims.field_inv_client_type</field>
            <field name="value">x_fc_client_type</field>
        </record>
        <record id="config_field_inv_authorizer" model="ir.config_parameter">
            <field name="key">fusion_claims.field_inv_authorizer</field>
            <field name="value">x_fc_authorizer_id</field>
        </record>
        <record id="config_field_product_code" model="ir.config_parameter">
            <field name="key">fusion_claims.field_product_code</field>
            <field name="value">x_fc_adp_device_code</field>
        </record>
        <record id="config_field_sol_serial" model="ir.config_parameter">
            <field name="key">fusion_claims.field_sol_serial</field>
            <field name="value">x_fc_serial_number</field>
        </record>
        <record id="config_field_aml_serial" model="ir.config_parameter">
            <field name="key">fusion_claims.field_aml_serial</field>
            <field name="value">x_fc_serial_number</field>
        </record>

        <!-- March of Dimes -->
        <record id="config_mod_default_email" model="ir.config_parameter">
            <field name="key">fusion_claims.mod_default_email</field>
            <field name="value">hvmp@marchofdimes.ca</field>
        </record>

        <!-- Twilio SMS -->
        <record id="config_twilio_enabled" model="ir.config_parameter">
            <field name="key">fusion_claims.twilio_enabled</field>
            <field name="value">False</field>
        </record>
        <record id="config_twilio_account_sid" model="ir.config_parameter">
            <field name="key">fusion_claims.twilio_account_sid</field>
            <field name="value"></field>
        </record>
        <record id="config_twilio_auth_token" model="ir.config_parameter">
            <field name="key">fusion_claims.twilio_auth_token</field>
            <field name="value"></field>
        </record>
        <record id="config_twilio_phone_number" model="ir.config_parameter">
            <field name="key">fusion_claims.twilio_phone_number</field>
            <field name="value"></field>
        </record>

        <!-- MOD Follow-up Settings -->
        <record id="config_mod_followup_interval" model="ir.config_parameter">
            <field name="key">fusion_claims.mod_followup_interval_days</field>
            <field name="value">14</field>
        </record>
        <record id="config_mod_followup_escalation" model="ir.config_parameter">
            <field name="key">fusion_claims.mod_followup_escalation_days</field>
            <field name="value">3</field>
        </record>

        <!-- ODSP Settings -->
        <record id="config_sa_mobility_email" model="ir.config_parameter">
            <field name="key">fusion_claims.sa_mobility_email</field>
            <field name="value">samobility@ontario.ca</field>
        </record>
        <record id="config_sa_mobility_phone" model="ir.config_parameter">
            <field name="key">fusion_claims.sa_mobility_phone</field>
            <field name="value">1-888-222-5099</field>
        </record>

    </data>
</odoo>
