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 @@
e10daa4ed23a4fe87d6ea60836226446e042fdd3
b51a9d09327603fa3a61d076f4bf7f07b43e1659
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2186
v2205
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-02-25.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
4 changes: 4 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
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 @@ -207,8 +207,8 @@ public Charge Charge
public ApplicationFeeFeeSource FeeSource { 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 @@ -77,5 +77,9 @@ public class Balance : StripeEntity<Balance>, IHasObject
[JsonProperty("refund_and_dispute_prefunding")]
[STJS.JsonPropertyName("refund_and_dispute_prefunding")]
public BalanceRefundAndDisputePrefunding RefundAndDisputePrefunding { get; set; }

[JsonProperty("risk_reserved")]
[STJS.JsonPropertyName("risk_reserved")]
public BalanceRiskReserved RiskReserved { get; set; }
}
}
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; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// 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 BalanceRiskReservedAvailable : StripeEntity<BalanceRiskReservedAvailable>
{
/// <summary>
/// Balance amount.
/// </summary>
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
public long Amount { get; set; }

/// <summary>
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
[STJS.JsonPropertyName("currency")]
public string Currency { get; set; }

[JsonProperty("source_types")]
[STJS.JsonPropertyName("source_types")]
public BalanceRiskReservedAvailableSourceTypes SourceTypes { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// 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 BalanceRiskReservedAvailableSourceTypes : StripeEntity<BalanceRiskReservedAvailableSourceTypes>
{
/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
[STJS.JsonPropertyName("bank_account")]
public long BankAccount { get; set; }

/// <summary>
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
[STJS.JsonPropertyName("card")]
public long Card { get; set; }

/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
[STJS.JsonPropertyName("fpx")]
public long Fpx { get; set; }
}
}
31 changes: 31 additions & 0 deletions src/Stripe.net/Entities/Balances/BalanceRiskReservedPending.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// 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 BalanceRiskReservedPending : StripeEntity<BalanceRiskReservedPending>
{
/// <summary>
/// Balance amount.
/// </summary>
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
public long Amount { get; set; }

/// <summary>
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
[STJS.JsonPropertyName("currency")]
public string Currency { get; set; }

[JsonProperty("source_types")]
[STJS.JsonPropertyName("source_types")]
public BalanceRiskReservedPendingSourceTypes SourceTypes { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// 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 BalanceRiskReservedPendingSourceTypes : StripeEntity<BalanceRiskReservedPendingSourceTypes>
{
/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/ach-deprecated">legacy US ACH
/// payments</a>.
/// </summary>
[JsonProperty("bank_account")]
[STJS.JsonPropertyName("bank_account")]
public long BankAccount { get; set; }

/// <summary>
/// Amount coming from most payment methods, including cards as well as <a
/// href="https://docs.stripe.com/payments/bank-debits">non-legacy bank debits</a>.
/// </summary>
[JsonProperty("card")]
[STJS.JsonPropertyName("card")]
public long Card { get; set; }

/// <summary>
/// Amount coming from <a href="https://docs.stripe.com/payments/fpx">FPX</a>, a Malaysian
/// payment method.
/// </summary>
[JsonProperty("fpx")]
[STJS.JsonPropertyName("fpx")]
public long Fpx { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class AlertTriggered : StripeEntity<AlertTriggered>, IHasObject
public string Customer { 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/Billing/Alerts/Alert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class Alert : StripeEntity<Alert>, IHasId, IHasObject
public string AlertType { 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
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class MeterUsage : StripeEntity<MeterUsage>, IHasObject
public string Object { 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
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public Customer Customer
public string CustomerAccount { 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
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public CreditGrant CreditGrant
public DateTime EffectiveAt { 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
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public Customer Customer
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class MeterEventAdjustment : StripeEntity<MeterEventAdjustment>, IHasObje
public string EventName { 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
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public class MeterEventSummary : StripeEntity<MeterEventSummary>, IHasId, IHasOb
public DateTime EndTime { 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
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public class MeterEvent : StripeEntity<MeterEvent>, IHasObject
public string Identifier { 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
Loading
Loading