fix billing

This commit is contained in:
2025-08-27 22:17:33 -03:00
parent b3a4b48fe5
commit 83c97f409b
12 changed files with 129 additions and 45 deletions

View File

@@ -33,7 +33,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
+ SortKey('canceled', path_spec='author', rename_key='canceled_by')
)
created_at: datetime = fromisoformat(new_image['create_date']) # type: ignore
created_at: datetime = fromisoformat(new_image['created_at']) # type: ignore
start_date, end_date = get_billing_period(
billing_day=int(subscription['billing_day']),
date_=created_at,