diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 64caaf70..cc652089 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -4,7 +4,11 @@ on: # release: # types: [created] push: - branches: [ main ] + branches: + - main + pull_request: + branches: + - main jobs: test: diff --git a/.gitignore b/.gitignore index edeeea9b..cce4a6bb 100644 --- a/.gitignore +++ b/.gitignore @@ -157,6 +157,6 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -.idea/ +.idea .DS_Store \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b81..00000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c4b63dd..21151abb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,22 @@ # Paddle Python SDK Changelog +All notable changes to this project will be documented in this file. -## Version 0.1.0 (2024-04-05) +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -### Features: -- Initial launch! +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.1.1 - 2024-05-24 + +### Fixed + +- Fixed a [bug](https://github.com/PaddleHQ/paddle-python-sdk/issues/7) with `UpdateBusiness` operation. + +--- + +## 0.1.0 - 2024-04-05 + +### Added: + +- Initial release. diff --git a/paddle_billing/Client.py b/paddle_billing/Client.py index 31037183..d0655b3f 100644 --- a/paddle_billing/Client.py +++ b/paddle_billing/Client.py @@ -187,7 +187,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.1.0', + 'User-Agent': 'PaddleSDK/python 0.1.1', }) # Configure retries diff --git a/paddle_billing/Resources/Businesses/Operations/UpdateBusiness.py b/paddle_billing/Resources/Businesses/Operations/UpdateBusiness.py index 3f271e76..9812acd6 100644 --- a/paddle_billing/Resources/Businesses/Operations/UpdateBusiness.py +++ b/paddle_billing/Resources/Businesses/Operations/UpdateBusiness.py @@ -6,7 +6,7 @@ @dataclass class UpdateBusiness: - name: str | Undefined = Undefined + name: str | Undefined = Undefined() company_number: str | None | Undefined = Undefined() tax_identifier: str | None | Undefined = Undefined() contacts: list[Contacts] | Undefined = Undefined() diff --git a/setup.py b/setup.py index 6a445790..c9114d55 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( - version = '0.1.0', + version = '0.1.1', author = 'Paddle and contributors', author_email = 'team-dx@paddle.com',