mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
feat(core): update card_details for an existing mandate (#3452)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -617,10 +617,18 @@ pub enum MandateReferenceId {
|
||||
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)]
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, Eq, PartialEq)]
|
||||
pub struct ConnectorMandateReferenceId {
|
||||
pub connector_mandate_id: Option<String>,
|
||||
pub payment_method_id: Option<String>,
|
||||
pub update_history: Option<Vec<UpdateHistory>>,
|
||||
}
|
||||
|
||||
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, Eq, PartialEq)]
|
||||
pub struct UpdateHistory {
|
||||
pub connector_mandate_id: Option<String>,
|
||||
pub payment_method_id: String,
|
||||
pub original_payment_id: Option<String>,
|
||||
}
|
||||
|
||||
impl MandateIds {
|
||||
@ -637,6 +645,8 @@ impl MandateIds {
|
||||
#[derive(Default, Eq, PartialEq, Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct MandateData {
|
||||
/// A way to update the mandate's payment method details
|
||||
pub update_mandate_id: Option<String>,
|
||||
/// A concent from the customer to store the payment method
|
||||
pub customer_acceptance: Option<CustomerAcceptance>,
|
||||
/// A way to select the type of mandate used
|
||||
|
||||
Reference in New Issue
Block a user