imobanco / bb-wrapper

https://pypi.org/project/bb-wrapper/
GNU General Public License v3.0
8 stars 1 forks source link

Permite receber '\n' no content da API BB #47

Closed rodrigondec closed 2 years ago

rodrigondec commented 2 years ago

Resumo

É possível que algum pagador na hora de enviar os dados no pagamento PIX, envio dados que quebrem o parse mais estrito do JSON.

Por exemplo no campo infoPagador enviar algo tipo mensalidade (5\n%).

Por causa disso, todo o processamento do content da API BB deve ser strict=False!

codecov[bot] commented 2 years ago

Codecov Report

Merging #47 (541a35b) into main (185f988) will increase coverage by 0.30%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   87.76%   88.06%   +0.30%     
==========================================
  Files          23       23              
  Lines         989      989              
==========================================
+ Hits          868      871       +3     
+ Misses        121      118       -3     
Impacted Files Coverage Δ
bb_wrapper/wrapper/request.py 73.49% <100.00%> (ø)
bb_wrapper/wrapper/pix_cob.py 52.54% <0.00%> (+5.08%) :arrow_up:
Impacted Files Coverage Δ
bb_wrapper/wrapper/request.py 73.49% <100.00%> (ø)
bb_wrapper/wrapper/pix_cob.py 52.54% <0.00%> (+5.08%) :arrow_up: