feat(mandates): allow off-session payments using payment_method_id (#4132)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2024-03-28 18:12:30 +05:30
committed by GitHub
parent ffb3f4be01
commit 7b337ac39d
20 changed files with 430 additions and 174 deletions

View File

@ -113,3 +113,10 @@ pub struct MandateListConstraints {
#[serde(rename = "created_time.gte")]
pub created_time_gte: Option<PrimitiveDateTime>,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
#[serde(tag = "type", content = "data", rename_all = "snake_case")]
pub enum RecurringDetails {
MandateId(String),
PaymentMethodId(String),
}