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
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
# Changelog


## 48.2.0-beta.1 - 2025-04-30
* [#3107](https://github.com/stripe/stripe-dotnet/pull/3107) Update generated code for beta
This release changes the pinned API version to `2025-04-30.preview`.

* Add support for `BillingMode` on `CheckoutSessionSubscriptionDataOptions`, `InvoiceScheduleDetailsOptions`, `InvoiceSubscriptionDetailsOptions`, `Quote.SubscriptionData`, `QuotePreviewSubscriptionSchedule`, `QuoteSubscriptionDataOptions`, `SubscriptionCreateOptions`, `SubscriptionScheduleCreateOptions`, `SubscriptionSchedule`, and `Subscription`
* Add support for `AccountNumber` on `ConfirmationToken.PaymentMethodPreview.AcssDebit` and `PaymentMethod.AcssDebit`

## 48.1.0 - 2025-04-30

This release changes the pinned API version to `2025-04-30.basil`.

* [#3102](https://github.com/stripe/stripe-dotnet/pull/3102) Update generated code
* Add support for `MinorityOwnedBusinessDesignation` on `Account.BusinessProfile` and `AccountBusinessProfileOptions`
* Add support for `RegistrationDate` on `Account.Company`, `AccountCompanyOptions`, and `TokenAccountCompanyOptions`
* Add support for `UsCfpbData` on `AccountCreateOptions`, `AccountUpdateOptions`, `Person`, and `TokenPersonOptions`
* Add support for `TaxId` on `Charge.BillingDetails`, `ConfirmationToken.PaymentMethodPreview.BillingDetails`, `ConfirmationTokenPaymentMethodDataBillingDetailsOptions`, `PaymentIntentPaymentMethodDataBillingDetailsOptions`, `PaymentMethod.BillingDetails`, `PaymentMethodBillingDetailsOptions`, and `SetupIntentPaymentMethodDataBillingDetailsOptions`
* Add support for `WalletOptions` on `Checkout.SessionCreateOptions` and `Checkout.Session`
* Add support for `Provider` on `Checkout.Session.AutomaticTax`, `Invoice.AutomaticTax`, and `Quote.AutomaticTax`
* Add support for `PaymentMethodOptions` on `TestHelpersConfirmationTokenCreateOptions`
* Add support for `Installments` on `ConfirmationToken.PaymentMethodOptions.Card`
* Add support for `Context` on `Event`
* Add support for `Billie` on `PaymentIntent.PaymentMethodOptions` and `PaymentIntentPaymentMethodOptionsOptions`
* Add support for `Pix` on `PaymentMethodConfigurationCreateOptions`, `PaymentMethodConfigurationUpdateOptions`, and `PaymentMethodConfiguration`
* Add support for `Klarna` on `PaymentMethodDomain`
* Add support for `PendingReason` on `Refund`
* Add support for `Aw`, `Az`, `Bd`, `Bf`, `Bj`, `Cm`, `Cv`, `Et`, `In`, `Kg`, `La`, and `Ph` on `Tax.Registration.CountryOptions` and `TaxRegistrationCountryOptionsOptions`


## 48.1.0-beta.4 - 2025-04-17
* [#3099](https://github.com/stripe/stripe-dotnet/pull/3099) Update generated code for beta
* Add support for new resources `FxQuote` and `PaymentIntentAmountDetailsLineItem`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class RedactionJob : StripeEntity<RedactionJob>, IHasId, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("objects")]
#endif
public RedactionJobRootObjects Objects { get; set; }
public RedactionJobObjects Objects { get; set; }

/// <summary>
/// The status field represents the current state of the redaction job. It can take on any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,8 @@ namespace Stripe.Privacy
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// The objects to redact, grouped by type. All redactable objects associated with these
/// objects will be redacted as well.
/// </summary>
public class RedactionJobRootObjects : StripeEntity<RedactionJobRootObjects>, IHasObject
public class RedactionJobObjects : StripeEntity<RedactionJobObjects>
{
/// <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; }

[JsonProperty("charges")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("charges")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public Application Application
/// href="https://stripe.com/api/subscriptions/create#create_subscription-billing_mode">billing
/// mode</a> that will be used to process all future operations for the subscription
/// schedule.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class QuoteSubscriptionData : StripeEntity<QuoteSubscriptionData>, IHasMe
/// The <a
/// href="https://stripe.com/api/subscriptions/create#create_subscription-billing_mode">billing
/// mode</a> that will be set on the subscription once the quote is accepted.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public Application Application
/// href="https://stripe.com/api/subscriptions/create#create_subscription-billing_mode">billing
/// mode</a> that will be used to process all future operations for the subscription
/// schedule.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Subscriptions/Subscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public Application Application
/// <summary>
/// Configure billing_mode in each subscription to opt in improved credit proration
/// behavior.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
4 changes: 0 additions & 4 deletions src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ public static class StripeTypeRegistry
{ "plan", typeof(Plan) },
{ "price", typeof(Price) },
{ "privacy.redaction_job", typeof(Privacy.RedactionJob) },
{
"privacy.redaction_job_root_objects", typeof(
Privacy.RedactionJobRootObjects)
},
{
"privacy.redaction_job_validation_error", typeof(
Privacy.RedactionJobValidationError)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata
/// <summary>
/// Configure billing_mode in each subscription to opt in improved credit proration
/// behavior.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class InvoiceScheduleDetailsOptions : INestedOptions
/// Configure billing_mode to opt in improved credit proration behavior.When the schedule
/// creates a subscription, the subscription's <c>billing_mode</c> will be set to the same
/// value as the schedule's <c>billing_mode</c>.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class InvoiceSubscriptionDetailsOptions : INestedOptions
/// <summary>
/// Configure billing_mode in each subscription to opt in improved credit proration
/// behavior.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ namespace Stripe.Privacy
using System.Threading.Tasks;

public class RedactionJobValidationErrorService : Service,
INestedListable<RedactionJobValidationError, RedactionJobValidationErrorListOptions>,
INestedRetrievable<RedactionJobValidationError, RedactionJobValidationErrorGetOptions>
INestedListable<RedactionJobValidationError, RedactionJobValidationErrorListOptions>
{
public RedactionJobValidationErrorService()
{
Expand All @@ -26,22 +25,6 @@ public RedactionJobValidationErrorService(IStripeClient client)
{
}

/// <summary>
/// <p>Retrieve validation error method</p>.
/// </summary>
Comment thread
jar-stripe marked this conversation as resolved.
public virtual RedactionJobValidationError Get(string parentId, string id, RedactionJobValidationErrorGetOptions options = null, RequestOptions requestOptions = null)
{
return this.Request<RedactionJobValidationError>(BaseAddress.Api, HttpMethod.Get, $"/v1/privacy/redaction_jobs/{WebUtility.UrlEncode(parentId)}/validation_errors/{WebUtility.UrlEncode(id)}", options, requestOptions);
}

/// <summary>
/// <p>Retrieve validation error method</p>.
/// </summary>
public virtual Task<RedactionJobValidationError> GetAsync(string parentId, string id, RedactionJobValidationErrorGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
{
return this.RequestAsync<RedactionJobValidationError>(BaseAddress.Api, HttpMethod.Get, $"/v1/privacy/redaction_jobs/{WebUtility.UrlEncode(parentId)}/validation_errors/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken);
}

/// <summary>
/// <p>List validation errors method</p>.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class QuoteSubscriptionDataOptions : INestedOptions, IHasMetadata
/// Configure billing_mode to opt in improved credit proration behavior.Once a quote that
/// creates a subscription or subscription schedule is accepted,all future operations on the
/// subscription or subscription schedule will be processed based on this billing_mode.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SubscriptionScheduleCreateOptions : BaseOptions, IHasMetadata
/// Configure billing_mode to opt in improved credit proration behavior.When the schedule
/// creates a subscription, the subscription's <c>billing_mode</c> will be set to the same
/// value as the schedule's <c>billing_mode</c>.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata
/// <summary>
/// Configure billing_mode in each subscription to opt in improved credit proration
/// behavior.
/// One of: <c>credits_attributed_to_debits</c>, or <c>legacy_prorations</c>.
/// One of: <c>classic</c>, or <c>flexible</c>.
/// </summary>
[JsonProperty("billing_mode")]
#if NET6_0_OR_GREATER
Expand Down
Loading