Add transaction_time field to DCA payments: Updated the database schema to include a new transaction_time column in the dca_payments table, modified the CreateDcaPaymentData model to accept transaction_time, and adjusted the create_dca_payment function to store the original ATM transaction time. Updated transaction processing to capture this new field.

This commit is contained in:
padreug 2025-06-22 16:50:27 +02:00
parent 18323dc0c8
commit 3a2f10f949
4 changed files with 20 additions and 4 deletions

View file

@ -609,7 +609,8 @@ class LamassuTransactionProcessor:
amount_fiat=distribution["fiat_amount"],
exchange_rate=distribution["exchange_rate"],
transaction_type="flow",
lamassu_transaction_id=transaction_id
lamassu_transaction_id=transaction_id,
transaction_time=transaction.get("transaction_time") # Original ATM transaction time
)
# Record the payment in our database