From 0881d28222cef076338db7c1fdf112686e6cdaa5 Mon Sep 17 00:00:00 2001 From: SporeStack Date: Wed, 3 Jan 2024 02:03:32 +0000 Subject: [PATCH] v10.7.1: Loosen up type for invoice ID to support new API changes --- src/sporestack/__init__.py | 2 +- src/sporestack/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sporestack/__init__.py b/src/sporestack/__init__.py index 3003b57..2ed6049 100644 --- a/src/sporestack/__init__.py +++ b/src/sporestack/__init__.py @@ -2,4 +2,4 @@ __all__ = ["api", "api_client", "client", "exceptions"] -__version__ = "10.7.0" +__version__ = "10.7.1" diff --git a/src/sporestack/models.py b/src/sporestack/models.py index ba3ca56..052e3c8 100644 --- a/src/sporestack/models.py +++ b/src/sporestack/models.py @@ -79,7 +79,7 @@ class Region(BaseModel): class Invoice(BaseModel): - id: int + id: Union[int, str] payment_uri: Annotated[ str, Field(description="Cryptocurrency URI for the payment.") ]