mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor(payment_id): add payment id domain type (#5738)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -360,6 +360,12 @@ impl<T: AnalyticsDataSource> ToSql<T> for &common_utils::id_type::MerchantId {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: AnalyticsDataSource> ToSql<T> for &common_utils::id_type::PaymentId {
|
||||
fn to_sql(&self, _table_engine: &TableEngine) -> error_stack::Result<String, ParsingError> {
|
||||
Ok(self.get_string_repr().to_owned())
|
||||
}
|
||||
}
|
||||
|
||||
/// Implement `ToSql` on arrays of types that impl `ToString`.
|
||||
macro_rules! impl_to_sql_for_to_string {
|
||||
($($type:ty),+) => {
|
||||
|
||||
Reference in New Issue
Block a user