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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
25e6bd225852aa44d783e9fb3b9895af39479331
b0095e1dae0437fa60f0933a38f0914e8bba44ff
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2206
v2207
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2026-03-04.preview";
public const string Current = "2026-03-25.preview";
}
}
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/AccountNotices/AccountNotice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public class AccountNotice : StripeEntity<AccountNotice>, IHasId, IHasMetadata,
public AccountNoticeLinkedObjects LinkedObjects { 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.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/AccountSessions/AccountSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public class AccountSession : StripeEntity<AccountSession>, IHasObject
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <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.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
[STJS.JsonPropertyName("financial_account")]
public AccountSessionComponentsFinancialAccount FinancialAccount { get; set; }

/// <summary>
/// Configuration for the <a
/// href="https://stripe.com/connect/supported-embedded-components/financial-account-rewards/">financial
/// account rewards</a> embedded component.
/// </summary>
[JsonProperty("financial_account_rewards")]
[STJS.JsonPropertyName("financial_account_rewards")]
public AccountSessionComponentsFinancialAccountRewards FinancialAccountRewards { get; set; }

[JsonProperty("financial_account_transactions")]
[STJS.JsonPropertyName("financial_account_transactions")]
public AccountSessionComponentsFinancialAccountTransactions FinancialAccountTransactions { get; set; }
Expand All @@ -78,6 +87,15 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
[STJS.JsonPropertyName("issuing_cards_list")]
public AccountSessionComponentsIssuingCardsList IssuingCardsList { get; set; }

/// <summary>
/// Configuration for the <a
/// href="https://stripe.com/connect/supported-embedded-components/nesting-demo/">Nestingdemo</a>
/// embedded component.
/// </summary>
[JsonProperty("nesting_demo")]
[STJS.JsonPropertyName("nesting_demo")]
public AccountSessionComponentsNestingDemo NestingDemo { get; set; }

/// <summary>
/// Configuration for the <a
/// href="https://stripe.com/connect/supported-embedded-components/network-cost-passthrough-report/">network
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class AccountSessionComponentsFinancialAccountRewards : StripeEntity<AccountSessionComponentsFinancialAccountRewards>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
[STJS.JsonPropertyName("features")]
public AccountSessionComponentsFinancialAccountRewardsFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class AccountSessionComponentsFinancialAccountRewardsFeatures : StripeEntity<AccountSessionComponentsFinancialAccountRewardsFeatures>
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class AccountSessionComponentsNestingDemo : StripeEntity<AccountSessionComponentsNestingDemo>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
[STJS.JsonPropertyName("features")]
public AccountSessionComponentsNestingDemoFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class AccountSessionComponentsNestingDemoFeatures : StripeEntity<AccountSessionComponentsNestingDemoFeatures>
{
}
}
7 changes: 7 additions & 0 deletions src/Stripe.net/Entities/AccountSignals/AccountSignals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ public class AccountSignals : StripeEntity<AccountSignals>, IHasObject
[STJS.JsonPropertyName("delinquency")]
public AccountSignalsDelinquency Delinquency { get; set; }

/// <summary>
/// The fraud intent signal of the account.
/// </summary>
[JsonProperty("fraud_intent")]
[STJS.JsonPropertyName("fraud_intent")]
public AccountSignalsFraudIntent FraudIntent { 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
Expand Up @@ -29,8 +29,8 @@ public class AccountSignalsDelinquencyIndicator : StripeEntity<AccountSignalsDel
/// 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>.
/// <c>payment_volume</c>, <c>payouts</c>, <c>refunds</c>, <c>related_accounts</c>,
/// <c>tenure</c>, or <c>transfers</c>.
/// </summary>
[JsonProperty("indicator")]
[STJS.JsonPropertyName("indicator")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

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

/// <summary>
/// Array of objects representing individual factors that contributed to the calculated
/// probability of fraud intent.
/// </summary>
[JsonProperty("indicators")]
[STJS.JsonPropertyName("indicators")]
public List<AccountSignalsFraudIntentIndicator> Indicators { get; set; }

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

/// <summary>
/// Categorical assessment of the fraud intent 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")]
[STJS.JsonPropertyName("risk_level")]
public string RiskLevel { get; set; }

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

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class AccountSignalsFraudIntentIndicator : StripeEntity<AccountSignalsFraudIntentIndicator>
{
/// <summary>
/// A brief explanation of how this indicator contributed to the delinquency probability.
/// </summary>
[JsonProperty("description")]
[STJS.JsonPropertyName("description")]
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")]
[STJS.JsonPropertyName("impact")]
public string Impact { get; set; }

/// <summary>
/// The name of the specific indicator used in the risk assessment.
/// One of: <c>bank_account</c>, <c>business_information_and_account_activity</c>,
/// <c>disputes</c>, <c>failures</c>, <c>geo_location</c>, <c>other</c>,
/// <c>other_related_accounts</c>, <c>other_transaction_activity</c>, <c>owner_email</c>, or
/// <c>web_presence</c>.
/// </summary>
[JsonProperty("indicator")]
[STJS.JsonPropertyName("indicator")]
public string Indicator { get; set; }
}
}
11 changes: 11 additions & 0 deletions src/Stripe.net/Entities/Accounts/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;

/// <summary>
/// For new integrations, we recommend using the <a
/// href="https://stripe.com/api/v2/core/accounts">Accounts v2 API</a>, in place of
/// /v1/accounts and /v1/customers to represent a user.
///
/// This is an object representing a Stripe account. You can retrieve it to see properties
/// on the account like its current requirements or if the account is enabled to make live
/// charges or receive payouts.
Expand Down Expand Up @@ -192,6 +196,13 @@ public class Account : StripeEntity<Account>, IHasId, IHasMetadata, IHasObject,
[STJS.JsonPropertyName("risk_controls")]
public AccountRiskControls RiskControls { get; set; }

/// <summary>
/// A hash containing information about risk signal collection.
/// </summary>
[JsonProperty("risk_signals")]
[STJS.JsonPropertyName("risk_signals")]
public RiskSignals RiskSignals { get; set; }

/// <summary>
/// Options for customizing how the account functions within Stripe.
/// </summary>
Expand Down
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,15 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[STJS.JsonPropertyName("twint_payments")]
public string TwintPayments { get; set; }

/// <summary>
/// The status of the upi payments capability of the account, or whether the account can
/// directly process upi charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("upi_payments")]
[STJS.JsonPropertyName("upi_payments")]
public string UpiPayments { get; set; }

/// <summary>
/// The status of the US bank account ACH payments capability of the account, or whether the
/// account can directly process US bank account charges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public class AccountSettingsPaypayPayments : StripeEntity<AccountSettingsPaypayP
public List<string> AdditionalFiles { get; set; }

/// <summary>
/// Whether your business sells digital content or not.
/// The type of goods your business sells. Use <c>digital_content</c> if you sell digital
/// content. Use <c>other</c> for all other types of goods or services.
/// One of: <c>digital_content</c>, or <c>other</c>.
/// </summary>
[JsonProperty("goods_type")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/ApplePayDomains/ApplePayDomain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class ApplePayDomain : StripeEntity<ApplePayDomain>, IHasId, IHasObject
public string DomainName { 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.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/ApplicationFees/ApplicationFee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ public Charge Charge
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.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Apps/Secrets/Secret.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public class Secret : StripeEntity<Secret>, IHasId, IHasObject
public DateTime? ExpiresAt { 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.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
8 changes: 6 additions & 2 deletions src/Stripe.net/Entities/Balances/Balance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public class Balance : StripeEntity<Balance>, IHasObject
public BalanceIssuing Issuing { 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.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand All @@ -78,6 +78,10 @@ public class Balance : StripeEntity<Balance>, IHasObject
[STJS.JsonPropertyName("refund_and_dispute_prefunding")]
public BalanceRefundAndDisputePrefunding RefundAndDisputePrefunding { get; set; }

[JsonProperty("risk_reserved")]
[STJS.JsonPropertyName("risk_reserved")]
public BalanceRiskReserved RiskReserved { get; set; }

[JsonProperty("transit_balances_total")]
[STJS.JsonPropertyName("transit_balances_total")]
public BalanceTransitBalancesTotal TransitBalancesTotal { get; set; }
Expand Down
26 changes: 26 additions & 0 deletions src/Stripe.net/Entities/Balances/BalanceRiskReserved.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class BalanceRiskReserved : StripeEntity<BalanceRiskReserved>
{
/// <summary>
/// Funds that are available for use.
/// </summary>
[JsonProperty("available")]
[STJS.JsonPropertyName("available")]
public List<BalanceRiskReservedAvailable> Available { get; set; }

/// <summary>
/// Funds that are pending.
/// </summary>
[JsonProperty("pending")]
[STJS.JsonPropertyName("pending")]
public List<BalanceRiskReservedPending> Pending { get; set; }
}
}
Loading
Loading