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 API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-06-30.preview
2025-07-30.preview
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1819
v1868
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 = "2025-06-30.preview";
public const string Current = "2025-07-30.preview";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
#endif
public AccountSessionComponentsFinancialAccountTransactions FinancialAccountTransactions { get; set; }

[JsonProperty("instant_payouts_promotion")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("instant_payouts_promotion")]
#endif
public AccountSessionComponentsInstantPayoutsPromotion InstantPayoutsPromotion { get; set; }

[JsonProperty("issuing_card")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("issuing_card")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// 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 AccountSessionComponentsInstantPayoutsPromotion : StripeEntity<AccountSessionComponentsInstantPayoutsPromotion>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("enabled")]
#endif
public bool Enabled { get; set; }

[JsonProperty("features")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("features")]
#endif
public AccountSessionComponentsInstantPayoutsPromotionFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// 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 AccountSessionComponentsInstantPayoutsPromotionFeatures : StripeEntity<AccountSessionComponentsInstantPayoutsPromotionFeatures>
{
/// <summary>
/// Whether Stripe user authentication is disabled. This value can only be <c>true</c> for
/// accounts where <c>controller.requirement_collection</c> is <c>application</c> for the
/// account. The default value is the opposite of the <c>external_account_collection</c>
/// value. For example, if you don't set <c>external_account_collection</c>, it defaults to
/// <c>true</c> and <c>disable_stripe_user_authentication</c> defaults to <c>false</c>.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("disable_stripe_user_authentication")]
#endif
public bool DisableStripeUserAuthentication { get; set; }

/// <summary>
/// Whether external account collection is enabled. This feature can only be <c>false</c>
/// for accounts where you’re responsible for collecting updated information when
/// requirements are due or change, like Custom accounts. The default value for this feature
/// is <c>true</c>.
/// </summary>
[JsonProperty("external_account_collection")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("external_account_collection")]
#endif
public bool ExternalAccountCollection { get; set; }

/// <summary>
/// Whether to allow creation of instant payouts. Defaults to <c>true</c> when
/// <c>controller.losses.payments</c> is set to <c>stripe</c> for the account, otherwise
/// <c>false</c>.
/// </summary>
[JsonProperty("instant_payouts")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("instant_payouts")]
#endif
public bool InstantPayouts { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class AccountBusinessProfile : StripeEntity<AccountBusinessProfile>
public string Mcc { get; set; }

/// <summary>
/// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
/// Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
/// One of: <c>lgbtqi_owned_business</c>, <c>minority_owned_business</c>,
/// <c>none_of_these_apply</c>, <c>prefer_not_to_answer</c>, or <c>women_owned_business</c>.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
Expand All @@ -24,22 +25,22 @@ public class BalanceSettingsPayoutsSchedule : StripeEntity<BalanceSettingsPayout
/// Payouts scheduled between the 29th and 31st of the month are sent on the last day of
/// shorter months.
/// </summary>
[JsonProperty("monthly_anchor")]
[JsonProperty("monthly_payout_days")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("monthly_anchor")]
[STJS.JsonPropertyName("monthly_payout_days")]
#endif
public long MonthlyAnchor { get; set; }
public List<long> MonthlyPayoutDays { get; set; }

/// <summary>
/// The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only
/// shown if <c>interval</c> is weekly.
/// One of: <c>friday</c>, <c>monday</c>, <c>thursday</c>, <c>tuesday</c>, or
/// <c>wednesday</c>.
/// The days of the week when available funds are paid out, specified as an array, for
/// example, [<c>monday</c>, <c>tuesday</c>]. Only shown if <c>interval</c> is weekly.
/// One of: <c>friday</c>, <c>monday</c>, <c>saturday</c>, <c>sunday</c>, <c>thursday</c>,
/// <c>tuesday</c>, or <c>wednesday</c>.
/// </summary>
[JsonProperty("weekly_anchor")]
[JsonProperty("weekly_payout_days")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("weekly_anchor")]
[STJS.JsonPropertyName("weekly_payout_days")]
#endif
public string WeeklyAnchor { get; set; }
public List<string> WeeklyPayoutDays { get; set; }
}
}
81 changes: 81 additions & 0 deletions src/Stripe.net/Entities/Billing/MeterUsageRows/MeterUsageRow.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
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 MeterUsageRow : StripeEntity<MeterUsageRow>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("id")]
#endif
public string Id { get; set; }

/// <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>
/// Timestamp indicating the end of the bucket. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("bucket_end_time")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("bucket_end_time")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime BucketEndTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("bucket_start_time")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("bucket_start_time")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime BucketStartTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The aggregated meter usage value for the specified bucket.
/// </summary>
[JsonProperty("bucket_value")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("bucket_value")]
#endif
public decimal BucketValue { get; set; }

/// <summary>
/// A set of key-value pairs representing the dimensions of the meter usage.
/// </summary>
[JsonProperty("dimensions")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("dimensions")]
#endif
public Dictionary<string, string> Dimensions { get; set; }

/// <summary>
/// The unique identifier for the meter.
/// </summary>
[JsonProperty("meter_id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("meter_id")]
#endif
public string MeterId { get; set; }
}
}
57 changes: 57 additions & 0 deletions src/Stripe.net/Entities/Billing/MeterUsages/MeterUsage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// A billing meter usage event represents an aggregated view of a customer’s billing meter
/// events within a specified timeframe.
/// </summary>
public class MeterUsage : StripeEntity<MeterUsage>, 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 aggregated meter usage data for the specified customer and time range.
/// </summary>
[JsonProperty("data")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("data")]
#endif
public List<MeterUsageRow> Data { get; set; }

/// <summary>
/// Timestamp indicating how fresh the data is. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("data_refreshed_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("data_refreshed_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime DataRefreshedAt { 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.
/// </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
Expand Up @@ -9,6 +9,12 @@ namespace Stripe.BillingPortal

public class ConfigurationFeaturesSubscriptionUpdateProduct : StripeEntity<ConfigurationFeaturesSubscriptionUpdateProduct>
{
[JsonProperty("adjustable_quantity")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("adjustable_quantity")]
#endif
public ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantity AdjustableQuantity { get; set; }

/// <summary>
/// The list of price IDs which, when subscribed to, a subscription can be updated.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// File generated from our OpenAPI spec
namespace Stripe.BillingPortal
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantity : StripeEntity<ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantity>
{
/// <summary>
/// If true, the quantity can be adjusted to any non-negative integer.
/// </summary>
[JsonProperty("enabled")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("enabled")]
#endif
public bool Enabled { get; set; }

/// <summary>
/// The maximum quantity that can be set for the product.
/// </summary>
[JsonProperty("maximum")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("maximum")]
#endif
public long? Maximum { get; set; }

/// <summary>
/// The minimum quantity that can be set for the product.
/// </summary>
[JsonProperty("minimum")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("minimum")]
#endif
public long Minimum { get; set; }
}
}
3 changes: 1 addition & 2 deletions src/Stripe.net/Entities/Capabilities/Capability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ public Account Account

/// <summary>
/// The status of the capability.
/// One of: <c>active</c>, <c>disabled</c>, <c>inactive</c>, <c>pending</c>, or
/// <c>unrequested</c>.
/// One of: <c>active</c>, <c>inactive</c>, <c>pending</c>, or <c>unrequested</c>.
/// </summary>
[JsonProperty("status")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ namespace Stripe
public class ChargePaymentMethodDetailsAmazonPayFundingCard : StripeEntity<ChargePaymentMethodDetailsAmazonPayFundingCard>
{
/// <summary>
/// Card brand. Can be <c>amex</c>, <c>diners</c>, <c>discover</c>, <c>eftpos_au</c>,
/// <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>, <c>visa</c>, or
/// <c>unknown</c>.
/// Card brand. Can be <c>amex</c>, <c>cartes_bancaires</c>, <c>diners</c>, <c>discover</c>,
/// <c>eftpos_au</c>, <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>,
/// <c>visa</c> or <c>unknown</c>.
/// </summary>
[JsonProperty("brand")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
public string AuthorizationCode { get; set; }

/// <summary>
/// Card brand. Can be <c>amex</c>, <c>diners</c>, <c>discover</c>, <c>eftpos_au</c>,
/// <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>, <c>visa</c>, or
/// <c>unknown</c>.
/// Card brand. Can be <c>amex</c>, <c>cartes_bancaires</c>, <c>diners</c>, <c>discover</c>,
/// <c>eftpos_au</c>, <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>,
/// <c>visa</c> or <c>unknown</c>.
/// </summary>
[JsonProperty("brand")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity<ChargePaymentM
public long? AmountAuthorized { get; set; }

/// <summary>
/// Card brand. Can be <c>amex</c>, <c>diners</c>, <c>discover</c>, <c>eftpos_au</c>,
/// <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>, <c>visa</c>, or
/// <c>unknown</c>.
/// Card brand. Can be <c>amex</c>, <c>cartes_bancaires</c>, <c>diners</c>, <c>discover</c>,
/// <c>eftpos_au</c>, <c>jcb</c>, <c>link</c>, <c>mastercard</c>, <c>unionpay</c>,
/// <c>visa</c> or <c>unknown</c>.
/// </summary>
[JsonProperty("brand")]
#if NET6_0_OR_GREATER
Expand Down
Loading
Loading