Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions services/billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def cancel_and_refund(
subscription=owner.stripe_subscription_id,
status="paid",
created={
"created.gte": int(start_of_last_period.timestamp()),
"created.lt": int(current_subscription_datetime.timestamp()),
"gte": int(start_of_last_period.timestamp()),
"lt": int(current_subscription_datetime.timestamp()),
},
)

Expand Down
6 changes: 3 additions & 3 deletions services/tests/test_billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def test_delete_subscription_with_schedule_releases_schedule_and_cancels_subscri
list_invoice_mock.assert_called_once_with(
subscription=stripe_subscription_id,
status="paid",
created={"created.gte": 1458263420, "created.lt": 1489799420},
created={"gte": 1458263420, "lt": 1489799420},
)
self.assertEqual(create_refund_mock.call_count, 2)
modify_customer_mock.assert_called_once_with(
Expand Down Expand Up @@ -523,7 +523,7 @@ def test_delete_subscription_with_schedule_releases_schedule_and_cancels_subscri
list_invoice_mock.assert_called_once_with(
subscription=stripe_subscription_id,
status="paid",
created={"created.gte": 1458263420, "created.lt": 1489799420},
created={"gte": 1458263420, "lt": 1489799420},
)
self.assertEqual(create_refund_mock.call_count, 2)
modify_customer_mock.assert_called_once_with(
Expand Down Expand Up @@ -600,7 +600,7 @@ def test_delete_subscription_with_schedule_releases_schedule_and_cancels_subscri
list_invoice_mock.assert_called_once_with(
subscription=stripe_subscription_id,
status="paid",
created={"created.gte": 1458263420, "created.lt": 1489799420},
created={"gte": 1458263420, "lt": 1489799420},
)
create_refund_mock.assert_not_called()
modify_customer_mock.assert_not_called()
Expand Down
Loading