feat(date_time): add created_at and modified_at to merchant related tables (#925)

This commit is contained in:
Nishant Joshi
2023-04-21 02:51:22 +05:30
committed by GitHub
parent 22cee8cdd9
commit 1f151ba15a
9 changed files with 45 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)