add cancel schedule

This commit is contained in:
2025-12-15 16:38:40 -03:00
parent 2774545d09
commit 62b5340b20
11 changed files with 238 additions and 85 deletions

View File

@@ -30,14 +30,14 @@ def test_cancel_enrollment(
lambda_context: LambdaContext,
):
now_ = now()
start_date, end_date = get_billing_period(
start_period, end_period = get_billing_period(
billing_day=6,
date_=now_,
)
pk = 'BILLING#ORG#cJtK9SsnJhKPyxESe7g3DG'
sk = 'START#{start}#END#{end}#ENROLLMENT#{enrollment_id}'.format(
start=start_date.isoformat(),
end=end_date.isoformat(),
start=start_period.isoformat(),
end=end_period.isoformat(),
enrollment_id=enrollment_id,
)
# Add up-to-date enrollment item to billing