mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
feat(connector): Mandates for alternate payment methods via Stripe (#1041)
Co-authored-by: Manoj Ghorela <manoj.ghorela@juspay.in> Co-authored-by: Arjun Karthik <m.arjunkarthik@gmail.com>
This commit is contained in:
@ -307,10 +307,16 @@ pub struct MandateIds {
|
||||
|
||||
#[derive(Eq, PartialEq, Debug, serde::Deserialize, serde::Serialize, Clone)]
|
||||
pub enum MandateReferenceId {
|
||||
ConnectorMandateId(String), // mandate_id send by connector
|
||||
ConnectorMandateId(ConnectorMandateReferenceId), // mandate_id send by connector
|
||||
NetworkMandateId(String), // network_txns_id send by Issuer to connector, Used for PG agnostic mandate txns
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Debug, serde::Deserialize, serde::Serialize, Clone)]
|
||||
pub struct ConnectorMandateReferenceId {
|
||||
pub connector_mandate_id: Option<String>,
|
||||
pub payment_method_id: Option<String>,
|
||||
}
|
||||
|
||||
impl MandateIds {
|
||||
pub fn new(mandate_id: String) -> Self {
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user