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 @@
68065dff88008f079e79eb1ef0add5e261b416e1
35e26af8c8a4fb5988922dfcb4d9bd22f7f850c5
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2176
v2185
52 changes: 52 additions & 0 deletions src/Stripe.net/Entities/AccountSignals/AccountSignals.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// The Account Signals API provides risk related signals that can be used to better manage
/// risks.
/// </summary>
public class AccountSignals : StripeEntity<AccountSignals>, IHasObject
{
/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("object")]
#endif
public string Object { get; set; }

/// <summary>
/// The account for which the signals belong to.
/// </summary>
[JsonProperty("account")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("account")]
#endif
public string Account { get; set; }

/// <summary>
/// The delinquency signal of the account.
/// </summary>
[JsonProperty("delinquency")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("delinquency")]
#endif
public AccountSignalsDelinquency Delinquency { 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")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("livemode")]
#endif
public bool Livemode { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountSignalsDelinquency : StripeEntity<AccountSignalsDelinquency>
{
/// <summary>
/// Time at which the signal was evaluated, measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("evaluated_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("evaluated_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime? EvaluatedAt { get; set; }

/// <summary>
/// Array of objects representing individual factors that contributed to the calculated
/// probability of delinquency.
/// </summary>
[JsonProperty("indicators")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("indicators")]
#endif
public List<AccountSignalsDelinquencyIndicator> Indicators { get; set; }

/// <summary>
/// The probability of delinquency. Can be between 0.00 and 100.00.
/// </summary>
[JsonProperty("probability")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("probability")]
#endif
public decimal? Probability { get; set; }

/// <summary>
/// Categorical assessment of the delinquency risk based on probability.
/// One of: <c>elevated</c>, <c>highest</c>, <c>low</c>, <c>normal</c>, <c>not_assessed</c>,
/// or <c>unknown</c>.
/// </summary>
[JsonProperty("risk_level")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("risk_level")]
#endif
public string RiskLevel { get; set; }

/// <summary>
/// Unique identifier for the delinquency signal.
/// </summary>
[JsonProperty("signal_id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("signal_id")]
#endif
public string SignalId { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountSignalsDelinquencyIndicator : StripeEntity<AccountSignalsDelinquencyIndicator>
{
/// <summary>
/// A brief explanation of how this indicator contributed to the delinquency probability.
/// </summary>
[JsonProperty("description")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("description")]
#endif
public string Description { get; set; }

/// <summary>
/// The effect this indicator had on the overall risk level.
/// One of: <c>decrease</c>, <c>neutral</c>, <c>slight_increase</c>, or
/// <c>strong_increase</c>.
/// </summary>
[JsonProperty("impact")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("impact")]
#endif
public string Impact { get; set; }

/// <summary>
/// The name of the specific indicator used in the risk assessment.
/// One of: <c>account_balance</c>, <c>aov</c>, <c>charge_concentration</c>,
/// <c>dispute_window</c>, <c>disputes</c>, <c>duplicates</c>, <c>exposure</c>,
/// <c>firmographic</c>, <c>lifetime_metrics</c>, <c>payment_processing</c>,
/// <c>payment_volume</c>, <c>payouts</c>, <c>refunds</c>, <c>tenure</c>, or
/// <c>transfers</c>.
/// </summary>
[JsonProperty("indicator")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("indicator")]
#endif
public string Indicator { get; set; }
}
}
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/ApplicationFees/ApplicationFee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,16 @@ public Charge Charge
#endif
public ApplicationFeeFeeSource FeeSource { get; set; }

/// <summary>
/// Polymorphic funding source of the application fee. Includes the type and details of the
/// funding source.
/// </summary>
[JsonProperty("funding_source")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("funding_source")]
#endif
public ApplicationFeeFundingSource FundingSource { 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.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ApplicationFeeFundingSource : StripeEntity<ApplicationFeeFundingSource>
{
/// <summary>
/// The invoice ID associated with this funding source, if applicable.
/// </summary>
[JsonProperty("invoice")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("invoice")]
#endif
public string Invoice { get; set; }

/// <summary>
/// The type of funding source.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("type")]
#endif
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ public class AlertTriggered : StripeEntity<AlertTriggered>, IHasObject
#endif
public string Object { get; set; }

/// <summary>
/// The aggregation period for which this alert triggered.
/// </summary>
[JsonProperty("aggregation_period")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("aggregation_period")]
#endif
public AlertTriggeredAggregationPeriod AggregationPeriod { get; set; }

/// <summary>
/// A billing alert is a resource that notifies you when a certain usage threshold on a
/// meter is crossed. For example, you might create a billing alert to notify you when a
Expand Down Expand Up @@ -77,6 +86,16 @@ public class AlertTriggered : StripeEntity<AlertTriggered>, IHasObject
#endif
public string ExternalCustomerId { get; set; }

/// <summary>
/// Populated specifically for spend alerts to notify merchants which group_by entity has
/// the exceeded spend.
/// </summary>
[JsonProperty("group_by")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("group_by")]
#endif
public AlertTriggeredGroupBy GroupBy { 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.
Expand All @@ -87,6 +106,17 @@ public class AlertTriggered : StripeEntity<AlertTriggered>, IHasObject
#endif
public bool Livemode { get; set; }

/// <summary>
/// Timestamp at which the threshold was crossed.
/// </summary>
[JsonProperty("triggered_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("triggered_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime? TriggeredAt { get; set; }

/// <summary>
/// The value triggering the alert.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AlertTriggeredAggregationPeriod : StripeEntity<AlertTriggeredAggregationPeriod>
{
/// <summary>
/// End time of the aggregation period.
/// </summary>
[JsonProperty("ends_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("ends_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime EndsAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// Start time of the aggregation period.
/// </summary>
[JsonProperty("starts_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("starts_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime StartsAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AlertTriggeredGroupBy : StripeEntity<AlertTriggeredGroupBy>
{
/// <summary>
/// The billing cadence ID, populated when type is <c>billing_cadence</c>.
/// </summary>
[JsonProperty("billing_cadence")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("billing_cadence")]
#endif
public string BillingCadence { get; set; }

/// <summary>
/// The pricing plan subscription ID, populated when type is
/// <c>pricing_plan_subscription</c>.
/// </summary>
[JsonProperty("pricing_plan_subscription")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("pricing_plan_subscription")]
#endif
public string PricingPlanSubscription { get; set; }

/// <summary>
/// The type of grouping used for this alert notification.
/// One of: <c>billing_cadence</c>, or <c>pricing_plan_subscription</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("type")]
#endif
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ public class Session : StripeEntity<Session>, IHasId, IHasObject
#endif
public SessionFilters Filters { get; set; }

/// <summary>
/// Settings for the Hosted UI mode.
/// </summary>
[JsonProperty("hosted")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("hosted")]
#endif
public SessionHosted Hosted { get; set; }

[JsonProperty("limits")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("limits")]
Expand Down Expand Up @@ -145,5 +154,26 @@ public class Session : StripeEntity<Session>, IHasId, IHasObject
[STJS.JsonPropertyName("status_details")]
#endif
public SessionStatusDetails StatusDetails { get; set; }

/// <summary>
/// The UI mode for this session.
/// One of: <c>hosted</c>, or <c>modal</c>.
/// </summary>
[JsonProperty("ui_mode")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("ui_mode")]
#endif
public string UiMode { get; set; }

/// <summary>
/// The hosted URL for this Session. Redirect customers to this URL to take them to the
/// hosted authentication flow. This value is only present when the Session is active and
/// the <c>ui_mode</c> is <c>hosted</c>.
/// </summary>
[JsonProperty("url")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("url")]
#endif
public string Url { get; set; }
}
}
Loading
Loading