Skip to content

Commit 22d494a

Browse files
authored
Add merchant token permissions (#437)
* Add DD mandate ID to payreq evt model. Fix bug where jsonproperty was being used instead of jsonignore. * Add DD permissions to merchant token.
1 parent f2a6336 commit 22d494a

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

src/NoFrixion.MoneyMoov/Enums/MerchantTokenPermissionsEnum.cs

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,80 +34,90 @@ public enum MerchantTokenPermissionsEnum
3434
/// <summary>
3535
/// Permission to edit a payment request
3636
/// </summary>
37-
EditPaymentRequest = 2,
37+
EditPaymentRequest = 1 << 1,
3838

3939
/// <summary>
4040
/// Permission to delete a payment request
4141
/// </summary>
42-
DeletePaymentRequest = 4,
42+
DeletePaymentRequest = 1 << 2,
4343

4444
/// <summary>
4545
/// Permission to create a rule
4646
/// </summary>
47-
CreateRule = 8,
47+
CreateRule = 1 << 3,
4848

4949
/// <summary>
5050
/// Permission to edit a rule
5151
/// </summary>
52-
EditRule = 16,
52+
EditRule = 1 << 4,
5353

5454
/// <summary>
5555
/// Permission to delete a rule
5656
/// </summary>
57-
DeleteRule = 32,
57+
DeleteRule = 1 << 5,
5858

5959
/// <summary>
6060
/// Permission to create a payout
6161
/// </summary>
62-
CreatePayout = 64,
62+
CreatePayout = 1 << 6,
6363

6464
/// <summary>
6565
/// Permission to edit a payout
6666
/// </summary>
67-
EditPayout = 128,
67+
EditPayout = 1 << 7,
6868

6969
/// <summary>
7070
/// Permission to delete a payout
7171
/// </summary>
72-
DeletePayout = 256,
72+
DeletePayout = 1 << 8,
7373

7474
/// <summary>
7575
/// Permission to create a report.
7676
/// </summary>
77-
CreateReport = 512,
77+
CreateReport = 1 << 9,
7878

7979
/// <summary>
8080
/// Permission to edit, retrieve and initiate a report.
8181
/// </summary>
82-
EditReport = 1024,
82+
EditReport = 1 << 10,
8383

8484
/// <summary>
8585
/// Permission to delete a report.
8686
/// </summary>
87-
DeleteReport = 2048,
87+
DeleteReport = 1 << 11,
8888

8989
/// <summary>
9090
/// Permission to execute and get report results.
9191
/// </summary>
92-
ExecuteReport = 4096,
92+
ExecuteReport = 1 << 12,
9393

9494
/// <summary>
9595
/// Permission to create a new payment account.
9696
/// </summary>
97-
CreatePaymentAccount = 8192,
97+
CreatePaymentAccount = 1 << 13,
9898

9999
/// <summary>
100100
/// Permission to edit details on a payment account.
101101
/// </summary>
102-
EditPaymentAccount = 16384,
102+
EditPaymentAccount = 1 << 14,
103103

104104
/// <summary>
105105
/// Permission to create and submit a payout from a trusted source.
106106
/// </summary>
107-
TrustedSubmitPayout = 32768,
107+
TrustedSubmitPayout = 1 << 15,
108108

109109
/// <summary>
110-
/// Permission to perfrom open banking account information actions.
110+
/// Permission to perform open banking account information actions.
111111
/// </summary>
112-
OpenBankingAccountInformation = 65536
112+
OpenBankingAccountInformation = 1 << 16,
113+
114+
/// <summary>
115+
/// Permission to create a direct debit mandate.
116+
/// </summary>
117+
CreateDirectDebitMandate = 1 << 17,
118+
119+
/// <summary>
120+
/// Permission to submit a direct debit payment attempt.
121+
/// </summary>
122+
SubmitDirectDebitPayment = 1 << 18
113123
}

0 commit comments

Comments
 (0)