mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(core): api ,domain and diesel model changes for extended authorization (#6607)
Co-authored-by: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -41,3 +41,12 @@ pub mod verifications;
|
||||
pub mod verify_connector;
|
||||
pub mod webhook_events;
|
||||
pub mod webhooks;
|
||||
|
||||
pub trait ValidateFieldAndGet<Request> {
|
||||
fn validate_field_and_get(
|
||||
&self,
|
||||
request: &Request,
|
||||
) -> common_utils::errors::CustomResult<Self, common_utils::errors::ValidationError>
|
||||
where
|
||||
Self: Sized;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user