-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWebhookMessage.cs
More file actions
56 lines (46 loc) · 1.25 KB
/
WebhookMessage.cs
File metadata and controls
56 lines (46 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;
using System.ComponentModel.DataAnnotations;
namespace PayrollEngine.Client.Tutorial.WebhookConsumer;
public class WebhookMessage : ApiObject
{
/// <summary>
/// The webhook action name
/// </summary>
[Required]
[StringLength(128)]
public string ActionName { get; set; }
/// <summary>
/// The webhook receiver address
/// </summary>
[Required]
[StringLength(128)]
public string ReceiverAddress { get; set; }
/// <summary>
/// The request date
/// </summary>
[Required]
public DateTime RequestDate { get; set; }
/// <summary>
/// The request message
/// </summary>
public string RequestMessage { get; set; }
/// <summary>
/// The request operation
/// </summary>
public string RequestOperation { get; set; }
/// <summary>
/// The response date
/// </summary>
public DateTime ResponseDate { get; set; }
/// <summary>
/// The response HTTP status code
/// </summary>
public int ResponseStatus { get; set; }
/// <summary>
/// The response message
/// </summary>
public string ResponseMessage { get; set; }
/// <inheritdoc/>
public override string ToString() =>
$"{ActionName} {base.ToString()}";
}