Skip to content

Commit 47ea9d7

Browse files
Merge pull request #36 from starkbank/fix/parse-invalid-date-occurrence
Add AP occurrence code on map to failed status
2 parents d4b3f40 + f143fd4 commit 47ea9d7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎febraban/cnab240/itau/sispag/result/parser.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def status(self):
4141
return PaymentResponseStatus.success
4242
if "BD" in self.occurrences:
4343
return PaymentResponseStatus.scheduled
44-
if [code in self.occurrences for code in ["RJ", "DV", "SS"]].count(True) > 0:
44+
if [code in self.occurrences for code in ["RJ", "DV", "SS", "AP"]].count(True) > 0:
4545
return PaymentResponseStatus.failed
4646
return PaymentResponseStatus.unknown
4747

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
author="Stark Bank",
1616
author_email="developers@starkbank.com",
1717
keywords=["febraban", "cnab", "cnab 240", "cnab240", "febraban240", "transfer", "billing", "bank"],
18-
version="0.11.0"
18+
version="0.12.0"
1919
)
2020

2121
"""

0 commit comments

Comments
 (0)