Boleto

Aqui exemplificamos como é demonstrado no arquivo a geração e o pagamento de um boleto.

O ciclo de vida do boleto segue o mesmo fluxo do ciclo de vida da captura, e pode ser identificado pelos seguintes campos no evento de captura:
<AccountType>10</AccountType> <BrandId>1033</BrandId>

<FinancialTransactions>
    ...
   <Transaction>
      <Events>
                <CancellationCharges>0</CancellationCharges>
                <Cancellations>0</Cancellations>
                <Captures>1</Captures>
                <ChargebackRefunds>0</ChargebackRefunds>
                <Chargebacks>0</Chargebacks>
                <Payments>0</Payments>
      </Events>
      <AcquirerTransactionKey>10100004667678</AcquirerTransactionKey>
      <InitiatorTransactionKey>8764268</InitiatorTransactionKey>
      <AuthorizationDateTime>20200123000000</AuthorizationDateTime>
      <CaptureLocalDateTime>20200124072808</CaptureLocalDateTime>
      <International>False</International>
      <AccountType>10</AccountType>
      <InstallmentType>1</InstallmentType>
      <NumberOfInstallments>1</NumberOfInstallments>
      <AuthorizedAmount>82.900000</AuthorizedAmount>
      <CapturedAmount>82.900000</CapturedAmount>
      <AuthorizationCurrencyCode>986</AuthorizationCurrencyCode>
      <IssuerAuthorizationCode />
      <BrandId>1033</BrandId>
      <Poi>
         <PoiType>4</PoiType>
      </Poi>
      <EntryMode>1</EntryMode>
      <Installments>
         <Installment>
              <InstallmentNumber>1</InstallmentNumber>
              <GrossAmount>82.900000</GrossAmount>
              <NetAmount>79.800000</NetAmount>
              <PrevisionPaymentDate>20200127</PrevisionPaymentDate>
         </Installment>
      </Installments>
   </Transaction>
    ...
</FinancialTransactions>
<FinancialTransactionsAccounts>
    ...
    <Transaction>
        <Events>
            <CancellationCharges>0</CancellationCharges>
            <Cancellations>0</Cancellations>
            <Captures>0</Captures>
            <ChargebackRefunds>0</ChargebackRefunds>
            <Chargebacks>0</Chargebacks>
            <Payments>1</Payments>
        </Events>
        <AcquirerTransactionKey>10100004667678</AcquirerTransactionKey>
            <InitiatorTransactionKey>8764268</InitiatorTransactionKey>
            <AuthorizationDateTime>20200123000000</AuthorizationDateTime>
            <CaptureLocalDateTime>20200124072808</CaptureLocalDateTime>
        <Poi>
            <PoiType>4</PoiType>
        </Poi>
        <EntryMode>1</EntryMode>
        <Installments>
            <Installment>
               <InstallmentNumber>1</InstallmentNumber>
               <GrossAmount>82.900000</GrossAmount>
               <NetAmount>79.800000</NetAmount>
                <PaymentDate>20200127</PaymentDate>
                <PaymentId>1234567</PaymentId>
            </Installment>
        </Installments>
    </Transaction>
    ...
</FinancialTransactionsAccounts>
...
<Payments>
    <Payment>
        <Id>1234567</Id>
        <WalletTypeId>3</WalletTypeId>
        <TotalAmount>79.800000</TotalAmount>
        <TotalFinancialAccountsAmount>79.800000</TotalFinancialAccountsAmount>
        <LastNegativeAmount>0.00</LastNegativeAmount>
        <FavoredBankAccount>
            <BankCode>XX</BankCode>
            <BankBranch>XXXX</BankBranch>
            <BankAccountNumber>XXXXXXXXX</BankAccountNumber>
        </FavoredBankAccount>
    </Payment>
</Payments>