mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	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:
		| @ -11,7 +11,7 @@ use crate::{ | ||||
|     core::errors::{self, RouterResult}, | ||||
|     routes::AppState, | ||||
|     types::{ | ||||
|         self, | ||||
|         self, domain, | ||||
|         storage::{self, enums}, | ||||
|         ErrorResponse, | ||||
|     }, | ||||
| @ -23,7 +23,7 @@ use crate::{ | ||||
| pub async fn construct_refund_router_data<'a, F>( | ||||
|     state: &'a AppState, | ||||
|     connector_id: &str, | ||||
|     merchant_account: &storage::MerchantAccount, | ||||
|     merchant_account: &domain::MerchantAccount, | ||||
|     money: (i64, enums::Currency), | ||||
|     payment_intent: &'a storage::PaymentIntent, | ||||
|     payment_attempt: &storage::PaymentAttempt, | ||||
| @ -237,7 +237,7 @@ pub async fn construct_accept_dispute_router_data<'a>( | ||||
|     state: &'a AppState, | ||||
|     payment_intent: &'a storage::PaymentIntent, | ||||
|     payment_attempt: &storage::PaymentAttempt, | ||||
|     merchant_account: &storage::MerchantAccount, | ||||
|     merchant_account: &domain::MerchantAccount, | ||||
|     dispute: &storage::Dispute, | ||||
| ) -> RouterResult<types::AcceptDisputeRouterData> { | ||||
|     let connector_id = &dispute.connector; | ||||
| @ -298,7 +298,7 @@ pub async fn construct_submit_evidence_router_data<'a>( | ||||
|     state: &'a AppState, | ||||
|     payment_intent: &'a storage::PaymentIntent, | ||||
|     payment_attempt: &storage::PaymentAttempt, | ||||
|     merchant_account: &storage::MerchantAccount, | ||||
|     merchant_account: &domain::MerchantAccount, | ||||
|     dispute: &storage::Dispute, | ||||
|     submit_evidence_request_data: types::SubmitEvidenceRequestData, | ||||
| ) -> RouterResult<types::SubmitEvidenceRouterData> { | ||||
| @ -358,7 +358,7 @@ pub async fn construct_upload_file_router_data<'a>( | ||||
|     state: &'a AppState, | ||||
|     payment_intent: &'a storage::PaymentIntent, | ||||
|     payment_attempt: &storage::PaymentAttempt, | ||||
|     merchant_account: &storage::MerchantAccount, | ||||
|     merchant_account: &domain::MerchantAccount, | ||||
|     create_file_request: &types::api::CreateFileRequest, | ||||
|     connector_id: &str, | ||||
|     file_key: String, | ||||
| @ -417,7 +417,7 @@ pub async fn construct_defend_dispute_router_data<'a>( | ||||
|     state: &'a AppState, | ||||
|     payment_intent: &'a storage::PaymentIntent, | ||||
|     payment_attempt: &storage::PaymentAttempt, | ||||
|     merchant_account: &storage::MerchantAccount, | ||||
|     merchant_account: &domain::MerchantAccount, | ||||
|     dispute: &storage::Dispute, | ||||
| ) -> RouterResult<types::DefendDisputeRouterData> { | ||||
|     let _db = &*state.store; | ||||
| @ -477,7 +477,7 @@ pub async fn construct_defend_dispute_router_data<'a>( | ||||
| #[instrument(skip_all)] | ||||
| pub async fn construct_retrieve_file_router_data<'a>( | ||||
|     state: &'a AppState, | ||||
|     merchant_account: &storage::MerchantAccount, | ||||
|     merchant_account: &domain::MerchantAccount, | ||||
|     file_metadata: &storage_models::file::FileMetadata, | ||||
|     connector_id: &str, | ||||
| ) -> RouterResult<types::RetrieveFileRouterData> { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kartikeya Hegde
					Kartikeya Hegde