mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
refactor(FRM): refactor frm configs (#4581)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -108,6 +108,7 @@ impl PaymentIntentInterface for MockDb {
|
||||
fingerprint_id: new.fingerprint_id,
|
||||
session_expiry: new.session_expiry,
|
||||
request_external_three_ds_authentication: new.request_external_three_ds_authentication,
|
||||
frm_metadata: new.frm_metadata,
|
||||
};
|
||||
payment_intents.push(payment_intent.clone());
|
||||
Ok(payment_intent)
|
||||
|
||||
@ -83,6 +83,7 @@ impl<T: DatabaseStore> PaymentIntentInterface for KVRouterStore<T> {
|
||||
description: new.description.clone(),
|
||||
return_url: new.return_url.clone(),
|
||||
metadata: new.metadata.clone(),
|
||||
frm_metadata: new.frm_metadata.clone(),
|
||||
connector_id: new.connector_id.clone(),
|
||||
shipping_address_id: new.shipping_address_id.clone(),
|
||||
billing_address_id: new.billing_address_id.clone(),
|
||||
@ -806,6 +807,7 @@ impl DataModelExt for PaymentIntentNew {
|
||||
description: self.description,
|
||||
return_url: self.return_url,
|
||||
metadata: self.metadata,
|
||||
frm_metadata: self.frm_metadata,
|
||||
connector_id: self.connector_id,
|
||||
shipping_address_id: self.shipping_address_id,
|
||||
billing_address_id: self.billing_address_id,
|
||||
@ -852,6 +854,7 @@ impl DataModelExt for PaymentIntentNew {
|
||||
description: storage_model.description,
|
||||
return_url: storage_model.return_url,
|
||||
metadata: storage_model.metadata,
|
||||
frm_metadata: storage_model.frm_metadata,
|
||||
connector_id: storage_model.connector_id,
|
||||
shipping_address_id: storage_model.shipping_address_id,
|
||||
billing_address_id: storage_model.billing_address_id,
|
||||
@ -935,6 +938,7 @@ impl DataModelExt for PaymentIntent {
|
||||
fingerprint_id: self.fingerprint_id,
|
||||
session_expiry: self.session_expiry,
|
||||
request_external_three_ds_authentication: self.request_external_three_ds_authentication,
|
||||
frm_metadata: self.frm_metadata,
|
||||
}
|
||||
}
|
||||
|
||||
@ -983,6 +987,7 @@ impl DataModelExt for PaymentIntent {
|
||||
session_expiry: storage_model.session_expiry,
|
||||
request_external_three_ds_authentication: storage_model
|
||||
.request_external_three_ds_authentication,
|
||||
frm_metadata: storage_model.frm_metadata,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1070,6 +1075,7 @@ impl DataModelExt for PaymentIntentUpdate {
|
||||
fingerprint_id,
|
||||
session_expiry,
|
||||
request_external_three_ds_authentication,
|
||||
frm_metadata,
|
||||
} => DieselPaymentIntentUpdate::Update {
|
||||
amount,
|
||||
currency,
|
||||
@ -1091,6 +1097,7 @@ impl DataModelExt for PaymentIntentUpdate {
|
||||
fingerprint_id,
|
||||
session_expiry,
|
||||
request_external_three_ds_authentication,
|
||||
frm_metadata,
|
||||
},
|
||||
Self::PaymentAttemptAndAttemptCountUpdate {
|
||||
active_attempt_id,
|
||||
|
||||
Reference in New Issue
Block a user