Skip to content

PTHMINT-117: terminals and terminal-groups APIs and tests#56

Open
zulquer wants to merge 1 commit intoPTHMINT-116from
PTHMINT-117
Open

PTHMINT-117: terminals and terminal-groups APIs and tests#56
zulquer wants to merge 1 commit intoPTHMINT-116from
PTHMINT-117

Conversation

@zulquer
Copy link
Copy Markdown
Collaborator

@zulquer zulquer commented Apr 23, 2026

This pull request introduces a comprehensive implementation for POS terminal and terminal group management in the SDK, along with example scripts and supporting models. The changes include new managers, request and response models, and integration into the main SDK interface.

SDK Feature Additions:

  • Added TerminalManager and TerminalGroupManager classes to provide API operations for POS terminals and terminal groups, including listing and creation endpoints. [1] [2] [3] [4]
  • Integrated the new managers into the Sdk class, exposing get_terminal_manager and get_terminal_group_manager methods for easy access. [1] [2]

Request and Response Models:

  • Introduced CreateTerminalRequest for creating POS terminals, with validation for allowed providers and builder-style methods for setting attributes. [1] [2]
  • Added Terminal response model to represent terminal data returned by the API, including a static method for instantiation from dictionaries. [1] [2]

Examples and Usage:

  • Added example scripts demonstrating terminal creation, terminal listing, and fetching terminals by group, showcasing usage of the new SDK features and environment variable setup. [1] [2] [3]

Other Improvements:

  • Minor test utility improvement: _validate_e2e_base_url now takes the environment variable name for clearer error messages.

Introduce Terminal and TerminalGroup API surface: TerminalManager and TerminalGroupManager, request/response models (CreateTerminalRequest, Terminal), and listing/creation flows. Expose new SDK getters (get_terminal_manager, get_terminal_group_manager). Add example scripts for creating and listing terminals and listing terminals by group, plus dedicated example E2E fixtures that selectively skip tests when required env vars are missing. Include comprehensive unit and E2E tests covering serialization, option filtering, auth scopes, endpoint URLs, and response mapping. Also adjust shared e2e conftest validation signature to accept env name for clearer error messages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant