Skip to content
Merged
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3602014a6583f6c0fbfdde3c575839ac7d0b4e9c
0822236fb875490aa7ccc7b66dbb52f8965ee062
78 changes: 52 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,58 @@
* Add support for event notifications `V2PaymentsSettlementAllocationIntentCanceledEvent`, `V2PaymentsSettlementAllocationIntentCreatedEvent`, `V2PaymentsSettlementAllocationIntentErroredEvent`, `V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent`, `V2PaymentsSettlementAllocationIntentMatchedEvent`, `V2PaymentsSettlementAllocationIntentSettledEvent`, and `V2PaymentsSettlementAllocationIntentSubmittedEvent` with related object `V2.Payments.SettlementAllocationIntent`
* Add support for event notifications `V2PaymentsSettlementAllocationIntentSplitCanceledEvent`, `V2PaymentsSettlementAllocationIntentSplitCreatedEvent`, and `V2PaymentsSettlementAllocationIntentSplitSettledEvent` with related object `V2.Payments.SettlementAllocationIntentSplit`

## 50.1.0 - 2025-12-16
This release changes the pinned API version to `2025-12-15.clover`.

* [#3271](https://github.com/stripe/stripe-dotnet/pull/3271) Update generated code
* Add support for new resources `V2.Core.AccountLink`, `V2.Core.AccountPersonToken`, `V2.Core.AccountPerson`, `V2.Core.AccountToken`, and `V2.Core.Account`
* Add support for `Create` and `Get` methods on resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken`
* Add support for `Create` method on resource `V2.Core.AccountLink`
* Add support for `Close`, `Create`, `Get`, `List`, and `Update` methods on resource `V2.Core.Account`
* Add support for `Create`, `Delete`, `Get`, `List`, and `Update` methods on resource `V2.Core.AccountPerson`
* Add support for `CustomerAccount` on `Billing.CreditBalanceSummaryGetOptions`, `Billing.CreditBalanceSummary`, `Billing.CreditBalanceTransactionListOptions`, `Billing.CreditGrantCreateOptions`, `Billing.CreditGrantListOptions`, `Billing.CreditGrant`, `BillingPortal.SessionCreateOptions`, `BillingPortal.Session`, `CashBalance`, `Checkout.SessionCreateOptions`, `Checkout.SessionListOptions`, `Checkout.Session`, `ConfirmationToken.PaymentMethodPreview`, `CreditNoteListOptions`, `CreditNote`, `CustomerBalanceTransaction`, `CustomerCashBalanceTransaction`, `CustomerSessionCreateOptions`, `CustomerSession`, `Customer`, `Discount`, `FinancialConnections.Account.AccountHolder`, `FinancialConnections.Session.AccountHolder`, `FinancialConnectionsAccountAccountHolderOptions`, `FinancialConnectionsSessionAccountHolderOptions`, `InvoiceCreateOptions`, `InvoiceCreatePreviewOptions`, `InvoiceItemCreateOptions`, `InvoiceItemListOptions`, `InvoiceItem`, `InvoiceListOptions`, `Invoice`, `PaymentIntentCreateOptions`, `PaymentIntentListOptions`, `PaymentIntentUpdateOptions`, `PaymentIntent`, `PaymentMethodAttachOptions`, `PaymentMethodListOptions`, `PaymentMethod`, `PromotionCodeCreateOptions`, `PromotionCodeListOptions`, `PromotionCode`, `QuoteCreateOptions`, `QuoteListOptions`, `QuoteUpdateOptions`, `Quote`, `SetupAttempt`, `SetupIntentCreateOptions`, `SetupIntentListOptions`, `SetupIntentUpdateOptions`, `SetupIntent`, `SubscriptionCreateOptions`, `SubscriptionListOptions`, `SubscriptionScheduleCreateOptions`, `SubscriptionScheduleListOptions`, `SubscriptionSchedule`, `Subscription`, `TaxId.Owner`, `TaxIdOwnerOptions`, and `TaxId`
* Add support for `Metadata` on `CheckoutSessionLineItemOptions` and `LineItem`
* Add support for `PaytoPayments` on `Account.Capabilities` and `AccountCapabilitiesOptions`
* Add support for `Signer` on `AccountDocumentsProofOfRegistrationOptions` and `AccountDocumentsProofOfUltimateBeneficialOwnershipOptions`
* Add support for `BillingCycleAnchor` on `BillingPortal.Configuration.Features.SubscriptionUpdate` and `BillingPortalConfigurationFeaturesSubscriptionUpdateOptions`
* Add support for `Payto` on `Charge.PaymentMethodDetails`, `Checkout.Session.PaymentMethodOptions`, `CheckoutSessionPaymentMethodOptionsOptions`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenPaymentMethodDataOptions`, `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoicePaymentSettingsPaymentMethodOptionsOptions`, `Mandate.PaymentMethodDetails`, `PaymentAttemptRecord.PaymentMethodDetails`, `PaymentIntent.PaymentMethodOptions`, `PaymentIntentPaymentMethodDataOptions`, `PaymentIntentPaymentMethodOptionsOptions`, `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, `PaymentMethodConfiguration`, `PaymentMethodCreateOptions`, `PaymentMethodUpdateOptions`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetails`, `SetupAttempt.PaymentMethodDetails`, `SetupIntent.PaymentMethodOptions`, `SetupIntentPaymentMethodDataOptions`, `SetupIntentPaymentMethodOptionsOptions`, `Subscription.PaymentSettings.PaymentMethodOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptionsOptions`
* Add support for `ExpectedDebitDate` on `Charge.PaymentMethodDetails.AcssDebit`, `Charge.PaymentMethodDetails.AuBecsDebit`, `Charge.PaymentMethodDetails.BacsDebit`, `Charge.PaymentMethodDetails.NzBankAccount`, `Charge.PaymentMethodDetails.SepaDebit`, `Charge.PaymentMethodDetails.UsBankAccount`, `PaymentAttemptRecord.PaymentMethodDetails.AcssDebit`, `PaymentAttemptRecord.PaymentMethodDetails.AuBecsDebit`, `PaymentAttemptRecord.PaymentMethodDetails.BacsDebit`, `PaymentAttemptRecord.PaymentMethodDetails.NzBankAccount`, `PaymentAttemptRecord.PaymentMethodDetails.SepaDebit`, `PaymentAttemptRecord.PaymentMethodDetails.UsBankAccount`, `PaymentRecord.PaymentMethodDetails.AcssDebit`, `PaymentRecord.PaymentMethodDetails.AuBecsDebit`, `PaymentRecord.PaymentMethodDetails.BacsDebit`, `PaymentRecord.PaymentMethodDetails.NzBankAccount`, `PaymentRecord.PaymentMethodDetails.SepaDebit`, and `PaymentRecord.PaymentMethodDetails.UsBankAccount`
* Add support for `LineItems` on `Checkout.SessionUpdateOptions`
* Add support for `Invoice` on `CustomerCustomerBalanceTransactionListOptions`
* Add support for `RelatedCustomerAccount` on `Identity.VerificationSessionCreateOptions`, `Identity.VerificationSessionListOptions`, and `Identity.VerificationSession`
* Add support for `Subtotal` on `InvoiceLineItem`
* Add support for `AuthorizationCode`, `Description`, `Iin`, `Installments`, `Issuer`, `NetworkAdviceCode`, `NetworkDeclineCode`, and `StoredCredentialUsage` on `PaymentAttemptRecord.PaymentMethodDetails.Card` and `PaymentRecord.PaymentMethodDetails.Card`
* Add support for `AllowRedisplay` on `PaymentMethodListOptions`
* Add support for `ReportedBy` on `PaymentRecord`
* Add support for `Changes` on `V2.Core.Event`
* [#3270](https://github.com/stripe/stripe-dotnet/pull/3270) Make `EventUtility.ComputeSignature` public

## 50.1.0-beta.1 - 2025-11-18
This release changes the pinned API version to `2025-11-17.preview`.

* [#3241](https://github.com/stripe/stripe-dotnet/pull/3241) Update generated code for beta
* Add support for new resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken`
* Remove support for resource `V2.Payments.OffSessionPayment`
* Add support for `Create` and `Get` methods on resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken`
* Remove support for `Cancel`, `Capture`, `Create`, `Get`, and `List` methods on resource `V2.Payments.OffSessionPayment`
* Add support for `SpecifiedCommercialTransactionsActUrl` on `Account.BusinessProfile` and `AccountBusinessProfileOptions`
* Add support for `PaypayPayments` on `Account.Settings` and `AccountSettingsOptions`
* Change type of `BillingAnalyticsMeterUsageMeterOptions.DimensionFilters` from `string` to `array(string)`
* Change type of `BillingAnalyticsMeterUsageMeterOptions.TenantFilters` from `string` to `array(string)`
* Add support for `CarRentalData`, `FlightData`, and `LodgingData` on `ChargePaymentDetailsOptions` and `PaymentIntentPaymentDetailsOptions`
* Add support for `SupplementaryPurchaseData` on `OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions` and `PaymentIntentPaymentMethodOptionsKlarnaOptions`
* Add support for `AllowRedisplay` and `CustomerAccount` on `PaymentMethodListOptions`
* Add support for `FutureRequirements` on `V2.Core.Account`
* Add support for `KonbiniPayments` and `ScriptStatementDescriptor` on `V2.Core.Account.Configuration.Merchant` and `V2CoreAccountConfigurationMerchantOptions`
* Add support for `Eur` on `V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies` and `V2CoreAccountConfigurationStorerCapabilitiesHoldsCurrenciesOptions`
* Add support for `RequirementsCollector` on `V2.Core.Account.Defaults.Responsibilities`
* Remove support for `Collector` on `V2.Core.Account.Requirements`
* Add support for `Changes` on `V2.Core.Event`
* Add support for `AccountToken` on `V2.Core.AccountCreateOptions` and `V2.Core.AccountUpdateOptions`
* Add support for `PersonToken` on `V2.Core.AccountPersonCreateOptions` and `V2.Core.AccountPersonUpdateOptions`
* Add support for thin event `V2CoreHealthEventGenerationFailureResolvedEvent`
* Remove support for thin events `V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent`, `V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent`, `V2PaymentsOffSessionPaymentCanceledEvent`, `V2PaymentsOffSessionPaymentCreatedEvent`, `V2PaymentsOffSessionPaymentFailedEvent`, `V2PaymentsOffSessionPaymentRequiresCaptureEvent`, and `V2PaymentsOffSessionPaymentSucceededEvent` with related object `V2.Payments.OffSessionPayment`

## 50.1.0-alpha.4 - 2025-12-04
* [#3272](https://github.com/stripe/stripe-dotnet/pull/3272) Update generated code for private-preview
* Add support for `CheckScanning` on `AccountSession.Components`
Expand Down Expand Up @@ -176,32 +228,6 @@ This release changes the pinned API version to `2025-11-17.preview`.
* Add support for `MbWay` and `Twint` on `Refund.DestinationDetails`
* Add support for snapshot events `FinancialConnectionsAccountAccountNumbersUpdated` and `FinancialConnectionsAccountUpcomingAccountNumberExpiry` with resource `FinancialConnections.Account`

## 50.1.0-beta.1 - 2025-11-18
This release changes the pinned API version to `2025-11-17.preview`.

* [#3241](https://github.com/stripe/stripe-dotnet/pull/3241) Update generated code for beta
* Add support for new resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken`
* Remove support for resource `V2.Payments.OffSessionPayment`
* Add support for `Create` and `Get` methods on resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken`
* Remove support for `Cancel`, `Capture`, `Create`, `Get`, and `List` methods on resource `V2.Payments.OffSessionPayment`
* Add support for `SpecifiedCommercialTransactionsActUrl` on `Account.BusinessProfile` and `AccountBusinessProfileOptions`
* Add support for `PaypayPayments` on `Account.Settings` and `AccountSettingsOptions`
* Change type of `BillingAnalyticsMeterUsageMeterOptions.DimensionFilters` from `string` to `array(string)`
* Change type of `BillingAnalyticsMeterUsageMeterOptions.TenantFilters` from `string` to `array(string)`
* Add support for `CarRentalData`, `FlightData`, and `LodgingData` on `ChargePaymentDetailsOptions` and `PaymentIntentPaymentDetailsOptions`
* Add support for `SupplementaryPurchaseData` on `OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions` and `PaymentIntentPaymentMethodOptionsKlarnaOptions`
* Add support for `AllowRedisplay` and `CustomerAccount` on `PaymentMethodListOptions`
* Add support for `FutureRequirements` on `V2.Core.Account`
* Add support for `KonbiniPayments` and `ScriptStatementDescriptor` on `V2.Core.Account.Configuration.Merchant` and `V2CoreAccountConfigurationMerchantOptions`
* Add support for `Eur` on `V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies` and `V2CoreAccountConfigurationStorerCapabilitiesHoldsCurrenciesOptions`
* Add support for `RequirementsCollector` on `V2.Core.Account.Defaults.Responsibilities`
* Remove support for `Collector` on `V2.Core.Account.Requirements`
* Add support for `Changes` on `V2.Core.Event`
* Add support for `AccountToken` on `V2.Core.AccountCreateOptions` and `V2.Core.AccountUpdateOptions`
* Add support for `PersonToken` on `V2.Core.AccountPersonCreateOptions` and `V2.Core.AccountPersonUpdateOptions`
* Add support for thin event `V2CoreHealthEventGenerationFailureResolvedEvent`
* Remove support for thin events `V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent`, `V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent`, `V2PaymentsOffSessionPaymentCanceledEvent`, `V2PaymentsOffSessionPaymentCreatedEvent`, `V2PaymentsOffSessionPaymentFailedEvent`, `V2PaymentsOffSessionPaymentRequiresCaptureEvent`, and `V2PaymentsOffSessionPaymentSucceededEvent` with related object `V2.Payments.OffSessionPayment`

## 50.0.0 - 2025-11-18
This release changes the pinned API version to `2025-11-17.clover`.

Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2141
v2148
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

#if NET6_0_OR_GREATER
[STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
#endif
public class InvoiceParentScheduleDetails : StripeEntity<InvoiceParentScheduleDetails>
{
/// <summary>
Expand All @@ -16,5 +20,46 @@ public class InvoiceParentScheduleDetails : StripeEntity<InvoiceParentScheduleDe
[STJS.JsonPropertyName("schedule")]
#endif
public string Schedule { get; set; }

#region Expandable Subscription

/// <summary>
/// (ID of the Subscription)
/// The subscription associated with this schedule.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public string SubscriptionId
{
get => this.InternalSubscription?.Id;
set => this.InternalSubscription = SetExpandableFieldId(value, this.InternalSubscription);
}

/// <summary>
/// (Expanded)
/// The subscription associated with this schedule.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public Subscription Subscription
{
get => this.InternalSubscription?.ExpandedObject;
set => this.InternalSubscription = SetExpandableFieldObject(value, this.InternalSubscription);
}

[JsonProperty("subscription")]
[JsonConverter(typeof(ExpandableFieldConverter<Subscription>))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("subscription")]
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<Subscription>))]
#endif
internal ExpandableField<Subscription> InternalSubscription { get; set; }
#endregion
}
}
7 changes: 1 addition & 6 deletions src/Stripe.net/Entities/QuoteLines/QuoteLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,7 @@ public class QuoteLine : StripeEntity<QuoteLine>, IHasId, IHasObject
public QuoteLineCancelSubscriptionSchedule CancelSubscriptionSchedule { get; set; }

/// <summary>
/// Configures how the subscription schedule handles billing for phase transitions. Possible
/// values are <c>phase_start</c> (default) or <c>billing_period_start</c>.
/// <c>phase_start</c> bills based on the current state of the subscription, ignoring
/// changes scheduled in future phases. <c>billing_period_start</c> bills predictively for
/// upcoming phase transitions within the current billing cycle, including pricing changes
/// and service period adjustments that will occur before the next invoice.
/// Configures how the subscription schedule handles billing for phase transitions.
/// One of: <c>billing_period_start</c>, or <c>line_start</c>.
/// </summary>
[JsonProperty("effective_at")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

#if NET6_0_OR_GREATER
[STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
#endif
public class QuotePreviewInvoiceParentScheduleDetails : StripeEntity<QuotePreviewInvoiceParentScheduleDetails>
{
/// <summary>
Expand All @@ -16,5 +20,46 @@ public class QuotePreviewInvoiceParentScheduleDetails : StripeEntity<QuotePrevie
[STJS.JsonPropertyName("schedule")]
#endif
public string Schedule { get; set; }

#region Expandable Subscription

/// <summary>
/// (ID of the Subscription)
/// The subscription associated with this schedule.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public string SubscriptionId
{
get => this.InternalSubscription?.Id;
set => this.InternalSubscription = SetExpandableFieldId(value, this.InternalSubscription);
}

/// <summary>
/// (Expanded)
/// The subscription associated with this schedule.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public Subscription Subscription
{
get => this.InternalSubscription?.ExpandedObject;
set => this.InternalSubscription = SetExpandableFieldObject(value, this.InternalSubscription);
}

[JsonProperty("subscription")]
[JsonConverter(typeof(ExpandableFieldConverter<Subscription>))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("subscription")]
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<Subscription>))]
#endif
internal ExpandableField<Subscription> InternalSubscription { get; set; }
#endregion
}
}
10 changes: 3 additions & 7 deletions src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,9 @@ public Subscription FromSubscription
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// Configures how the quote handles billing for line transitions. Possible values are
/// <c>line_start</c> (default) or <c>billing_period_start</c>. <c>line_start</c> bills
/// based on the current state of the line, ignoring changes scheduled for future lines.
/// <c>billing_period_start</c> bills predictively for upcoming line transitions within the
/// current billing cycle, including pricing changes and service period adjustments that
/// will occur before the next invoice.
/// One of: <c>billing_period_start</c>, or <c>line_start</c>.
/// Configures how the subscription schedule handles billing for phase transitions when the
/// quote is accepted.
/// One of: <c>billing_period_start</c>, or <c>phase_start</c>.
/// </summary>
[JsonProperty("phase_effective_at")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,9 @@ public class QuoteSubscriptionDataOverride : StripeEntity<QuoteSubscriptionDataO
public string EndBehavior { get; set; }

/// <summary>
/// Configures how the quote handles billing for line transitions. Possible values are
/// <c>line_start</c> (default) or <c>billing_period_start</c>. <c>line_start</c> bills
/// based on the current state of the line, ignoring changes scheduled for future lines.
/// <c>billing_period_start</c> bills predictively for upcoming line transitions within the
/// current billing cycle, including pricing changes and service period adjustments that
/// will occur before the next invoice.
/// One of: <c>billing_period_start</c>, or <c>line_start</c>.
/// Configures how the subscription schedule handles billing for phase transitions when the
/// quote is accepted.
/// One of: <c>billing_period_start</c>, or <c>phase_start</c>.
/// </summary>
[JsonProperty("phase_effective_at")]
#if NET6_0_OR_GREATER
Expand Down
Loading
Loading