checkbox_sdk.storage package¶
Submodules¶
checkbox_sdk.storage.simple module¶
- class checkbox_sdk.storage.simple.SessionStorage(token: str | None = None, license_key: str | None = None, machine_id: str | None = None, cashier: Dict[str, Any] | None = None, cash_register: Dict[str, Any] | None = None, shift: Dict[str, Any] | None = None)¶
Bases:
objectA class to store session-related data for making authenticated API requests.
This class stores session-specific information such as the authorization token, license key, and machine ID. It also manages the headers required for authentication and provides decoded token data.
- token¶
The authentication token used for API requests.
- Type:
Optional[str]
- license_key¶
The license key associated with the session.
- Type:
Optional[str]
- machine_id¶
The machine/device ID used in requests.
- Type:
Optional[str]
- cashier¶
The cashier information for the session.
- Type:
Optional[Dict]
- cash_register¶
The cash register information for the session.
- Type:
Optional[Dict]
- shift¶
The active shift information for the session.
- Type:
Optional[Dict]
- cash_register: Dict[str, Any] | None = None¶
- cashier: Dict[str, Any] | None = None¶
- property headers¶
- license_key: str | None = None¶
- machine_id: str | None = None¶
- shift: Dict[str, Any] | None = None¶
- token: str | None = None¶
- property token_data: Dict[str, Any] | None¶