diff --git a/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs b/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs index 5f0894566adc..502c3791e4eb 100644 --- a/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs +++ b/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs @@ -157,7 +157,6 @@ pub trait PaymentAttemptInterface { payment_method_type: Option>, authentication_type: Option>, merchant_connector_id: Option>, - time_range: Option, profile_id_list: Option>, storage_scheme: storage_enums::MerchantStorageScheme, ) -> error_stack::Result; @@ -715,6 +714,10 @@ pub enum PaymentAttemptUpdate { unified_message: Option, connector_transaction_id: Option, }, + PostSessionTokensUpdate { + updated_by: String, + connector_metadata: Option, + }, } // TODO: Add fields as necessary diff --git a/crates/storage_impl/src/payments/payment_attempt.rs b/crates/storage_impl/src/payments/payment_attempt.rs index 63f5a0ff9f82..9f8c080db930 100644 --- a/crates/storage_impl/src/payments/payment_attempt.rs +++ b/crates/storage_impl/src/payments/payment_attempt.rs @@ -2030,6 +2030,13 @@ impl DataModelExt for PaymentAttemptUpdate { unified_message, connector_transaction_id, }, + Self::PostSessionTokensUpdate { + updated_by, + connector_metadata, + } => DieselPaymentAttemptUpdate::PostSessionTokensUpdate { + updated_by, + connector_metadata, + }, } } @@ -2386,6 +2393,13 @@ impl DataModelExt for PaymentAttemptUpdate { unified_message, connector_transaction_id, }, + DieselPaymentAttemptUpdate::PostSessionTokensUpdate { + updated_by, + connector_metadata, + } => Self::PostSessionTokensUpdate { + updated_by, + connector_metadata, + }, } } }