update info

This commit is contained in:
Phuoc Nguyen
2025-11-20 16:32:33 +07:00
parent 1fcef52d5e
commit dc85157758
12 changed files with 1613 additions and 247 deletions

View File

@@ -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);
}