Rust structs for fingerprinting and vaulting payment method data.
// Source: https://github.com/juspay/hyperswitch | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use api_models::payment_methods;
#[cfg(feature = "v2")]
use common_utils::{crypto::Encryptable, errors::CustomResult, ext_traits::OptionExt};
#[cfg(feature = "v2")]
use error_stack::ResultExt;
#[cfg(feature = "v2")]
use hyperswitch_masking::PeekInterface;
#[cfg(feature = "v2")]
use router_env::logger;
use serde::{Deserialize, Serialize};
use crate::{errors, payment_method_data};
#[derive(Debug, Deserialize, Serialize, Clone)]
pub enum PaymentMethodVaultingData {
Card(payment_methods::CardDetail),
NetworkToken(payment_method_data::NetworkTokenDetails),
CardNumber(cards::Ca
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key