Skip to content

Commit d438eec

Browse files
authored
Fixes for v2 (#55)
* fix for invoice to string * fix for changelog
1 parent f244778 commit d438eec

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# Mindee python SDK
1+
# Mindee Python API Helper Changelog
22

33
## v2.0.0 (2022-02-14)
44

55
### New Features
66
* :sparkles: Allow using custom documents (API builder)
77

88
### :boom: Breaking Changes
9-
* :recycle: `confidence` renamed to `probability` in the return fields to match API return
9+
* :recycle: `probability` renamed to `confidence` in the return fields to match
10+
API return
1011
* :recycle: `Client` initialization reworked to be more extensible
1112
* :recycle: Document loading and parsing reworked to separate arguments
1213

mindee/documents/invoice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ def __str__(self) -> str:
204204
self.invoice_date.value,
205205
self.due_date.value,
206206
self.supplier.value,
207-
self.payment_details,
208-
",".join([str(t.value) + " " + str(t.rate) + "%" for t in self.taxes]),
207+
", ".join([str(p) for p in self.payment_details]),
208+
", ".join([str(t.value) + " " + str(t.rate) + "%" for t in self.taxes]),
209209
self.total_tax.value,
210210
)
211211
)

0 commit comments

Comments
 (0)