mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payment_methods_v2): add support for network tokenization (#7145)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -135,6 +135,10 @@ pub struct PaymentMethodCreate {
|
||||
/// The billing details of the payment method
|
||||
#[schema(value_type = Option<Address>)]
|
||||
pub billing: Option<payments::Address>,
|
||||
|
||||
/// The network tokenization configuration if applicable
|
||||
#[schema(value_type = Option<NetworkTokenization>)]
|
||||
pub network_tokenization: Option<common_types::payment_methods::NetworkTokenization>,
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
|
||||
@ -547,7 +551,15 @@ pub struct CardDetail {
|
||||
|
||||
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
|
||||
#[derive(
|
||||
Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema, strum::EnumString, strum::Display,
|
||||
Debug,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
Clone,
|
||||
ToSchema,
|
||||
strum::EnumString,
|
||||
strum::Display,
|
||||
Eq,
|
||||
PartialEq,
|
||||
)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum CardType {
|
||||
|
||||
Reference in New Issue
Block a user