wip checkout

This commit is contained in:
2026-01-09 11:20:56 -03:00
parent e29e81b253
commit 823134f450
18 changed files with 290 additions and 80 deletions

View File

@@ -20,6 +20,7 @@ dyn = DynamoDBPersistenceLayer(ENROLLMENT_TABLE, dynamodb_client)
@logger.inject_lambda_context
def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
new_image = event.detail['new_image']
# Copy metadata from the failed enrollment for reuse in the new enrollment
metadata = dyn.collection.get_items(
TransactKey(new_image['id'])
+ SortKey(
@@ -51,7 +52,7 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
enrollment,
org=metadata.get('org', None),
subscription=subscription,
# Transfer the deduplication window if it exists
# Reuse the deduplication window if it exists
deduplication_window={'offset_days': offset_days} if offset_days else None,
linked_entities=frozenset(
{