/// Draft invoices are fully editable. Once an invoice is finalized,
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemBillingThresholdsOptions.cs
deleted file mode 100644
index 442591b03f..0000000000
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemBillingThresholdsOptions.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class InvoiceSubscriptionDetailsItemBillingThresholdsOptions : INestedOptions
- {
- ///
- /// Number of units that meets the billing threshold to advance the subscription to a new
- /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary
- /// threshold).
- ///
- [JsonProperty("usage_gte")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("usage_gte")]
-#endif
- public long? UsageGte { get; set; }
- }
-}
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs
index 2b7287608a..4044aabca0 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs
@@ -9,17 +9,6 @@ namespace Stripe
public class InvoiceSubscriptionDetailsItemOptions : INestedOptions, IHasId, IHasMetadata
{
- ///
- /// Define thresholds at which an invoice will be sent, and the subscription advanced to a
- /// new billing period. When updating, pass an empty string to remove previously-defined
- /// thresholds.
- ///
- [JsonProperty("billing_thresholds")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("billing_thresholds")]
-#endif
- public InvoiceSubscriptionDetailsItemBillingThresholdsOptions BillingThresholds { get; set; }
-
///
/// Delete all usage for a given subscription item. You must pass this when deleting a usage
/// records subscription item. clear_usage has no effect if the plan has a billing
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemPriceDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemPriceDataOptions.cs
index f9a434ac3c..ffd627552a 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemPriceDataOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemPriceDataOptions.cs
@@ -20,7 +20,8 @@ public class InvoiceSubscriptionDetailsItemPriceDataOptions : INestedOptions
public string Currency { get; set; }
///
- /// The ID of the product that this price will belong to.
+ /// The ID of the Product that this Price will belong to.
///
[JsonProperty("product")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemBillingThresholdsOptions.cs
deleted file mode 100644
index 283c4f89ac..0000000000
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemBillingThresholdsOptions.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class InvoiceSubscriptionItemBillingThresholdsOptions : INestedOptions
- {
- ///
- /// Number of units that meets the billing threshold to advance the subscription to a new
- /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary
- /// threshold).
- ///
- [JsonProperty("usage_gte")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("usage_gte")]
-#endif
- public long? UsageGte { get; set; }
- }
-}
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemDiscountOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemDiscountOptions.cs
deleted file mode 100644
index 12a4b1702f..0000000000
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemDiscountOptions.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class InvoiceSubscriptionItemDiscountOptions : INestedOptions
- {
- ///
- /// ID of the coupon to create a new discount for.
- ///
- [JsonProperty("coupon")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("coupon")]
-#endif
- public string Coupon { get; set; }
-
- ///
- /// ID of an existing discount on the object (or one of its ancestors) to reuse.
- ///
- [JsonProperty("discount")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("discount")]
-#endif
- public string Discount { get; set; }
-
- ///
- /// ID of the promotion code to create a new discount for.
- ///
- [JsonProperty("promotion_code")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("promotion_code")]
-#endif
- public string PromotionCode { get; set; }
- }
-}
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemOptions.cs
deleted file mode 100644
index dabf0fd0aa..0000000000
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemOptions.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe
-{
- using System.Collections.Generic;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class InvoiceSubscriptionItemOptions : INestedOptions, IHasId, IHasMetadata
- {
- ///
- /// Define thresholds at which an invoice will be sent, and the subscription advanced to a
- /// new billing period. When updating, pass an empty string to remove previously-defined
- /// thresholds.
- ///
- [JsonProperty("billing_thresholds")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("billing_thresholds")]
-#endif
- public InvoiceSubscriptionItemBillingThresholdsOptions BillingThresholds { get; set; }
-
- ///
- /// Delete all usage for a given subscription item. You must pass this when deleting a usage
- /// records subscription item. clear_usage has no effect if the plan has a billing
- /// meter attached.
- ///
- [JsonProperty("clear_usage")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("clear_usage")]
-#endif
- public bool? ClearUsage { get; set; }
-
- ///
- /// A flag that, if set to true, will delete the specified item.
- ///
- [JsonProperty("deleted")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("deleted")]
-#endif
- public bool? Deleted { get; set; }
-
- ///
- /// The coupons to redeem into discounts for the subscription item.
- ///
- [JsonProperty("discounts")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("discounts")]
-#endif
- public List Discounts { get; set; }
-
- ///
- /// Subscription item to update.
- ///
- [JsonProperty("id")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("id")]
-#endif
- public string Id { get; set; }
-
- ///
- /// Set of key-value pairs that you can
- /// attach to an object. This can be useful for storing additional information about the
- /// object in a structured format. Individual keys can be unset by posting an empty value to
- /// them. All keys can be unset by posting an empty value to metadata.
- ///
- [JsonProperty("metadata")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("metadata")]
-#endif
- public Dictionary Metadata { get; set; }
-
- ///
- /// Plan ID for this item, as a string.
- ///
- [JsonProperty("plan")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("plan")]
-#endif
- public string Plan { get; set; }
-
- ///
- /// The ID of the price object. One of price or price_data is required. When
- /// changing a subscription item's price, quantity is set to 1 unless a
- /// quantity parameter is provided.
- ///
- [JsonProperty("price")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("price")]
-#endif
- public string Price { get; set; }
-
- ///
- /// Data used to generate a new Price
- /// object inline. One of price or price_data is required.
- ///
- [JsonProperty("price_data")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("price_data")]
-#endif
- public InvoiceSubscriptionItemPriceDataOptions PriceData { get; set; }
-
- ///
- /// Quantity for this item.
- ///
- [JsonProperty("quantity")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("quantity")]
-#endif
- public long? Quantity { get; set; }
-
- ///
- /// A list of Tax Rate ids. These Tax
- /// Rates will override the default_tax_rates
- /// on the Subscription. When updating, pass an empty string to remove previously-defined
- /// tax rates.
- ///
- [JsonProperty("tax_rates")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("tax_rates")]
-#endif
- public List TaxRates { get; set; }
- }
-}
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemPriceDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemPriceDataOptions.cs
deleted file mode 100644
index 840e48b7e4..0000000000
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemPriceDataOptions.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class InvoiceSubscriptionItemPriceDataOptions : INestedOptions
- {
- ///
- /// Three-letter ISO currency
- /// code, in lowercase. Must be a supported
- /// currency.
- ///
- [JsonProperty("currency")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("currency")]
-#endif
- public string Currency { get; set; }
-
- ///
- /// The ID of the product that this price will belong to.
- ///
- [JsonProperty("product")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("product")]
-#endif
- public string Product { get; set; }
-
- ///
- /// The recurring components of a price such as interval and interval_count.
- ///
- [JsonProperty("recurring")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("recurring")]
-#endif
- public InvoiceSubscriptionItemPriceDataRecurringOptions Recurring { get; set; }
-
- ///
- /// Only required if a default
- /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the
- /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive,
- /// exclusive, or unspecified. Once specified as either inclusive or
- /// exclusive, it cannot be changed.
- /// One of: exclusive, inclusive, or unspecified.
- ///
- [JsonProperty("tax_behavior")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("tax_behavior")]
-#endif
- public string TaxBehavior { get; set; }
-
- ///
- /// A positive integer in cents (or local equivalent) (or 0 for a free price) representing
- /// how much to charge.
- ///
- [JsonProperty("unit_amount")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("unit_amount")]
-#endif
- public long? UnitAmount { get; set; }
-
- ///
- /// Same as unit_amount, but accepts a decimal value in cents (or local equivalent)
- /// with at most 12 decimal places. Only one of unit_amount and
- /// unit_amount_decimal can be set.
- ///
- [JsonProperty("unit_amount_decimal")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("unit_amount_decimal")]
-#endif
- public decimal? UnitAmountDecimal { get; set; }
- }
-}
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemPriceDataRecurringOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemPriceDataRecurringOptions.cs
deleted file mode 100644
index 5abc22bad6..0000000000
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemPriceDataRecurringOptions.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class InvoiceSubscriptionItemPriceDataRecurringOptions : INestedOptions
- {
- ///
- /// Specifies billing frequency. Either day, week, month or
- /// year.
- /// One of: day, month, week, or year.
- ///
- [JsonProperty("interval")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("interval")]
-#endif
- public string Interval { get; set; }
-
- ///
- /// The number of intervals between subscription billings. For example,
- /// interval=month and interval_count=3 bills every 3 months. Maximum of three
- /// years interval allowed (3 years, 36 months, or 156 weeks).
- ///
- [JsonProperty("interval_count")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("interval_count")]
-#endif
- public long? IntervalCount { get; set; }
- }
-}
diff --git a/src/Stripe.net/Services/Invoices/InvoiceUpcomingLinesOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceUpcomingLinesOptions.cs
deleted file mode 100644
index 9dfe546b3d..0000000000
--- a/src/Stripe.net/Services/Invoices/InvoiceUpcomingLinesOptions.cs
+++ /dev/null
@@ -1,329 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe
-{
- using System;
- using System.Collections.Generic;
- using Newtonsoft.Json;
- using Stripe.Infrastructure;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class InvoiceUpcomingLinesOptions : ListOptions
- {
- ///
- /// Settings for automatic tax lookup for this invoice preview.
- ///
- [JsonProperty("automatic_tax")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("automatic_tax")]
-#endif
- public InvoiceAutomaticTaxOptions AutomaticTax { get; set; }
-
- ///
- /// The ID of the coupon to apply to this phase of the subscription schedule. This field has
- /// been deprecated and will be removed in a future API version. Use discounts
- /// instead.
- ///
- [JsonProperty("coupon")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("coupon")]
-#endif
- public string Coupon { get; set; }
-
- ///
- /// The currency to preview this invoice in. Defaults to that of customer if not
- /// specified.
- ///
- [JsonProperty("currency")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("currency")]
-#endif
- public string Currency { get; set; }
-
- ///
- /// The identifier of the customer whose upcoming invoice you'd like to retrieve. If
- /// automatic_tax is enabled then one of customer, customer_details,
- /// subscription, or schedule must be set.
- ///
- [JsonProperty("customer")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("customer")]
-#endif
- public string Customer { get; set; }
-
- ///
- /// Details about the customer you want to invoice or overrides for an existing customer. If
- /// automatic_tax is enabled then one of customer, customer_details,
- /// subscription, or schedule must be set.
- ///
- [JsonProperty("customer_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("customer_details")]
-#endif
- public InvoiceCustomerDetailsOptions CustomerDetails { get; set; }
-
- ///
- /// The coupons to redeem into discounts for the invoice preview. If not specified, inherits
- /// the discount from the subscription or customer. This works for both coupons directly
- /// applied to an invoice and coupons applied to a subscription. Pass an empty string to
- /// avoid inheriting any discounts.
- ///
- [JsonProperty("discounts")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("discounts")]
-#endif
- public List Discounts { get; set; }
-
- ///
- /// List of invoice items to add or update in the upcoming invoice preview (up to 250).
- ///
- [JsonProperty("invoice_items")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("invoice_items")]
-#endif
- public List InvoiceItems { get; set; }
-
- ///
- /// The connected account that issues the invoice. The invoice is presented with the
- /// branding and support information of the specified account.
- ///
- [JsonProperty("issuer")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("issuer")]
-#endif
- public InvoiceIssuerOptions Issuer { get; set; }
-
- ///
- /// The account (if any) for which the funds of the invoice payment are intended. If set,
- /// the invoice will be presented with the branding and support information of the specified
- /// account. See the Invoices
- /// with Connect documentation for details.
- ///
- [JsonProperty("on_behalf_of")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("on_behalf_of")]
-#endif
- public string OnBehalfOf { get; set; }
-
- ///
- /// Customizes the types of values to include when calculating the invoice. Defaults to
- /// next if unspecified.
- /// One of: next, or recurring.
- ///
- [JsonProperty("preview_mode")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("preview_mode")]
-#endif
- public string PreviewMode { get; set; }
-
- ///
- /// The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be
- /// used with subscription or subscription fields.
- ///
- [JsonProperty("schedule")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("schedule")]
-#endif
- public string Schedule { get; set; }
-
- ///
- /// The schedule creation or modification params to apply as a preview. Cannot be used with
- /// subscription or subscription_ prefixed fields.
- ///
- [JsonProperty("schedule_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("schedule_details")]
-#endif
- public InvoiceScheduleDetailsOptions ScheduleDetails { get; set; }
-
- ///
- /// The identifier of the subscription for which you'd like to retrieve the upcoming
- /// invoice. If not provided, but a subscription_details.items is provided, you will
- /// preview creating a subscription with those items. If neither subscription nor
- /// subscription_details.items is provided, you will retrieve the next upcoming
- /// invoice from among the customer's subscriptions.
- ///
- [JsonProperty("subscription")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription")]
-#endif
- public string Subscription { get; set; }
-
- ///
- /// For new subscriptions, a future timestamp to anchor the subscription's billing cycle. This is
- /// used to determine the date of the first full invoice, and, for plans with month
- /// or year intervals, the day of the month for subsequent invoices. For existing
- /// subscriptions, the value can only be set to now or unchanged. This field
- /// has been deprecated and will be removed in a future API version. Use
- /// subscription_details.billing_cycle_anchor instead.
- ///
- [JsonProperty("subscription_billing_cycle_anchor")]
- [JsonConverter(typeof(AnyOfConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_billing_cycle_anchor")]
- [STJS.JsonConverter(typeof(STJAnyOfConverter))]
-#endif
- public AnyOf SubscriptionBillingCycleAnchor { get; set; }
-
- ///
- /// A timestamp at which the subscription should cancel. If set to a date before the current
- /// period ends, this will cause a proration if prorations have been enabled using
- /// proration_behavior. If set during a future period, this will always cause a
- /// proration for that period. This field has been deprecated and will be removed in a
- /// future API version. Use subscription_details.cancel_at instead.
- ///
- [JsonProperty("subscription_cancel_at")]
- [JsonConverter(typeof(UnixDateTimeConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_cancel_at")]
- [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
-#endif
- public DateTime? SubscriptionCancelAt { get; set; }
-
- ///
- /// Indicate whether this subscription should cancel at the end of the current period
- /// (current_period_end). Defaults to false. This field has been deprecated
- /// and will be removed in a future API version. Use
- /// subscription_details.cancel_at_period_end instead.
- ///
- [JsonProperty("subscription_cancel_at_period_end")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_cancel_at_period_end")]
-#endif
- public bool? SubscriptionCancelAtPeriodEnd { get; set; }
-
- ///
- /// This simulates the subscription being canceled or expired immediately. This field has
- /// been deprecated and will be removed in a future API version. Use
- /// subscription_details.cancel_now instead.
- ///
- [JsonProperty("subscription_cancel_now")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_cancel_now")]
-#endif
- public bool? SubscriptionCancelNow { get; set; }
-
- ///
- /// If provided, the invoice returned will preview updating or creating a subscription with
- /// these default tax rates. The default tax rates will apply to any line item that does not
- /// have tax_rates set. This field has been deprecated and will be removed in a
- /// future API version. Use subscription_details.default_tax_rates instead.
- ///
- [JsonProperty("subscription_default_tax_rates")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_default_tax_rates")]
-#endif
- public List SubscriptionDefaultTaxRates { get; set; }
-
- ///
- /// The subscription creation or modification params to apply as a preview. Cannot be used
- /// with schedule or schedule_details fields.
- ///
- [JsonProperty("subscription_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_details")]
-#endif
- public InvoiceSubscriptionDetailsOptions SubscriptionDetails { get; set; }
-
- ///
- /// A list of up to 20 subscription items, each with an attached price. This field has been
- /// deprecated and will be removed in a future API version. Use
- /// subscription_details.items instead.
- ///
- [JsonProperty("subscription_items")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_items")]
-#endif
- public List SubscriptionItems { get; set; }
-
- ///
- /// Determines how to handle prorations when the
- /// billing cycle changes (e.g., when switching plans, resetting
- /// billing_cycle_anchor=now, or starting a trial), or if an item's quantity
- /// changes. The default value is create_prorations. This field has been deprecated
- /// and will be removed in a future API version. Use
- /// subscription_details.proration_behavior instead.
- /// One of: always_invoice, create_prorations, or none.
- ///
- [JsonProperty("subscription_proration_behavior")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_proration_behavior")]
-#endif
- public string SubscriptionProrationBehavior { get; set; }
-
- ///
- /// If previewing an update to a subscription, and doing proration,
- /// subscription_proration_date forces the proration to be calculated as though the
- /// update was done at the specified time. The time given must be within the current
- /// subscription period and within the current phase of the schedule backing this
- /// subscription, if the schedule exists. If set, subscription, and one of
- /// subscription_items, or subscription_trial_end are required. Also,
- /// subscription_proration_behavior cannot be set to 'none'. This field has been
- /// deprecated and will be removed in a future API version. Use
- /// subscription_details.proration_date instead.
- ///
- [JsonProperty("subscription_proration_date")]
- [JsonConverter(typeof(UnixDateTimeConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_proration_date")]
- [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
-#endif
- public DateTime? SubscriptionProrationDate { get; set; }
-
- ///
- /// For paused subscriptions, setting subscription_resume_at to now will
- /// preview the invoice that will be generated if the subscription is resumed. This field
- /// has been deprecated and will be removed in a future API version. Use
- /// subscription_details.resume_at instead.
- ///
- [JsonProperty("subscription_resume_at")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_resume_at")]
-#endif
- public string SubscriptionResumeAt { get; set; }
-
- ///
- /// Date a subscription is intended to start (can be future or past). This field has been
- /// deprecated and will be removed in a future API version. Use
- /// subscription_details.start_date instead.
- ///
- [JsonProperty("subscription_start_date")]
- [JsonConverter(typeof(UnixDateTimeConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_start_date")]
- [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
-#endif
- public DateTime? SubscriptionStartDate { get; set; }
-
- ///
- /// If provided, the invoice returned will preview updating or creating a subscription with
- /// that trial end. If set, one of subscription_items or subscription is
- /// required. This field has been deprecated and will be removed in a future API version.
- /// Use subscription_details.trial_end instead.
- ///
- [JsonProperty("subscription_trial_end")]
- [JsonConverter(typeof(AnyOfConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_trial_end")]
- [STJS.JsonConverter(typeof(STJAnyOfConverter))]
-#endif
- public AnyOf SubscriptionTrialEnd { get; set; }
-
- ///
- /// Indicates if a plan's trial_period_days should be applied to the subscription.
- /// Setting subscription_trial_end per subscription is preferred, and this defaults
- /// to false. Setting this flag to true together with
- /// subscription_trial_end is not allowed. See Using trial periods on
- /// subscriptions to learn more.
- ///
- [JsonProperty("subscription_trial_from_plan")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_trial_from_plan")]
-#endif
- public bool? SubscriptionTrialFromPlan { get; set; }
- }
-}
diff --git a/src/Stripe.net/Services/Invoices/UpcomingInvoiceOptions.cs b/src/Stripe.net/Services/Invoices/UpcomingInvoiceOptions.cs
index 2fe1da749e..8f066479eb 100644
--- a/src/Stripe.net/Services/Invoices/UpcomingInvoiceOptions.cs
+++ b/src/Stripe.net/Services/Invoices/UpcomingInvoiceOptions.cs
@@ -105,12 +105,6 @@ public class UpcomingInvoiceOptions : BaseOptions
#endif
public List SubscriptionDefaultTaxRates { get; set; }
- [JsonProperty("subscription_items")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("subscription_items")]
-#endif
- public List SubscriptionItems { get; set; }
-
[Obsolete("Use SubscriptionProrationBehavior instead.")]
[JsonProperty("subscription_prorate")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationListOptions.cs b/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationListOptions.cs
index a0e07763ee..53f2fc576e 100644
--- a/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationListOptions.cs
+++ b/src/Stripe.net/Services/Issuing/Authorizations/AuthorizationListOptions.cs
@@ -29,7 +29,7 @@ public class AuthorizationListOptions : ListOptionsWithCreated
///
/// Only return authorizations with the given status. One of pending, closed,
/// or reversed.
- /// One of: closed, pending, or reversed.
+ /// One of: closed, expired, pending, or reversed.
///
[JsonProperty("status")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs
index ff2bc026f3..7a8f77a3bf 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs
@@ -11,8 +11,7 @@ public class PaymentIntentCaptureOptions : BaseOptions, IHasMetadata
{
///
/// The amount to capture from the PaymentIntent, which must be less than or equal to the
- /// original amount. Any additional amount is automatically refunded. Defaults to the full
- /// amount_capturable if it's not provided.
+ /// original amount. Defaults to the full amount_capturable if it's not provided.
///
[JsonProperty("amount_to_capture")]
#if NET6_0_OR_GREATER
@@ -23,7 +22,7 @@ public class PaymentIntentCaptureOptions : BaseOptions, IHasMetadata
///
/// The amount of the application fee (if any) that will be requested to be applied to the
/// payment and transferred to the application owner's Stripe account. The amount of the
- /// application fee collected will be capped at the total payment amount. For more
+ /// application fee collected will be capped at the total amount captured. For more
/// information, see the PaymentIntents use case for connected
/// accounts.
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs
index e72efb3c20..e0e732ec3e 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs
@@ -28,7 +28,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata
///
/// The amount of the application fee (if any) that will be requested to be applied to the
/// payment and transferred to the application owner's Stripe account. The amount of the
- /// application fee collected will be capped at the total payment amount. For more
+ /// application fee collected will be capped at the total amount captured. For more
/// information, see the PaymentIntents use case for connected
/// accounts.
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs
index 1b2f275956..7bfc8e4b3d 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs
@@ -22,7 +22,7 @@ public class PaymentIntentIncrementAuthorizationOptions : BaseOptions, IHasMetad
///
/// The amount of the application fee (if any) that will be requested to be applied to the
/// payment and transferred to the application owner's Stripe account. The amount of the
- /// application fee collected will be capped at the total payment amount. For more
+ /// application fee collected will be capped at the total amount captured. For more
/// information, see the PaymentIntents use case for connected
/// accounts.
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataBillieOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataBillieOptions.cs
new file mode 100644
index 0000000000..d4b617d169
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataBillieOptions.cs
@@ -0,0 +1,7 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ public class PaymentIntentPaymentMethodDataBillieOptions : INestedOptions
+ {
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataNzBankAccountOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataNzBankAccountOptions.cs
new file mode 100644
index 0000000000..e3fbf27658
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataNzBankAccountOptions.cs
@@ -0,0 +1,63 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentIntentPaymentMethodDataNzBankAccountOptions : INestedOptions
+ {
+ ///
+ /// The name on the bank account. Only required if the account holder name is different from
+ /// the name of the authorized signatory collected in the PaymentMethod’s billing details.
+ ///
+ [JsonProperty("account_holder_name")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("account_holder_name")]
+#endif
+ public string AccountHolderName { get; set; }
+
+ ///
+ /// The account number for the bank account.
+ ///
+ [JsonProperty("account_number")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("account_number")]
+#endif
+ public string AccountNumber { get; set; }
+
+ ///
+ /// The numeric code for the bank account's bank.
+ ///
+ [JsonProperty("bank_code")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("bank_code")]
+#endif
+ public string BankCode { get; set; }
+
+ ///
+ /// The numeric code for the bank account's bank branch.
+ ///
+ [JsonProperty("branch_code")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("branch_code")]
+#endif
+ public string BranchCode { get; set; }
+
+ [JsonProperty("reference")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("reference")]
+#endif
+ public string Reference { get; set; }
+
+ ///
+ /// The suffix of the bank account number.
+ ///
+ [JsonProperty("suffix")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("suffix")]
+#endif
+ public string Suffix { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
index c42f05682b..298e2ad302 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
@@ -112,6 +112,16 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
#endif
public PaymentIntentPaymentMethodDataBancontactOptions Bancontact { get; set; }
+ ///
+ /// If this is a billie PaymentMethod, this hash contains details about the billie
+ /// payment method.
+ ///
+ [JsonProperty("billie")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("billie")]
+#endif
+ public PaymentIntentPaymentMethodDataBillieOptions Billie { get; set; }
+
///
/// Billing information associated with the PaymentMethod that may be used or required by
/// particular types of payment methods.
@@ -314,6 +324,16 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
#endif
public PaymentIntentPaymentMethodDataNaverPayOptions NaverPay { get; set; }
+ ///
+ /// If this is an nz_bank_account PaymentMethod, this hash contains details about the
+ /// nz_bank_account payment method.
+ ///
+ [JsonProperty("nz_bank_account")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("nz_bank_account")]
+#endif
+ public PaymentIntentPaymentMethodDataNzBankAccountOptions NzBankAccount { get; set; }
+
///
/// If this is an oxxo PaymentMethod, this hash contains details about the OXXO
/// payment method.
@@ -425,6 +445,16 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
#endif
public PaymentIntentPaymentMethodDataSamsungPayOptions SamsungPay { get; set; }
+ ///
+ /// If this is a satispay PaymentMethod, this hash contains details about the
+ /// satispay payment method.
+ ///
+ [JsonProperty("satispay")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("satispay")]
+#endif
+ public PaymentIntentPaymentMethodDataSatispayOptions Satispay { get; set; }
+
///
/// If this is a sepa_debit PaymentMethod, this hash contains details about the SEPA
/// debit bank account.
@@ -471,12 +501,13 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
/// PaymentMethod type.
/// One of: acss_debit, affirm, afterpay_clearpay, alipay,
/// alma, amazon_pay, au_becs_debit, bacs_debit,
- /// bancontact, blik, boleto, cashapp, customer_balance,
- /// eps, fpx, giropay, grabpay, ideal, kakao_pay,
- /// klarna, konbini, kr_card, link, mobilepay,
- /// multibanco, naver_pay, oxxo, p24, pay_by_bank,
- /// payco, paynow, paypal, pix, promptpay,
- /// revolut_pay, samsung_pay, sepa_debit, sofort, swish,
+ /// bancontact, billie, blik, boleto, cashapp,
+ /// customer_balance, eps, fpx, giropay, grabpay,
+ /// ideal, kakao_pay, klarna, konbini, kr_card,
+ /// link, mobilepay, multibanco, naver_pay,
+ /// nz_bank_account, oxxo, p24, pay_by_bank, payco,
+ /// paynow, paypal, pix, promptpay, revolut_pay,
+ /// samsung_pay, satispay, sepa_debit, sofort, swish,
/// twint, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataSatispayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataSatispayOptions.cs
new file mode 100644
index 0000000000..6a8ac0d9b3
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataSatispayOptions.cs
@@ -0,0 +1,7 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ public class PaymentIntentPaymentMethodDataSatispayOptions : INestedOptions
+ {
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsNaverPayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsNaverPayOptions.cs
index a1b4ef4361..adaaa52f96 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsNaverPayOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsNaverPayOptions.cs
@@ -23,5 +23,32 @@ public class PaymentIntentPaymentMethodOptionsNaverPayOptions : INestedOptions
[STJS.JsonPropertyName("capture_method")]
#endif
public string CaptureMethod { get; set; }
+
+ ///
+ /// Indicates that you intend to make future payments with this PaymentIntent's payment
+ /// method.
+ ///
+ /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ /// the Customer after the PaymentIntent is confirmed and the customer completes any
+ /// required actions. If you don't provide a Customer, you can still attach the payment method to a
+ /// Customer after the transaction completes.
+ ///
+ /// If the payment method is card_present and isn't a digital wallet, Stripe creates
+ /// and attaches a generated_card
+ /// payment method representing the card to the Customer instead.
+ ///
+ /// When processing card payments, Stripe uses setup_future_usage to help you comply
+ /// with regional legislation and network rules, such as SCA.
+ /// One of: none, or off_session.
+ ///
+ [JsonProperty("setup_future_usage")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("setup_future_usage")]
+#endif
+ public string SetupFutureUsage { get; set; }
}
}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsNzBankAccountOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsNzBankAccountOptions.cs
new file mode 100644
index 0000000000..a33734dde3
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsNzBankAccountOptions.cs
@@ -0,0 +1,53 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentIntentPaymentMethodOptionsNzBankAccountOptions : INestedOptions
+ {
+ ///
+ /// Indicates that you intend to make future payments with this PaymentIntent's payment
+ /// method.
+ ///
+ /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ /// the Customer after the PaymentIntent is confirmed and the customer completes any
+ /// required actions. If you don't provide a Customer, you can still attach the payment method to a
+ /// Customer after the transaction completes.
+ ///
+ /// If the payment method is card_present and isn't a digital wallet, Stripe creates
+ /// and attaches a generated_card
+ /// payment method representing the card to the Customer instead.
+ ///
+ /// When processing card payments, Stripe uses setup_future_usage to help you comply
+ /// with regional legislation and network rules, such as SCA.
+ ///
+ /// If you've already set setup_future_usage and you're performing a request using a
+ /// publishable key, you can only update the value from on_session to
+ /// off_session.
+ /// One of: none, off_session, or on_session.
+ ///
+ [JsonProperty("setup_future_usage")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("setup_future_usage")]
+#endif
+ public string SetupFutureUsage { get; set; }
+
+ ///
+ /// Controls when Stripe will attempt to debit the funds from the customer's account. The
+ /// date must be a string in YYYY-MM-DD format. The date must be in the future and between 3
+ /// and 15 calendar days from now.
+ ///
+ [JsonProperty("target_date")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("target_date")]
+#endif
+ public string TargetDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
index c8fefc7033..95574bdda8 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
@@ -297,6 +297,16 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions
#endif
public PaymentIntentPaymentMethodOptionsNaverPayOptions NaverPay { get; set; }
+ ///
+ /// If this is a nz_bank_account PaymentMethod, this sub-hash contains details about
+ /// the NZ BECS Direct Debit payment method options.
+ ///
+ [JsonProperty("nz_bank_account")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("nz_bank_account")]
+#endif
+ public PaymentIntentPaymentMethodOptionsNzBankAccountOptions NzBankAccount { get; set; }
+
///
/// If this is a oxxo PaymentMethod, this sub-hash contains details about the OXXO
/// payment method options.
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs
index 0acb33634c..d98e75f3f9 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs
@@ -28,7 +28,7 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata
///
/// The amount of the application fee (if any) that will be requested to be applied to the
/// payment and transferred to the application owner's Stripe account. The amount of the
- /// application fee collected will be capped at the total payment amount. For more
+ /// application fee collected will be capped at the total amount captured. For more
/// information, see the PaymentIntents use case for connected
/// accounts.
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs
index c2302d4f50..eda20ccea5 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs
@@ -173,6 +173,20 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata
#endif
public string OnBehalfOf { get; set; }
+ ///
+ /// A list of optional items the customer can add to their order at checkout. Use this
+ /// parameter to pass one-time or recurring Prices. There is a maximum of 10 optional
+ /// items allowed on a payment link, and the existing limits on the number of line items
+ /// allowed on a payment link apply to the combined number of line items and optional items.
+ /// There is a maximum of 20 combined line items and optional items.
+ ///
+ [JsonProperty("optional_items")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("optional_items")]
+#endif
+ public List OptionalItems { get; set; }
+
///
/// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in
/// payment mode.
@@ -209,12 +223,13 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata
/// (20+ payment methods supported).
/// One of: affirm, afterpay_clearpay, alipay, alma,
- /// au_becs_debit, bacs_debit, bancontact, blik, boleto,
- /// card, cashapp, eps, fpx, giropay, grabpay,
- /// ideal, klarna, konbini, link, mobilepay,
- /// multibanco, oxxo, p24, pay_by_bank, paynow,
- /// paypal, pix, promptpay, sepa_debit, sofort,
- /// swish, twint, us_bank_account, wechat_pay, or zip.
+ /// au_becs_debit, bacs_debit, bancontact, billie, blik,
+ /// boleto, card, cashapp, eps, fpx, giropay,
+ /// grabpay, ideal, klarna, konbini, link,
+ /// mobilepay, multibanco, oxxo, p24, pay_by_bank,
+ /// paynow, paypal, pix, promptpay, satispay,
+ /// sepa_debit, sofort, swish, twint, us_bank_account,
+ /// wechat_pay, or zip.
///
[JsonProperty("payment_method_types")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs
index 6275981143..60cf1c96f0 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs
@@ -9,6 +9,16 @@ namespace Stripe
public class PaymentLinkCustomFieldDropdownOptions : INestedOptions
{
+ ///
+ /// The value that will pre-fill the field on the payment page.Must match a value in
+ /// the options array.
+ ///
+ [JsonProperty("default_value")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("default_value")]
+#endif
+ public string DefaultValue { get; set; }
+
///
/// The options available for the customer to select. Up to 200 options allowed.
///
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs
index b7d5b30fb3..fe0ef1e974 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs
@@ -8,6 +8,15 @@ namespace Stripe
public class PaymentLinkCustomFieldNumericOptions : INestedOptions
{
+ ///
+ /// The value that will pre-fill the field on the payment page.
+ ///
+ [JsonProperty("default_value")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("default_value")]
+#endif
+ public string DefaultValue { get; set; }
+
///
/// The maximum character length constraint for the customer's input.
///
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs
index 7bd0bebd7f..0d93430830 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs
@@ -8,6 +8,15 @@ namespace Stripe
public class PaymentLinkCustomFieldTextOptions : INestedOptions
{
+ ///
+ /// The value that will pre-fill the field on the payment page.
+ ///
+ [JsonProperty("default_value")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("default_value")]
+#endif
+ public string DefaultValue { get; set; }
+
///
/// The maximum character length constraint for the customer's input.
///
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemAdjustableQuantityOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemAdjustableQuantityOptions.cs
new file mode 100644
index 0000000000..d8a99bafff
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemAdjustableQuantityOptions.cs
@@ -0,0 +1,42 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentLinkOptionalItemAdjustableQuantityOptions : INestedOptions
+ {
+ ///
+ /// Set to true if the quantity can be adjusted to any non-negative integer.
+ ///
+ [JsonProperty("enabled")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("enabled")]
+#endif
+ public bool? Enabled { get; set; }
+
+ ///
+ /// The maximum quantity of this item the customer can purchase. By default this value is
+ /// 99.
+ ///
+ [JsonProperty("maximum")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("maximum")]
+#endif
+ public long? Maximum { get; set; }
+
+ ///
+ /// The minimum quantity of this item the customer must purchase, if they choose to purchase
+ /// it. Because this item is optional, the customer will always be able to remove it from
+ /// their order, even if the minimum configured here is greater than 0. By default
+ /// this value is 0.
+ ///
+ [JsonProperty("minimum")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("minimum")]
+#endif
+ public long? Minimum { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemOptions.cs
new file mode 100644
index 0000000000..4c107d22c1
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkOptionalItemOptions.cs
@@ -0,0 +1,41 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentLinkOptionalItemOptions : INestedOptions
+ {
+ ///
+ /// When set, provides configuration for the customer to adjust the quantity of the line
+ /// item created when a customer chooses to add this optional item to their order.
+ ///
+ [JsonProperty("adjustable_quantity")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("adjustable_quantity")]
+#endif
+ public PaymentLinkOptionalItemAdjustableQuantityOptions AdjustableQuantity { get; set; }
+
+ ///
+ /// The ID of the Price or Plan object.
+ ///
+ [JsonProperty("price")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("price")]
+#endif
+ public string Price { get; set; }
+
+ ///
+ /// The initial quantity of the line item created when a customer chooses to add this
+ /// optional item to their order.
+ ///
+ [JsonProperty("quantity")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("quantity")]
+#endif
+ public long? Quantity { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs
index 82ace2cc6b..5c36aa8319 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs
@@ -166,12 +166,13 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata
/// href="https://dashboard.stripe.com/settings/payment_methods">payment method
/// settings