mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
feat(mandate_kv): add kv support for mandate (#4275)
Co-authored-by: Akshay S <akshay.s@Akshay-Subramanian-D66TQ6D97K.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -40,6 +40,10 @@ pub enum PartitionKey<'a> {
|
||||
merchant_id: &'a str,
|
||||
payout_attempt_id: &'a str,
|
||||
},
|
||||
MerchantIdMandateId {
|
||||
merchant_id: &'a str,
|
||||
mandate_id: &'a str,
|
||||
},
|
||||
}
|
||||
// PartitionKey::MerchantIdPaymentId {merchant_id, payment_id}
|
||||
impl<'a> std::fmt::Display for PartitionKey<'a> {
|
||||
@ -62,6 +66,10 @@ impl<'a> std::fmt::Display for PartitionKey<'a> {
|
||||
merchant_id,
|
||||
payout_attempt_id,
|
||||
} => f.write_str(&format!("mid_{merchant_id}_poa_{payout_attempt_id}")),
|
||||
PartitionKey::MerchantIdMandateId {
|
||||
merchant_id,
|
||||
mandate_id,
|
||||
} => f.write_str(&format!("mid_{merchant_id}_mandate_{mandate_id}")),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user