<Orders>
    <UpdateOrder>
        <Function>{{ function_value }}</Function>
        <ErrorLevel>2</ErrorLevel>
        <ReferenceNumber>{{ reference_number }}</ReferenceNumber>
        <CheckNumber>{{ ticket_number }}</CheckNumber>
        <EnforcePartyCount>Y</EnforcePartyCount>
        <Check>
            <CheckHeader>
               {%- if terminal_number %}
               <TerminalNumber>{{ terminal_number }}</TerminalNumber>
               {%- endif %}
            </CheckHeader>
        </Check>
    </UpdateOrder>
</Orders>
