diff --git a/CHANGELOG.md b/CHANGELOG.md index dd70238..0933270 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-python-sdk) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools. +## 0.3.2 - 2024-11-07 + +### Fixed + +- `paddle_billing.Entities.Shared.TransactionLineItemPreview` `proration` can now be None + ## 0.3.1 - 2024-10-14 ### Fixed diff --git a/paddle_billing/Client.py b/paddle_billing/Client.py index 72d23d8..8709624 100644 --- a/paddle_billing/Client.py +++ b/paddle_billing/Client.py @@ -206,7 +206,7 @@ def build_request_session(self) -> Session: "Authorization": f"Bearer {self.__api_key}", "Content-Type": "application/json", "Paddle-Version": str(self.use_api_version), - "User-Agent": "PaddleSDK/python 0.2.2", + "User-Agent": "PaddleSDK/python 0.3.2", } ) diff --git a/paddle_billing/Entities/Shared/TransactionLineItemPreview.py b/paddle_billing/Entities/Shared/TransactionLineItemPreview.py index ff0b181..665c6dc 100644 --- a/paddle_billing/Entities/Shared/TransactionLineItemPreview.py +++ b/paddle_billing/Entities/Shared/TransactionLineItemPreview.py @@ -15,7 +15,7 @@ class TransactionLineItemPreview: unit_totals: UnitTotals totals: Totals product: Product - proration: Proration + proration: Proration | None @staticmethod def from_dict(data: dict) -> TransactionLineItemPreview: @@ -26,5 +26,5 @@ def from_dict(data: dict) -> TransactionLineItemPreview: unit_totals=UnitTotals.from_dict(data["unit_totals"]), totals=Totals.from_dict(data["totals"]), product=Product.from_dict(data["product"]), - proration=Proration.from_dict(data["proration"]), + proration=Proration.from_dict(data["proration"]) if data.get("proration") else None, ) diff --git a/setup.py b/setup.py index 45c5236..5c3b94a 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( - version="0.3.1", + version="0.3.2", author="Paddle and contributors", author_email="team-dx@paddle.com", description="Paddle's Python SDK for Paddle Billing",