update info
This commit is contained in:
@@ -32,4 +32,27 @@ abstract class UserInfoRepository {
|
||||
///
|
||||
/// Returns [UserInfo] entity with fresh user data.
|
||||
Future<UserInfo> refreshUserInfo();
|
||||
|
||||
/// Update user information
|
||||
///
|
||||
/// Updates the authenticated user's profile information.
|
||||
///
|
||||
/// [data] should contain:
|
||||
/// - full_name: String
|
||||
/// - date_of_birth: String (YYYY-MM-DD format)
|
||||
/// - gender: String
|
||||
/// - company_name: String?
|
||||
/// - tax_code: String?
|
||||
/// - avatar_base64: String? (base64 encoded image)
|
||||
/// - id_card_front_base64: String? (base64 encoded image)
|
||||
/// - id_card_back_base64: String? (base64 encoded image)
|
||||
/// - certificates_base64: List<String> (array of base64 encoded images)
|
||||
///
|
||||
/// Returns updated [UserInfo] entity after successful update.
|
||||
///
|
||||
/// Throws:
|
||||
/// - [UnauthorizedException] if session expired
|
||||
/// - [NetworkException] if network error occurs
|
||||
/// - [ServerException] if server error occurs
|
||||
Future<UserInfo> updateUserInfo(Map<String, dynamic> data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user