Skip to content

Commit

Permalink
fix: PaymentMethod type property is required (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgrayston-paddle authored Nov 14, 2024
1 parent c9fe3a3 commit c3d76e8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

## 1.1.1 - 2024-11-14

### Fixed

- `paddle_billing.Entities.PaymentMethod` `type` property is required

## 1.1.0 - 2024-11-14

### Added
Expand Down
2 changes: 1 addition & 1 deletion paddle_billing/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,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 1.1.0",
"User-Agent": "PaddleSDK/python 1.1.1",
}
)

Expand Down
2 changes: 1 addition & 1 deletion paddle_billing/Entities/PaymentMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PaymentMethod(Entity):
id: str
customer_id: str
address_id: str
type: SavedPaymentMethodType | None
type: SavedPaymentMethodType
card: Card | None
paypal: Paypal | None
origin: SavedPaymentMethodOrigin
Expand Down
2 changes: 1 addition & 1 deletion paddle_billing/Notifications/Entities/PaymentMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PaymentMethod(Entity):
id: str
customer_id: str
address_id: str
type: SavedPaymentMethodType | None
type: SavedPaymentMethodType
origin: SavedPaymentMethodOrigin
saved_at: datetime
updated_at: datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PaymentMethodDeleted(Entity):
id: str
customer_id: str
address_id: str
type: SavedPaymentMethodType | None
type: SavedPaymentMethodType
origin: SavedPaymentMethodOrigin
saved_at: datetime
updated_at: datetime
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


setup(
version="1.1.0",
version="1.1.1",
author="Paddle and contributors",
author_email="[email protected]",
description="Paddle's Python SDK for Paddle Billing",
Expand Down

0 comments on commit c3d76e8

Please sign in to comment.