Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ee56c4b73d856e48409065f8d7e7c82c2e805c38
61e410d24d6de541c86c48b265b7647c164457ee
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2143
v2151
42 changes: 42 additions & 0 deletions src/Stripe.net/Events/V2CoreAccountClosedEvent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// This event occurs when an account is closed.
/// </summary>
public class V2CoreAccountClosedEvent : V2.Core.Event
{
/// <summary>
/// Object containing the reference to API resource relevant to the event.
/// </summary>
[JsonProperty("related_object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("related_object")]
#endif

public V2.Core.EventRelatedObject RelatedObject { get; set; }

/// <summary>
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
/// </summary>
public Task<V2.Core.Account> FetchRelatedObjectAsync()
{
return this.FetchRelatedObjectAsync<V2.Core.Account>(this.RelatedObject);
}

/// <summary>
/// Retrieves the related object from the API. Make an API request on every call.
/// </summary>
public V2.Core.Account FetchRelatedObject()
{
return this.FetchRelatedObject<V2.Core.Account>(this.RelatedObject);
}
}
}
53 changes: 53 additions & 0 deletions src/Stripe.net/Events/V2CoreAccountClosedEventNotification.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
using Stripe.V2;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// This event occurs when an account is closed.
/// </summary>
public class V2CoreAccountClosedEventNotification : V2.Core.EventNotification
{
/// <summary>
/// Object containing the reference to API resource relevant to the event.
/// </summary>
[JsonProperty("related_object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("related_object")]
#endif

public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; }

/// <summary>
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
/// </summary>
public Task<V2.Core.Account> FetchRelatedObjectAsync()
{
return this.FetchRelatedObjectAsync<V2.Core.Account>(this.RelatedObject);
}

/// <summary>
/// Retrieves the related object from the API. Make an API request on every call.
/// </summary>
public V2.Core.Account FetchRelatedObject()
{
return this.FetchRelatedObject<V2.Core.Account>(this.RelatedObject);
}

public V2CoreAccountClosedEvent FetchEvent()
{
return this.FetchEvent<V2CoreAccountClosedEvent>();
}

public Task<V2CoreAccountClosedEvent> FetchEventAsync()
{
return this.FetchEventAsync<V2CoreAccountClosedEvent>();
}
}
}
42 changes: 42 additions & 0 deletions src/Stripe.net/Events/V2CoreAccountCreatedEvent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Occurs when an Account is created.
/// </summary>
public class V2CoreAccountCreatedEvent : V2.Core.Event
{
/// <summary>
/// Object containing the reference to API resource relevant to the event.
/// </summary>
[JsonProperty("related_object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("related_object")]
#endif

public V2.Core.EventRelatedObject RelatedObject { get; set; }

/// <summary>
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
/// </summary>
public Task<V2.Core.Account> FetchRelatedObjectAsync()
{
return this.FetchRelatedObjectAsync<V2.Core.Account>(this.RelatedObject);
}

/// <summary>
/// Retrieves the related object from the API. Make an API request on every call.
/// </summary>
public V2.Core.Account FetchRelatedObject()
{
return this.FetchRelatedObject<V2.Core.Account>(this.RelatedObject);
}
}
}
53 changes: 53 additions & 0 deletions src/Stripe.net/Events/V2CoreAccountCreatedEventNotification.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
using Stripe.V2;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Occurs when an Account is created.
/// </summary>
public class V2CoreAccountCreatedEventNotification : V2.Core.EventNotification
{
/// <summary>
/// Object containing the reference to API resource relevant to the event.
/// </summary>
[JsonProperty("related_object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("related_object")]
#endif

public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; }

/// <summary>
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
/// </summary>
public Task<V2.Core.Account> FetchRelatedObjectAsync()
{
return this.FetchRelatedObjectAsync<V2.Core.Account>(this.RelatedObject);
}

/// <summary>
/// Retrieves the related object from the API. Make an API request on every call.
/// </summary>
public V2.Core.Account FetchRelatedObject()
{
return this.FetchRelatedObject<V2.Core.Account>(this.RelatedObject);
}

public V2CoreAccountCreatedEvent FetchEvent()
{
return this.FetchEvent<V2CoreAccountCreatedEvent>();
}

public Task<V2CoreAccountCreatedEvent> FetchEventAsync()
{
return this.FetchEventAsync<V2CoreAccountCreatedEvent>();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Occurs when the status of an Account's customer configuration capability is updated.
/// </summary>
public class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent : V2.Core.Event
{
/// <summary>
/// Data for the v2.core.account[configuration.customer].capability_status_updated event.
/// </summary>
[JsonProperty("data")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("data")]
#endif

public V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData Data { get; set; }

/// <summary>
/// Object containing the reference to API resource relevant to the event.
/// </summary>
[JsonProperty("related_object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("related_object")]
#endif

public V2.Core.EventRelatedObject RelatedObject { get; set; }

/// <summary>
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
/// </summary>
public Task<V2.Core.Account> FetchRelatedObjectAsync()
{
return this.FetchRelatedObjectAsync<V2.Core.Account>(this.RelatedObject);
}

/// <summary>
/// Retrieves the related object from the API. Make an API request on every call.
/// </summary>
public V2.Core.Account FetchRelatedObject()
{
return this.FetchRelatedObject<V2.Core.Account>(this.RelatedObject);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData : StripeEntity<V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData>
{
/// <summary>
/// Open Enum. The capability which had its status updated.
/// </summary>
[JsonProperty("updated_capability")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("updated_capability")]
#endif
public string UpdatedCapability { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
using Stripe.V2;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Occurs when the status of an Account's customer configuration capability is updated.
/// </summary>
public class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification : V2.Core.EventNotification
{
/// <summary>
/// Object containing the reference to API resource relevant to the event.
/// </summary>
[JsonProperty("related_object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("related_object")]
#endif

public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; }

/// <summary>
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
/// </summary>
public Task<V2.Core.Account> FetchRelatedObjectAsync()
{
return this.FetchRelatedObjectAsync<V2.Core.Account>(this.RelatedObject);
}

/// <summary>
/// Retrieves the related object from the API. Make an API request on every call.
/// </summary>
public V2.Core.Account FetchRelatedObject()
{
return this.FetchRelatedObject<V2.Core.Account>(this.RelatedObject);
}

public V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent FetchEvent()
{
return this.FetchEvent<V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent>();
}

public Task<V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent> FetchEventAsync()
{
return this.FetchEventAsync<V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent>();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// File generated from our OpenAPI spec
namespace Stripe.Events
{
using System.Threading.Tasks;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Occurs when an Account's customer configuration is updated.
/// </summary>
public class V2CoreAccountIncludingConfigurationCustomerUpdatedEvent : V2.Core.Event
{
/// <summary>
/// Object containing the reference to API resource relevant to the event.
/// </summary>
[JsonProperty("related_object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("related_object")]
#endif

public V2.Core.EventRelatedObject RelatedObject { get; set; }

/// <summary>
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
/// </summary>
public Task<V2.Core.Account> FetchRelatedObjectAsync()
{
return this.FetchRelatedObjectAsync<V2.Core.Account>(this.RelatedObject);
}

/// <summary>
/// Retrieves the related object from the API. Make an API request on every call.
/// </summary>
public V2.Core.Account FetchRelatedObject()
{
return this.FetchRelatedObject<V2.Core.Account>(this.RelatedObject);
}
}
}
Loading
Loading