mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	feat(router): adding generic tokenization endpoint (#7905)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -29,7 +29,7 @@ pub mod diesel_exports { | ||||
|         DbRequestIncrementalAuthorization as RequestIncrementalAuthorization, | ||||
|         DbScaExemptionType as ScaExemptionType, | ||||
|         DbSuccessBasedRoutingConclusiveState as SuccessBasedRoutingConclusiveState, | ||||
|         DbWebhookDeliveryAttempt as WebhookDeliveryAttempt, | ||||
|         DbTokenizationFlag as TokenizationFlag, DbWebhookDeliveryAttempt as WebhookDeliveryAttempt, | ||||
|     }; | ||||
| } | ||||
|  | ||||
| @ -8299,6 +8299,28 @@ pub enum CryptoPadding { | ||||
|     ZeroPadding, | ||||
| } | ||||
|  | ||||
| #[derive( | ||||
|     Clone, | ||||
|     Copy, | ||||
|     Debug, | ||||
|     Eq, | ||||
|     PartialEq, | ||||
|     serde::Deserialize, | ||||
|     serde::Serialize, | ||||
|     strum::Display, | ||||
|     strum::EnumString, | ||||
|     ToSchema, | ||||
| )] | ||||
| #[router_derive::diesel_enum(storage_type = "db_enum")] | ||||
| #[serde(rename_all = "snake_case")] | ||||
| #[strum(serialize_all = "snake_case")] | ||||
| pub enum TokenizationFlag { | ||||
|     /// Token is active and can be used for payments | ||||
|     Enabled, | ||||
|     /// Token is inactive and cannot be used for payments | ||||
|     Disabled, | ||||
| } | ||||
|  | ||||
| /// The type of token data to fetch for get-token endpoint | ||||
|  | ||||
| #[derive(Clone, Copy, Debug, serde::Deserialize, serde::Serialize, ToSchema)] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shivansh Mathur
					Shivansh Mathur