mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
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:
@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user