Skip to content

Latest commit

 

History

History
92 lines (67 loc) · 8.43 KB

File metadata and controls

92 lines (67 loc) · 8.43 KB
graph LR
    SDK_Clients["SDK Clients"]
    Core_Communication_Utilities["Core Communication & Utilities"]
    API_Service_Modules["API Service Modules"]
    SDK_Configuration["SDK Configuration"]
    SDK_Clients -- "initializes and uses" --> Core_Communication_Utilities
    SDK_Clients -- "aggregates" --> API_Service_Modules
    API_Service_Modules -- "sends requests via" --> Core_Communication_Utilities
    API_Service_Modules -- "processes data with" --> Core_Communication_Utilities
    SDK_Configuration -- "configures" --> SDK_Clients
    SDK_Configuration -- "configures" --> Core_Communication_Utilities
    click SDK_Clients href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/square-python-sdk/SDK Clients.md" "Details"
    click Core_Communication_Utilities href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/square-python-sdk/Core Communication & Utilities.md" "Details"
    click API_Service_Modules href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/square-python-sdk/API Service Modules.md" "Details"
    click SDK_Configuration href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/square-python-sdk/SDK Configuration.md" "Details"
Loading

CodeBoardingDemoContact

Component Details

The square-python-sdk architecture is designed around a clear separation of concerns, primarily distinguishing between legacy and modern SDK clients. The modern SDK offers both synchronous and asynchronous interfaces, all of which rely on a robust Core Communication & Utilities layer for HTTP requests, data handling, error management, and pagination. Specific Square API functionalities are encapsulated within API Service Modules, which interact with the core communication layer. Global settings and authentication are managed by the SDK Configuration component, which influences the behavior of both the SDK clients and the underlying communication mechanisms.

SDK Clients

The primary entry points for interacting with the Square API, providing both synchronous and asynchronous interfaces for the modern SDK, and a single client for the legacy SDK. These clients aggregate various API-specific modules.

Related Classes/Methods:

Core Communication & Utilities

Provides the foundational services for the SDK, including executing HTTP requests, handling data serialization/deserialization, managing API-specific errors, and facilitating pagination for API responses.

Related Classes/Methods:

API Service Modules

A collection of specialized client modules, each dedicated to a specific Square API category (e.g., Payments, Bookings, Customers). These modules encapsulate the business logic for interacting with their respective API endpoints.

Related Classes/Methods:

SDK Configuration

Manages the SDK's global settings, including authentication credentials, environment selection, and HTTP client configurations for both legacy and modern clients.

Related Classes/Methods: