Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
AuditAction
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace App\Domain\Audit;
6
7/**
8 * Audit action constants.
9 */
10final class AuditAction
11{
12    // Auth events
13    public const LOGIN_SUCCESS = 'LOGIN_SUCCESS';
14
15    public const LOGIN_FAILED = 'LOGIN_FAILED';
16
17    public const LOGOUT = 'LOGOUT';
18
19    public const TOKEN_REFRESH = 'TOKEN_REFRESH';
20
21    public const PASSWORD_CHANGED = 'PASSWORD_CHANGED';
22
23    public const PASSWORD_RESET_REQUESTED = 'PASSWORD_RESET_REQUESTED';
24
25    public const PASSWORD_RESET_COMPLETED = 'PASSWORD_RESET_COMPLETED';
26
27    // Registration
28    public const REGISTRATION_STARTED = 'REGISTRATION_STARTED';
29
30    public const REGISTRATION_COMPLETED = 'REGISTRATION_COMPLETED';
31
32    public const EMAIL_VERIFIED = 'EMAIL_VERIFIED';
33
34    // Admin actions
35    public const IMPERSONATE_START = 'IMPERSONATE_START';
36
37    public const IMPERSONATE_END = 'IMPERSONATE_END';
38
39    /** Admin directly set a customer's password on their behalf (FSC-124). */
40    public const ADMIN_SET_USER_PASSWORD = 'ADMIN_SET_USER_PASSWORD';
41
42    /** Admin triggered a self-service reset link to a customer (FSC-124). */
43    public const ADMIN_SENT_PASSWORD_RESET = 'ADMIN_SENT_PASSWORD_RESET';
44
45    public const USER_SUSPENDED = 'USER_SUSPENDED';
46
47    public const USER_ACTIVATED = 'USER_ACTIVATED';
48
49    // KYC events
50    public const KYC_SUBMITTED = 'KYC_SUBMITTED';
51
52    public const KYC_APPROVED = 'KYC_APPROVED';
53
54    public const KYC_REJECTED = 'KYC_REJECTED';
55
56    public const KYC_DOCUMENT_UPLOADED = 'KYC_DOCUMENT_UPLOADED';
57
58    // Consent events (TCPA / FSC-87)
59    public const TCPA_CONSENT_GRANTED = 'TCPA_CONSENT_GRANTED';
60
61    public const TCPA_CONSENT_REVOKED = 'TCPA_CONSENT_REVOKED';
62
63    // Account events
64    public const ACCOUNT_CREATED = 'ACCOUNT_CREATED';
65
66    public const ACCOUNT_FROZEN = 'ACCOUNT_FROZEN';
67
68    public const ACCOUNT_UNFROZEN = 'ACCOUNT_UNFROZEN';
69
70    public const ACCOUNT_CLOSED = 'ACCOUNT_CLOSED';
71
72    // Transaction events
73    public const INVESTMENT_INITIATED = 'INVESTMENT_INITIATED';
74
75    public const INVESTMENT_COMPLETED = 'INVESTMENT_COMPLETED';
76
77    public const WITHDRAWAL_REQUESTED = 'WITHDRAWAL_REQUESTED';
78
79    public const WITHDRAWAL_APPROVED = 'WITHDRAWAL_APPROVED';
80
81    public const WITHDRAWAL_REJECTED = 'WITHDRAWAL_REJECTED';
82
83    public const WITHDRAWAL_COMPLETED = 'WITHDRAWAL_COMPLETED';
84
85    // Loan events (future)
86    public const LOAN_REQUESTED = 'LOAN_REQUESTED';
87
88    public const LOAN_APPROVED = 'LOAN_APPROVED';
89
90    public const LOAN_REJECTED = 'LOAN_REJECTED';
91
92    public const LOAN_DISBURSED = 'LOAN_DISBURSED';
93
94    public const LOAN_PAYMENT_RECEIVED = 'LOAN_PAYMENT_RECEIVED';
95
96    public const LOAN_PAID_OFF = 'LOAN_PAID_OFF';
97
98    public const LOAN_DEFAULTED = 'LOAN_DEFAULTED';
99
100    // Data access (for sensitive operations)
101    public const SENSITIVE_DATA_ACCESSED = 'SENSITIVE_DATA_ACCESSED';
102
103    public const REPORT_GENERATED = 'REPORT_GENERATED';
104
105    public const DATA_EXPORTED = 'DATA_EXPORTED';
106}