Skip to content

Commit 507ac45

Browse files
authored
Merge pull request #639 from nofrixion/feature/MOOV-4806-Webhook-create-comments
Updated comment for notificationMethod
2 parents 3d55c91 + d785f27 commit 507ac45

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/NoFrixion.MoneyMoov/Models/WebHook/WebhookCreate.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,21 @@ public WebhookResourceTypesEnum Type
8282
public string? FailedNotificationEmailAddress { get; set; }
8383

8484
/// <summary>
85-
/// The type of notification that will be sent.
85+
/// Determines the delivery method for the notification. The default is Webhook.
8686
/// </summary>
87+
/// <remarks>
88+
/// This property dictates which other fields are required:
89+
/// <list type="bullet">
90+
/// <item>
91+
/// <term><b>Email</b></term>
92+
/// <description>Sends a notification to a specified email inbox. Requires the <c>EmailAddress</c> property to be set.</description>
93+
/// </item>
94+
/// <item>
95+
/// <term><b>Webhook</b></term>
96+
/// <description>Sends a notification via an HTTP POST request to a specified endpoint. Requires the <c>DestinationUrl</c> and <c>Secret</c> properties to be set.</description>
97+
/// </item>
98+
/// </list>
99+
/// </remarks>
87100
[Required]
88101
public NotificationMethodTypesEnum NotificationMethod { get; set; } = NotificationMethodTypesEnum.Webhook;
89102

0 commit comments

Comments
 (0)