Dariusz Aniszewski 33bd9b1e6d added readme
2015-06-14 00:12:31 +02:00
2015-05-27 23:00:28 +02:00
2015-06-14 00:12:31 +02:00
2015-05-27 23:00:28 +02:00
2015-05-27 23:00:28 +02:00

python-ifirma (in progress)

Extremely simple wrapper for iFirma API.

##Features

Implemented

  • generating invoice in iFirma service

Planned

  • downloading invoice PDF
  • generating proforma invoice
  • generating invoice based on proforma

##Prerequisites

Go to your iFirma account and generate API keys of following types:

  • faktura (required)
  • abonent (optional)

Testing

iFirma offers demo account that can be used for testing and development

##Usage

  1. Create instance of iFirmaAPI
ifirma_client = iFirmaAPI(TEST_IFIRMA_USER, TEST_IFIRMA_INVOICE_KEY, TEST_IFIRMA_USER_KEY)
  1. Create invoice parameters

    client = Client(
        "Dariusz",
        "1231231212",
        Address(
            "Warszawa", 
            "03-185"
        ),
        email="email@server.com",
    )
    
    position = Position(
        VAT.VAT_23, 
        1, 
        1000, 
        "nazwa", 
        "szt"
    )
  1. Create invoice in iFirma service and get it's id
invoice = NewInvoiceParams(client, [position])
invoice_id = ifirma_client.generate_invoice(invoice)

That's all folks

Description
No description provided
Readme 249 KiB
Languages
Python 100%