File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
src/NoFrixion.MoneyMoov/Models/Payruns Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1616
1717using NoFrixion . MoneyMoov . Enums ;
1818using NoFrixion . MoneyMoov . Extensions ;
19+ using NoFrixion . MoneyMoov . Models . Approve ;
1920
2021namespace NoFrixion . MoneyMoov . Models ;
2122
@@ -56,4 +57,30 @@ public class Payrun
5657 public bool CanEdit => Status . CanEdit ( ) ;
5758
5859 public bool CanDelete => Status . CanDelete ( ) ;
60+
61+ /// <summary>
62+ /// The number of authorisers required for this payrun. Is determined by business settings
63+ /// on the source account and/or merchant.
64+ /// </summary>
65+ public int AuthorisersRequiredCount { get ; set ; }
66+
67+ /// <summary>
68+ /// The number of distinct authorisers that have authorised the payrun.
69+ /// </summary>
70+ public int AuthorisersCompletedCount { get ; set ; }
71+
72+ /// <summary>
73+ /// True if the payrun can be authorised by the user who loaded it.
74+ /// </summary>
75+ public bool CanAuthorise { get ; set ; }
76+
77+ /// <summary>
78+ /// True if the payrun was loaded for a user and that user has already authorised the latest version of the payrun.
79+ /// </summary>
80+ public bool HasCurrentUserAuthorised { get ; set ; }
81+
82+ /// <summary>
83+ /// A list of the users who have successfully authorised the latest version of the payrun and when.
84+ /// </summary>
85+ public List < Authorisation > ? Authorisations { get ; set ; }
5986}
You can’t perform that action at this time.
0 commit comments