<schemalist gettext-domain="gnucash">
  <schema id="org.gnucash.GnuCash.dialogs.import.generic" path="/org/gnucash/GnuCash/dialogs/import/generic/">
    <key name="enable-skip" type="b">
      <default>true</default>
      <summary>Enable SKIP transaction action</summary>
      <description>Enable the SKIP action in the transaction matcher. If enabled, a transaction whose best match's score is in the yellow zone (above the Auto-ADD threshold but below the Auto-CLEAR threshold) will be skipped by default.</description>
    </key>
    <key name="enable-update" type="b">
      <default>true</default>
      <summary>Enable UPDATE match action</summary>
      <description>Enable the UPDATE AND RECONCILE action in the transaction matcher. If enabled, a transaction whose best match's score is above the Auto-CLEAR threshold and has a different date or amount than the matching existing transaction will cause the existing transaction to be updated and cleared by default.</description>
    </key>
    <key name="use-bayes" type="b">
      <default>true</default>
      <summary>Use bayesian matching</summary>
      <description>Enables bayesian matching when matching imported transaction against existing transactions. Otherwise a less sophisticated rule-based matching mechanism will be used.</description>
    </key>
    <key name="match-threshold" type="d">
      <default>1.0</default>
      <summary>Minimum score to be displayed</summary>
      <description>This field specifies the minimum matching score a potential matching transaction must have to be displayed in the match list.</description>
    </key>
    <key name="match-date-threshold" type="d">
      <default>4.0</default>
      <summary>Likely matching transaction within these days</summary>
      <description>This field specifies the maximum number of days a transaction is likely to be a match in the list.</description>
    </key>
    <key name="match-date-not-threshold" type="d">
      <default>14.0</default>
      <summary>UnLikely matching a transaction outside of these days</summary>
      <description>This field specifies the minimum number of days a transaction is unlikely to be a match in the list.</description>
    </key>
    <key name="auto-add-threshold" type="d">
      <default>3.0</default>
      <summary>Add matching transactions below this score</summary>
      <description>This field specifies the threshold below which a matching transaction will be added automatically. A transaction whose best match's score is in the red zone (above the display minimum score but below or equal to the Add match score) will be added to the GnuCash file by default.</description>
    </key>
    <key name="auto-clear-threshold" type="d">
      <default>6.0</default>
      <summary>Clear matching transactions above this score</summary>
      <description>This field specifies the threshold above which a matching transaction will be cleared by default. A transaction whose best match's score is in the green zone (above or equal to this Clear threshold) will be cleared by default.</description>
    </key>
    <key name="atm-fee-threshold" type="d">
      <default>2.0</default>
      <summary>Maximum ATM fee amount in your area</summary>
      <description>This field specifies the extra fee that is taken into account when matching imported transactions. In some places commercial ATMs (not belonging to a financial institution) are installed in places like convenience stores. These ATMs add their fee directly to the amount instead of showing up as a separate transaction or in your monthly banking fees. For example, you withdraw $100, and you are charged $101,50 plus Interac fees. If you manually entered that $100, the amounts won't match. You should set this to whatever is the maximum such fee in your area (in units of your local currency), so the transaction will be recognised as a match.</description>
    </key>
    <key name="auto-create-commodity" type="b">
      <default>false</default>
      <summary>Automatically create new commodities</summary>
      <description>Enables the automatic creation of new commodities if any unknown commodity is encountered during import. Otherwise the user will be asked what to do with each unknown commodity.</description>
    </key>
    <child name="match-picker" schema="org.gnucash.GnuCash.dialogs.import.generic.match-picker"/>
    <child name="transaction-list" schema="org.gnucash.GnuCash.dialogs.import.generic.transaction-list"/>
    <child name="account-picker" schema="org.gnucash.GnuCash.dialogs.import.generic.account-picker"/>
  </schema>

  <schema id="org.gnucash.GnuCash.dialogs.import.generic.match-picker" path="/org/gnucash/GnuCash/dialogs/import/generic/match-picker/">
    <key name="last-geometry" type="(iiii)">
      <default>(-1,-1,-1,-1)</default>
      <summary>Last window position and size</summary>
      <description>This setting describes the size and position of the window when it was last closed.
        The numbers are the X and Y coordinates of the top left corner of the window
        followed by the width and height of the window.</description>
    </key>
    <key name="display-reconciled" type="b">
     <default>true</default>
     <summary>Display or hide reconciled matches</summary>
     <description>Shows or hides transactions from the match picker which are already of some reconciled state.</description>
   </key>
  </schema>

  <schema id="org.gnucash.GnuCash.dialogs.import.generic.account-picker" path="/org/gnucash/GnuCash/dialogs/import/generic/account-picker/">
    <key name="last-geometry" type="(iiii)">
      <default>(-1,-1,-1,-1)</default>
      <summary>Last window position and size</summary>
      <description>This setting describes the size and position of the window when it was last closed.
        The numbers are the X and Y coordinates of the top left corner of the window
        followed by the width and height of the window.</description>
    </key>
  </schema>

  <schema id="org.gnucash.GnuCash.dialogs.import.generic.transaction-list" path="/org/gnucash/GnuCash/dialogs/import/generic/transaction-list/">
    <key name="last-geometry" type="(iiii)">
      <default>(-1,-1,-1,-1)</default>
      <summary>Last window position and size</summary>
      <description>This setting describes the size and position of the window when it was last closed.
        The numbers are the X and Y coordinates of the top left corner of the window
        followed by the width and height of the window.</description>
    </key>
  </schema>
</schemalist>
