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 @@
4b8685a69ee5061fca67cc7e3fd69c8e6890b24e
4ec19847e2d6cb16e17bd2ad2aee2bf48d86013c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2150
v2151
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasMeta
#endif
public RequestedSessionPaymentMethodPreview PaymentMethodPreview { get; set; }

/// <summary>
/// The risk details of the requested session.
/// </summary>
[JsonProperty("risk_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("risk_details")]
#endif
public RequestedSessionRiskDetails RiskDetails { get; set; }

[JsonProperty("seller_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("seller_details")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
Expand All @@ -27,24 +26,6 @@ public class RequestedSessionLineItemDetail : StripeEntity<RequestedSessionLineI
#endif
public long AmountSubtotal { get; set; }

/// <summary>
/// The description of the line item.
/// </summary>
[JsonProperty("description")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("description")]
#endif
public string Description { get; set; }

/// <summary>
/// The images of the line item.
/// </summary>
[JsonProperty("images")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("images")]
#endif
public List<string> Images { get; set; }

/// <summary>
/// The key of the line item.
/// </summary>
Expand All @@ -54,15 +35,6 @@ public class RequestedSessionLineItemDetail : StripeEntity<RequestedSessionLineI
#endif
public string Key { get; set; }

/// <summary>
/// The name of the line item.
/// </summary>
[JsonProperty("name")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("name")]
#endif
public string Name { get; set; }

[JsonProperty("product_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("product_details")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class RequestedSessionRiskDetails : StripeEntity<RequestedSessionRiskDetails>
{
/// <summary>
/// The risk metadata for the client device.
/// </summary>
[JsonProperty("client_device_metadata_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("client_device_metadata_details")]
#endif
public RequestedSessionRiskDetailsClientDeviceMetadataDetails ClientDeviceMetadataDetails { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class RequestedSessionRiskDetailsClientDeviceMetadataDetails : StripeEntity<RequestedSessionRiskDetailsClientDeviceMetadataDetails>
{
/// <summary>
/// The radar session for the client device.
/// </summary>
[JsonProperty("radar_session")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("radar_session")]
#endif
public string RadarSession { get; set; }

/// <summary>
/// The referrer of the client device.
/// </summary>
[JsonProperty("referrer")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("referrer")]
#endif
public string Referrer { get; set; }

/// <summary>
/// The remote IP address of the client device.
/// </summary>
[JsonProperty("remote_ip")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("remote_ip")]
#endif
public string RemoteIp { get; set; }

/// <summary>
/// The time spent on the page by the client device.
/// </summary>
[JsonProperty("time_on_page_ms")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("time_on_page_ms")]
#endif
public long? TimeOnPageMs { get; set; }

/// <summary>
/// The user agent of the client device.
/// </summary>
[JsonProperty("user_agent")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("user_agent")]
#endif
public string UserAgent { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ public class TrialOffer : StripeEntity<TrialOffer>, IHasId, IHasObject
#endif
public bool Livemode { get; set; }

/// <summary>
/// A brief, user-friendly name for the trial offer-for identification purposes.
/// </summary>
[JsonProperty("name")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("name")]
#endif
public string Name { get; set; }

#region Expandable Price

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,23 @@ public class AccountEvaluationEvent : StripeEntity<AccountEvaluationEvent>
[STJS.JsonPropertyName("type")]
#endif
public string Type { get; set; }

/// <summary>
/// Data about a failed login event.
/// </summary>
[JsonProperty("login_failed")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("login_failed")]
#endif
public AccountEvaluationEventLoginFailed LoginFailed { get; set; }

/// <summary>
/// Data about a failed registration event.
/// </summary>
[JsonProperty("registration_failed")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("registration_failed")]
#endif
public AccountEvaluationEventRegistrationFailed RegistrationFailed { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// File generated from our OpenAPI spec
namespace Stripe.Radar
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountEvaluationEventLoginFailed : StripeEntity<AccountEvaluationEventLoginFailed>
{
/// <summary>
/// The reason why this login failed.
/// </summary>
[JsonProperty("reason")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("reason")]
#endif
public string Reason { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// File generated from our OpenAPI spec
namespace Stripe.Radar
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountEvaluationEventRegistrationFailed : StripeEntity<AccountEvaluationEventRegistrationFailed>
{
/// <summary>
/// The reason why this registration failed.
/// </summary>
[JsonProperty("reason")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("reason")]
#endif
public string Reason { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ public class TrialOfferCreateOptions : BaseOptions
#endif
public TrialOfferEndBehaviorOptions EndBehavior { get; set; }

/// <summary>
/// A brief, user-friendly name for the trial offer-for identification purposes.
/// </summary>
[JsonProperty("name")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("name")]
#endif
public string Name { get; set; }

/// <summary>
/// Price configuration during the trial period (amount, billing scheme, etc).
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
namespace Stripe.Radar
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountEvaluationLoginFailedOptions : INestedOptions
{
/// <summary>
/// The reason why this login failed.
/// One of: <c>other</c>, or <c>suspected_account_sharing</c>.
/// </summary>
[JsonProperty("reason")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("reason")]
#endif
public string Reason { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
namespace Stripe.Radar
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountEvaluationRegistrationFailedOptions : INestedOptions
{
/// <summary>
/// The reason why this registration failed.
/// One of: <c>other</c>, or <c>suspected_multi_accounting</c>.
/// </summary>
[JsonProperty("reason")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("reason")]
#endif
public string Reason { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,28 @@ namespace Stripe.Radar

public class AccountEvaluationUpdateOptions : BaseOptions
{
/// <summary>
/// Event payload for login_failed.
/// </summary>
[JsonProperty("login_failed")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("login_failed")]
#endif
public AccountEvaluationLoginFailedOptions LoginFailed { get; set; }

/// <summary>
/// Event payload for registration_failed.
/// </summary>
[JsonProperty("registration_failed")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("registration_failed")]
#endif
public AccountEvaluationRegistrationFailedOptions RegistrationFailed { get; set; }

/// <summary>
/// The type of event to report.
/// One of: <c>login_failed</c>, <c>login_succeeded</c>, <c>registration_failed</c>, or
/// <c>registration_succeeded</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
Expand Down
Loading