diff --git a/crates/router/src/core/payment_link.rs b/crates/router/src/core/payment_link.rs index 41f36e1d64c3..e426d5487932 100644 --- a/crates/router/src/core/payment_link.rs +++ b/crates/router/src/core/payment_link.rs @@ -213,7 +213,7 @@ pub async fn list_payment_link( ) -> RouterResponse> { let db = state.store.as_ref(); let payment_link = db - .find_payment_link_list_by_merchant_id(&merchant.merchant_id, constraints) + .find_list_payment_link_by_merchant_id(&merchant.merchant_id, constraints) .await .change_context(errors::ApiErrorResponse::InternalServerError) .attach_printable("Unable to retrieve payment link")?; diff --git a/crates/router/src/db/payment_link.rs b/crates/router/src/db/payment_link.rs index 746a8caef66d..436683f21315 100644 --- a/crates/router/src/db/payment_link.rs +++ b/crates/router/src/db/payment_link.rs @@ -20,7 +20,7 @@ pub trait PaymentLinkInterface { _payment_link: storage::PaymentLinkNew, ) -> CustomResult; - async fn find_payment_link_list_by_merchant_id( + async fn find_list_payment_link_by_merchant_id( &self, merchant_id: &str, payment_link_constraints: api_models::payments::PaymentLinkListConstraints, @@ -52,7 +52,7 @@ impl PaymentLinkInterface for Store { .into_report() } - async fn find_payment_link_list_by_merchant_id( + async fn find_list_payment_link_by_merchant_id( &self, merchant_id: &str, payment_link_constraints: api_models::payments::PaymentLinkListConstraints, @@ -83,7 +83,7 @@ impl PaymentLinkInterface for MockDb { Err(errors::StorageError::MockDbError)? } - async fn find_payment_link_list_by_merchant_id( + async fn find_list_payment_link_by_merchant_id( &self, _merchant_id: &str, _payment_link_constraints: api_models::payments::PaymentLinkListConstraints,