feat(payment_methods): add v2 api for fetching token data (#7629)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sakil Mostak
2025-05-12 19:15:53 +05:30
committed by GitHub
parent 9da96e890c
commit 2cefac5cb3
16 changed files with 486 additions and 16 deletions

View File

@ -8167,3 +8167,16 @@ pub enum CryptoPadding {
PKCS7,
ZeroPadding,
}
/// The type of token data to fetch for get-token endpoint
#[derive(Clone, Copy, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
#[serde(rename_all = "snake_case")]
pub enum TokenDataType {
/// Fetch single use token for the given payment method
SingleUseToken,
/// Fetch multi use token for the given payment method
MultiUseToken,
/// Fetch network token for the given payment method
NetworkToken,
}