feat: encrypt PII fields before saving it in the database (#1043)

Co-authored-by: Nishant Joshi <nishant.joshi@juspay.in>
This commit is contained in:
Kartikeya Hegde
2023-05-30 13:43:17 +05:30
committed by GitHub
parent 77e60c82fa
commit fa392c40a8
107 changed files with 3818 additions and 1267 deletions

View File

@ -16,7 +16,7 @@ use crate::{
},
routes::AppState,
services,
types::{self, api, storage},
types::{self, api, domain, storage},
};
#[async_trait]
@ -25,8 +25,8 @@ pub trait ConstructFlowSpecificData<F, Req, Res> {
&self,
state: &AppState,
connector_id: &str,
merchant_account: &storage::MerchantAccount,
customer: &Option<storage::Customer>,
merchant_account: &domain::MerchantAccount,
customer: &Option<domain::Customer>,
) -> RouterResult<types::RouterData<F, Req, Res>>;
}
@ -36,9 +36,9 @@ pub trait Feature<F, T> {
self,
state: &AppState,
connector: &api::ConnectorData,
maybe_customer: &Option<storage::Customer>,
maybe_customer: &Option<domain::Customer>,
call_connector_action: payments::CallConnectorAction,
merchant_account: &storage::MerchantAccount,
merchant_account: &domain::MerchantAccount,
) -> RouterResult<Self>
where
Self: Sized,
@ -49,7 +49,7 @@ pub trait Feature<F, T> {
&self,
state: &AppState,
connector: &api::ConnectorData,
merchant_account: &storage::MerchantAccount,
merchant_account: &domain::MerchantAccount,
) -> RouterResult<types::AddAccessTokenResult>
where
F: Clone,