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
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,29 @@ This release changes the pinned API version to 2026-04-22.private.
* Add support for `AdmissionsTax`, `AttendanceTax`, `EntertainmentTax`, `GrossReceiptsTax`, `HospitalityTax`, `LuxuryTax`, `ResortTax`, and `TourismTax` on `TaxRegistrationCountryOptionsUsOptions`
* Add support for `Purpose` on `Treasury.OutboundPaymentCreateOptions` and `Treasury.OutboundPayment`

## 51.1.0 - 2026-04-23
This release changes the pinned API version to 2026-04-22.dahlia.

* [#3365](https://github.com/stripe/stripe-dotnet/pull/3365) Update generated code
* Add support for `BalanceReport` and `PayoutReconciliationReport` on `AccountSession.Components` and `AccountSessionComponentsOptions`
* Add support for `AppDistribution` and `SunbitPayments` on `Account.Capabilities` and `AccountCapabilitiesOptions`
* Add support for `Sunbit` on `Charge.PaymentMethodDetails`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenPaymentMethodDataOptions`, `PaymentAttemptRecord.PaymentMethodDetails`, `PaymentIntentPaymentMethodDataOptions`, `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, `PaymentMethodConfiguration`, `PaymentMethodCreateOptions`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetails`, and `SetupIntentPaymentMethodDataOptions`
* Add support for `Location` and `Reader` on `Charge.PaymentMethodDetails.Klarna`, `PaymentAttemptRecord.PaymentMethodDetails.Klarna`, and `PaymentRecord.PaymentMethodDetails.Klarna`
* Add support for `Mandate` on `Charge.PaymentMethodDetails.Pix`, `PaymentAttemptRecord.PaymentMethodDetails.Pix`, and `PaymentRecord.PaymentMethodDetails.Pix`
* Add support for `ManagedPayments` on `Checkout.SessionCreateOptions`, `Checkout.Session`, `PaymentIntent`, `PaymentLinkCreateOptions`, `PaymentLink`, `SetupIntent`, and `Subscription`
* Add support for `MandateOptions` on `Checkout.Session.PaymentMethodOptions.Pix`, `CheckoutSessionPaymentMethodOptionsPixOptions`, `PaymentIntent.PaymentMethodOptions.Pix`, and `PaymentIntentPaymentMethodOptionsPixOptions`
* Change type of `CheckoutSessionPaymentMethodOptionsPixOptions.SetupFutureUsage` and `PaymentIntentPaymentMethodOptionsPixOptions.SetupFutureUsage` from `literal('none')` to `enum('none'|'off_session')`
* ⚠️ Change type of `Checkout.Session.PaymentMethodOptions.Pix.SetupFutureUsage` and `PaymentIntent.PaymentMethodOptions.Pix.SetupFutureUsage` from `literal('none')` to `enum('none'|'off_session')`
* Add support for `Pix` on `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoicePaymentSettingsPaymentMethodOptionsOptions`, `Mandate.PaymentMethodDetails`, `SetupAttempt.PaymentMethodDetails`, `SetupIntent.PaymentMethodOptions`, `SetupIntentPaymentMethodOptionsOptions`, `Subscription.PaymentSettings.PaymentMethodOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptionsOptions`
* Add support for `Upi` on `Invoice.PaymentSettings.PaymentMethodOptions`, `InvoicePaymentSettingsPaymentMethodOptionsOptions`, `Subscription.PaymentSettings.PaymentMethodOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptionsOptions`
* Add support for `CardPresence` on `Issuing.Authorization`
* Add support for `AllowedCardPresences` and `BlockedCardPresences` on `Issuing.Card.SpendingControls`, `Issuing.Cardholder.SpendingControls`, `IssuingCardSpendingControlsOptions`, and `IssuingCardholderSpendingControlsOptions`
* Add support for `Amount` and `Currency` on `Mandate.MultiUse`
* Add support for `AmountToConfirm` on `PaymentIntentConfirmOptions`
* Add support for `KlarnaDisplayQrCode` on `PaymentIntent.NextAction`
* Add support for `Moto` on `SetupAttempt.PaymentMethodDetails.Card`
* Add support for `PixDisplayQrCode` on `SetupIntent.NextAction`

## 51.1.0-beta.2 - 2026-04-17
Please review the [changelog for 51.0.1](https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#5101---2026-04-17) for more information about changes in this release.

Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
77db2d3a0cf933a87e318463e31419e60d76483b
826bf48af8bcd391512daeaf283b8486347b14c8
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2252
v2253
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing
public class BillSettingVersionCalculationTax : StripeEntity<BillSettingVersionCalculationTax>
{
/// <summary>
/// Determines if tax will be calculated automatically based on a PTC or manually based on
/// rules defined by the merchant. Defaults to "manual".
/// Determines if tax is calculated automatically based on a PTC or manually based on rules
/// defined by the business. Defaults to "manual".
/// One of: <c>automatic</c>, or <c>manual</c>.
/// </summary>
[JsonProperty("type")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing
public class BillSettingVersionInvoice : StripeEntity<BillSettingVersionInvoice>
{
/// <summary>
/// The amount of time until the invoice will be overdue for payment.
/// The amount of time until the invoice is overdue for payment.
/// </summary>
[JsonProperty("time_until_due")]
[STJS.JsonPropertyName("time_until_due")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class BillSettingVersionInvoiceTimeUntilDue : StripeEntity<BillSettingVer

/// <summary>
/// The number of interval units. For example, if interval=day and interval_count=30, the
/// invoice will be due in 30 days.
/// invoice is due in 30 days.
/// </summary>
[JsonProperty("interval_count")]
[STJS.JsonPropertyName("interval_count")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class BillSetting : StripeEntity<BillSetting>, IHasId, IHasObject
public string InvoiceRenderingTemplate { get; set; }

/// <summary>
/// The latest version of the current settings object. This will be Updated every time an
/// The latest version of the current settings object. This is updated every time an
/// attribute of the settings is updated.
/// </summary>
[JsonProperty("latest_version")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing
public class BillSettingCalculationTax : StripeEntity<BillSettingCalculationTax>
{
/// <summary>
/// Determines if tax will be calculated automatically based on a PTC or manually based on
/// rules defined by the merchant. Defaults to "manual".
/// Determines if tax is calculated automatically based on a PTC or manually based on rules
/// defined by the business. Defaults to "manual".
/// One of: <c>automatic</c>, or <c>manual</c>.
/// </summary>
[JsonProperty("type")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing
public class BillSettingInvoice : StripeEntity<BillSettingInvoice>
{
/// <summary>
/// The amount of time until the invoice will be overdue for payment.
/// The amount of time until the invoice is overdue for payment.
/// </summary>
[JsonProperty("time_until_due")]
[STJS.JsonPropertyName("time_until_due")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class BillSettingInvoiceTimeUntilDue : StripeEntity<BillSettingInvoiceTim

/// <summary>
/// The number of interval units. For example, if interval=day and interval_count=30, the
/// invoice will be due in 30 days.
/// invoice is due in 30 days.
/// </summary>
[JsonProperty("interval_count")]
[STJS.JsonPropertyName("interval_count")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public class CadenceBillingCycleMonth : StripeEntity<CadenceBillingCycleMonth>
{
/// <summary>
/// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this
/// number is greater than the number of days in the month being billed, this will anchor to
/// the last day of the month.
/// number is greater than the number of days in the month being billed, this anchors to the
/// last day of the month.
/// </summary>
[JsonProperty("day_of_month")]
[STJS.JsonPropertyName("day_of_month")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ public class CadenceBillingCycleYear : StripeEntity<CadenceBillingCycleYear>
{
/// <summary>
/// The day to anchor the billing on for a type="month" billing cycle from 1-31. If this
/// number is greater than the number of days in the month being billed, this will anchor to
/// the last day of the month.
/// number is greater than the number of days in the month being billed, this anchors to the
/// last day of the month.
/// </summary>
[JsonProperty("day_of_month")]
[STJS.JsonPropertyName("day_of_month")]
public long DayOfMonth { get; set; }

/// <summary>
/// The month to bill on from 1-12. If not provided, this will default to the month the
/// cadence was created.
/// The month to bill on from 1-12. If not provided, this defaults to the month the cadence
/// was created.
/// </summary>
[JsonProperty("month_of_year")]
[STJS.JsonPropertyName("month_of_year")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing
public class CadencePayer : StripeEntity<CadencePayer>
{
/// <summary>
/// The ID of the Billing Profile object which determines how a bill will be paid.
/// The ID of the Billing Profile object which determines how a bill is paid.
/// </summary>
[JsonProperty("billing_profile")]
[STJS.JsonPropertyName("billing_profile")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace Stripe.V2.Billing
public class CadenceSettingsDataBillCalculationTax : StripeEntity<CadenceSettingsDataBillCalculationTax>
{
/// <summary>
/// Determines if tax will be calculated automatically based on a PTC or manually based on
/// rules defined by the merchant. Defaults to "manual".
/// Determines if tax is calculated automatically based on a PTC or manually based on rules
/// defined by the business. Defaults to "manual".
/// One of: <c>automatic</c>, or <c>manual</c>.
/// </summary>
[JsonProperty("type")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing
public class CadenceSettingsDataBillInvoice : StripeEntity<CadenceSettingsDataBillInvoice>
{
/// <summary>
/// The amount of time until the invoice will be overdue for payment.
/// The amount of time until the invoice is overdue for payment.
/// </summary>
[JsonProperty("time_until_due")]
[STJS.JsonPropertyName("time_until_due")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CadenceSettingsDataBillInvoiceTimeUntilDue : StripeEntity<CadenceSe

/// <summary>
/// The number of interval units. For example, if interval=day and interval_count=30, the
/// invoice will be due in 30 days.
/// invoice is due in 30 days.
/// </summary>
[JsonProperty("interval_count")]
[STJS.JsonPropertyName("interval_count")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ namespace Stripe.V2.Billing
public class CadenceSettingsDataCollection : StripeEntity<CadenceSettingsDataCollection>
{
/// <summary>
/// Either automatic, or send_invoice. When charging automatically, Stripe will attempt to
/// pay this bill at the end of the period using the payment method attached to the payer
/// profile. When sending an invoice, Stripe will email your payer profile an invoice with
/// Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay
/// this bill at the end of the period using the payment method attached to the billing
/// profile. When sending an invoice, Stripe emails your billing profile an invoice with
/// payment instructions. Defaults to automatic.
/// One of: <c>automatic</c>, or <c>send_invoice</c>.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;
Expand Down Expand Up @@ -43,14 +42,14 @@ public class CadenceSettingsDataCollectionPaymentMethodOptions : StripeEntity<Ca
/// </summary>
[JsonProperty("konbini")]
[STJS.JsonPropertyName("konbini")]
public Dictionary<string, object> Konbini { get; set; }
public CadenceSettingsDataCollectionPaymentMethodOptionsKonbini Konbini { get; set; }

/// <summary>
/// This sub-hash contains details about the SEPA Direct Debit payment method options.
/// </summary>
[JsonProperty("sepa_debit")]
[STJS.JsonPropertyName("sepa_debit")]
public Dictionary<string, object> SepaDebit { get; set; }
public CadenceSettingsDataCollectionPaymentMethodOptionsSepaDebit SepaDebit { get; set; }

/// <summary>
/// This sub-hash contains details about the ACH direct debit payment method options.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

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

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class CadenceSettingsDataCollectionPaymentMethodOptionsSepaDebit : StripeEntity<CadenceSettingsDataCollectionPaymentMethodOptionsSepaDebit>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public class CollectionSettingVersion : StripeEntity<CollectionSettingVersion>,
public string Object { get; set; }

/// <summary>
/// Either automatic, or send_invoice. When charging automatically, Stripe will attempt to
/// pay this bill at the end of the period using the payment method attached to the payer
/// profile. When sending an invoice, Stripe will email your payer profile an invoice with
/// Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay
/// this bill at the end of the period using the payment method attached to the billing
/// profile. When sending an invoice, Stripe emails your billing profile an invoice with
/// payment instructions. Defaults to automatic.
/// One of: <c>automatic</c>, or <c>send_invoice</c>.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;
Expand Down Expand Up @@ -43,14 +42,14 @@ public class CollectionSettingVersionPaymentMethodOptions : StripeEntity<Collect
/// </summary>
[JsonProperty("konbini")]
[STJS.JsonPropertyName("konbini")]
public Dictionary<string, object> Konbini { get; set; }
public CollectionSettingVersionPaymentMethodOptionsKonbini Konbini { get; set; }

/// <summary>
/// This sub-hash contains details about the SEPA Direct Debit payment method options.
/// </summary>
[JsonProperty("sepa_debit")]
[STJS.JsonPropertyName("sepa_debit")]
public Dictionary<string, object> SepaDebit { get; set; }
public CollectionSettingVersionPaymentMethodOptionsSepaDebit SepaDebit { get; set; }

/// <summary>
/// This sub-hash contains details about the ACH direct debit payment method options.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

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

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class CollectionSettingVersionPaymentMethodOptionsSepaDebit : StripeEntity<CollectionSettingVersionPaymentMethodOptionsSepaDebit>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public class CollectionSetting : StripeEntity<CollectionSetting>, IHasId, IHasOb
public string Object { get; set; }

/// <summary>
/// Either automatic, or send_invoice. When charging automatically, Stripe will attempt to
/// pay this bill at the end of the period using the payment method attached to the payer
/// profile. When sending an invoice, Stripe will email your payer profile an invoice with
/// Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay
/// this bill at the end of the period using the payment method attached to the billing
/// profile. When sending an invoice, Stripe emails your billing profile an invoice with
/// payment instructions. Defaults to automatic.
/// One of: <c>automatic</c>, or <c>send_invoice</c>.
/// </summary>
Expand Down Expand Up @@ -60,7 +60,7 @@ public class CollectionSetting : StripeEntity<CollectionSetting>, IHasId, IHasOb
public CollectionSettingEmailDelivery EmailDelivery { get; set; }

/// <summary>
/// The latest version of the current settings object. This will be Updated every time an
/// The latest version of the current settings object. This is updated every time an
/// attribute of the settings is updated.
/// </summary>
[JsonProperty("latest_version")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;
Expand Down Expand Up @@ -43,14 +42,14 @@ public class CollectionSettingPaymentMethodOptions : StripeEntity<CollectionSett
/// </summary>
[JsonProperty("konbini")]
[STJS.JsonPropertyName("konbini")]
public Dictionary<string, object> Konbini { get; set; }
public CollectionSettingPaymentMethodOptionsKonbini Konbini { get; set; }

/// <summary>
/// This sub-hash contains details about the SEPA Direct Debit payment method options.
/// </summary>
[JsonProperty("sepa_debit")]
[STJS.JsonPropertyName("sepa_debit")]
public Dictionary<string, object> SepaDebit { get; set; }
public CollectionSettingPaymentMethodOptionsSepaDebit SepaDebit { get; set; }

/// <summary>
/// This sub-hash contains details about the ACH direct debit payment method options.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

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

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class CollectionSettingPaymentMethodOptionsSepaDebit : StripeEntity<CollectionSettingPaymentMethodOptionsSepaDebit>
{
}
}
Loading
Loading