<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  <converters>
    <converter key="BarcodeConverter"/>
    <converter key="CaptureModeConverter"/>
    <converter key="CardholderVerificationMethodConverter"/>
    <converter key="DrawRectConverter"/>
    <converter key="DuplicateReceiptHeaderConverter"/>
    <converter key="ImageConverter"/>
    <converter key="ReceiptTypeHeaderConverter"/>
    <converter key="TransactionOutcomeConverter"/>
    <converter key="TransactionTypeConverter"/>
    <converter key="ReceiptTypeRetentionConverter"/>
    <converter key="TextGlobalizationConverter"/>
  </converters>
  
  <styles target="paragraph">
    <style key="StartCondensedTextStyle"/>
    <style key="CondensedTextStyle"/>
    <style key="EndCondensedTextStyle"/>
    <style key="StandardTextStyle"/>
    <style key="HeadingTextStyle">
      <setter property="font_size" value="medium"/>
      <setter property="style" value="bold"/>
    </style>
    <style key="CardAcceptorNameTextStyle">
      <setter property="font_size" value="medium"/>
      <setter property="style" value="bold"/>
    </style>
    <style key="RefundTextStyle">
      <setter property="font_size" value="small"/>
      <setter property="style" value="bold"/>
    </style>
    <style key="PaymentAmountTotalTextStyle">
      <setter property="style" value="bold"/>
    </style>
    <style key="TransactionOutcomeTextStyle">
      <setter property="style" value="bold"/>
    </style>
  </styles>
  
  <template>
    <section name="ReportNarrative">
      <conditional_section name="NARRATIVE_LINE_1">
        <paragraph  style="HeadingTextStyle" alignment="center" >
          <text>${NARRATIVE_LINE_1}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="NARRATIVE_LINE_2">
        <paragraph  style="RefundTextStyle" alignment="center" >
          <text>${NARRATIVE_LINE_2}</text>
        </paragraph>
      </conditional_section>
    </section>
    
    <section name="CardAcceptorDetails">
      <conditional_section name="CardAcceptorLogo">
        <paragraph>
          <image alignment="center" converter="ImageConverter">
            <argument name="data">${CARD_ACCEPTOR_LOGO_DATA}</argument>
            <argument name="file_name">${CARD_ACCEPTOR_LOGO_FILE_NAME}</argument>
            <argument name="width">${CARD_ACCEPTOR_LOGO_WIDTH}</argument>
          </image>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorName">
        <paragraph style="HeadingTextStyle" alignment="center" >
          <text>${CARD_ACCEPTOR_NAME}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorStoreName">
        <paragraph  style="HeadingTextStyle" alignment="center">
          <text>${CARD_ACCEPTOR_STORE_NAME}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorAddress1">
        <paragraph>
          <text>${CARD_ACCEPTOR_ADDRESS1}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorAddress2">
        <paragraph>
          <text>${CARD_ACCEPTOR_ADDRESS2}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorAddress3">
        <paragraph>
          <text>${CARD_ACCEPTOR_ADDRESS3}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorTownCity">
        <paragraph>
          <text>${CARD_ACCEPTOR_TOWN_CITY}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorCountyState">
        <paragraph>
          <text>${CARD_ACCEPTOR_COUNTY_STATE}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorZipCode">
        <paragraph>
          <text>${CARD_ACCEPTOR_ZIP_CODE}</text>
        </paragraph>
      </conditional_section>
      <conditional_section name="CardAcceptorCountryName">
        <paragraph>
          <text>${CARD_ACCEPTOR_COUNTRY_NAME}</text>
        </paragraph>
      </conditional_section>
    </section>
    
    <section name="SERIAL_NUMBER">
      <conditional_section name="SERIAL_NUMBER">
        <paragraph  style="RefundTextStyle" alignment="center" >
          <field name="serialAmount">
            <label alignment="left" converter="TextGlobalizationConverter">
              <argument name="text">SERIAL_NUMBER</argument>
            </label>
            <value alignment="right">${SERIAL_NUMBER}</value>
          </field>
        </paragraph>
      </conditional_section>
    </section>
    <section name="TimeStamp">
      <conditional_section name="DATE_OF_REPORT">
        <paragraph  style="RefundTextStyle" alignment="center" >
          <text>${DATE_OF_REPORT} ${TIME_OF_REPORT}</text>
          <newline/>
        </paragraph>
      </conditional_section>
    </section>
    
 <dataBlock>
   <section name="dataBlock">
    <paragraph>
      <field name="amountFields">
        <label alignment="left" converter="TextGlobalizationConverter">
          <argument name="text">SALE</argument>
        </label>
        <value alignment="right">${SALE_COUNT}    ${SALE_AMOUNT}</value>
      </field>
    </paragraph>
    
    <paragraph>
      <field name="amountFields">
        <label alignment="left" converter="TextGlobalizationConverter">
          <argument name="text">REFUND</argument>
        </label>
        <value alignment="right">${REFUND_COUNT}    ${REFUND_AMOUNT}</value>
      </field>
    </paragraph>
    
    <paragraph style="RefundTextStyle" >
      <field name="amountFields">
        <label alignment="left" converter="TextGlobalizationConverter">
          <argument name="text">NET_TOTAL</argument>
        </label>
        <value alignment="right">${NET_TOTAL_COUNT}    ${NET_TOTAL}</value>
      </field>
      <newline/>
    </paragraph>
   
    
  <conditional_section name="INCLUSIVE_OF">
    <paragraph style="RefundTextStyle">  
       <text converter="TextGlobalizationConverter">
         <argument name="text">INCLUSIVE_OF</argument>
       </text>  
    </paragraph>
  </conditional_section>
    
  <conditional_section name="CASHBACK">
    <paragraph>
      <field name="amountFields">
        <label alignment="left" converter="TextGlobalizationConverter">
          <argument name="text">CASHBACK</argument>
        </label>
        <value alignment="right">${CASHBACK_COUNT}    ${CASHBACK}</value>
      </field>
    </paragraph>
  </conditional_section>
    
  <conditional_section name="GRATUITY">
    <paragraph>
      <field name="amountFields">
        <label alignment="left" converter="TextGlobalizationConverter">
          <argument name="text">GRATUITY</argument>
        </label>
        <value alignment="right">${GRATUITY_COUNT}    ${GRATUITY}</value>
      </field>
    </paragraph>
  </conditional_section>
    
  <conditional_section name="SURCHARGE">
    <paragraph>
      <field name="amountFields">
        <label alignment="left" converter="TextGlobalizationConverter">
          <argument name="text">SURCHARGE</argument>
        </label>
        <value alignment="right">${SURCHARGE_COUNT}    ${SURCHARGE}</value>
      </field>
    </paragraph>
  </conditional_section>
    
  <conditional_section name="CHARITY">
    <paragraph>
      <field name="amountFields">
        <label alignment="left" converter="TextGlobalizationConverter">
          <argument name="text">CHARITY</argument>
        </label>
        <value alignment="right">${CHARITY_COUNT}    ${CHARITY}</value>
      </field>
    </paragraph>
  </conditional_section>
 
    <newline/>  
      
  </section> 
 </dataBlock> 
 
 <cardSchemeTitle>
  <section name="cardSchemeTitle">
      <paragraph  style="RefundTextStyle">
        <text converter="TextGlobalizationConverter">
         <argument name="text">CARD_SCHEME_TITLE</argument>
       </text> 
     </paragraph>
   </section>
  </cardSchemeTitle>
 
  <cardScheme>
   <section name="cardScheme">
      <paragraph style="CondensedTextStyle">
        <field>
         <label alignment="left">${CARD_SCHEME}</label>
         <value alignment="right">${CARD_SCHEME_COUNT}   ${CARD_SCHEME_VALUE}</value>
        </field>
      </paragraph>
   </section>
  </cardScheme>  
     
     
  <endMessage>
    <section name="endMessage">
      <newline/>
      <paragraph style="HeadingTextStyle" alignment="center" >     
        <text converter="TextGlobalizationConverter">
          <argument name="text">REPORT_END_MESSAGE</argument>
        </text>
      </paragraph>
    </section>
  </endMessage>

 </template>