Przejdź do głównej zawartości

Invoice service: Export and download

Ta treść nie jest jeszcze dostępna w Twoim języku.

Schedule an export, wait for it, and download the decrypted package.

Called on auth.invoices
Source src/ksef2/services/invoices.py:309 Generated from async source src/ksef2/services/async_invoices.py
auth.invoices.export_and_download
auth.invoices.export_and_download(*, filters: InvoicesFilter, only_metadata: bool = False, compression_type: CompressionType | str | None = None, timeout: float = 120.0, poll_interval: float = 2.0) -> list[bytes]

Returns

list[bytes]

Parameters

filters InvoicesFilter
required / keyword-only
only_metadata bool
default False / keyword-only
compression_type CompressionType | str | None
default None / keyword-only
timeout float
default 120.0 / keyword-only
poll_interval float
default 2.0 / keyword-only
Called on auth.invoices
Source src/ksef2/services/async_invoices.py:310 Authored source
await auth.invoices.export_and_download
await auth.invoices.export_and_download(*, filters: InvoicesFilter, only_metadata: bool = False, compression_type: CompressionType | str | None = None, timeout: float = 120.0, poll_interval: float = 2.0) -> list[bytes]

Returns

list[bytes]

Parameters

filters InvoicesFilter
required / keyword-only
only_metadata bool
default False / keyword-only
compression_type CompressionType | str | None
default None / keyword-only
timeout float
default 120.0 / keyword-only
poll_interval float
default 2.0 / keyword-only