bank=UserBank(bankId="341",
                            branchCode="4321",
                            accountNumber="12345678",
                            accountVerifier="9"),
              address=UserAddress(streetLine1="AV PAULISTA 1000",
                                  city="SAO PAULO",
                                  stateCode="SP",
                                  zipCode="01310000"))

barCode = BarCode("34112345600000012311090000250501234123454000")
taxId = "12345678901234"

file = File()
file.setHeaderLotType(
    kind="98",  # Tipo de pagamento - Diversos
    method=
    "30"  # Pagamento de Boleto mesmo banco = 30; Pagamento de Boleto outro banco = 31
)
file.setSender(sender)

payment = ChargePayment()
payment.setSender(sender)
payment.setScheduleDate("08062019")
payment.setIdentifier("ID1234567890")
payment.setBarCode(barCode)
payment.setReceiverTaxId(taxId)

file.add(register=payment)

file.output(fileName="output3.REM", path="/../../")
sender = User(name="YOUR COMPANY NAME HERE",
              identifier="12345678901234",
              bank=UserBank(bankId="341",
                            branchCode="4321",
                            accountNumber="12345678",
                            accountVerifier="9"),
              address=UserAddress(streetLine1="AV PAULISTA 1000",
                                  city="SAO PAULO",
                                  stateCode="SP",
                                  zipCode="01310000"))

lineNumber = LineNumberO("846800000012349701090114004112370844901232603900")

file = File()
file.setHeaderLotType(
    kind="98",  # Tipo de pagamento - Diversos
    method="13"  # Concessionarias
)
file.setSender(sender)

payment = UtilityPayment()
payment.setPayment(sender=sender,
                   scheduleDate="18032020",
                   identifier="ID1234567890",
                   lineNumber=lineNumber)

file.add(register=payment)

file.output(fileName="output.REM", path="/../../")
                            accountVerifier="9"),
              address=UserAddress(streetLine1="AV PAULISTA 1000",
                                  city="SAO PAULO",
                                  stateCode="SP",
                                  zipCode="01310000"))

receiver = User(name="RECEIVER NAME HERE",
                identifier="12345678901",
                bank=UserBank(bankId="033",
                              branchCode="1234",
                              accountNumber="123456",
                              accountVerifier="7"))

file = File()
file.setHeaderLotType(
    kind="20",  #Tipo de pagamento - Diversos
    method="01"  #TED - Outra titularidade
)
file.setSender(sender)

payment = Transfer()
payment.setSender(sender)
payment.setReceiver(receiver)
payment.setAmountInCents("12000")
payment.setScheduleDate("12102017")
payment.setInfo(reason="10"  #Crédito em Conta Corrente
                )
payment.setIdentifier("ID1234567890")
file.add(register=payment)

file.output(fileName="output.REM", path="/../../")