mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(date_time): add created_at and modified_at to merchant related tables (#925)
This commit is contained in:
@ -184,6 +184,7 @@ impl CustomerInterface for MockDb {
|
||||
description: customer_data.description,
|
||||
created_at: common_utils::date_time::now(),
|
||||
metadata: customer_data.metadata,
|
||||
modified_at: common_utils::date_time::now(),
|
||||
};
|
||||
customers.push(customer.clone());
|
||||
Ok(customer)
|
||||
|
||||
@ -199,6 +199,8 @@ impl MerchantAccountInterface for MockDb {
|
||||
locker_id: merchant_account.locker_id,
|
||||
metadata: merchant_account.metadata,
|
||||
primary_business_details: merchant_account.primary_business_details,
|
||||
created_at: common_utils::date_time::now(),
|
||||
modified_at: common_utils::date_time::now(),
|
||||
};
|
||||
accounts.push(account.clone());
|
||||
Ok(account)
|
||||
|
||||
@ -295,6 +295,8 @@ impl MerchantConnectorAccountInterface for MockDb {
|
||||
business_country: t.business_country,
|
||||
business_label: t.business_label,
|
||||
business_sub_label: t.business_sub_label,
|
||||
created_at: common_utils::date_time::now(),
|
||||
modified_at: common_utils::date_time::now(),
|
||||
};
|
||||
accounts.push(account.clone());
|
||||
Ok(account)
|
||||
|
||||
Reference in New Issue
Block a user