mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
refactor(merchant_id): create domain type for merchant_id (#5408)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -10,7 +10,7 @@ use crate::schema::authentication;
|
||||
#[diesel(table_name = authentication, primary_key(authentication_id), check_for_backend(diesel::pg::Pg))]
|
||||
pub struct Authentication {
|
||||
pub authentication_id: String,
|
||||
pub merchant_id: String,
|
||||
pub merchant_id: common_utils::id_type::MerchantId,
|
||||
pub authentication_connector: String,
|
||||
pub connector_authentication_id: Option<String>,
|
||||
pub authentication_data: Option<serde_json::Value>,
|
||||
@ -61,7 +61,7 @@ impl Authentication {
|
||||
#[diesel(table_name = authentication)]
|
||||
pub struct AuthenticationNew {
|
||||
pub authentication_id: String,
|
||||
pub merchant_id: String,
|
||||
pub merchant_id: common_utils::id_type::MerchantId,
|
||||
pub authentication_connector: String,
|
||||
pub connector_authentication_id: Option<String>,
|
||||
// pub authentication_data: Option<serde_json::Value>,
|
||||
|
||||
Reference in New Issue
Block a user