show payment info

This commit is contained in:
2026-01-15 10:57:15 -03:00
parent a3e4fe887d
commit 0b190cca0d
3 changed files with 125 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ def get_order(order_id: str):
order = dyn.collection.get_items(
TransactKey(order_id)
+ SortKey('0')
+ SortKey('ITEMS', rename_key='items')
+ SortKey('ITEMS', rename_key='items', path_spec='items')
+ SortKey('CREATED_BY', rename_key='created_by')
+ SortKey('ADDRESS', rename_key='address')
+ SortKey('CREDIT_CARD', rename_key='credit_card')
@@ -45,5 +45,7 @@ def get_order(order_id: str):
'payment_attempts': attempts['items'],
'enrollments': enrollments['items'],
}
# Post-migration (orders): remove the following lines
| ({'created_at': order['create_date']} if 'create_date' in order else {})
| ({'paid_at': order['payment_date']} if 'payment_date' in order else {})
)