mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 14:07:18 +08:00 
			
		
		
		
	feat: add create retrieve and update api endpoints for organization resource (#5361)
This commit is contained in:
		@ -2,7 +2,9 @@ use std::{collections::HashMap, sync::Arc};
 | 
			
		||||
 | 
			
		||||
use api_models::user as user_api;
 | 
			
		||||
use common_enums::UserAuthType;
 | 
			
		||||
use common_utils::{encryption::Encryption, errors::CustomResult, types::keymanager::Identifier};
 | 
			
		||||
use common_utils::{
 | 
			
		||||
    encryption::Encryption, errors::CustomResult, id_type, types::keymanager::Identifier,
 | 
			
		||||
};
 | 
			
		||||
use diesel_models::{enums::UserStatus, user_role::UserRole};
 | 
			
		||||
use error_stack::ResultExt;
 | 
			
		||||
use masking::{ExposeInterface, Secret};
 | 
			
		||||
@ -99,7 +101,7 @@ pub async fn generate_jwt_auth_token_with_custom_role_attributes(
 | 
			
		||||
    state: &SessionState,
 | 
			
		||||
    user: &UserFromStorage,
 | 
			
		||||
    merchant_id: String,
 | 
			
		||||
    org_id: String,
 | 
			
		||||
    org_id: id_type::OrganizationId,
 | 
			
		||||
    role_id: String,
 | 
			
		||||
) -> UserResult<Secret<String>> {
 | 
			
		||||
    let token = AuthToken::new_token(
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user