mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +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
@ -67,7 +67,7 @@ impl<F, Req: Clone> From<&types::RouterData<F, Req, types::PaymentsResponseData>
|
||||
pub async fn save_payment_method<FData>(
|
||||
state: &SessionState,
|
||||
connector_name: String,
|
||||
merchant_connector_id: Option<String>,
|
||||
merchant_connector_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
save_payment_method_data: SavePaymentMethodData<FData>,
|
||||
customer_id: Option<id_type::CustomerId>,
|
||||
merchant_account: &domain::MerchantAccount,
|
||||
@ -657,7 +657,7 @@ where
|
||||
pub async fn save_payment_method<FData>(
|
||||
_state: &SessionState,
|
||||
_connector_name: String,
|
||||
_merchant_connector_id: Option<String>,
|
||||
_merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,
|
||||
_save_payment_method_data: SavePaymentMethodData<FData>,
|
||||
_customer_id: Option<id_type::CustomerId>,
|
||||
_merchant_account: &domain::MerchantAccount,
|
||||
@ -983,7 +983,7 @@ pub fn add_connector_mandate_details_in_payment_method(
|
||||
payment_method_type: Option<storage_enums::PaymentMethodType>,
|
||||
authorized_amount: Option<i64>,
|
||||
authorized_currency: Option<storage_enums::Currency>,
|
||||
merchant_connector_id: Option<String>,
|
||||
merchant_connector_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
connector_mandate_id: Option<String>,
|
||||
) -> Option<storage::PaymentsMandateReference> {
|
||||
let mut mandate_details = HashMap::new();
|
||||
@ -1011,7 +1011,7 @@ pub fn update_connector_mandate_details_in_payment_method(
|
||||
payment_method_type: Option<storage_enums::PaymentMethodType>,
|
||||
authorized_amount: Option<i64>,
|
||||
authorized_currency: Option<storage_enums::Currency>,
|
||||
merchant_connector_id: Option<String>,
|
||||
merchant_connector_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
connector_mandate_id: Option<String>,
|
||||
) -> RouterResult<Option<serde_json::Value>> {
|
||||
let mandate_reference = match payment_method.connector_mandate_details {
|
||||
|
||||
Reference in New Issue
Block a user