feat: Introduce AttireVerificationStatus enum and add verificationId to staff attire items.

This commit is contained in:
Achintha Isuru
2026-02-24 17:31:41 -05:00
parent 616f23fec9
commit fd0208efa0
10 changed files with 64 additions and 14 deletions

View File

@@ -68,6 +68,7 @@ export 'src/adapters/financial/bank_account/bank_account_adapter.dart';
// Profile
export 'src/entities/profile/staff_document.dart';
export 'src/entities/profile/attire_item.dart';
export 'src/entities/profile/attire_verification_status.dart';
export 'src/entities/profile/relationship_type.dart';
export 'src/entities/profile/industry.dart';
export 'src/entities/profile/tax_form.dart';

View File

@@ -1,5 +1,7 @@
import 'package:equatable/equatable.dart';
import 'attire_verification_status.dart';
/// Represents an attire item that a staff member might need or possess.
///
/// Attire items are specific clothing or equipment required for jobs.
@@ -13,6 +15,7 @@ class AttireItem extends Equatable {
this.isMandatory = false,
this.verificationStatus,
this.photoUrl,
this.verificationId,
});
/// Unique identifier of the attire item.
@@ -31,11 +34,14 @@ class AttireItem extends Equatable {
final bool isMandatory;
/// The current verification status of the uploaded photo.
final String? verificationStatus;
final AttireVerificationStatus? verificationStatus;
/// The URL of the photo uploaded by the staff member.
final String? photoUrl;
/// The ID of the verification record.
final String? verificationId;
@override
List<Object?> get props => <Object?>[
id,
@@ -45,5 +51,6 @@ class AttireItem extends Equatable {
isMandatory,
verificationStatus,
photoUrl,
verificationId,
];
}

View File

@@ -0,0 +1,11 @@
/// Represents the verification status of an attire item photo.
enum AttireVerificationStatus {
/// The photo is waiting for review.
pending,
/// The photo was rejected.
failed,
/// The photo was approved.
success,
}