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

Commit b6c5ca3

Browse files
committed
adiciona suporte a todos os tipos de boletos
1 parent 4683547 commit b6c5ca3

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

Diff for: bb_wrapper/models/boleto.py

+33-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,38 @@ class ModalidadeEnum(IntEnum):
1818
vinculada = 4
1919

2020

21+
class TipoBoletoEnum(IntEnum):
22+
APS = 20
23+
BA = 33
24+
BP = 32
25+
CH = 1
26+
CC = 31
27+
DAE = 24
28+
DAM = 25
29+
DAU = 23
30+
DM = 2
31+
DMI = 3
32+
DR = 6
33+
DS = 4
34+
DSI = 5
35+
FAT = 18
36+
LC = 7
37+
ME = 21
38+
NCC = 8
39+
NCE = 9
40+
NCI = 10
41+
NCR = 11
42+
ND = 19
43+
NP = 12
44+
NPR = 13
45+
NS = 16
46+
PCO = 22
47+
RCO = 17
48+
TM = 14
49+
TS = 15
50+
OUT = 99
51+
52+
2153
class ConfiguracaoBaseTipoEnum(IntEnum):
2254
valor = 1
2355
porcentagem = 2
@@ -76,7 +108,7 @@ class Boleto(BaseModel):
76108
quantidadeDiasProtesto: Optional[conint(ge=0)]
77109
quantidadeDiasNegativacao: Optional[conint(ge=0)]
78110
codigoAceite: Literal["A", "N"] = "N"
79-
codigoTipoTitulo: Literal[4] = 4
111+
codigoTipoTitulo: TipoBoletoEnum
80112
descricaoTipoTitulo: Optional[str]
81113
numeroTituloBeneficiario: Optional[str]
82114
textoCampoUtilizacaoBeneficiario: Optional[constr(max_length=30)]

0 commit comments

Comments
 (0)