mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor(router): add domain type for merchant_connector_account id (#5685)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
This commit is contained in:
committed by
GitHub
parent
f33e1bb65c
commit
771f48cfe0
@ -1,9 +1,11 @@
|
||||
use common_utils::id_type;
|
||||
|
||||
use super::{admin, enums};
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
|
||||
pub struct ActionUrlRequest {
|
||||
pub connector: enums::Connector,
|
||||
pub connector_id: String,
|
||||
pub connector_id: id_type::MerchantConnectorAccountId,
|
||||
pub return_url: String,
|
||||
}
|
||||
|
||||
@ -15,8 +17,8 @@ pub enum ActionUrlResponse {
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
|
||||
pub struct OnboardingSyncRequest {
|
||||
pub profile_id: common_utils::id_type::ProfileId,
|
||||
pub connector_id: String,
|
||||
pub profile_id: id_type::ProfileId,
|
||||
pub connector_id: id_type::MerchantConnectorAccountId,
|
||||
pub connector: enums::Connector,
|
||||
}
|
||||
|
||||
@ -45,7 +47,7 @@ pub enum PayPalOnboardingStatus {
|
||||
|
||||
#[derive(serde::Serialize, Debug, Clone)]
|
||||
pub struct PayPalOnboardingDone {
|
||||
pub payer_id: common_utils::id_type::MerchantId,
|
||||
pub payer_id: id_type::MerchantId,
|
||||
}
|
||||
|
||||
#[derive(serde::Serialize, Debug, Clone)]
|
||||
@ -55,6 +57,6 @@ pub struct PayPalIntegrationDone {
|
||||
|
||||
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone)]
|
||||
pub struct ResetTrackingIdRequest {
|
||||
pub connector_id: String,
|
||||
pub connector_id: id_type::MerchantConnectorAccountId,
|
||||
pub connector: enums::Connector,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user