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:
Prasunna Soppa
2025-02-14 18:10:42 +05:30
committed by GitHub
parent e2043dee22
commit 0b972e38ab
21 changed files with 1159 additions and 189 deletions

View File

@ -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 {