mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
fix: fixes to surface level mandate issues (#180)
This commit is contained in:
@ -130,6 +130,21 @@ pub enum MandateTxnType {
|
||||
RecurringMandateTxn,
|
||||
}
|
||||
|
||||
#[derive(Default, Eq, PartialEq, Debug, serde::Deserialize, serde::Serialize, Clone)]
|
||||
pub struct MandateIds {
|
||||
pub mandate_id: String,
|
||||
pub connector_mandate_id: Option<String>,
|
||||
}
|
||||
|
||||
impl MandateIds {
|
||||
pub fn new(mandate_id: String) -> Self {
|
||||
Self {
|
||||
mandate_id,
|
||||
connector_mandate_id: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Eq, PartialEq, Debug, serde::Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct MandateData {
|
||||
|
||||
Reference in New Issue
Block a user