mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(payment_id): add payment id domain type (#5738)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -35,7 +35,7 @@ where
|
||||
match query_param.query_param {
|
||||
QueryType::Payment { payment_id } => {
|
||||
query_builder
|
||||
.add_filter_clause("payment_id", payment_id)
|
||||
.add_filter_clause("payment_id", &payment_id)
|
||||
.switch()?;
|
||||
query_builder
|
||||
.add_filter_in_range_clause(
|
||||
@ -62,7 +62,7 @@ where
|
||||
refund_id,
|
||||
} => {
|
||||
query_builder
|
||||
.add_filter_clause("payment_id", payment_id)
|
||||
.add_filter_clause("payment_id", &payment_id)
|
||||
.switch()?;
|
||||
query_builder
|
||||
.add_filter_clause("refund_id", refund_id)
|
||||
@ -76,7 +76,7 @@ where
|
||||
dispute_id,
|
||||
} => {
|
||||
query_builder
|
||||
.add_filter_clause("payment_id", payment_id)
|
||||
.add_filter_clause("payment_id", &payment_id)
|
||||
.switch()?;
|
||||
query_builder
|
||||
.add_filter_clause("dispute_id", dispute_id)
|
||||
@ -103,7 +103,7 @@ where
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct ApiLogsResult {
|
||||
pub merchant_id: common_utils::id_type::MerchantId,
|
||||
pub payment_id: Option<String>,
|
||||
pub payment_id: Option<common_utils::id_type::PaymentId>,
|
||||
pub refund_id: Option<String>,
|
||||
pub payment_method_id: Option<String>,
|
||||
pub payment_method: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user