mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	refactor(core): inclusion of locker to store fingerprints (#3630)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in>
This commit is contained in:
		@ -160,6 +160,7 @@ pub struct PaymentAttempt {
 | 
			
		||||
    pub unified_code: Option<String>,
 | 
			
		||||
    pub unified_message: Option<String>,
 | 
			
		||||
    pub mandate_data: Option<MandateDetails>,
 | 
			
		||||
    pub fingerprint_id: Option<String>,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl PaymentAttempt {
 | 
			
		||||
@ -238,6 +239,7 @@ pub struct PaymentAttemptNew {
 | 
			
		||||
    pub unified_code: Option<String>,
 | 
			
		||||
    pub unified_message: Option<String>,
 | 
			
		||||
    pub mandate_data: Option<MandateDetails>,
 | 
			
		||||
    pub fingerprint_id: Option<String>,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl PaymentAttemptNew {
 | 
			
		||||
@ -270,6 +272,7 @@ pub enum PaymentAttemptUpdate {
 | 
			
		||||
        capture_method: Option<storage_enums::CaptureMethod>,
 | 
			
		||||
        surcharge_amount: Option<i64>,
 | 
			
		||||
        tax_amount: Option<i64>,
 | 
			
		||||
        fingerprint_id: Option<String>,
 | 
			
		||||
        updated_by: String,
 | 
			
		||||
    },
 | 
			
		||||
    UpdateTrackers {
 | 
			
		||||
@ -307,6 +310,7 @@ pub enum PaymentAttemptUpdate {
 | 
			
		||||
        surcharge_amount: Option<i64>,
 | 
			
		||||
        tax_amount: Option<i64>,
 | 
			
		||||
        merchant_connector_id: Option<String>,
 | 
			
		||||
        fingerprint_id: Option<String>,
 | 
			
		||||
    },
 | 
			
		||||
    RejectUpdate {
 | 
			
		||||
        status: storage_enums::AttemptStatus,
 | 
			
		||||
 | 
			
		||||
@ -121,6 +121,7 @@ pub enum PaymentIntentUpdate {
 | 
			
		||||
        amount_captured: Option<i64>,
 | 
			
		||||
        return_url: Option<String>,
 | 
			
		||||
        updated_by: String,
 | 
			
		||||
        fingerprint_id: Option<String>,
 | 
			
		||||
        incremental_authorization_allowed: Option<bool>,
 | 
			
		||||
    },
 | 
			
		||||
    MetadataUpdate {
 | 
			
		||||
@ -335,6 +336,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
 | 
			
		||||
                // currency,
 | 
			
		||||
                status,
 | 
			
		||||
                amount_captured,
 | 
			
		||||
                fingerprint_id,
 | 
			
		||||
                // customer_id,
 | 
			
		||||
                return_url,
 | 
			
		||||
                updated_by,
 | 
			
		||||
@ -344,6 +346,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
 | 
			
		||||
                // currency: Some(currency),
 | 
			
		||||
                status: Some(status),
 | 
			
		||||
                amount_captured,
 | 
			
		||||
                fingerprint_id,
 | 
			
		||||
                // customer_id,
 | 
			
		||||
                return_url,
 | 
			
		||||
                modified_at: Some(common_utils::date_time::now()),
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user