<?xml version="1.0"?>
<!--
/**
 * This file is part of the Klarna Core module
 *
 * (c) Klarna Bank AB (publ)
 *
 * For the full copyright and license information, please view the NOTICE
 * and LICENSE files that were distributed with this source code.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:DataObject/etc/fieldset.xsd">
    <scope id="global">
        <fieldset id="sales_convert_quote_address">
            <field name="prefix">
                <aspect name="to_klarna" targetField="title"/>
            </field>
            <field name="firstname">
                <aspect name="to_klarna" targetField="given_name"/>
            </field>
            <field name="lastname">
                <aspect name="to_klarna" targetField="family_name"/>
            </field>
            <field name="street">
                <aspect name="to_klarna" targetField="street_address"/>
            </field>
            <field name="city">
                <aspect name="to_klarna" />
            </field>
            <field name="region">
                <aspect name="to_klarna" />
            </field>
            <field name="postcode">
                <aspect name="to_klarna" targetField="postal_code"/>
            </field>
            <field name="country_id">
                <aspect name="to_klarna" targetField="country"/>
            </field>
            <field name="telephone">
                <aspect name="to_klarna" targetField="phone" />
            </field>
            <field name="email">
                <aspect name="to_klarna" />
            </field>
            <field name="company">
                <aspect name="to_klarna" targetField="organization_name"/>
            </field>
        </fieldset>
    </scope>
</config>
