-
Notifications
You must be signed in to change notification settings - Fork 573
/
Copy pathWebhookEndpoint.cs
82 lines (70 loc) · 2.66 KB
/
WebhookEndpoint.cs
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class WebhookEndpoint : StripeEntity<WebhookEndpoint>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }
/// <summary>
/// String representing the object’s type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
public string Object { get; set; }
/// <summary>
/// The API version events are rendered as for this webhook endpoint.
/// </summary>
[JsonProperty("api_version")]
public string ApiVersion { get; set; }
/// <summary>
/// The ID of the associated Connect application.
/// </summary>
[JsonProperty("application")]
public string Application { get; set; }
[Obsolete("This property was never returned. Use Application instead")]
[JsonProperty("connect")]
public bool Connect { get; set; }
/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("created")]
[JsonConverter(typeof(DateTimeConverter))]
public DateTime Created { get; set; }
/// <summary>
/// Whether this object is deleted or not.
/// </summary>
[JsonProperty("deleted", NullValueHandling=NullValueHandling.Ignore)]
public bool? Deleted { get; set; }
/// <summary>
/// The list of events to enable for this endpoint.
/// </summary>
[JsonProperty("enabled_events")]
public List<string> EnabledEvents { get; set; }
/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value
/// <c>false</c> if the object exists in test mode.
/// </summary>
[JsonProperty("livemode")]
public bool Livemode { get; set; }
/// <summary>
/// The endpoint’s secret, used to generate webhook signatures. Only returned at creation.
/// </summary>
[JsonProperty("secret")]
public string Secret { get; set; }
/// <summary>
/// The status of the webhook. It can be <c>enabled</c> or <c>disabled</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }
/// <summary>
/// The URL of the webhook endpoint.
/// </summary>
[JsonProperty("url")]
public string Url { get; set; }
}
}