From 78625a2a9272ca47850aa2b3d28ea79ff81f060e Mon Sep 17 00:00:00 2001 From: Stefan Tennigkeit Date: Thu, 15 Feb 2024 17:01:39 +0100 Subject: [PATCH] Fix: add missing allow_none=True to customer website_url attribute (#92) --- CHANGELOG.md | 6 ++++++ chartmogul/api/customer.py | 2 +- chartmogul/version.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f671986..58dd9ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning]. [Keep a Changelog]: https://keepachangelog.com/en/1.0.0/ [Semantic Versioning]: https://semver.org/spec/v2.0.0.html +## [4.2.1] - 2024-01-15 +- Fix customer website_url, add missing allow_none=True + +## [4.2.0] - 2024-01-08 +- Add support for customer website_url + ## [4.1.1] - 2023-12-21 - Fix missing customer_uuid when creating a note from a customer diff --git a/chartmogul/api/customer.py b/chartmogul/api/customer.py index bb00454..d486c94 100644 --- a/chartmogul/api/customer.py +++ b/chartmogul/api/customer.py @@ -66,7 +66,7 @@ class _Schema(Schema): currency = fields.String() currency_sign = fields.String(data_key="currency-sign") address = fields.Nested(Address._Schema, allow_none=True, unknown=EXCLUDE) - website_url = fields.String() + website_url = fields.String(allow_none=True) @post_load def make(self, data, **kwargs): diff --git a/chartmogul/version.py b/chartmogul/version.py index 72aa758..aef46ac 100644 --- a/chartmogul/version.py +++ b/chartmogul/version.py @@ -1 +1 @@ -__version__ = "4.1.1" +__version__ = "4.2.1"