Skip to content

Commit cae02e9

Browse files
Merge pull request #434 from nofrixion/MOOV-3760-Send-Tribe-Load-Failure-Webhook
Send tribe load failure webhook
2 parents 44d7688 + bf11fa8 commit cae02e9

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

src/NoFrixion.MoneyMoov/Enums/WebhookResourceTypesEnum.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ public enum WebhookResourceTypesEnum
6767
/// <summary>
6868
/// Will trigger notifications for report, including account statement, related events.
6969
/// </summary>
70-
Report = 64
70+
Report = 64,
71+
72+
/// <summary>
73+
/// Will trigger notifications for tribe load event
74+
/// </summary>
75+
TribeLoad = 128,
7176
}
7277

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//-----------------------------------------------------------------------------
2+
// Filename: TribeLoad.cs
3+
//
4+
// Description: Represents a load into a tribe account.
5+
//
6+
// Author(s):
7+
// Saurav Maiti ([email protected])
8+
//
9+
// History:
10+
// 15 Oct 2024 Saurav Maiti Created, Harcourt street, Dublin, Ireland.
11+
//
12+
// License:
13+
// MIT
14+
// -----------------------------------------------------------------------------
15+
16+
namespace NoFrixion.MoneyMoov.Models;
17+
18+
public class TribeLoad: IWebhookPayload
19+
{
20+
/// <summary>
21+
/// Represents the transaction that was attempted to
22+
/// be loaded into the tribe account.
23+
/// </summary>
24+
public required Transaction Transaction { get; set; }
25+
26+
/// <summary>
27+
/// Represents the problem that occurred when attempting to
28+
/// load the transaction into the tribe account.
29+
/// </summary>
30+
public string? FailureReason { get; set; }
31+
32+
public Guid ID { get; set; }
33+
34+
/// <summary>
35+
/// The ID of the merchant that the tribe account belongs to.
36+
/// </summary>
37+
public Guid MerchantID { get; set; }
38+
39+
public DateTimeOffset Inserted { get; set; }
40+
}

0 commit comments

Comments
 (0)