mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(router): add an api to migrate the apple pay certificates from connector metadata to connector_wallets_details column in merchant connector account (#4790)
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:
@ -164,6 +164,7 @@ pub async fn construct_payout_router_data<'a, F>(
|
||||
address,
|
||||
auth_type: enums::AuthenticationType::default(),
|
||||
connector_meta_data: merchant_connector_account.get_metadata(),
|
||||
connector_wallets_details: merchant_connector_account.get_connector_wallets_details(),
|
||||
amount_captured: None,
|
||||
payment_method_status: None,
|
||||
request: types::PayoutsData {
|
||||
@ -316,6 +317,7 @@ pub async fn construct_refund_router_data<'a, F>(
|
||||
address: PaymentAddress::default(),
|
||||
auth_type: payment_attempt.authentication_type.unwrap_or_default(),
|
||||
connector_meta_data: merchant_connector_account.get_metadata(),
|
||||
connector_wallets_details: merchant_connector_account.get_connector_wallets_details(),
|
||||
amount_captured: payment_intent
|
||||
.amount_captured
|
||||
.map(|amt| amt.get_amount_as_i64()),
|
||||
@ -565,6 +567,7 @@ pub async fn construct_accept_dispute_router_data<'a>(
|
||||
address: PaymentAddress::default(),
|
||||
auth_type: payment_attempt.authentication_type.unwrap_or_default(),
|
||||
connector_meta_data: merchant_connector_account.get_metadata(),
|
||||
connector_wallets_details: merchant_connector_account.get_connector_wallets_details(),
|
||||
amount_captured: payment_intent
|
||||
.amount_captured
|
||||
.map(|amt| amt.get_amount_as_i64()),
|
||||
@ -661,6 +664,7 @@ pub async fn construct_submit_evidence_router_data<'a>(
|
||||
address: PaymentAddress::default(),
|
||||
auth_type: payment_attempt.authentication_type.unwrap_or_default(),
|
||||
connector_meta_data: merchant_connector_account.get_metadata(),
|
||||
connector_wallets_details: merchant_connector_account.get_connector_wallets_details(),
|
||||
amount_captured: payment_intent
|
||||
.amount_captured
|
||||
.map(|amt| amt.get_amount_as_i64()),
|
||||
@ -755,6 +759,7 @@ pub async fn construct_upload_file_router_data<'a>(
|
||||
address: PaymentAddress::default(),
|
||||
auth_type: payment_attempt.authentication_type.unwrap_or_default(),
|
||||
connector_meta_data: merchant_connector_account.get_metadata(),
|
||||
connector_wallets_details: merchant_connector_account.get_connector_wallets_details(),
|
||||
amount_captured: payment_intent
|
||||
.amount_captured
|
||||
.map(|amt| amt.get_amount_as_i64()),
|
||||
@ -853,6 +858,7 @@ pub async fn construct_defend_dispute_router_data<'a>(
|
||||
address: PaymentAddress::default(),
|
||||
auth_type: payment_attempt.authentication_type.unwrap_or_default(),
|
||||
connector_meta_data: merchant_connector_account.get_metadata(),
|
||||
connector_wallets_details: merchant_connector_account.get_connector_wallets_details(),
|
||||
amount_captured: payment_intent
|
||||
.amount_captured
|
||||
.map(|amt| amt.get_amount_as_i64()),
|
||||
@ -942,6 +948,7 @@ pub async fn construct_retrieve_file_router_data<'a>(
|
||||
address: PaymentAddress::default(),
|
||||
auth_type: diesel_models::enums::AuthenticationType::default(),
|
||||
connector_meta_data: merchant_connector_account.get_metadata(),
|
||||
connector_wallets_details: merchant_connector_account.get_connector_wallets_details(),
|
||||
amount_captured: None,
|
||||
payment_method_status: None,
|
||||
request: types::RetrieveFileRequestData {
|
||||
|
||||
Reference in New Issue
Block a user