mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +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:
@ -20,14 +20,14 @@ pub enum FilterType {
|
||||
#[serde(tag = "type")]
|
||||
pub enum QueryType {
|
||||
Payment {
|
||||
payment_id: String,
|
||||
payment_id: common_utils::id_type::PaymentId,
|
||||
},
|
||||
Refund {
|
||||
payment_id: String,
|
||||
payment_id: common_utils::id_type::PaymentId,
|
||||
refund_id: String,
|
||||
},
|
||||
Dispute {
|
||||
payment_id: String,
|
||||
payment_id: common_utils::id_type::PaymentId,
|
||||
dispute_id: String,
|
||||
},
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
pub struct OutgoingWebhookLogsRequest {
|
||||
pub payment_id: String,
|
||||
pub payment_id: common_utils::id_type::PaymentId,
|
||||
pub event_id: Option<String>,
|
||||
pub refund_id: Option<String>,
|
||||
pub dispute_id: Option<String>,
|
||||
|
||||
@ -8,7 +8,7 @@ use super::{NameDescription, TimeRange};
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct SdkEventsRequest {
|
||||
pub payment_id: String,
|
||||
pub payment_id: common_utils::id_type::PaymentId,
|
||||
pub time_range: TimeRange,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user