Skip to content

Commit

Permalink
fix(analytics): revert payment id new type
Browse files Browse the repository at this point in the history
  • Loading branch information
lsampras committed Sep 3, 2024
1 parent 91223af commit bc1031e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/api_models/src/analytics/connector_events.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct ConnectorEventsRequest {
pub payment_id: common_utils::id_type::PaymentId,
pub payment_id: String,
pub refund_id: Option<String>,
pub dispute_id: Option<String>,
}
5 changes: 3 additions & 2 deletions crates/router/src/core/verification/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use api_models::payments::PaymentIdType;
use common_utils::{errors::CustomResult, id_type::PaymentId};
use common_utils::{errors::CustomResult};
use error_stack::{Report, ResultExt};

use crate::{
Expand Down Expand Up @@ -138,8 +138,9 @@ pub fn log_applepay_verification_response_if_error(
.map_err(|error| logger::error!(applepay_domain_verification_error= ?error))
});
}

pub async fn check_if_profile_id_is_present_in_payment_intent(
payment_id: PaymentId,
payment_id: String,
state: &SessionState,
auth_data: &AuthenticationData,
) -> CustomResult<(), errors::ApiErrorResponse> {
Expand Down

0 comments on commit bc1031e

Please sign in to comment.