Skip to content

Commit 51e2d93

Browse files
Merge pull request #148 from starkbank/fix/invoice-pull-subscription-end-attribute
Fixed end and due attributes to InvoicePullSubscription
2 parents 4217b27 + 26ed5ef commit 51e2d93

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Given a version number MAJOR.MINOR.PATCH, increment:
1313

1414

1515
## [Unreleased]
16+
### Fixed
17+
- end and due attributes to InvoicePullSubscription
1618

1719
## [2.30.0] - 2025-07-15
1820
### Added

starkbank/invoicepullsubscription/__invoicepullsubscription.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ def __init__(self, start, interval, pull_mode, pull_retry_limit, type, amount=No
4949
self.amount = amount
5050
self.amount_min_limit = amount_min_limit
5151
self.display_description = display_description
52-
self.due = due
52+
self.due = None if due == "" else check_datetime_or_date(due)
5353
self.external_id = external_id
5454
self.reference_code = reference_code
55-
self.end = check_datetime_or_date(end)
55+
self.end = None if end == "" else check_datetime_or_date(end)
5656
self.data = data
5757
self.name = name
5858
self.tax_id = tax_id

0 commit comments

Comments
 (0)