Skip to content

Commit

Permalink
Add deny option for merchant tokens permission enum to indicate merch…
Browse files Browse the repository at this point in the history
…ant tokens are not authorised for an operation. (#335)
  • Loading branch information
sipsorcery authored May 20, 2024
1 parent bc772dc commit 02439f1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ namespace NoFrixion.MoneyMoov;
[Flags]
public enum MerchantTokenPermissionsEnum
{
/// <summary>
/// Permission to deny all actions. This won't be assigned in practice but when
/// checking whether a permission is granted, this can be used to specify that merchant
/// tokens are not allowed to perform any actions.
/// </summary>
Deny = 0,

/// <summary>
/// Permission to create a payment request
/// </summary>
Expand Down Expand Up @@ -97,5 +104,5 @@ public enum MerchantTokenPermissionsEnum
/// <summary>
/// Permission to create and submit a payout from a trusted source.
/// </summary>
TrustedSubmitPayout = 32768
TrustedSubmitPayout = 32768,
}

0 comments on commit 02439f1

Please sign in to comment.