mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
refactor(router): remove the payment type column in payment intent (#2462)
This commit is contained in:
@ -106,7 +106,6 @@ impl PaymentIntentInterface for MockDb {
|
||||
profile_id: new.profile_id,
|
||||
merchant_decision: new.merchant_decision,
|
||||
payment_confirm_source: new.payment_confirm_source,
|
||||
payment_type: new.payment_type,
|
||||
};
|
||||
payment_intents.push(payment_intent.clone());
|
||||
Ok(payment_intent)
|
||||
|
||||
@ -91,7 +91,6 @@ impl<T: DatabaseStore> PaymentIntentInterface for KVRouterStore<T> {
|
||||
profile_id: new.profile_id.clone(),
|
||||
merchant_decision: new.merchant_decision.clone(),
|
||||
payment_confirm_source: new.payment_confirm_source,
|
||||
payment_type: new.payment_type,
|
||||
};
|
||||
|
||||
match self
|
||||
@ -708,7 +707,6 @@ impl DataModelExt for PaymentIntentNew {
|
||||
profile_id: self.profile_id,
|
||||
merchant_decision: self.merchant_decision,
|
||||
payment_confirm_source: self.payment_confirm_source,
|
||||
payment_type: self.payment_type,
|
||||
}
|
||||
}
|
||||
|
||||
@ -746,7 +744,6 @@ impl DataModelExt for PaymentIntentNew {
|
||||
profile_id: storage_model.profile_id,
|
||||
merchant_decision: storage_model.merchant_decision,
|
||||
payment_confirm_source: storage_model.payment_confirm_source,
|
||||
payment_type: storage_model.payment_type,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -789,7 +786,6 @@ impl DataModelExt for PaymentIntent {
|
||||
profile_id: self.profile_id,
|
||||
merchant_decision: self.merchant_decision,
|
||||
payment_confirm_source: self.payment_confirm_source,
|
||||
payment_type: self.payment_type,
|
||||
}
|
||||
}
|
||||
|
||||
@ -828,7 +824,6 @@ impl DataModelExt for PaymentIntent {
|
||||
profile_id: storage_model.profile_id,
|
||||
merchant_decision: storage_model.merchant_decision,
|
||||
payment_confirm_source: storage_model.payment_confirm_source,
|
||||
payment_type: storage_model.payment_type,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user