Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
407ba7b
Emit warning when `stripe-notify` header is present in response (#3385)
xavdid May 27, 2026
75c0731
Update generated code (#3386)
stripe-openapi[bot] May 27, 2026
c9c04ba
Bump version to 51.2.0
mbroshi-stripe May 27, 2026
bccc056
Merge upstream and update generated code for v2277 and e410e9ac8e4f0d…
stripe-openapi[bot] May 28, 2026
8969d68
Update generated code for v2279 and d4c5613f2c824ce394453c7d2eda2f562…
stripe-openapi[bot] May 29, 2026
8c95b53
Update generated code for v2279 and 51814d59c32ad8b7c2907d76002882018…
stripe-openapi[bot] May 29, 2026
1af1512
Update generated code for v2281 and 96c3176416a9197d6d0e55d71ea840c3b…
stripe-openapi[bot] May 30, 2026
62af0f3
Update generated code for v2282 and 5c691c66c4772b3ac8ec428cfbad43c1a…
stripe-openapi[bot] Jun 1, 2026
7934bf0
Update generated code for v2283 and 85055f7b3256cdc4aa3474b8ae86a1262…
stripe-openapi[bot] Jun 1, 2026
5306c92
Update generated code for v2284 and af00ccaf80199f59dc59d75c8380073bc…
stripe-openapi[bot] Jun 1, 2026
b20fd5d
Update generated code for v2286 and 73b6b975bf4a958bcc2a7a6c09d69e1c0…
stripe-openapi[bot] Jun 2, 2026
2d9612c
Update generated code for v2287 and 82b4eec03fcc3079809c6e9732212b7b6…
stripe-openapi[bot] Jun 2, 2026
96f1284
Update generated code for v2288 and bfc40fd356c460f9f1e04c4f6ba95b5eb…
stripe-openapi[bot] Jun 2, 2026
03ec4b6
Update generated code for v2289 and de3675e8666757ecc39afc1d9c7e3b414…
stripe-openapi[bot] Jun 2, 2026
9490b7d
Update generated code for v2290 and 0f1230b1967eb13ba7f0a4b18ac691e82…
stripe-openapi[bot] Jun 3, 2026
7686890
Regenerate from fixed codegen (sdk-codegen#3663)
jar-stripe Jun 3, 2026
84ac039
Update generated code for v2290 and 656489921ee220b536bc00fc1c8ee7ed5…
stripe-openapi[bot] Jun 3, 2026
0f97df8
Merge pull request #3392 from stripe/jar/fix-v2-namespace-rename
xavdid Jun 3, 2026
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
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,41 @@ This release changes the pinned API version to 2026-05-27.private.
* Add support for snapshot event `PaymentIntentExpired` with resource `PaymentIntent`
* Add support for event notifications `V2CoreHealthElementsErrorFiringEvent`, `V2CoreHealthElementsErrorResolvedEvent`, `V2CoreHealthInvoiceCountDroppedFiringEvent`, and `V2CoreHealthInvoiceCountDroppedResolvedEvent`

## 51.2.0 - 2026-05-27
This release changes the pinned API version to 2026-05-27.dahlia.

* [#3386](https://github.com/stripe/stripe-dotnet/pull/3386) Update generated code
* Add support for new resource `V2.Commerce.ProductCatalogImport`
* Add support for `Create` and `Get` methods on resource `V2.Commerce.ProductCatalogImport`
* Add support for `BizumPayments` and `ScalapayPayments` on `Account.Capabilities` and `AccountCapabilitiesOptions`
* Add support for `AutomaticTransferRulesByCurrency` on `BalanceSettings.Payments.Payouts` and `BalanceSettingsPaymentsPayoutsOptions`
* Add support for `StartOfDay` on `BalanceSettings.Payments.SettlementTiming` and `BalanceSettingsPaymentsSettlementTimingOptions`
* Add support for `Description` on `ChargeTransferDataOptions`, `PaymentIntent.TransferData`, and `PaymentIntentTransferDataOptions`
* Add support for `Bizum` on `Charge.PaymentMethodDetails`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenPaymentMethodDataOptions`, `PaymentAttemptRecord.PaymentMethodDetails`, `PaymentIntent.PaymentMethodOptions`, `PaymentIntentPaymentMethodDataOptions`, `PaymentIntentPaymentMethodOptionsOptions`, `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, `PaymentMethodConfiguration`, `PaymentMethodCreateOptions`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetails`, `SetupIntent.PaymentMethodOptions`, `SetupIntentPaymentMethodDataOptions`, and `SetupIntentPaymentMethodOptionsOptions`
* Add support for `Scalapay` on `Charge.PaymentMethodDetails`, `Checkout.Session.PaymentMethodOptions`, `CheckoutSessionPaymentMethodOptionsOptions`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenPaymentMethodDataOptions`, `PaymentAttemptRecord.PaymentMethodDetails`, `PaymentIntent.PaymentMethodOptions`, `PaymentIntentPaymentMethodDataOptions`, `PaymentIntentPaymentMethodOptionsOptions`, `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, `PaymentMethodConfiguration`, `PaymentMethodCreateOptions`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetails`, `Refund.DestinationDetails`, and `SetupIntentPaymentMethodDataOptions`
* Add support for `Mandate` on `Charge.PaymentMethodDetails.Twint`, `PaymentAttemptRecord.PaymentMethodDetails.Twint`, and `PaymentRecord.PaymentMethodDetails.Twint`
* Change type of `CheckoutSessionPaymentMethodOptionsTwintOptions.SetupFutureUsage` and `PaymentIntentPaymentMethodOptionsTwintOptions.SetupFutureUsage` from `literal('none')` to `enum('none'|'off_session')`
* ⚠️ Change type of `Checkout.Session.PaymentMethodOptions.Twint.SetupFutureUsage` and `PaymentIntent.PaymentMethodOptions.Twint.SetupFutureUsage` from `literal('none')` to `enum('none'|'off_session')`
* Add support for `CreditedItems` on `InvoiceItem.ProrationDetails`
* Add support for `Discountable` on `InvoiceScheduleDetailsPhaseAddInvoiceItemOptions`, `SubscriptionAddInvoiceItemOptions`, `SubscriptionSchedule.Phase.AddInvoiceItem`, and `SubscriptionSchedulePhaseAddInvoiceItemOptions`
* Add support for `BillingSchedules` on `InvoiceSubscriptionDetailsOptions`, `SubscriptionCreateOptions`, `SubscriptionUpdateOptions`, and `Subscription`
* Add support for `AmountPaidOffStripe` on `Invoice`
* Add support for `Twint` on `Mandate.PaymentMethodDetails` and `SetupAttempt.PaymentMethodDetails`
* Add support for `Metadata` on `PaymentIntent.TransferData`, `PaymentIntentTransferDataOptions`, and `Subscription.PendingUpdate`
* Add support for `PaymentData` on `PaymentIntent.TransferData` and `PaymentIntentTransferDataOptions`
* Add support for `BlikAuthorize` on `PaymentIntent.NextAction` and `SetupIntent.NextAction`
* Add support for `PaymentMethodOptions` on `PaymentLinkCreateOptions`, `PaymentLinkUpdateOptions`, and `PaymentLink`
* Add support for `Active` on `PaymentMethodConfigurationListOptions`
* Add support for `BilledUntil` on `SubscriptionItem`
* Add support for `Discount` and `Discounts` on `Subscription.PendingUpdate`
* Add support for `VerifoneM425`, `VerifoneP630`, `VerifoneUx700`, and `VerifoneV660p` on `Terminal.ConfigurationCreateOptions`, `Terminal.ConfigurationUpdateOptions`, and `Terminal.Configuration`
* Add support for `ApiError` and `PrintContent` on `Terminal.Reader.Action`
* Add support for `Customer` on `TestHelpers.TestClockCreateOptions`
* Add support for `Signer` on `V2.Core.Account.Identity.BusinessDetails.Documents.ProofOfRegistration`, `V2.Core.Account.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership`, `V2CoreAccountIdentityBusinessDetailsDocumentsProofOfRegistrationOptions`, `V2CoreAccountIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions`, `V2CoreAccountTokenIdentityBusinessDetailsDocumentsProofOfRegistrationOptions`, and `V2CoreAccountTokenIdentityBusinessDetailsDocumentsProofOfUltimateBeneficialOwnershipOptions`
* Add support for `AzureEventGrid` on `V2.Core.EventDestinationCreateOptions` and `V2.Core.EventDestination`
* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `V2.Commerce.ProductCatalogImport`
* [#3385](https://github.com/stripe/stripe-dotnet/pull/3385) Emit warning when `stripe-notify` header is present in response

## 51.2.0-alpha.6 - 2026-05-20
* [#3384](https://github.com/stripe/stripe-dotnet/pull/3384) Update generated code for private-preview
* Add support for new resource `PaymentLocationCapability`
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1af5aa444ea8141a2d2b8d86e76c73f788f65e09
656489921ee220b536bc00fc1c8ee7ed528f24e2
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2277
v2290
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-05-27.preview";
public const string Current = "2026-06-03.preview";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class SessionAutomaticSurcharge : StripeEntity<SessionAutomaticSurcharge>

/// <summary>
/// The surcharge provider used for this session.
/// One of: <c>interpayments</c>, or <c>yeeld</c>.
/// One of: <c>interpayments</c>, <c>proserv</c>, or <c>yeeld</c>.
/// </summary>
[JsonProperty("provider")]
[STJS.JsonPropertyName("provider")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

/// <summary>
/// An order event represents a change to a delegated checkout order.
/// </summary>
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class OrderEvent : StripeEntity<OrderEvent>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
[STJS.JsonPropertyName("id")]
public string Id { get; set; }

/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
[STJS.JsonPropertyName("object")]
public string Object { get; set; }

/// <summary>
/// The adjustment details for this order event.
/// </summary>
[JsonProperty("adjustment")]
[STJS.JsonPropertyName("adjustment")]
public OrderEventAdjustment Adjustment { get; set; }

/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("created")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("created")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The fulfillment details for this order event.
/// </summary>
[JsonProperty("fulfillment")]
[STJS.JsonPropertyName("fulfillment")]
public OrderEventFulfillment Fulfillment { get; set; }

/// <summary>
/// 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")]
public bool Livemode { get; set; }

/// <summary>
/// Time at which this event occurred. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("occurred_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("occurred_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime OccurredAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The delegated checkout order associated with this order event.
/// </summary>
[JsonProperty("order")]
[STJS.JsonPropertyName("order")]
public string Order { get; set; }

/// <summary>
/// The requested session associated with this order event.
/// </summary>
[JsonProperty("requested_session")]
[STJS.JsonPropertyName("requested_session")]
public string RequestedSession { get; set; }

/// <summary>
/// The type of order event.
/// One of: <c>adjustment</c>, or <c>fulfillment</c>.
/// </summary>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class OrderEventAdjustment : StripeEntity<OrderEventAdjustment>
{
/// <summary>
/// The amount associated with the adjustment.
/// </summary>
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
public long? Amount { get; set; }

/// <summary>
/// The currency associated with the adjustment amount.
/// </summary>
[JsonProperty("currency")]
[STJS.JsonPropertyName("currency")]
public string Currency { get; set; }

/// <summary>
/// The description of the adjustment.
/// </summary>
[JsonProperty("description")]
[STJS.JsonPropertyName("description")]
public string Description { get; set; }

/// <summary>
/// The line items associated with the adjustment.
/// </summary>
[JsonProperty("line_items")]
[STJS.JsonPropertyName("line_items")]
public List<OrderEventAdjustmentLineItem> LineItems { get; set; }

/// <summary>
/// The status of the adjustment.
/// One of: <c>completed</c>, <c>failed</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
public string Status { get; set; }

/// <summary>
/// The type of adjustment.
/// One of: <c>cancellation</c>, <c>credit</c>, <c>dispute</c>,
/// <c>original_payment_refund</c>, <c>return</c>, or <c>store_credit_refund</c>.
/// </summary>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class OrderEventAdjustmentLineItem : StripeEntity<OrderEventAdjustmentLineItem>
{
/// <summary>
/// The line item key.
/// </summary>
[JsonProperty("key")]
[STJS.JsonPropertyName("key")]
public string Key { get; set; }

/// <summary>
/// The quantity associated with the order event.
/// </summary>
[JsonProperty("quantity")]
[STJS.JsonPropertyName("quantity")]
public long Quantity { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class OrderEventFulfillment : StripeEntity<OrderEventFulfillment>
{
/// <summary>
/// The carrier for the fulfillment.
/// </summary>
[JsonProperty("carrier")]
[STJS.JsonPropertyName("carrier")]
public string Carrier { get; set; }

/// <summary>
/// Time at which the fulfillment was delivered. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("delivered_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("delivered_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? DeliveredAt { get; set; }

/// <summary>
/// The line items associated with the fulfillment.
/// </summary>
[JsonProperty("line_items")]
[STJS.JsonPropertyName("line_items")]
public List<OrderEventFulfillmentLineItem> LineItems { get; set; }

/// <summary>
/// Time at which the fulfillment shipped. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("shipped_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("shipped_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? ShippedAt { get; set; }

/// <summary>
/// The status of the fulfillment.
/// One of: <c>confirmed</c>, <c>delivered</c>, <c>fulfilled</c>, <c>pending</c>,
/// <c>returned</c>, or <c>shipped</c>.
/// </summary>
[JsonProperty("status")]
[STJS.JsonPropertyName("status")]
public string Status { get; set; }

/// <summary>
/// The tracking number for the fulfillment.
/// </summary>
[JsonProperty("tracking_number")]
[STJS.JsonPropertyName("tracking_number")]
public string TrackingNumber { get; set; }

/// <summary>
/// The tracking URL for the fulfillment.
/// </summary>
[JsonProperty("tracking_url")]
[STJS.JsonPropertyName("tracking_url")]
public string TrackingUrl { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class OrderEventFulfillmentLineItem : StripeEntity<OrderEventFulfillmentLineItem>
{
/// <summary>
/// The line item key.
/// </summary>
[JsonProperty("key")]
[STJS.JsonPropertyName("key")]
public string Key { get; set; }

/// <summary>
/// The quantity associated with the order event.
/// </summary>
[JsonProperty("quantity")]
[STJS.JsonPropertyName("quantity")]
public long Quantity { get; set; }
}
}
Loading
Loading