Skip to content

Invoice service: Fetch package

Download and decrypt all parts of an export package to disk.

Called on auth.invoices
Source src/ksef2/services/invoices.py:182 Generated from async source src/ksef2/services/async_invoices.py
auth.invoices.fetch_package
auth.invoices.fetch_package(*, package: InvoicePackage, export: ExportHandle, target_directory: Path | str = Path('.')) -> list[Path]

Returns

list[Path]

Parameters

package InvoicePackage
required / keyword-only
export ExportHandle
required / keyword-only
target_directory Path | str
default Path('.') / keyword-only
Called on auth.invoices
Source src/ksef2/services/async_invoices.py:181 Authored source
await auth.invoices.fetch_package
await auth.invoices.fetch_package(*, package: InvoicePackage, export: ExportHandle, target_directory: Path | str = Path('.')) -> list[Path]

Returns

list[Path]

Parameters

package InvoicePackage
required / keyword-only
export ExportHandle
required / keyword-only
target_directory Path | str
default Path('.') / keyword-only