Skip to content

Commit 5e839a8

Browse files
Merge pull request #3405 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 1cac259 + 59e9950 commit 5e839a8

212 files changed

Lines changed: 3968 additions & 178 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,29 @@ This release changes the pinned API version to 2026-06-24.preview.
7878
* Add support for event notification `V2MoneyManagementOutboundTransferUnderReviewEvent` with related object `V2.MoneyManagement.OutboundTransfer`
7979
* ⚠️ Remove support for event notifications `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `V2.Core.Account`
8080

81+
## 52.1.0 - 2026-06-24
82+
This release changes the pinned API version to 2026-06-24.dahlia.
83+
84+
* [#3399](https://github.com/stripe/stripe-dotnet/pull/3399) Update generated code
85+
* Add support for `ReleaseDetails` on `Reserve.Hold`
86+
* Add support for `BuyerId` on `Charge.PaymentMethodDetails.Bizum`, `ConfirmationToken.PaymentMethodPreview.Bizum`, `ConfirmationToken.PaymentMethodPreview.Blik`, `PaymentAttemptRecord.PaymentMethodDetails.Bizum`, `PaymentMethod.Bizum`, `PaymentMethod.Blik`, and `PaymentRecord.PaymentMethodDetails.Bizum`
87+
* Add support for `TransactionLinkId` on `Charge.PaymentMethodDetails.Card`
88+
* Add support for `Fingerprint` on `Charge.PaymentMethodDetails.Pix`, `ConfirmationToken.PaymentMethodPreview.Pix`, `PaymentMethod.Pix`, and `SetupAttempt.PaymentMethodDetails.Pix`
89+
* Add support for `Sunbit` on `Checkout.Session.PaymentMethodOptions`, `CheckoutSessionPaymentMethodOptionsOptions`, `PaymentIntent.PaymentMethodOptions`, and `PaymentIntentPaymentMethodOptionsOptions`
90+
* Add support for `BillingCycleAnchorConfig` on `CheckoutSessionSubscriptionDataOptions`
91+
* Add support for `WechatPay` on `Checkout.Session.PaymentMethodOptions`
92+
* Add support for `MastercardCompliance` on `Dispute.Evidence.EnhancedEvidence`, `Dispute.EvidenceDetails.EnhancedEligibility`, and `DisputeEvidenceEnhancedEvidenceOptions`
93+
* Add support for `StatusDetails` on `FinancialConnections.Account`
94+
* ⚠️ Remove support for `StoredCredentialUsage` on `PaymentAttemptRecord.PaymentMethodDetails.Card` and `PaymentRecord.PaymentMethodDetails.Card`
95+
* Add support for `SetupFutureUsage` on `PaymentIntent.PaymentMethodOptions.Satispay` and `PaymentIntentPaymentMethodOptionsSatispayOptions`
96+
* Add support for `Satispay` on `SetupAttempt.PaymentMethodDetails`
97+
* Add support for `CustomFields`, `Description`, and `Footer` on `Subscription.InvoiceSettings` and `SubscriptionInvoiceSettingsOptions`
98+
* Add support for `PaymentMethodOptions` and `PaymentMethod` on `TopupCreateOptions`
99+
* Add support for `Mode` on `V2.Commerce.ProductCatalogImport`
100+
* Add support for `SunbitPayments` on `V2.Core.Account.Configuration.Merchant.Capabilities` and `V2CoreAccountConfigurationMerchantCapabilitiesOptions`
101+
* Add support for `CryptoMoneyManager` and `MoneyManager` on `V2CoreAccountIdentityAttestationsTermsOfServiceOptions`
102+
* ⚠️ Remove support for `CryptoStorer` and `Storer` on `V2CoreAccountIdentityAttestationsTermsOfServiceOptions`
103+
81104
## 52.1.0-alpha.2 - 2026-06-17
82105
* [#3397](https://github.com/stripe/stripe-dotnet/pull/3397) Update generated code for private-preview
83106
* Add support for `Get` method on resource `Radar.CustomerEvaluation`

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
088388aa159596ba4e240aeb0bb65d5bb4a562ab
1+
23a0d1c154d81b4b4185658446b2ee07f06f969a

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2323
1+
v2342

src/Stripe.net/Constants/ApiVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ namespace Stripe
33
{
44
internal class ApiVersion
55
{
6-
public const string Current = "2026-06-24.preview";
6+
public const string Current = "2026-07-01.preview";
77
}
88
}

src/Stripe.net/Constants/EventTypes.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,13 @@ public static class EventTypes
469469
public const string CustomerSubscriptionResumed = "customer.subscription.resumed";
470470

471471
/// <summary>
472-
/// Occurs three days before a subscription's trial period is scheduled to end, or when a
473-
/// trial is ended immediately (using <c>trial_end=now</c>).
472+
/// Occurs three days before a subscription's trial period is scheduled to end, or
473+
/// immediately when a trial is ended early (for example, with <c>trial_end=now</c> or when
474+
/// a Customer Portal plan change ends a trial). If a trial is shortened so that fewer than
475+
/// three days remain, this event can fire immediately, including during the same
476+
/// transaction that collects payment. Before sending payment-reminder communications from
477+
/// this webhook, check the subscription status and latest invoice to determine whether
478+
/// payment has already been collected.
474479
/// </summary>
475480
public const string CustomerSubscriptionTrialWillEnd = "customer.subscription.trial_will_end";
476481

src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ public IBalanceTransactionSource Source
175175
public string Status { get; set; }
176176

177177
/// <summary>
178-
/// Transaction type: <c>adjustment</c>, <c>advance</c>, <c>advance_funding</c>,
179-
/// <c>anticipation_repayment</c>, <c>application_fee</c>, <c>application_fee_refund</c>,
180-
/// <c>charge</c>, <c>climate_order_purchase</c>, <c>climate_order_refund</c>,
181-
/// <c>connect_collection_transfer</c>, <c>contribution</c>, <c>inbound_transfer</c>,
182-
/// <c>inbound_transfer_reversal</c>, <c>issuing_authorization_hold</c>,
183-
/// <c>issuing_authorization_release</c>, <c>issuing_dispute</c>,
184-
/// <c>issuing_transaction</c>, <c>obligation_outbound</c>,
178+
/// Transaction type: <c>tax_fund</c>, <c>adjustment</c>, <c>advance</c>,
179+
/// <c>advance_funding</c>, <c>anticipation_repayment</c>, <c>application_fee</c>,
180+
/// <c>application_fee_refund</c>, <c>charge</c>, <c>climate_order_purchase</c>,
181+
/// <c>climate_order_refund</c>, <c>connect_collection_transfer</c>, <c>contribution</c>,
182+
/// <c>inbound_transfer</c>, <c>inbound_transfer_reversal</c>,
183+
/// <c>issuing_authorization_hold</c>, <c>issuing_authorization_release</c>,
184+
/// <c>issuing_dispute</c>, <c>issuing_transaction</c>, <c>obligation_outbound</c>,
185185
/// <c>obligation_reversal_inbound</c>, <c>payment</c>, <c>payment_failure_refund</c>,
186186
/// <c>payment_network_reserve_hold</c>, <c>payment_network_reserve_release</c>,
187187
/// <c>payment_refund</c>, <c>payment_reversal</c>, <c>payment_unreconciled</c>,
@@ -211,7 +211,7 @@ public IBalanceTransactionSource Source
211211
/// <c>refund</c>, <c>refund_failure</c>, <c>reserve_hold</c>, <c>reserve_release</c>,
212212
/// <c>reserve_transaction</c>, <c>reserved_funds</c>, <c>stripe_balance_payment_debit</c>,
213213
/// <c>stripe_balance_payment_debit_reversal</c>, <c>stripe_fee</c>, <c>stripe_fx_fee</c>,
214-
/// <c>tax_fee</c>, <c>topup</c>, <c>topup_reversal</c>, <c>transfer</c>,
214+
/// <c>tax_fee</c>, <c>tax_fund</c>, <c>topup</c>, <c>topup_reversal</c>, <c>transfer</c>,
215215
/// <c>transfer_cancel</c>, <c>transfer_failure</c>, or <c>transfer_refund</c>.
216216
/// </summary>
217217
[JsonProperty("type")]

src/Stripe.net/Entities/Capital/FinancingOffers/FinancingOffer.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ public class FinancingOffer : StripeEntity<FinancingOffer>, IHasId, IHasMetadata
6363
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
6464
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
6565

66+
/// <summary>
67+
/// The type of disclaimer to use for a financing offer in user-facing surfaces. The
68+
/// corresponding disclaimer text to use for each disclaimer_variant value can be found in
69+
/// the <a href="https://docs.stripe.com/capital/marketing">marketing docs</a>.
70+
/// One of: <c>celtic_us_loan</c>, <c>fundbox_au_financing</c>, <c>youlend_de_financing</c>,
71+
/// <c>youlend_fr_financing</c>, <c>youlend_uk_mca</c>, or <c>youlend_us_mca</c>.
72+
/// </summary>
73+
[JsonProperty("disclaimer_variant")]
74+
[STJS.JsonPropertyName("disclaimer_variant")]
75+
public string DisclaimerVariant { get; set; }
76+
6677
/// <summary>
6778
/// Time at which the offer expires. Given in seconds since unix epoch.
6879
/// </summary>

src/Stripe.net/Entities/Capital/FinancingSummaries/FinancingSummaryDetails.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ public class FinancingSummaryDetails : StripeEntity<FinancingSummaryDetails>
3838
[STJS.JsonPropertyName("current_repayment_interval")]
3939
public FinancingSummaryDetailsCurrentRepaymentInterval CurrentRepaymentInterval { get; set; }
4040

41+
/// <summary>
42+
/// The type of disclaimer to use for a financing offer in user-facing surfaces. The
43+
/// corresponding disclaimer text to use for each disclaimer_variant value can be found in
44+
/// the <a href="https://docs.stripe.com/capital/regulatory-compliance">regulatory
45+
/// compliance docs</a>.
46+
/// One of: <c>celtic_us_loan</c>, <c>fundbox_au_financing</c>, <c>youlend_de_financing</c>,
47+
/// <c>youlend_fr_financing</c>, <c>youlend_uk_mca</c>, or <c>youlend_us_mca</c>.
48+
/// </summary>
49+
[JsonProperty("disclaimer_variant")]
50+
[STJS.JsonPropertyName("disclaimer_variant")]
51+
public string DisclaimerVariant { get; set; }
52+
4153
/// <summary>
4254
/// Fixed fee amount, in minor units. For example, 100 USD is represented as 10000.
4355
/// </summary>

src/Stripe.net/Entities/Cards/Card.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,13 @@ public Customer Customer
339339
[STJS.JsonPropertyName("networks")]
340340
public CardNetworks Networks { get; set; }
341341

342+
/// <summary>
343+
/// Redaction status of this card. If not null, this card is associated to a redaction job.
344+
/// </summary>
345+
[JsonProperty("redaction")]
346+
[STJS.JsonPropertyName("redaction")]
347+
public CardRedaction Redaction { get; set; }
348+
342349
/// <summary>
343350
/// Status of a card based on the card issuer.
344351
/// One of: <c>regulated</c>, or <c>unregulated</c>.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
using Stripe.Infrastructure;
6+
using STJS = System.Text.Json.Serialization;
7+
8+
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
9+
public class CardRedaction : StripeEntity<CardRedaction>
10+
{
11+
/// <summary>
12+
/// Indicates whether this object and its related objects have been redacted or not.
13+
/// One of: <c>processing</c>, <c>redacted</c>, or <c>validated</c>.
14+
/// </summary>
15+
[JsonProperty("status")]
16+
[STJS.JsonPropertyName("status")]
17+
public string Status { get; set; }
18+
}
19+
}

0 commit comments

Comments
 (0)