Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ extend-safe-fixes = [
"D415", # docstrings should end with a period, question mark, or exclamation point
]
ignore = [
"D100",
"D101",
"D103",
"D104",
Expand Down
1 change: 1 addition & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""MultiSafepay Python SDK source package."""
1 change: 1 addition & 0 deletions src/multisafepay/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""MultiSafepay Python SDK main package."""
1 change: 1 addition & 0 deletions src/multisafepay/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""API package for MultiSafepay SDK API management components."""
1 change: 1 addition & 0 deletions src/multisafepay/api/base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Base API management classes and utilities for MultiSafepay SDK."""
2 changes: 2 additions & 0 deletions src/multisafepay/api/base/abstract_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Abstract base manager class for MultiSafepay API managers."""

import urllib.parse

from multisafepay.client.client import Client
Expand Down
2 changes: 2 additions & 0 deletions src/multisafepay/api/base/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Decorator class for response model transformations and dependencies."""

from typing import Any, Dict, List, Optional


Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/base/listings/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Listing and pagination utilities for API responses."""
2 changes: 2 additions & 0 deletions src/multisafepay/api/base/listings/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Cursor implementation for pagination in API listings."""

from typing import Optional

from multisafepay.model.response_model import ResponseModel
Expand Down
2 changes: 2 additions & 0 deletions src/multisafepay/api/base/listings/listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Generic listing container for API response collections."""

from typing import Any, Dict, Generic, Iterator, List, TypeVar

from pydantic.main import BaseModel
Expand Down
2 changes: 2 additions & 0 deletions src/multisafepay/api/base/listings/listing_pager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Paginated listing implementation combining listings with pagers."""

from typing import Optional

from multisafepay.api.base.listings.listing import Listing
Expand Down
2 changes: 2 additions & 0 deletions src/multisafepay/api/base/listings/pager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Pager implementation for handling pagination in API responses."""


from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/base/response/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Shared response abstractions and utilities for API responses."""
1 change: 1 addition & 0 deletions src/multisafepay/api/base/response/api_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""API response wrapper class for handling MultiSafepay API responses."""

from typing import Optional, Union

Expand Down
2 changes: 2 additions & 0 deletions src/multisafepay/api/base/response/custom_api_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Custom API response class with generic typing support for flexible response handling."""

from typing import Any, Dict, Optional, Union

from multisafepay.api.base.response.api_response import ApiResponse
Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""API path endpoints for MultiSafepay SDK operations."""
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Authentication API endpoints for managing access credentials."""
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/auth/api_token/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""API token management endpoints and request models."""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Response models for authentication token issuance and metadata."""
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Copyright (c) MultiSafepay, Inc. All rights reserved.
from typing import Optional

# This file is licensed under the Open Software License (OSL) version 3.0.
# For a copy of the license, see the LICENSE.txt file in the project root.

# See the DISCLAIMER.md file for disclaimer details.

"""API token response model for handling authentication token data."""

from typing import Optional

from multisafepay.model.response_model import ResponseModel


Expand Down
2 changes: 2 additions & 0 deletions src/multisafepay/api/paths/auth/auth_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Authentication manager for handling API token operations."""

from multisafepay.api.base.abstract_manager import AbstractManager
from multisafepay.api.base.response.api_response import ApiResponse
from multisafepay.api.base.response.custom_api_response import (
Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/capture/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Standalone capture API endpoints for managing payment captures."""
2 changes: 2 additions & 0 deletions src/multisafepay/api/paths/capture/capture_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Capture manager for handling reservation capture operations."""

import json

from multisafepay.api.base.abstract_manager import AbstractManager
Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/capture/request/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Request models for initiating standalone capture operations."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Capture request model for processing reservation captures."""

from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/capture/response/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Response models for standalone capture outcomes and details."""
2 changes: 2 additions & 0 deletions src/multisafepay/api/paths/capture/response/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Capture response model for handling capture operation results and status information."""

from typing import Optional

from multisafepay.model.response_model import ResponseModel
Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/categories/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Category API endpoints for retrieving payment categories."""
2 changes: 2 additions & 0 deletions src/multisafepay/api/paths/categories/category_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Category manager for retrieving transaction and payment categories."""

from multisafepay.api.base.abstract_manager import AbstractManager
from multisafepay.api.base.response.custom_api_response import (
CustomApiResponse,
Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/categories/response/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Response models for category listings and metadata."""
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/categories/response/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Category response model for handling payment category information and classification."""

from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/gateways/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Gateway API endpoints for retrieving available payment gateways."""
2 changes: 2 additions & 0 deletions src/multisafepay/api/paths/gateways/gateway_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Gateway manager for handling payment gateway operations and information."""

from multisafepay.api.base.abstract_manager import AbstractManager
from multisafepay.api.base.response.custom_api_response import (
CustomApiResponse,
Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/gateways/response/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Response models describing payment gateway metadata and configuration."""
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/gateways/response/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Gateway response model for handling payment gateway configuration and information."""

from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/issuers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Issuer API endpoints for payment issuer information."""
2 changes: 2 additions & 0 deletions src/multisafepay/api/paths/issuers/issuer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Issuer manager for retrieving payment gateway issuers and bank options."""

from multisafepay.api.base.abstract_manager import AbstractManager
from multisafepay.api.base.response.custom_api_response import (
CustomApiResponse,
Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/issuers/response/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Issuer response models and data structures."""
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/issuers/response/issuer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Issuer response model for handling payment issuer information and configurations."""

from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/me/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Account information API endpoints for the authenticated user."""
2 changes: 2 additions & 0 deletions src/multisafepay/api/paths/me/me_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Me manager for retrieving account and merchant information."""

from multisafepay.api.base.abstract_manager import AbstractManager
from multisafepay.api.base.response.custom_api_response import (
CustomApiResponse,
Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/me/response/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Response models for account profile and credentials queries."""
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/me/response/me.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Me response model for handling account information and user profile data."""

from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/orders/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Order API endpoints and order management functionality."""
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/orders/order_id/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Order ID specific operations and endpoints."""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Capture operations and endpoints for specific orders."""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Request models for capturing payments on existing orders."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Capture request model for handling order capture operations and parameters."""

from typing import Optional, Union

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Response models for order capture outcomes and summaries."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Order capture response model for handling successful capture operations."""

from typing import Optional

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Order refund operations and endpoints."""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Request models for handling refund operations on specific orders."""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Component models supporting order refund request payloads."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Checkout data model for refund request checkout information and configuration."""

from typing import List, Optional

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Refund request model for handling order refund operations and parameters."""

from typing import Optional, Union

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Response models for order refund results and status details."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Order refund response model for handling successful refund operations."""

from typing import Optional

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Update operations and endpoints for modifying existing orders."""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Request models for updating order details and metadata."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Update request model for handling order update operations and parameters."""

from typing import Optional

Expand Down
2 changes: 2 additions & 0 deletions src/multisafepay/api/paths/orders/order_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Order manager for handling order operations and API endpoints."""

import json
from typing import Union

Expand Down
1 change: 1 addition & 0 deletions src/multisafepay/api/paths/orders/request/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Order request models and data structures for creating orders."""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Order request components for detailed order configuration and settings."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Checkout options component for order request configuration and settings."""

from typing import Optional

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Customer info model for handling customer information in order requests."""

from typing import Optional

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Gateway-specific information components for order configuration."""
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Account model for gateway-specific account information and configuration."""

from typing import Optional, Union

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Credit card model for gateway-specific credit card information and processing."""

from typing import Optional, Union

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Destination holder model for gateway-specific destination account information."""

from typing import Optional, Union

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Issuer model for gateway-specific issuer information and configuration."""

from typing import Optional

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""Meta model for gateway-specific metadata and additional configuration options."""

from typing import Optional, Union

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""QR code model for gateway-specific QR code generation and display settings."""

from typing import Optional

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# See the DISCLAIMER.md file for disclaimer details.

"""QR enabled model for gateway-specific QR code enabling and configuration."""

from typing import Optional

Expand Down
Loading