Przejdź do głównej zawartości

Authenticated client: Batch session

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

Open a batch session for upload work.

Use via auth = client.authentication.with_token(...)
Source src/ksef2/clients/authenticated.py:174 Generated from async source src/ksef2/clients/async_authenticated.py
auth.batch_session
auth.batch_session(*, prepared_batch: PreparedBatch | None = None, batch_file: BatchFileInfo | None = None, form_code: FormSchema = FormSchema.FA3, offline_mode: bool = False) -> BatchSessionClient

Returns

BatchSessionClient

Parameters

prepared_batch PreparedBatch | None
default None / keyword-only
batch_file BatchFileInfo | None
default None / keyword-only
form_code FormSchema
default FormSchema.FA3 / keyword-only
offline_mode bool
default False / keyword-only
Use via auth = async_client.authentication.with_token(...)
Source src/ksef2/clients/async_authenticated.py:172 Authored source
auth.batch_session
auth.batch_session(*, prepared_batch: PreparedBatch | None = None, batch_file: BatchFileInfo | None = None, form_code: FormSchema = FormSchema.FA3, offline_mode: bool = False) -> _AwaitableSession[AsyncBatchSessionClient]

Returns

_AwaitableSession[AsyncBatchSessionClient]

Parameters

prepared_batch PreparedBatch | None
default None / keyword-only
batch_file BatchFileInfo | None
default None / keyword-only
form_code FormSchema
default FormSchema.FA3 / keyword-only
offline_mode bool
default False / keyword-only