mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +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
@ -215,7 +215,9 @@ pub struct PaymentMethodMigrate {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct PaymentsMandateReference(pub HashMap<String, PaymentsMandateReferenceRecord>);
|
||||
pub struct PaymentsMandateReference(
|
||||
pub HashMap<id_type::MerchantConnectorAccountId, PaymentsMandateReferenceRecord>,
|
||||
);
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct PaymentsMandateReferenceRecord {
|
||||
@ -733,7 +735,7 @@ pub struct BankAccountTokenData {
|
||||
pub struct BankAccountConnectorDetails {
|
||||
pub connector: String,
|
||||
pub account_id: masking::Secret<String>,
|
||||
pub mca_id: String,
|
||||
pub mca_id: id_type::MerchantConnectorAccountId,
|
||||
pub access_token: BankAccountAccessCreds,
|
||||
}
|
||||
|
||||
@ -1983,7 +1985,7 @@ pub struct PaymentMethodRecord {
|
||||
pub billing_address_line2: Option<masking::Secret<String>>,
|
||||
pub billing_address_line3: Option<masking::Secret<String>>,
|
||||
pub raw_card_number: Option<masking::Secret<String>>,
|
||||
pub merchant_connector_id: String,
|
||||
pub merchant_connector_id: id_type::MerchantConnectorAccountId,
|
||||
pub original_transaction_amount: Option<i64>,
|
||||
pub original_transaction_currency: Option<common_enums::Currency>,
|
||||
pub line_number: Option<i64>,
|
||||
|
||||
Reference in New Issue
Block a user