Skip to content

Commit 6c38be9

Browse files
Merge pull request #452 from nofrixion/feature/MOOV-3922-rules-mapping
Support for MerchantAuthorisationSettings for Rules
2 parents ec44b89 + d25077d commit 6c38be9

File tree

1 file changed

+20
-0
lines changed
  • src/NoFrixion.MoneyMoov/Models/Rules

1 file changed

+20
-0
lines changed

src/NoFrixion.MoneyMoov/Models/Rules/Rule.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,26 @@ public class Rule : IValidatableObject, IWebhookPayload
9797

9898
public PaymentAccount? Account { get; set; } = null!;
9999

100+
/// <summary>
101+
/// The number of authorisers required for this rule.
102+
/// </summary>
103+
public int AuthorisersRequiredCount { get; set; }
104+
105+
/// <summary>
106+
/// The number of distinct authorisers that have authorised the rule.
107+
/// </summary>
108+
public int AuthorisersCompletedCount { get; set; }
109+
110+
/// <summary>
111+
/// True if the rule can be authorised by the user who loaded it.
112+
/// </summary>
113+
public bool CanAuthorise { get; set; }
114+
115+
/// <summary>
116+
/// True if the current user has authorised.
117+
/// </summary>
118+
public bool HasCurrentUserAuthorised { get; set; }
119+
100120
/// <summary>
101121
/// The approval hash is used when approving the rule and to detect when critical
102122
/// fields change.

0 commit comments

Comments
 (0)