Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
adiciona suporte a todos os tipos de boletos (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
brenomfviana authored Oct 22, 2024
1 parent 4683547 commit 3bd85a4
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion bb_wrapper/models/boleto.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,38 @@ class ModalidadeEnum(IntEnum):
vinculada = 4


class TipoBoletoEnum(IntEnum):
APS = 20
BA = 33
BP = 32
CH = 1
CC = 31
DAE = 24
DAM = 25
DAU = 23
DM = 2
DMI = 3
DR = 6
DS = 4
DSI = 5
FAT = 18
LC = 7
ME = 21
NCC = 8
NCE = 9
NCI = 10
NCR = 11
ND = 19
NP = 12
NPR = 13
NS = 16
PCO = 22
RCO = 17
TM = 14
TS = 15
OUT = 99


class ConfiguracaoBaseTipoEnum(IntEnum):
valor = 1
porcentagem = 2
Expand Down Expand Up @@ -76,7 +108,7 @@ class Boleto(BaseModel):
quantidadeDiasProtesto: Optional[conint(ge=0)]
quantidadeDiasNegativacao: Optional[conint(ge=0)]
codigoAceite: Literal["A", "N"] = "N"
codigoTipoTitulo: Literal[4] = 4
codigoTipoTitulo: TipoBoletoEnum
descricaoTipoTitulo: Optional[str]
numeroTituloBeneficiario: Optional[str]
textoCampoUtilizacaoBeneficiario: Optional[constr(max_length=30)]
Expand Down

0 comments on commit 3bd85a4

Please sign in to comment.