diff --git a/readme.md b/readme.md index 2b57898..4f4727c 100644 --- a/readme.md +++ b/readme.md @@ -8,10 +8,10 @@ Extremely simple wrapper for iFirma API. **Implemented** - generating invoice in iFirma service +- downloading invoice PDF **Very soon** -- downloading invoice PDF - generating proforma invoice - generating invoice based on proforma @@ -67,6 +67,12 @@ invoice = NewInvoiceParams(client, [position]) invoice_id = ifirma_client.generate_invoice(invoice) ``` -In near future you can use `invoice_id` to perform other actions like downloading PDF or getting details. +#####4. Download invoice PDF +In order to get PDF file with created invoice use `get_invoice_pdf(invoice_id)` method. It will return file handler. +```python +pdf_file_obj = ifirma_client.get_invoice_pdf(invoice_id) +``` + + **That's all folks** diff --git a/setup.py b/setup.py index 9f7397e..57ecd32 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="python-ifirma", - version="0.0.1", + version="0.0.2", packages=find_packages(), install_requires=[ 'requests',