Skip to content

Invoice service: Fetch package bytes

Download and decrypt all parts of an export package in memory.

Called on auth.invoices
Source src/ksef2/services/invoices.py:230 Generated from async source src/ksef2/services/async_invoices.py
auth.invoices.fetch_package_bytes
auth.invoices.fetch_package_bytes(*, package: InvoicePackage, export: ExportHandle) -> list[bytes]

Returns

list[bytes]

Parameters

package InvoicePackage
required / keyword-only
export ExportHandle
required / keyword-only
Called on auth.invoices
Source src/ksef2/services/async_invoices.py:230 Authored source
await auth.invoices.fetch_package_bytes
await auth.invoices.fetch_package_bytes(*, package: InvoicePackage, export: ExportHandle) -> list[bytes]

Returns

list[bytes]

Parameters

package InvoicePackage
required / keyword-only
export ExportHandle
required / keyword-only