diff --git a/API_VERSION b/API_VERSION
index 0336d6a3a5..fb72506858 100644
--- a/API_VERSION
+++ b/API_VERSION
@@ -1 +1 @@
-2025-08-27.basil
\ No newline at end of file
+2025-09-30.clover
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index a13383ca67..328de8c992 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-f4b80890ea17e89a543a77a389f29ca9be6fe615
\ No newline at end of file
+9de7288a5c444f47d15545549303c3de4c226c71
\ No newline at end of file
diff --git a/justfile b/justfile
index 871aa51e5a..b891bed6de 100644
--- a/justfile
+++ b/justfile
@@ -20,7 +20,7 @@ ci-test: (_test "--no-build" "" "Release")
# ⭐ format all files
format *args:
# This sets TargetFramework because of a race condition in dotnet format when it tries to format to multiple targets at a time, which could lead to code with compiler errors after it completes
- TargetFramework=net5.0 dotnet format src/Stripe.net/Stripe.net.csproj --severity warn {{args}}
+ TargetFramework=net5.0 dotnet format src/Stripe.net.sln --severity warn {{args}}
# verify, but don't modify, the project's formatting
format-check: (format "--verify-no-changes")
diff --git a/src/Examples/Program.cs b/src/Examples/Program.cs
index 4d0ac5f52d..74514af254 100644
--- a/src/Examples/Program.cs
+++ b/src/Examples/Program.cs
@@ -27,7 +27,7 @@ public Program()
/// are set before running the example.
///
///
- /// command line args
+ /// command line args.
///
public static async Task Main(string[] args)
{
diff --git a/src/Examples/V2/PushedEventWebhookHandler.cs b/src/Examples/V2/PushedEventWebhookHandler.cs
index 373696e267..943bc4b19f 100644
--- a/src/Examples/V2/PushedEventWebhookHandler.cs
+++ b/src/Examples/V2/PushedEventWebhookHandler.cs
@@ -20,15 +20,15 @@
[ApiController]
public class PushedEventWebhookHandler : ControllerBase
{
- private readonly StripeClient _client;
- private readonly string _webhookSecret;
+ private readonly StripeClient client;
+ private readonly string webhookSecret;
public PushedEventWebhookHandler()
{
var apiKey = Environment.GetEnvironmentVariable("STRIPE_API_KEY");
- _client = new StripeClient(apiKey);
+ client = new StripeClient(apiKey);
- _webhookSecret = Environment.GetEnvironmentVariable("WEBHOOK_SECRET");
+ webhookSecret = Environment.GetEnvironmentVariable("WEBHOOK_SECRET");
}
[HttpPost]
@@ -37,7 +37,7 @@ public async Task Index()
var json = await new StreamReader(HttpContext.Request.Body).ReadToEndAsync();
try
{
- var pushedEvent = _client.ParseThinEvent__Experimental(json, Request.Headers["Stripe-Signature"], _webhookSecret);
+ var pushedEvent = client.ParseThinEvent__Experimental(json, Request.Headers["Stripe-Signature"], webhookSecret);
if (pushedEvent is PushedV1BillingMeterErrorReportTriggeredEvent pushedV1BillingEvent)
{
var pulledEvent = await pushedV1BillingEvent.PullAsync();
diff --git a/src/Examples/V2/ThinEventWebhookHandler.cs b/src/Examples/V2/ThinEventWebhookHandler.cs
index dd4e53f889..dbec0d14dc 100644
--- a/src/Examples/V2/ThinEventWebhookHandler.cs
+++ b/src/Examples/V2/ThinEventWebhookHandler.cs
@@ -22,15 +22,15 @@ namespace Examples.V2
[ApiController]
public class ThinEventWebhookHandler : ControllerBase
{
- private readonly StripeClient _client;
- private readonly string _webhookSecret;
+ private readonly StripeClient client;
+ private readonly string webhookSecret;
public ThinEventWebhookHandler()
{
var apiKey = Environment.GetEnvironmentVariable("STRIPE_API_KEY");
- _client = new StripeClient(apiKey);
+ client = new StripeClient(apiKey);
- _webhookSecret = Environment.GetEnvironmentVariable("WEBHOOK_SECRET");
+ webhookSecret = Environment.GetEnvironmentVariable("WEBHOOK_SECRET");
}
[HttpPost]
@@ -39,10 +39,10 @@ public async Task Index()
var json = await new StreamReader(HttpContext.Request.Body).ReadToEndAsync();
try
{
- var thinEvent = _client.ParseThinEvent(json, Request.Headers["Stripe-Signature"], _webhookSecret);
+ var thinEvent = client.ParseThinEvent(json, Request.Headers["Stripe-Signature"], webhookSecret);
// Fetch the event data to understand the failure
- var baseEvent = await _client.V2.Core.Events.GetAsync(thinEvent.Id);
+ var baseEvent = await client.V2.Core.Events.GetAsync(thinEvent.Id);
if (baseEvent is V1BillingMeterErrorReportTriggeredEvent fullEvent)
{
var meter = await fullEvent.FetchRelatedObjectAsync();
diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs
index 511ce05738..6da8ea1d67 100644
--- a/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs
+++ b/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs
@@ -84,7 +84,7 @@ public class Cadence : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("next_billing_date")]
#endif
- public DateTime? NextBillingDate { get; set; }
+ public DateTime NextBillingDate { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
/// The payer determines the entity financially responsible for the bill.
diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleDayTime.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleDayTime.cs
index 056ba1ad9c..bc6b77ba96 100644
--- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleDayTime.cs
+++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleDayTime.cs
@@ -36,6 +36,6 @@ public class CadenceBillingCycleDayTime : StripeEntity
#endif
public long DayOfMonth { get; set; }
- ///
- /// The month to anchor the billing on for a type="month" billing cycle from 1-12.
- /// Occurrences are calculated from the month anchor.
- ///
- [JsonProperty("month_of_year")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("month_of_year")]
-#endif
- public long? MonthOfYear { get; set; }
-
///
/// The time at which the billing cycle ends.
///
diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleMonthTime.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleMonthTime.cs
index 33f8a0ad2b..695ff998d0 100644
--- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleMonthTime.cs
+++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycleMonthTime.cs
@@ -36,6 +36,6 @@ public class CadenceBillingCycleMonthTime : StripeEntity Konbini { get; set; }
///
/// This sub-hash contains details about the SEPA Direct Debit payment method options.
@@ -61,7 +62,7 @@ public class CollectionSettingVersionPaymentMethodOptions : StripeEntity SepaDebit { get; set; }
///
/// This sub-hash contains details about the ACH direct debit payment method options.
diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsCardMandateOptions.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsCardMandateOptions.cs
index 24a0082bdf..63c7c8fcb6 100644
--- a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsCardMandateOptions.cs
+++ b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsCardMandateOptions.cs
@@ -15,7 +15,7 @@ public class CollectionSettingVersionPaymentMethodOptionsCardMandateOptions : St
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount")]
#endif
- public long? Amount { get; set; }
+ public long Amount { get; set; }
///
/// The AmountType for the mandate. One of fixed or maximum.
diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsKonbini.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsKonbini.cs
deleted file mode 100644
index 210573d833..0000000000
--- a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsKonbini.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- public class CollectionSettingVersionPaymentMethodOptionsKonbini : StripeEntity
- {
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsSepaDebit.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsSepaDebit.cs
deleted file mode 100644
index c89f5b2e4f..0000000000
--- a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersionPaymentMethodOptionsSepaDebit.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- public class CollectionSettingVersionPaymentMethodOptionsSepaDebit : StripeEntity
- {
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptions.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptions.cs
index 80a2c675a5..1b9a3d787b 100644
--- a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptions.cs
+++ b/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptions.cs
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
+ using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
@@ -52,7 +53,7 @@ public class CollectionSettingPaymentMethodOptions : StripeEntity Konbini { get; set; }
///
/// This sub-hash contains details about the SEPA Direct Debit payment method options.
@@ -61,7 +62,7 @@ public class CollectionSettingPaymentMethodOptions : StripeEntity SepaDebit { get; set; }
///
/// This sub-hash contains details about the ACH direct debit payment method options.
diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsCardMandateOptions.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsCardMandateOptions.cs
index 05a993e08d..33a25f5792 100644
--- a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsCardMandateOptions.cs
+++ b/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsCardMandateOptions.cs
@@ -15,7 +15,7 @@ public class CollectionSettingPaymentMethodOptionsCardMandateOptions : StripeEnt
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount")]
#endif
- public long? Amount { get; set; }
+ public long Amount { get; set; }
///
/// The AmountType for the mandate. One of fixed or maximum.
diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsKonbini.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsKonbini.cs
deleted file mode 100644
index e8f748cccd..0000000000
--- a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsKonbini.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- public class CollectionSettingPaymentMethodOptionsKonbini : StripeEntity
- {
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsSepaDebit.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsSepaDebit.cs
deleted file mode 100644
index e632854299..0000000000
--- a/src/Stripe.net/Entities/V2/Billing/CollectionSettings/CollectionSettingPaymentMethodOptionsSepaDebit.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- public class CollectionSettingPaymentMethodOptionsSepaDebit : StripeEntity
- {
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRulePercentOff.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRulePercentOff.cs
index b5325cebad..e1347611c7 100644
--- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRulePercentOff.cs
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRulePercentOff.cs
@@ -25,6 +25,6 @@ public class IntentActionApplyInvoiceDiscountRulePercentOff : StripeEntity
/// When the deactivate action will take effect.
- /// One of: current_billing_period_end, current_billing_period_start,
- /// on_reserve, or timestamp.
+ /// One of: current_billing_period_start, on_reserve, or timestamp.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyEffectiveAt.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyEffectiveAt.cs
index 2d2c560a4c..6b6cb3bd4e 100644
--- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyEffectiveAt.cs
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyEffectiveAt.cs
@@ -17,7 +17,7 @@ public class IntentActionModifyEffectiveAt : StripeEntity
/// When the modify action will take effect.
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration.cs
index 68bdd7cc2a..c7d053b8f9 100644
--- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration.cs
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration.cs
@@ -15,7 +15,7 @@ public class IntentActionModifyPricingPlanSubscriptionDetailsComponentConfigurat
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("quantity")]
#endif
- public long? Quantity { get; set; }
+ public long Quantity { get; set; }
///
/// Lookup key for the pricing plan component.
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeEffectiveAt.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeEffectiveAt.cs
index 57a8e3fec9..f069ea1bb3 100644
--- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeEffectiveAt.cs
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeEffectiveAt.cs
@@ -17,7 +17,7 @@ public class IntentActionSubscribeEffectiveAt : StripeEntity
/// When the subscribe action will take effect.
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration.cs
index 2d2b6ae464..2379009531 100644
--- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration.cs
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration.cs
@@ -15,7 +15,7 @@ public class IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfigu
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("quantity")]
#endif
- public long? Quantity { get; set; }
+ public long Quantity { get; set; }
///
/// Lookup key for the pricing plan component.
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeV1SubscriptionDetailsItem.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeV1SubscriptionDetailsItem.cs
index 9c3d529eb6..09eb8bac9b 100644
--- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeV1SubscriptionDetailsItem.cs
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribeV1SubscriptionDetailsItem.cs
@@ -35,6 +35,6 @@ public class IntentActionSubscribeV1SubscriptionDetailsItem : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("canceled_at")]
#endif
- public DateTime? CanceledAt { get; set; }
+ public DateTime CanceledAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
/// Time at which the Billing Intent was committed.
@@ -25,7 +25,7 @@ public class IntentStatusTransitions : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("committed_at")]
#endif
- public DateTime? CommittedAt { get; set; }
+ public DateTime CommittedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
/// Time at which the Billing Intent was drafted.
@@ -34,7 +34,7 @@ public class IntentStatusTransitions : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("drafted_at")]
#endif
- public DateTime? DraftedAt { get; set; }
+ public DateTime DraftedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
/// Time at which the Billing Intent was reserved.
@@ -43,6 +43,6 @@ public class IntentStatusTransitions : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("reserved_at")]
#endif
- public DateTime? ReservedAt { get; set; }
+ public DateTime ReservedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
}
}
diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersionTier.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersionTier.cs
index 652eef640b..0caddb61f7 100644
--- a/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersionTier.cs
+++ b/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersionTier.cs
@@ -36,7 +36,7 @@ public class LicenseFeeVersionTier : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("up_to_decimal")]
#endif
- public string UpToDecimal { get; set; }
+ public decimal UpToDecimal { get; set; }
///
/// No upper bound to this tier. Only one of up_to_decimal and up_to_inf may
diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs
index 58a10bf3fc..4c6d498e22 100644
--- a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs
+++ b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs
@@ -78,7 +78,8 @@ public class LicenseFee : StripeEntity, IHasId, IHasMetadata, IHasOb
public string LatestVersion { get; set; }
///
- /// The Licensed Item that this License Fee binds to.
+ /// A Licensed Item represents a billable item whose pricing is based on license fees. You
+ /// can use license fees to specify the pricing and create subscriptions to these items.
///
[JsonProperty("licensed_item")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeTier.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeTier.cs
index 371f711656..b279e7f1d4 100644
--- a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeTier.cs
+++ b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFeeTier.cs
@@ -36,7 +36,7 @@ public class LicenseFeeTier : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("up_to_decimal")]
#endif
- public string UpToDecimal { get; set; }
+ public decimal UpToDecimal { get; set; }
///
/// No upper bound to this tier. Only one of up_to_decimal and up_to_inf may
diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionServicingStatusTransitions.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionServicingStatusTransitions.cs
index c85226072e..569e405f85 100644
--- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionServicingStatusTransitions.cs
+++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionServicingStatusTransitions.cs
@@ -34,23 +34,5 @@ public class PricingPlanSubscriptionServicingStatusTransitions : StripeEntity
- /// When the servicing is scheduled to transition to activate.
- ///
- [JsonProperty("will_activate_at")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("will_activate_at")]
-#endif
- public string WillActivateAt { get; set; }
-
- ///
- /// When the servicing is scheduled to cancel.
- ///
- [JsonProperty("will_cancel_at")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("will_cancel_at")]
-#endif
- public string WillCancelAt { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs
index f2d412fd8b..be285e7b78 100644
--- a/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs
+++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs
@@ -44,7 +44,7 @@ public class PricingPlanVersion : StripeEntity, IHasId, IHas
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("end_date")]
#endif
- public DateTime? EndDate { get; set; }
+ public DateTime EndDate { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
/// Has the value true if the object exists in live mode or the value false if
diff --git a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs
index 04f2442620..450ef6fe4b 100644
--- a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs
+++ b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs
@@ -69,7 +69,9 @@ public class RateCardRate : StripeEntity, IHasId, IHasMetadata, IH
public Dictionary Metadata { get; set; }
///
- /// The Metered Item that this rate binds to.
+ /// A Metered Item represents a billable item whose pricing is based on usage, measured by a
+ /// meter. You can use rate cards to specify the pricing and create subscriptions to these
+ /// items.
///
[JsonProperty("metered_item")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRateTier.cs b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRateTier.cs
index 05bab16512..13ea40ab12 100644
--- a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRateTier.cs
+++ b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRateTier.cs
@@ -36,7 +36,7 @@ public class RateCardRateTier : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("up_to_decimal")]
#endif
- public string UpToDecimal { get; set; }
+ public decimal UpToDecimal { get; set; }
///
/// No upper bound to this tier. Only one of up_to_decimal and up_to_inf may
diff --git a/src/Stripe.net/Entities/V2/Billing/RateCardSubscriptions/RateCardSubscriptionServicingStatusTransitions.cs b/src/Stripe.net/Entities/V2/Billing/RateCardSubscriptions/RateCardSubscriptionServicingStatusTransitions.cs
index f5cde657d6..01dbb69b2c 100644
--- a/src/Stripe.net/Entities/V2/Billing/RateCardSubscriptions/RateCardSubscriptionServicingStatusTransitions.cs
+++ b/src/Stripe.net/Entities/V2/Billing/RateCardSubscriptions/RateCardSubscriptionServicingStatusTransitions.cs
@@ -34,23 +34,5 @@ public class RateCardSubscriptionServicingStatusTransitions : StripeEntity
- /// When the servicing is scheduled to transition to activate.
- ///
- [JsonProperty("will_activate_at")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("will_activate_at")]
-#endif
- public string WillActivateAt { get; set; }
-
- ///
- /// When the servicing is scheduled to cancel.
- ///
- [JsonProperty("will_cancel_at")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("will_cancel_at")]
-#endif
- public string WillCancelAt { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrant.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrant.cs
index a0f09c9023..1d2921acac 100644
--- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrant.cs
+++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrant.cs
@@ -26,16 +26,6 @@ public class ServiceActionCreditGrant : StripeEntity
#endif
public ServiceActionCreditGrantApplicabilityConfig ApplicabilityConfig { get; set; }
- ///
- /// The category of the credit grant.
- /// One of: paid, or promotional.
- ///
- [JsonProperty("category")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("category")]
-#endif
- public string Category { get; set; }
-
///
/// The expiry configuration for the credit grant.
///
@@ -53,15 +43,5 @@ public class ServiceActionCreditGrant : StripeEntity
[STJS.JsonPropertyName("name")]
#endif
public string Name { get; set; }
-
- ///
- /// The desired priority for applying this credit grant. If not specified, it will be set to
- /// the default value of 50. The highest priority is 0 and the lowest is 100.
- ///
- [JsonProperty("priority")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("priority")]
-#endif
- public long? Priority { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmountCustomPricingUnit.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmountCustomPricingUnit.cs
index c521e2be7e..5adf4b46af 100644
--- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmountCustomPricingUnit.cs
+++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmountCustomPricingUnit.cs
@@ -24,6 +24,6 @@ public class ServiceActionCreditGrantAmountCustomPricingUnit : StripeEntity
- /// The category of the credit grant.
- /// One of: paid, or promotional.
- ///
- [JsonProperty("category")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("category")]
-#endif
- public string Category { get; set; }
-
///
/// The expiry configuration for the credit grant.
///
@@ -53,15 +43,5 @@ public class ServiceActionCreditGrantPerTenant : StripeEntity
- /// The desired priority for applying this credit grant. If not specified, it will be set to
- /// the default value of 50. The highest priority is 0 and the lowest is 100.
- ///
- [JsonProperty("priority")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("priority")]
-#endif
- public long? Priority { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmountCustomPricingUnit.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmountCustomPricingUnit.cs
index 1b06f1fa4f..0dc5368eea 100644
--- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmountCustomPricingUnit.cs
+++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmountCustomPricingUnit.cs
@@ -24,6 +24,6 @@ public class ServiceActionCreditGrantPerTenantAmountCustomPricingUnit : StripeEn
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("value")]
#endif
- public string Value { get; set; }
+ public decimal Value { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/Person.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPerson.cs
similarity index 64%
rename from src/Stripe.net/Entities/V2/Core/Persons/Person.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPerson.cs
index f7289b3bb1..fb21623590 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/Person.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPerson.cs
@@ -11,7 +11,7 @@ namespace Stripe.V2.Core
///
/// Person retrieval response schema.
///
- public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
+ public class AccountPerson : StripeEntity, IHasId, IHasMetadata, IHasObject
{
///
/// Unique identifier for the Person.
@@ -48,7 +48,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("additional_addresses")]
#endif
- public List AdditionalAddresses { get; set; }
+ public List AdditionalAddresses { get; set; }
///
/// Additional names (e.g. aliases) associated with the person.
@@ -57,7 +57,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("additional_names")]
#endif
- public List AdditionalNames { get; set; }
+ public List AdditionalNames { get; set; }
///
/// Attestations of accepted terms of service agreements.
@@ -66,7 +66,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("additional_terms_of_service")]
#endif
- public PersonAdditionalTermsOfService AdditionalTermsOfService { get; set; }
+ public AccountPersonAdditionalTermsOfService AdditionalTermsOfService { get; set; }
///
/// The person's residential address.
@@ -75,7 +75,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("address")]
#endif
- public PersonAddress Address { get; set; }
+ public AccountPersonAddress Address { get; set; }
///
/// Time at which the object was created. Represented as a RFC 3339 date & time UTC
@@ -94,7 +94,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("date_of_birth")]
#endif
- public PersonDateOfBirth DateOfBirth { get; set; }
+ public AccountPersonDateOfBirth DateOfBirth { get; set; }
///
/// Documents that may be submitted to satisfy various informational requests.
@@ -103,7 +103,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("documents")]
#endif
- public PersonDocuments Documents { get; set; }
+ public AccountPersonDocuments Documents { get; set; }
///
/// The person's email address.
@@ -130,7 +130,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("id_numbers")]
#endif
- public List IdNumbers { get; set; }
+ public List IdNumbers { get; set; }
///
/// The person's gender (International regulations require either "male" or "female").
@@ -165,38 +165,6 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
///
/// The countries where the person is a national. Two-letter country code (ISO 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("nationalities")]
#if NET6_0_OR_GREATER
@@ -230,7 +198,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("relationship")]
#endif
- public PersonRelationship Relationship { get; set; }
+ public AccountPersonRelationship Relationship { get; set; }
///
/// The script addresses (e.g., non-Latin characters) associated with the person.
@@ -239,7 +207,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("script_addresses")]
#endif
- public PersonScriptAddresses ScriptAddresses { get; set; }
+ public AccountPersonScriptAddresses ScriptAddresses { get; set; }
///
/// The script names (e.g. non-Latin characters) associated with the person.
@@ -248,7 +216,7 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("script_names")]
#endif
- public PersonScriptNames ScriptNames { get; set; }
+ public AccountPersonScriptNames ScriptNames { get; set; }
///
/// The person's last name.
diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalAddress.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalAddress.cs
new file mode 100644
index 0000000000..876fbc68c9
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalAddress.cs
@@ -0,0 +1,84 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class AccountPersonAdditionalAddress : StripeEntity
+ {
+ ///
+ /// City, district, suburb, town, or village.
+ ///
+ [JsonProperty("city")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("city")]
+#endif
+ public string City { get; set; }
+
+ ///
+ /// Two-letter country code (ISO
+ /// 3166-1 alpha-2).
+ ///
+ [JsonProperty("country")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("country")]
+#endif
+ public string Country { get; set; }
+
+ ///
+ /// Address line 1 (e.g., street, PO Box, or company name).
+ ///
+ [JsonProperty("line1")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("line1")]
+#endif
+ public string Line1 { get; set; }
+
+ ///
+ /// Address line 2 (e.g., apartment, suite, unit, or building).
+ ///
+ [JsonProperty("line2")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("line2")]
+#endif
+ public string Line2 { get; set; }
+
+ ///
+ /// ZIP or postal code.
+ ///
+ [JsonProperty("postal_code")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("postal_code")]
+#endif
+ public string PostalCode { get; set; }
+
+ ///
+ /// Purpose of additional address.
+ ///
+ [JsonProperty("purpose")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("purpose")]
+#endif
+ public string Purpose { get; set; }
+
+ ///
+ /// State, county, province, or region.
+ ///
+ [JsonProperty("state")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("state")]
+#endif
+ public string State { get; set; }
+
+ ///
+ /// Town or cho-me.
+ ///
+ [JsonProperty("town")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("town")]
+#endif
+ public string Town { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalName.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalName.cs
similarity index 93%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalName.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalName.cs
index d507a4202c..ea0835c066 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalName.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalName.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonAdditionalName : StripeEntity
+ public class AccountPersonAdditionalName : StripeEntity
{
///
/// The individual's full name.
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalTermsOfService.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfService.cs
similarity index 66%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalTermsOfService.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfService.cs
index 62dbfa79dc..8864e9ec1e 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalTermsOfService.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAdditionalTermsOfService.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonAdditionalTermsOfService : StripeEntity
+ public class AccountPersonAdditionalTermsOfService : StripeEntity
{
///
/// Stripe terms of service agreement.
@@ -15,6 +15,6 @@ public class PersonAdditionalTermsOfService : StripeEntity
+ public class AccountPersonAdditionalTermsOfServiceAccount : StripeEntity
{
///
/// The time when the Account's representative accepted the terms of service. Represented as
@@ -18,7 +18,7 @@ public class PersonAdditionalTermsOfServiceAccount : StripeEntity
/// The IP address from which the Account's representative accepted the terms of service.
diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAddress.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAddress.cs
new file mode 100644
index 0000000000..3e51ef6e43
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonAddress.cs
@@ -0,0 +1,75 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class AccountPersonAddress : StripeEntity
+ {
+ ///
+ /// City, district, suburb, town, or village.
+ ///
+ [JsonProperty("city")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("city")]
+#endif
+ public string City { get; set; }
+
+ ///
+ /// Two-letter country code (ISO
+ /// 3166-1 alpha-2).
+ ///
+ [JsonProperty("country")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("country")]
+#endif
+ public string Country { get; set; }
+
+ ///
+ /// Address line 1 (e.g., street, PO Box, or company name).
+ ///
+ [JsonProperty("line1")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("line1")]
+#endif
+ public string Line1 { get; set; }
+
+ ///
+ /// Address line 2 (e.g., apartment, suite, unit, or building).
+ ///
+ [JsonProperty("line2")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("line2")]
+#endif
+ public string Line2 { get; set; }
+
+ ///
+ /// ZIP or postal code.
+ ///
+ [JsonProperty("postal_code")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("postal_code")]
+#endif
+ public string PostalCode { get; set; }
+
+ ///
+ /// State, county, province, or region.
+ ///
+ [JsonProperty("state")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("state")]
+#endif
+ public string State { get; set; }
+
+ ///
+ /// Town or cho-me.
+ ///
+ [JsonProperty("town")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("town")]
+#endif
+ public string Town { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonDateOfBirth.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDateOfBirth.cs
similarity index 91%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonDateOfBirth.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDateOfBirth.cs
index ec9e997af7..2a4c9cc316 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonDateOfBirth.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDateOfBirth.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonDateOfBirth : StripeEntity
+ public class AccountPersonDateOfBirth : StripeEntity
{
///
/// The day of birth, between 1 and 31.
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocuments.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocuments.cs
similarity index 76%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonDocuments.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocuments.cs
index 24d0cf583a..d5f64dc7f7 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocuments.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocuments.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonDocuments : StripeEntity
+ public class AccountPersonDocuments : StripeEntity
{
///
/// One or more documents that demonstrate proof that this person is authorized to represent
@@ -16,7 +16,7 @@ public class PersonDocuments : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("company_authorization")]
#endif
- public PersonDocumentsCompanyAuthorization CompanyAuthorization { get; set; }
+ public AccountPersonDocumentsCompanyAuthorization CompanyAuthorization { get; set; }
///
/// One or more documents showing the person’s passport page with photo and personal data.
@@ -25,7 +25,7 @@ public class PersonDocuments : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("passport")]
#endif
- public PersonDocumentsPassport Passport { get; set; }
+ public AccountPersonDocumentsPassport Passport { get; set; }
///
/// An identifying document showing the person's name, either a passport or local ID card.
@@ -34,7 +34,7 @@ public class PersonDocuments : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("primary_verification")]
#endif
- public PersonDocumentsPrimaryVerification PrimaryVerification { get; set; }
+ public AccountPersonDocumentsPrimaryVerification PrimaryVerification { get; set; }
///
/// A document showing address, either a passport, local ID card, or utility bill from a
@@ -44,7 +44,7 @@ public class PersonDocuments : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("secondary_verification")]
#endif
- public PersonDocumentsSecondaryVerification SecondaryVerification { get; set; }
+ public AccountPersonDocumentsSecondaryVerification SecondaryVerification { get; set; }
///
/// One or more documents showing the person’s visa required for living in the country where
@@ -54,6 +54,6 @@ public class PersonDocuments : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("visa")]
#endif
- public PersonDocumentsVisa Visa { get; set; }
+ public AccountPersonDocumentsVisa Visa { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsCompanyAuthorization.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsCompanyAuthorization.cs
similarity index 88%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsCompanyAuthorization.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsCompanyAuthorization.cs
index 2ee668b52c..72720f4dd2 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsCompanyAuthorization.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsCompanyAuthorization.cs
@@ -7,7 +7,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonDocumentsCompanyAuthorization : StripeEntity
+ public class AccountPersonDocumentsCompanyAuthorization : StripeEntity
{
///
/// One or more document IDs returned by a
+ public class AccountPersonDocumentsPassport : StripeEntity
{
///
/// One or more document IDs returned by a
+ public class AccountPersonDocumentsPrimaryVerification : StripeEntity
{
///
/// The file upload
@@ -16,7 +16,7 @@ public class PersonDocumentsPrimaryVerification : StripeEntity
/// The format of the verification document. Currently supports front_back only.
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsPrimaryVerificationFrontBack.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerificationFrontBack.cs
similarity index 90%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsPrimaryVerificationFrontBack.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerificationFrontBack.cs
index 9e87603629..d2429abf92 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsPrimaryVerificationFrontBack.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsPrimaryVerificationFrontBack.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonDocumentsPrimaryVerificationFrontBack : StripeEntity
+ public class AccountPersonDocumentsPrimaryVerificationFrontBack : StripeEntity
{
///
/// A file upload token
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsSecondaryVerification.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerification.cs
similarity index 78%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsSecondaryVerification.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerification.cs
index b821b8f0cf..8cb8f2a8a2 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsSecondaryVerification.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerification.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonDocumentsSecondaryVerification : StripeEntity
+ public class AccountPersonDocumentsSecondaryVerification : StripeEntity
{
///
/// The file upload
@@ -16,7 +16,7 @@ public class PersonDocumentsSecondaryVerification : StripeEntity
/// The format of the verification document. Currently supports front_back only.
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsSecondaryVerificationFrontBack.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerificationFrontBack.cs
similarity index 90%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsSecondaryVerificationFrontBack.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerificationFrontBack.cs
index 969001c546..302bf3427e 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsSecondaryVerificationFrontBack.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsSecondaryVerificationFrontBack.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonDocumentsSecondaryVerificationFrontBack : StripeEntity
+ public class AccountPersonDocumentsSecondaryVerificationFrontBack : StripeEntity
{
///
/// A file upload token
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsVisa.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsVisa.cs
similarity index 91%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsVisa.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsVisa.cs
index 4d972ef5f4..6853e6cf1a 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonDocumentsVisa.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonDocumentsVisa.cs
@@ -7,7 +7,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonDocumentsVisa : StripeEntity
+ public class AccountPersonDocumentsVisa : StripeEntity
{
///
/// One or more document IDs returned by a
+ public class AccountPersonIdNumber : StripeEntity
{
///
/// The ID number type of an individual.
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonRelationship.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs
similarity index 86%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonRelationship.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs
index d46cb48900..1c3e6bcd0d 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonRelationship.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonRelationship : StripeEntity
+ public class AccountPersonRelationship : StripeEntity
{
///
/// Whether the individual is an authorizer of the Account’s legal entity.
@@ -15,7 +15,7 @@ public class PersonRelationship : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("authorizer")]
#endif
- public bool? Authorizer { get; set; }
+ public bool Authorizer { get; set; }
///
/// Whether the individual is a director of the Account’s legal entity. Directors are
@@ -26,7 +26,7 @@ public class PersonRelationship : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("director")]
#endif
- public bool? Director { get; set; }
+ public bool Director { get; set; }
///
/// Whether the individual has significant responsibility to control, manage, or direct the
@@ -36,7 +36,7 @@ public class PersonRelationship : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("executive")]
#endif
- public bool? Executive { get; set; }
+ public bool Executive { get; set; }
///
/// Whether the individual is the legal guardian of the Account’s representative.
@@ -45,7 +45,7 @@ public class PersonRelationship : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("legal_guardian")]
#endif
- public bool? LegalGuardian { get; set; }
+ public bool LegalGuardian { get; set; }
///
/// Whether the individual is an owner of the Account’s legal entity.
@@ -54,7 +54,7 @@ public class PersonRelationship : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("owner")]
#endif
- public bool? Owner { get; set; }
+ public bool Owner { get; set; }
///
/// The percent owned by the individual of the Account’s legal entity.
@@ -63,7 +63,7 @@ public class PersonRelationship : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("percent_ownership")]
#endif
- public string PercentOwnership { get; set; }
+ public decimal PercentOwnership { get; set; }
///
/// Whether the individual is authorized as the primary representative of the Account. This
@@ -76,7 +76,7 @@ public class PersonRelationship : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("representative")]
#endif
- public bool? Representative { get; set; }
+ public bool Representative { get; set; }
///
/// The individual's title (e.g., CEO, Support Engineer).
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddresses.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddresses.cs
similarity index 70%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddresses.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddresses.cs
index 343868e952..9be684f0ab 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddresses.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddresses.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonScriptAddresses : StripeEntity
+ public class AccountPersonScriptAddresses : StripeEntity
{
///
/// Kana Address.
@@ -15,7 +15,7 @@ public class PersonScriptAddresses : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("kana")]
#endif
- public PersonScriptAddressesKana Kana { get; set; }
+ public AccountPersonScriptAddressesKana Kana { get; set; }
///
/// Kanji Address.
@@ -24,6 +24,6 @@ public class PersonScriptAddresses : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("kanji")]
#endif
- public PersonScriptAddressesKanji Kanji { get; set; }
+ public AccountPersonScriptAddressesKanji Kanji { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKana.cs
new file mode 100644
index 0000000000..741b958943
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKana.cs
@@ -0,0 +1,75 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class AccountPersonScriptAddressesKana : StripeEntity
+ {
+ ///
+ /// City, district, suburb, town, or village.
+ ///
+ [JsonProperty("city")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("city")]
+#endif
+ public string City { get; set; }
+
+ ///
+ /// Two-letter country code (ISO
+ /// 3166-1 alpha-2).
+ ///
+ [JsonProperty("country")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("country")]
+#endif
+ public string Country { get; set; }
+
+ ///
+ /// Address line 1 (e.g., street, PO Box, or company name).
+ ///
+ [JsonProperty("line1")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("line1")]
+#endif
+ public string Line1 { get; set; }
+
+ ///
+ /// Address line 2 (e.g., apartment, suite, unit, or building).
+ ///
+ [JsonProperty("line2")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("line2")]
+#endif
+ public string Line2 { get; set; }
+
+ ///
+ /// ZIP or postal code.
+ ///
+ [JsonProperty("postal_code")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("postal_code")]
+#endif
+ public string PostalCode { get; set; }
+
+ ///
+ /// State, county, province, or region.
+ ///
+ [JsonProperty("state")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("state")]
+#endif
+ public string State { get; set; }
+
+ ///
+ /// Town or cho-me.
+ ///
+ [JsonProperty("town")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("town")]
+#endif
+ public string Town { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKanji.cs
new file mode 100644
index 0000000000..663ef13d15
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptAddressesKanji.cs
@@ -0,0 +1,75 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class AccountPersonScriptAddressesKanji : StripeEntity
+ {
+ ///
+ /// City, district, suburb, town, or village.
+ ///
+ [JsonProperty("city")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("city")]
+#endif
+ public string City { get; set; }
+
+ ///
+ /// Two-letter country code (ISO
+ /// 3166-1 alpha-2).
+ ///
+ [JsonProperty("country")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("country")]
+#endif
+ public string Country { get; set; }
+
+ ///
+ /// Address line 1 (e.g., street, PO Box, or company name).
+ ///
+ [JsonProperty("line1")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("line1")]
+#endif
+ public string Line1 { get; set; }
+
+ ///
+ /// Address line 2 (e.g., apartment, suite, unit, or building).
+ ///
+ [JsonProperty("line2")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("line2")]
+#endif
+ public string Line2 { get; set; }
+
+ ///
+ /// ZIP or postal code.
+ ///
+ [JsonProperty("postal_code")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("postal_code")]
+#endif
+ public string PostalCode { get; set; }
+
+ ///
+ /// State, county, province, or region.
+ ///
+ [JsonProperty("state")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("state")]
+#endif
+ public string State { get; set; }
+
+ ///
+ /// Town or cho-me.
+ ///
+ [JsonProperty("town")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("town")]
+#endif
+ public string Town { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNames.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNames.cs
similarity index 72%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNames.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNames.cs
index f2ec24eb20..7053ff0b64 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNames.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNames.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonScriptNames : StripeEntity
+ public class AccountPersonScriptNames : StripeEntity
{
///
/// Persons name in kana script.
@@ -15,7 +15,7 @@ public class PersonScriptNames : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("kana")]
#endif
- public PersonScriptNamesKana Kana { get; set; }
+ public AccountPersonScriptNamesKana Kana { get; set; }
///
/// Persons name in kanji script.
@@ -24,6 +24,6 @@ public class PersonScriptNames : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("kanji")]
#endif
- public PersonScriptNamesKanji Kanji { get; set; }
+ public AccountPersonScriptNamesKanji Kanji { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNamesKana.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKana.cs
similarity index 88%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNamesKana.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKana.cs
index 9cc380965f..922e7dca03 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNamesKana.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKana.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonScriptNamesKana : StripeEntity
+ public class AccountPersonScriptNamesKana : StripeEntity
{
///
/// The person's first or given name.
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNamesKanji.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKanji.cs
similarity index 87%
rename from src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNamesKanji.cs
rename to src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKanji.cs
index 53ff0b2994..699d71e1bd 100644
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptNamesKanji.cs
+++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonScriptNamesKanji.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class PersonScriptNamesKanji : StripeEntity
+ public class AccountPersonScriptNamesKanji : StripeEntity
{
///
/// The person's first or given name.
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs
index ae386ac268..bb82f1bc04 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs
@@ -10,38 +10,6 @@ public class AccountConfigurationCustomerAutomaticIndirectTaxLocation : StripeEn
{
///
/// The identified tax country of the customer.
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoice.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoice.cs
index 0863e19f5b..7cc8f4bd85 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoice.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBillingInvoice.cs
@@ -35,7 +35,7 @@ public class AccountConfigurationCustomerBillingInvoice : StripeEntity
/// The prefix for the customer used to generate unique invoice numbers. Must be 3–12
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs
index 345fbc2e9e..a3d7f45555 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs
@@ -20,38 +20,6 @@ public class AccountConfigurationCustomerShippingAddress : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPaymentsDeclineOn.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPaymentsDeclineOn.cs
index c6a655e8eb..16eedf2a96 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPaymentsDeclineOn.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCardPaymentsDeclineOn.cs
@@ -17,7 +17,7 @@ public class AccountConfigurationMerchantCardPaymentsDeclineOn : StripeEntity
/// Whether Stripe automatically declines charges with an incorrect CVC. This setting only
@@ -27,6 +27,6 @@ public class AccountConfigurationMerchantCardPaymentsDeclineOn : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs
index e5c129922c..41d8527cf9 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs
@@ -13,32 +13,6 @@ public class AccountDefaults : StripeEntity
/// Three-letter ISO currency
/// code, in lowercase. Must be a supported
/// currency.
- /// One of: aed, afn, all, amd, ang, aoa,
- /// ars, aud, awg, azn, bam, bbd, bdt,
- /// bgn, bhd, bif, bmd, bnd, bob, bov,
- /// brl, bsd, btn, bwp, byn, byr, bzd,
- /// cad, cdf, che, chf, chw, clf, clp,
- /// cny, cop, cou, crc, cuc, cup, cve,
- /// czk, djf, dkk, dop, dzd, eek, egp,
- /// ern, etb, eur, fjd, fkp, gbp, gel,
- /// ghc, ghs, gip, gmd, gnf, gtq, gyd,
- /// hkd, hnl, hrk, htg, huf, idr, ils,
- /// inr, iqd, irr, isk, jmd, jod, jpy,
- /// kes, kgs, khr, kmf, kpw, krw, kwd,
- /// kyd, kzt, lak, lbp, lkr, lrd, lsl,
- /// ltl, lvl, lyd, mad, mdl, mga, mkd,
- /// mmk, mnt, mop, mro, mru, mur, mvr,
- /// mwk, mxn, mxv, myr, mzn, nad, ngn,
- /// nio, nok, npr, nzd, omr, pab, pen,
- /// pgk, php, pkr, pln, pyg, qar, ron,
- /// rsd, rub, rwf, sar, sbd, scr, sdg,
- /// sek, sgd, shp, sle, sll, sos, srd,
- /// ssp, std, stn, svc, syp, szl, thb,
- /// tjs, tmt, tnd, top, try, ttd, twd,
- /// tzs, uah, ugx, usd, usdb, usdc, usn,
- /// uyi, uyu, uzs, vef, ves, vnd, vuv,
- /// wst, xaf, xcd, xcg, xof, xpf, yer,
- /// zar, zmk, zmw, zwd, zwg, or zwl.
///
[JsonProperty("currency")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs
index af4381f387..d15bee9335 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs
@@ -31,38 +31,6 @@ public class AccountIdentity : StripeEntity
/// established. This should be an ISO 3166-1 alpha-2 country
/// code.
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsDirectorshipDeclaration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsDirectorshipDeclaration.cs
index 4609c22994..c1422da9e4 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsDirectorshipDeclaration.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsDirectorshipDeclaration.cs
@@ -17,7 +17,7 @@ public class AccountIdentityAttestationsDirectorshipDeclaration : StripeEntity
/// The IP address from which the director attestation was made.
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsOwnershipDeclaration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsOwnershipDeclaration.cs
index 546b838eda..eac0c7b061 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsOwnershipDeclaration.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsOwnershipDeclaration.cs
@@ -18,7 +18,7 @@ public class AccountIdentityAttestationsOwnershipDeclaration : StripeEntity
/// The IP address from which the beneficial owner attestation was made.
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsPersonsProvided.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsPersonsProvided.cs
index 2bb260c843..b3d7068c57 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsPersonsProvided.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsPersonsProvided.cs
@@ -17,7 +17,7 @@ public class AccountIdentityAttestationsPersonsProvided : StripeEntity
/// Whether the company’s executives have been provided. Set this Boolean to true after
@@ -28,7 +28,7 @@ public class AccountIdentityAttestationsPersonsProvided : StripeEntity
/// Whether the company’s owners have been provided. Set this Boolean to true after creating
@@ -39,7 +39,7 @@ public class AccountIdentityAttestationsPersonsProvided : StripeEntity
/// Reason for why the company is exempt from providing ownership information.
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceAccount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceAccount.cs
index 013fa3243e..7a38f158b9 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceAccount.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceAccount.cs
@@ -18,7 +18,7 @@ public class AccountIdentityAttestationsTermsOfServiceAccount : StripeEntity
/// The IP address from which the Account's representative accepted the terms of service.
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs
index b6d4772b64..9da4960180 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs
@@ -18,7 +18,7 @@ public class AccountIdentityAttestationsTermsOfServiceStorer : StripeEntity
/// The IP address from which the Account's representative accepted the terms of service.
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetails.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetails.cs
index bec5bd2351..c9dd01471c 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetails.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetails.cs
@@ -53,7 +53,7 @@ public class AccountIdentityBusinessDetails : StripeEntity
/// The provided ID numbers of a business entity.
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs
index a93b75b145..4163476b76 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs
@@ -20,38 +20,6 @@ public class AccountIdentityBusinessDetailsAddress : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs
index 2b11c58826..c53353b13e 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs
@@ -20,38 +20,6 @@ public class AccountIdentityBusinessDetailsScriptAddressesKana : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs
index 8961139591..38f32eb9bb 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs
@@ -20,38 +20,6 @@ public class AccountIdentityBusinessDetailsScriptAddressesKanji : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs
index 43450dbead..ff9d7aedd5 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs
@@ -142,38 +142,6 @@ public class AccountIdentityIndividual : StripeEntity
///
/// The countries where the individual is a national. Two-letter country code (ISO 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("nationalities")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs
index 48f7a957fc..2a1f483837 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs
@@ -20,38 +20,6 @@ public class AccountIdentityIndividualAdditionalAddress : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfServiceAccount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfServiceAccount.cs
index 10c1737f3f..3abc65b4eb 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfServiceAccount.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalTermsOfServiceAccount.cs
@@ -18,7 +18,7 @@ public class AccountIdentityIndividualAdditionalTermsOfServiceAccount : StripeEn
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("date")]
#endif
- public DateTime? Date { get; set; }
+ public DateTime Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
/// The IP address from which the Account's representative accepted the terms of service.
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs
index 835b117e97..da6bcd85c3 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs
@@ -20,38 +20,6 @@ public class AccountIdentityIndividualAddress : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs
index 7e08ecf5cd..699691d73f 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs
@@ -15,7 +15,7 @@ public class AccountIdentityIndividualRelationship : StripeEntity
/// Whether the individual is a director of the Account’s legal entity. Directors are
@@ -26,7 +26,7 @@ public class AccountIdentityIndividualRelationship : StripeEntity
/// Whether the individual has significant responsibility to control, manage, or direct the
@@ -36,7 +36,7 @@ public class AccountIdentityIndividualRelationship : StripeEntity
/// Whether the individual is the legal guardian of the Account’s representative.
@@ -45,7 +45,7 @@ public class AccountIdentityIndividualRelationship : StripeEntity
/// Whether the individual is an owner of the Account’s legal entity.
@@ -54,7 +54,7 @@ public class AccountIdentityIndividualRelationship : StripeEntity
/// The percent owned by the individual of the Account’s legal entity.
@@ -63,7 +63,7 @@ public class AccountIdentityIndividualRelationship : StripeEntity
/// Whether the individual is authorized as the primary representative of the Account. This
@@ -76,7 +76,7 @@ public class AccountIdentityIndividualRelationship : StripeEntity
/// The individual's title (e.g., CEO, Support Engineer).
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs
index 07df059d5e..3552bd2b1a 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs
@@ -20,38 +20,6 @@ public class AccountIdentityIndividualScriptAddressesKana : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs
index c0e1f3e291..4904b33207 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs
@@ -20,38 +20,6 @@ public class AccountIdentityIndividualScriptAddressesKanji : StripeEntity
/// Two-letter country code (ISO
/// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummaryMinimumDeadline.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummaryMinimumDeadline.cs
index b7174d1f8c..8e5985b959 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummaryMinimumDeadline.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsSummaryMinimumDeadline.cs
@@ -26,6 +26,6 @@ public class AccountRequirementsSummaryMinimumDeadline : StripeEntity, IHasId, IHasObje
public string Object { get; set; }
///
- /// URL for user to claim sandbox into their existing Stripe account. The value will be null
- /// if the sandbox status is claimed or expired.
+ /// Keys that can be used to set up an integration for this sandbox and operate on the
+ /// account.
///
- [JsonProperty("claim_url")]
+ [JsonProperty("api_keys")]
#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("claim_url")]
+ [STJS.JsonPropertyName("api_keys")]
#endif
- public string ClaimUrl { get; set; }
+ public ClaimableSandboxApiKeys ApiKeys { get; set; }
///
- /// The timestamp the sandbox was claimed. The value will be null if the sandbox status is
- /// not claimed.
+ /// URL for user to claim sandbox into their existing Stripe account.
///
- [JsonProperty("claimed_at")]
+ [JsonProperty("claim_url")]
#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("claimed_at")]
+ [STJS.JsonPropertyName("claim_url")]
#endif
- public DateTime? ClaimedAt { get; set; }
+ public string ClaimUrl { get; set; }
///
/// When the sandbox is created.
@@ -66,16 +65,6 @@ public class ClaimableSandbox : StripeEntity, IHasId, IHasObje
#endif
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
- ///
- /// The timestamp the sandbox will expire. The value will be null if the sandbox is
- /// claimed.
- ///
- [JsonProperty("expires_at")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("expires_at")]
-#endif
- public DateTime? ExpiresAt { get; set; }
-
///
/// Has the value true if the object exists in live mode or the value false if
/// the object exists in test mode.
@@ -94,24 +83,5 @@ public class ClaimableSandbox : StripeEntity, IHasId, IHasObje
[STJS.JsonPropertyName("prefill")]
#endif
public ClaimableSandboxPrefill Prefill { get; set; }
-
- ///
- /// Data about the Stripe sandbox object.
- ///
- [JsonProperty("sandbox_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("sandbox_details")]
-#endif
- public ClaimableSandboxSandboxDetails SandboxDetails { get; set; }
-
- ///
- /// Status of the sandbox. One of unclaimed, expired, claimed.
- /// One of: claimed, expired, or unclaimed.
- ///
- [JsonProperty("status")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("status")]
-#endif
- public string Status { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetailsApiKeys.cs b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxApiKeys.cs
similarity index 91%
rename from src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetailsApiKeys.cs
rename to src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxApiKeys.cs
index 2c204f3847..b846bdd5c6 100644
--- a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetailsApiKeys.cs
+++ b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxApiKeys.cs
@@ -6,7 +6,7 @@ namespace Stripe.V2.Core
using STJS = System.Text.Json.Serialization;
#endif
- public class ClaimableSandboxSandboxDetailsApiKeys : StripeEntity
+ public class ClaimableSandboxApiKeys : StripeEntity
{
///
/// Used to communicate with Stripe's MCP server.
diff --git a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxPrefill.cs b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxPrefill.cs
index 43566804ed..b8eacff98c 100644
--- a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxPrefill.cs
+++ b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxPrefill.cs
@@ -12,38 +12,6 @@ public class ClaimableSandboxPrefill : StripeEntity
/// Country in which the account holder resides, or in which the business is legally
/// established. Use two-letter country code (ISO 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetails.cs b/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetails.cs
deleted file mode 100644
index 566800c6d9..0000000000
--- a/src/Stripe.net/Entities/V2/Core/ClaimableSandboxes/ClaimableSandboxSandboxDetails.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Core
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ClaimableSandboxSandboxDetails : StripeEntity
- {
- ///
- /// The sandbox's Stripe account ID.
- ///
- [JsonProperty("account")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("account")]
-#endif
- public string Account { get; set; }
-
- ///
- /// Keys that can be used to set up an integration for this sandbox and operate on the
- /// account.
- ///
- [JsonProperty("api_keys")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("api_keys")]
-#endif
- public ClaimableSandboxSandboxDetailsApiKeys ApiKeys { get; set; }
-
- ///
- /// The livemode sandbox Stripe account ID. This field is only set if the user activates
- /// their sandbox and chooses to install your platform's Stripe App in their live account.
- ///
- [JsonProperty("owner_account")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("owner_account")]
-#endif
- public string OwnerAccount { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalAddress.cs b/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalAddress.cs
deleted file mode 100644
index 400d19984f..0000000000
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalAddress.cs
+++ /dev/null
@@ -1,116 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Core
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class PersonAdditionalAddress : StripeEntity
- {
- ///
- /// City, district, suburb, town, or village.
- ///
- [JsonProperty("city")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("city")]
-#endif
- public string City { get; set; }
-
- ///
- /// Two-letter country code (ISO
- /// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
- ///
- [JsonProperty("country")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("country")]
-#endif
- public string Country { get; set; }
-
- ///
- /// Address line 1 (e.g., street, PO Box, or company name).
- ///
- [JsonProperty("line1")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("line1")]
-#endif
- public string Line1 { get; set; }
-
- ///
- /// Address line 2 (e.g., apartment, suite, unit, or building).
- ///
- [JsonProperty("line2")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("line2")]
-#endif
- public string Line2 { get; set; }
-
- ///
- /// ZIP or postal code.
- ///
- [JsonProperty("postal_code")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("postal_code")]
-#endif
- public string PostalCode { get; set; }
-
- ///
- /// Purpose of additional address.
- ///
- [JsonProperty("purpose")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("purpose")]
-#endif
- public string Purpose { get; set; }
-
- ///
- /// State, county, province, or region.
- ///
- [JsonProperty("state")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("state")]
-#endif
- public string State { get; set; }
-
- ///
- /// Town or cho-me.
- ///
- [JsonProperty("town")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("town")]
-#endif
- public string Town { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonAddress.cs b/src/Stripe.net/Entities/V2/Core/Persons/PersonAddress.cs
deleted file mode 100644
index 5a5feb6beb..0000000000
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonAddress.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Core
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class PersonAddress : StripeEntity
- {
- ///
- /// City, district, suburb, town, or village.
- ///
- [JsonProperty("city")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("city")]
-#endif
- public string City { get; set; }
-
- ///
- /// Two-letter country code (ISO
- /// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
- ///
- [JsonProperty("country")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("country")]
-#endif
- public string Country { get; set; }
-
- ///
- /// Address line 1 (e.g., street, PO Box, or company name).
- ///
- [JsonProperty("line1")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("line1")]
-#endif
- public string Line1 { get; set; }
-
- ///
- /// Address line 2 (e.g., apartment, suite, unit, or building).
- ///
- [JsonProperty("line2")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("line2")]
-#endif
- public string Line2 { get; set; }
-
- ///
- /// ZIP or postal code.
- ///
- [JsonProperty("postal_code")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("postal_code")]
-#endif
- public string PostalCode { get; set; }
-
- ///
- /// State, county, province, or region.
- ///
- [JsonProperty("state")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("state")]
-#endif
- public string State { get; set; }
-
- ///
- /// Town or cho-me.
- ///
- [JsonProperty("town")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("town")]
-#endif
- public string Town { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKana.cs
deleted file mode 100644
index abf3ac5a83..0000000000
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKana.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Core
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class PersonScriptAddressesKana : StripeEntity
- {
- ///
- /// City, district, suburb, town, or village.
- ///
- [JsonProperty("city")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("city")]
-#endif
- public string City { get; set; }
-
- ///
- /// Two-letter country code (ISO
- /// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
- ///
- [JsonProperty("country")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("country")]
-#endif
- public string Country { get; set; }
-
- ///
- /// Address line 1 (e.g., street, PO Box, or company name).
- ///
- [JsonProperty("line1")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("line1")]
-#endif
- public string Line1 { get; set; }
-
- ///
- /// Address line 2 (e.g., apartment, suite, unit, or building).
- ///
- [JsonProperty("line2")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("line2")]
-#endif
- public string Line2 { get; set; }
-
- ///
- /// ZIP or postal code.
- ///
- [JsonProperty("postal_code")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("postal_code")]
-#endif
- public string PostalCode { get; set; }
-
- ///
- /// State, county, province, or region.
- ///
- [JsonProperty("state")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("state")]
-#endif
- public string State { get; set; }
-
- ///
- /// Town or cho-me.
- ///
- [JsonProperty("town")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("town")]
-#endif
- public string Town { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKanji.cs
deleted file mode 100644
index 06fd558ffc..0000000000
--- a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKanji.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Core
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class PersonScriptAddressesKanji : StripeEntity
- {
- ///
- /// City, district, suburb, town, or village.
- ///
- [JsonProperty("city")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("city")]
-#endif
- public string City { get; set; }
-
- ///
- /// Two-letter country code (ISO
- /// 3166-1 alpha-2).
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
- ///
- [JsonProperty("country")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("country")]
-#endif
- public string Country { get; set; }
-
- ///
- /// Address line 1 (e.g., street, PO Box, or company name).
- ///
- [JsonProperty("line1")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("line1")]
-#endif
- public string Line1 { get; set; }
-
- ///
- /// Address line 2 (e.g., apartment, suite, unit, or building).
- ///
- [JsonProperty("line2")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("line2")]
-#endif
- public string Line2 { get; set; }
-
- ///
- /// ZIP or postal code.
- ///
- [JsonProperty("postal_code")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("postal_code")]
-#endif
- public string PostalCode { get; set; }
-
- ///
- /// State, county, province, or region.
- ///
- [JsonProperty("state")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("state")]
-#endif
- public string State { get; set; }
-
- ///
- /// Town or cho-me.
- ///
- [JsonProperty("town")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("town")]
-#endif
- public string Town { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/DeletedObject/DeletedObject.cs b/src/Stripe.net/Entities/V2/DeletedObject/DeletedObject.cs
new file mode 100644
index 0000000000..3fca381bbc
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/DeletedObject/DeletedObject.cs
@@ -0,0 +1,30 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class DeletedObject : StripeEntity, IHasId, IHasObject
+ {
+ ///
+ /// The ID of the object that's being deleted.
+ ///
+ [JsonProperty("id")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("id")]
+#endif
+ public string Id { get; set; }
+
+ ///
+ /// String representing the type of the object that has been deleted. Objects of the same
+ /// type share the same value of the object field.
+ ///
+ [JsonProperty("object")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("object")]
+#endif
+ public string Object { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs
index 1125979063..861b2aebc4 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs
@@ -47,38 +47,6 @@ public class FinancialAccount : StripeEntity, IHasId, IHasMeta
///
/// Open Enum. Two-letter country code that represents the country where the LegalEntity
/// associated with the FinancialAccount is based in.
- /// One of: ad, ae, af, ag, ai, al, am,
- /// ao, aq, ar, as, at, au, aw, ax,
- /// az, ba, bb, bd, be, bf, bg, bh,
- /// bi, bj, bl, bm, bn, bo, bq, br,
- /// bs, bt, bv, bw, by, bz, ca, cc,
- /// cd, cf, cg, ch, ci, ck, cl, cm,
- /// cn, co, cr, cu, cv, cw, cx, cy,
- /// cz, de, dj, dk, dm, do, dz, ec,
- /// ee, eg, eh, er, es, et, fi, fj,
- /// fk, fm, fo, fr, ga, gb, gd, ge,
- /// gf, gg, gh, gi, gl, gm, gn, gp,
- /// gq, gr, gs, gt, gu, gw, gy, hk,
- /// hm, hn, hr, ht, hu, id, ie, il,
- /// im, in, io, iq, ir, is, it, je,
- /// jm, jo, jp, ke, kg, kh, ki, km,
- /// kn, kp, kr, kw, ky, kz, la, lb,
- /// lc, li, lk, lr, ls, lt, lu, lv,
- /// ly, ma, mc, md, me, mf, mg, mh,
- /// mk, ml, mm, mn, mo, mp, mq, mr,
- /// ms, mt, mu, mv, mw, mx, my, mz,
- /// na, nc, ne, nf, ng, ni, nl, no,
- /// np, nr, nu, nz, om, pa, pe, pf,
- /// pg, ph, pk, pl, pm, pn, pr, ps,
- /// pt, pw, py, qa, qz, re, ro, rs,
- /// ru, rw, sa, sb, sc, sd, se, sg,
- /// sh, si, sj, sk, sl, sm, sn, so,
- /// sr, ss, st, sv, sx, sy, sz, tc,
- /// td, tf, tg, th, tj, tk, tl, tm,
- /// tn, to, tr, tt, tv, tw, tz, ua,
- /// ug, um, us, uy, uz, va, vc, ve,
- /// vg, vi, vn, vu, wf, ws, xx, ye,
- /// yt, za, zm, or zw.
///
[JsonProperty("country")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountStorage.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountStorage.cs
index abed85183a..312e1e7c5b 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountStorage.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountStorage.cs
@@ -11,32 +11,6 @@ public class FinancialAccountStorage : StripeEntity
{
///
/// The currencies that this FinancialAccount can hold.
- /// One of: aed, afn, all, amd, ang, aoa,
- /// ars, aud, awg, azn, bam, bbd, bdt,
- /// bgn, bhd, bif, bmd, bnd, bob, bov,
- /// brl, bsd, btn, bwp, byn, byr, bzd,
- /// cad, cdf, che, chf, chw, clf, clp,
- /// cny, cop, cou, crc, cuc, cup, cve,
- /// czk, djf, dkk, dop, dzd, eek, egp,
- /// ern, etb, eur, fjd, fkp, gbp, gel,
- /// ghc, ghs, gip, gmd, gnf, gtq, gyd,
- /// hkd, hnl, hrk, htg, huf, idr, ils,
- /// inr, iqd, irr, isk, jmd, jod, jpy,
- /// kes, kgs, khr, kmf, kpw, krw, kwd,
- /// kyd, kzt, lak, lbp, lkr, lrd, lsl,
- /// ltl, lvl, lyd, mad, mdl, mga, mkd,
- /// mmk, mnt, mop, mro, mru, mur, mvr,
- /// mwk, mxn, mxv, myr, mzn, nad, ngn,
- /// nio, nok, npr, nzd, omr, pab, pen,
- /// pgk, php, pkr, pln, pyg, qar, ron,
- /// rsd, rub, rwf, sar, sbd, scr, sdg,
- /// sek, sgd, shp, sle, sll, sos, srd,
- /// ssp, std, stn, svc, syp, szl, thb,
- /// tjs, tmt, tnd, top, try, ttd, twd,
- /// tzs, uah, ugx, usd, usdb, usdc, usn,
- /// uyi, uyu, uzs, vef, ves, vnd, vuv,
- /// wst, xaf, xcd, xcg, xof, xpf, yer,
- /// zar, zmk, zmw, zwd, zwg, or zwl.
///
[JsonProperty("holds_currencies")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs
index 4b77bdf04a..53dae5e16b 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs
@@ -55,32 +55,6 @@ public class FinancialAddress : StripeEntity, IHasId, IHasObje
///
/// Open Enum. The currency the FinancialAddress supports.
- /// One of: aed, afn, all, amd, ang, aoa,
- /// ars, aud, awg, azn, bam, bbd, bdt,
- /// bgn, bhd, bif, bmd, bnd, bob, bov,
- /// brl, bsd, btn, bwp, byn, byr, bzd,
- /// cad, cdf, che, chf, chw, clf, clp,
- /// cny, cop, cou, crc, cuc, cup, cve,
- /// czk, djf, dkk, dop, dzd, eek, egp,
- /// ern, etb, eur, fjd, fkp, gbp, gel,
- /// ghc, ghs, gip, gmd, gnf, gtq, gyd,
- /// hkd, hnl, hrk, htg, huf, idr, ils,
- /// inr, iqd, irr, isk, jmd, jod, jpy,
- /// kes, kgs, khr, kmf, kpw, krw, kwd,
- /// kyd, kzt, lak, lbp, lkr, lrd, lsl,
- /// ltl, lvl, lyd, mad, mdl, mga, mkd,
- /// mmk, mnt, mop, mro, mru, mur, mvr,
- /// mwk, mxn, mxv, myr, mzn, nad, ngn,
- /// nio, nok, npr, nzd, omr, pab, pen,
- /// pgk, php, pkr, pln, pyg, qar, ron,
- /// rsd, rub, rwf, sar, sbd, scr, sdg,
- /// sek, sgd, shp, sle, sll, sos, srd,
- /// ssp, std, stn, svc, syp, szl, thb,
- /// tjs, tmt, tnd, top, try, ttd, twd,
- /// tzs, uah, ugx, usd, usdb, usdc, usn,
- /// uyi, uyu, uzs, vef, ves, vnd, vuv,
- /// wst, xaf, xcd, xcg, xof, xpf, yer,
- /// zar, zmk, zmw, zwd, zwg, or zwl.
///
[JsonProperty("currency")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistory.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistory.cs
index 3717c1d5d8..d3b18b9ef0 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistory.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistory.cs
@@ -2,6 +2,7 @@
namespace Stripe.V2.MoneyManagement
{
using System;
+ using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
@@ -73,7 +74,7 @@ public class InboundTransferTransferHistory : StripeEntity BankDebitProcessing { get; set; }
///
/// The history entry for a queued InboundTransfer.
@@ -82,7 +83,7 @@ public class InboundTransferTransferHistory : StripeEntity BankDebitQueued { get; set; }
///
/// The history entry for a returned InboundTransfer.
@@ -100,6 +101,6 @@ public class InboundTransferTransferHistory : StripeEntity BankDebitSucceeded { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitProcessing.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitProcessing.cs
deleted file mode 100644
index 19d6cde79b..0000000000
--- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitProcessing.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.MoneyManagement
-{
- public class InboundTransferTransferHistoryBankDebitProcessing : StripeEntity
- {
- }
-}
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitQueued.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitQueued.cs
deleted file mode 100644
index d985a9ef84..0000000000
--- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitQueued.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.MoneyManagement
-{
- public class InboundTransferTransferHistoryBankDebitQueued : StripeEntity
- {
- }
-}
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitSucceeded.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitSucceeded.cs
deleted file mode 100644
index e8fc8891c7..0000000000
--- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistoryBankDebitSucceeded.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.MoneyManagement
-{
- public class InboundTransferTransferHistoryBankDebitSucceeded : StripeEntity
- {
- }
-}
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs
index 1e018f24ed..6fd1d7e924 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs
@@ -90,7 +90,7 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("expected_arrival_date")]
#endif
- public DateTime? ExpectedArrivalDate { get; set; }
+ public DateTime ExpectedArrivalDate { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
/// The FinancialAccount that funds were pulled from.
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusTransitions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusTransitions.cs
index bfc7806af7..5f35f64f8c 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusTransitions.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusTransitions.cs
@@ -18,7 +18,7 @@ public class OutboundPaymentStatusTransitions : StripeEntity
/// Timestamp describing when an OutboundPayment changed status to failed.
@@ -29,7 +29,7 @@ public class OutboundPaymentStatusTransitions : StripeEntity
/// Timestamp describing when an OutboundPayment changed status to posted.
@@ -40,7 +40,7 @@ public class OutboundPaymentStatusTransitions : StripeEntity
/// Timestamp describing when an OutboundPayment changed status to returned.
@@ -51,6 +51,6 @@ public class OutboundPaymentStatusTransitions : StripeEntity, IHasId, IH
public OutboundSetupIntentNextAction NextAction { get; set; }
///
- /// Information about the payout method that’s created and linked to this outbound setup
- /// intent.
+ /// Use the PayoutMethods API to list and interact with PayoutMethod objects.
///
[JsonProperty("payout_method")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs
index 15f98b642a..6d4dd73d28 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs
@@ -90,7 +90,7 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("expected_arrival_date")]
#endif
- public DateTime? ExpectedArrivalDate { get; set; }
+ public DateTime ExpectedArrivalDate { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
/// The FinancialAccount that funds were pulled from.
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusTransitions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusTransitions.cs
index 8a4604cca9..6b580921a9 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusTransitions.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusTransitions.cs
@@ -18,7 +18,7 @@ public class OutboundTransferStatusTransitions : StripeEntity
/// Timestamp describing when an OutboundTransfer changed status to failed.
@@ -29,7 +29,7 @@ public class OutboundTransferStatusTransitions : StripeEntity
/// Timestamp describing when an OutboundTransfer changed status to posted.
@@ -40,7 +40,7 @@ public class OutboundTransferStatusTransitions : StripeEntity
/// Timestamp describing when an OutboundTransfer changed status to returned.
@@ -51,6 +51,6 @@ public class OutboundTransferStatusTransitions : StripeEntity
{
+ ///
+ /// The default content of the localizable string.
+ ///
[JsonProperty("content")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("content")]
#endif
public string Content { get; set; }
+ ///
+ /// A unique key representing the instance of this localizable string.
+ ///
[JsonProperty("localization_key")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("localization_key")]
diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditStatusTransitions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditStatusTransitions.cs
index a7a0d93258..e97779bf19 100644
--- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditStatusTransitions.cs
+++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditStatusTransitions.cs
@@ -18,7 +18,7 @@ public class ReceivedCreditStatusTransitions : StripeEntity
/// Timestamp describing when the ReceivedCredit changed status to returned.
@@ -29,7 +29,7 @@ public class ReceivedCreditStatusTransitions : StripeEntity
/// Timestamp describing when the ReceivedCredit was marked as succeeded. Represented
@@ -40,6 +40,6 @@ public class ReceivedCreditStatusTransitions : StripeEntity
/// The time when the ReceivedDebit was marked as failed. Represented as a RFC 3339
@@ -29,7 +29,7 @@ public class ReceivedDebitStatusTransitions : StripeEntity
/// The time when the ReceivedDebit was marked as succeeded. Represented as a RFC
@@ -40,6 +40,6 @@ public class ReceivedDebitStatusTransitions : StripeEntity
/// The time at which the Transaction became void. Only present if status == void.
@@ -25,6 +25,6 @@ public class TransactionStatusTransitions : StripeEntity
/// The account (if any) that the payment is attributed to for tax reporting, and where
diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRun.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRun.cs
deleted file mode 100644
index a0b08bdbab..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRun.cs
+++ /dev/null
@@ -1,123 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using System;
- using System.Collections.Generic;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// The ReportRun object represents an instance of a Report generated with
- /// specific run parameters. Once the object is created, Stripe begins processing the
- /// report. When the report has finished running, it will give you a reference to the
- /// results.
- ///
- public class ReportRun : StripeEntity, IHasId, IHasObject
- {
- ///
- /// The unique identifier of the ReportRun object.
- ///
- [JsonProperty("id")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("id")]
-#endif
- public string Id { get; set; }
-
- ///
- /// String representing the object's type. Objects of the same type share the same value of
- /// the object field.
- ///
- [JsonProperty("object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("object")]
-#endif
- public string Object { get; set; }
-
- ///
- /// Time at which the object was created.
- ///
- [JsonProperty("created")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("created")]
-#endif
- public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
-
- ///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
- ///
- [JsonProperty("livemode")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("livemode")]
-#endif
- public bool Livemode { get; set; }
-
- ///
- /// The unique identifier of the Report object which was run.
- ///
- [JsonProperty("report")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("report")]
-#endif
- public string Report { get; set; }
-
- ///
- /// The human-readable name of the Report which was run.
- ///
- [JsonProperty("report_name")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("report_name")]
-#endif
- public string ReportName { get; set; }
-
- ///
- /// The parameters used to customize the generation of the report.
- ///
- [JsonProperty("report_parameters")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("report_parameters")]
-#endif
- public Dictionary ReportParameters { get; set; }
-
- ///
- /// Details how to retrieve the results of a successfully completed ReportRun.
- ///
- [JsonProperty("result")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("result")]
-#endif
- public ReportRunResult Result { get; set; }
-
- ///
- /// The options specified for customizing the output file of the ReportRun.
- ///
- [JsonProperty("result_options")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("result_options")]
-#endif
- public ReportRunResultOptions ResultOptions { get; set; }
-
- ///
- /// The current status of the ReportRun.
- /// One of: failed, running, or succeeded.
- ///
- [JsonProperty("status")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("status")]
-#endif
- public string Status { get; set; }
-
- ///
- /// Additional details about the current state of the ReportRun. The field is
- /// currently only populated when a ReportRun is in the failed state,
- /// providing more information about why the report failed to generate successfully.
- ///
- [JsonProperty("status_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("status_details")]
-#endif
- public Dictionary StatusDetails { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunReportParameters.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunReportParameters.cs
deleted file mode 100644
index dd0cbccb9c..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunReportParameters.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using System;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportRunReportParameters : StripeEntity
- {
- ///
- /// Parameter with an array data type.
- ///
- [JsonProperty("array_value")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("array_value")]
-#endif
- public ReportRunReportParametersArrayValue ArrayValue { get; set; }
-
- ///
- /// Parameter with a string data type.
- ///
- [JsonProperty("string_value")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("string_value")]
-#endif
- public string StringValue { get; set; }
-
- ///
- /// Parameter with a timestamp data type.
- ///
- [JsonProperty("timestamp_value")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("timestamp_value")]
-#endif
- public DateTime? TimestampValue { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunReportParametersArrayValue.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunReportParametersArrayValue.cs
deleted file mode 100644
index cef47f1bf7..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunReportParametersArrayValue.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using System.Collections.Generic;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportRunReportParametersArrayValue : StripeEntity
- {
- ///
- /// The list of string values in the array.
- ///
- [JsonProperty("items")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("items")]
-#endif
- public List Items { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResult.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResult.cs
deleted file mode 100644
index 8f46067333..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResult.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportRunResult : StripeEntity
- {
- ///
- /// Contains metadata about the file produced by the ReportRun, including its content
- /// type, size, and a URL to download its contents.
- ///
- [JsonProperty("file")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("file")]
-#endif
- public ReportRunResultFile File { get; set; }
-
- ///
- /// The type of the ReportRun result.
- ///
- [JsonProperty("type")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("type")]
-#endif
- public string Type { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultFile.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultFile.cs
deleted file mode 100644
index b6a0372eb2..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultFile.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportRunResultFile : StripeEntity
- {
- ///
- /// The content type of the file.
- /// One of: csv, or zip.
- ///
- [JsonProperty("content_type")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("content_type")]
-#endif
- public string ContentType { get; set; }
-
- ///
- /// A pre-signed URL that allows secure, time-limited access to download the file.
- ///
- [JsonProperty("download_url")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("download_url")]
-#endif
- public ReportRunResultFileDownloadUrl DownloadUrl { get; set; }
-
- ///
- /// The total size of the file in bytes.
- ///
- [JsonProperty("size")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("size")]
-#endif
- public long Size { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultFileDownloadUrl.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultFileDownloadUrl.cs
deleted file mode 100644
index eb4bf879d3..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultFileDownloadUrl.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using System;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportRunResultFileDownloadUrl : StripeEntity
- {
- ///
- /// The time that the URL expires.
- ///
- [JsonProperty("expires_at")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("expires_at")]
-#endif
- public DateTime? ExpiresAt { get; set; }
-
- ///
- /// The URL that can be used for accessing the file.
- ///
- [JsonProperty("url")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("url")]
-#endif
- public string Url { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultOptions.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultOptions.cs
deleted file mode 100644
index 3e27e36c7a..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResultOptions.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportRunResultOptions : StripeEntity
- {
- ///
- /// If set, the generated report file will be compressed into a ZIP folder. This is useful
- /// for reducing file size and download time for large reports.
- ///
- [JsonProperty("compress_file")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("compress_file")]
-#endif
- public bool? CompressFile { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunStatusDetails.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunStatusDetails.cs
deleted file mode 100644
index d43391b7f9..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunStatusDetails.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportRunStatusDetails : StripeEntity
- {
- ///
- /// Error code categorizing the reason the ReportRun failed.
- /// One of: file_size_above_limit, or internal_error.
- ///
- [JsonProperty("error_code")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("error_code")]
-#endif
- public string ErrorCode { get; set; }
-
- ///
- /// Error message with additional details about the failure.
- ///
- [JsonProperty("error_message")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("error_message")]
-#endif
- public string ErrorMessage { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/Reports/Report.cs b/src/Stripe.net/Entities/V2/Reporting/Reports/Report.cs
deleted file mode 100644
index 32e5dc1dce..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/Reports/Report.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using System.Collections.Generic;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// The Report resource represents a customizable report template that provides insights
- /// into various aspects of your Stripe integration.
- ///
- public class Report : StripeEntity, IHasId, IHasObject
- {
- ///
- /// The unique identifier of the Report object.
- ///
- [JsonProperty("id")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("id")]
-#endif
- public string Id { get; set; }
-
- ///
- /// String representing the object's type. Objects of the same type share the same value of
- /// the object field.
- ///
- [JsonProperty("object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("object")]
-#endif
- public string Object { get; set; }
-
- ///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
- ///
- [JsonProperty("livemode")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("livemode")]
-#endif
- public bool Livemode { get; set; }
-
- ///
- /// The human-readable name of the Report.
- ///
- [JsonProperty("name")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("name")]
-#endif
- public string Name { get; set; }
-
- ///
- /// Specification of the parameters that the Report accepts. It details each
- /// parameter's name, description, whether it is required, and any validations performed.
- ///
- [JsonProperty("parameters")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("parameters")]
-#endif
- public Dictionary Parameters { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParameters.cs b/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParameters.cs
deleted file mode 100644
index 9f36768272..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParameters.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportParameters : StripeEntity
- {
- ///
- /// For array parameters, provides details about the array elements.
- ///
- [JsonProperty("array_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("array_details")]
-#endif
- public ReportParametersArrayDetails ArrayDetails { get; set; }
-
- ///
- /// Explains the purpose and usage of the parameter.
- ///
- [JsonProperty("description")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("description")]
-#endif
- public string Description { get; set; }
-
- ///
- /// For enum parameters, provides the list of allowed values.
- ///
- [JsonProperty("enum_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("enum_details")]
-#endif
- public ReportParametersEnumDetails EnumDetails { get; set; }
-
- ///
- /// Indicates whether the parameter must be provided.
- ///
- [JsonProperty("required")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("required")]
-#endif
- public bool Required { get; set; }
-
- ///
- /// For timestamp parameters, specifies the allowed date range.
- ///
- [JsonProperty("timestamp_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("timestamp_details")]
-#endif
- public ReportParametersTimestampDetails TimestampDetails { get; set; }
-
- ///
- /// The data type of the parameter.
- /// One of: array, enum, string, or timestamp.
- ///
- [JsonProperty("type")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("type")]
-#endif
- public string Type { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersArrayDetails.cs b/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersArrayDetails.cs
deleted file mode 100644
index b2d13551ff..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersArrayDetails.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportParametersArrayDetails : StripeEntity
- {
- ///
- /// Data type of the elements in the array.
- ///
- [JsonProperty("element_type")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("element_type")]
-#endif
- public string ElementType { get; set; }
-
- ///
- /// Details about enum elements in the array.
- ///
- [JsonProperty("enum_details")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("enum_details")]
-#endif
- public ReportParametersArrayDetailsEnumDetails EnumDetails { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersArrayDetailsEnumDetails.cs b/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersArrayDetailsEnumDetails.cs
deleted file mode 100644
index 0be53e65fd..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersArrayDetailsEnumDetails.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using System.Collections.Generic;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportParametersArrayDetailsEnumDetails : StripeEntity
- {
- ///
- /// Allowed values of the enum.
- ///
- [JsonProperty("allowed_values")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("allowed_values")]
-#endif
- public List AllowedValues { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersEnumDetails.cs b/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersEnumDetails.cs
deleted file mode 100644
index 03054e31d3..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersEnumDetails.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using System.Collections.Generic;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportParametersEnumDetails : StripeEntity
- {
- ///
- /// Allowed values of the enum.
- ///
- [JsonProperty("allowed_values")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("allowed_values")]
-#endif
- public List AllowedValues { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersTimestampDetails.cs b/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersTimestampDetails.cs
deleted file mode 100644
index 241b5ba234..0000000000
--- a/src/Stripe.net/Entities/V2/Reporting/Reports/ReportParametersTimestampDetails.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Reporting
-{
- using System;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class ReportParametersTimestampDetails : StripeEntity
- {
- ///
- /// Maximum permitted timestamp which can be requested.
- ///
- [JsonProperty("max")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("max")]
-#endif
- public DateTime Max { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
-
- ///
- /// Minimum permitted timestamp which can be requested.
- ///
- [JsonProperty("min")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("min")]
-#endif
- public DateTime Min { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
- }
-}
diff --git a/src/Stripe.net/Events/PushedV2ReportingReportRunUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2BillingCadenceErroredEvent.cs
similarity index 57%
rename from src/Stripe.net/Events/PushedV2ReportingReportRunUpdatedEvent.cs
rename to src/Stripe.net/Events/PushedV2BillingCadenceErroredEvent.cs
index 008c105f0b..78e9ae23c5 100644
--- a/src/Stripe.net/Events/PushedV2ReportingReportRunUpdatedEvent.cs
+++ b/src/Stripe.net/Events/PushedV2BillingCadenceErroredEvent.cs
@@ -8,9 +8,9 @@ namespace Stripe.Events
#endif
///
- /// Occurs when a ReportRun is updated.
+ /// Occurs when a billing Cadence encounters an error during a tick.
///
- public class PushedV2ReportingReportRunUpdatedEvent : V2.PushedEvent
+ public class PushedV2BillingCadenceErroredEvent : V2.PushedEvent
{
///
/// Object containing the reference to API resource relevant to the event.
@@ -26,27 +26,27 @@ public class PushedV2ReportingReportRunUpdatedEvent : V2.PushedEvent
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
///
- public Task FetchRelatedObjectAsync()
+ public Task FetchRelatedObjectAsync()
{
- return this.FetchRelatedObjectAsync(this.RelatedObject);
+ return this.FetchRelatedObjectAsync(this.RelatedObject);
}
///
/// Retrieves the related object from the API. Make an API request on every call.
///
- public V2.Reporting.ReportRun FetchRelatedObject()
+ public V2.Billing.Cadence FetchRelatedObject()
{
- return this.FetchRelatedObject(this.RelatedObject);
+ return this.FetchRelatedObject(this.RelatedObject);
}
- public V2ReportingReportRunUpdatedEvent Pull()
+ public V2BillingCadenceErroredEvent Pull()
{
- return this.PullEvent();
+ return this.PullEvent();
}
- public Task PullAsync()
+ public Task PullAsync()
{
- return this.PullEventAsync();
+ return this.PullEventAsync();
}
}
}
diff --git a/src/Stripe.net/Events/PushedV2CoreAccountPersonCreatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountPersonCreatedEvent.cs
index 5020b9caf1..1430882d62 100644
--- a/src/Stripe.net/Events/PushedV2CoreAccountPersonCreatedEvent.cs
+++ b/src/Stripe.net/Events/PushedV2CoreAccountPersonCreatedEvent.cs
@@ -26,17 +26,17 @@ public class PushedV2CoreAccountPersonCreatedEvent : V2.PushedEvent
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
///
- public Task FetchRelatedObjectAsync()
+ public Task FetchRelatedObjectAsync()
{
- return this.FetchRelatedObjectAsync(this.RelatedObject);
+ return this.FetchRelatedObjectAsync(this.RelatedObject);
}
///
/// Retrieves the related object from the API. Make an API request on every call.
///
- public V2.Core.Person FetchRelatedObject()
+ public V2.Core.AccountPerson FetchRelatedObject()
{
- return this.FetchRelatedObject(this.RelatedObject);
+ return this.FetchRelatedObject(this.RelatedObject);
}
public V2CoreAccountPersonCreatedEvent Pull()
diff --git a/src/Stripe.net/Events/PushedV2CoreAccountPersonDeletedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountPersonDeletedEvent.cs
index 428567358c..83ffe5df91 100644
--- a/src/Stripe.net/Events/PushedV2CoreAccountPersonDeletedEvent.cs
+++ b/src/Stripe.net/Events/PushedV2CoreAccountPersonDeletedEvent.cs
@@ -26,17 +26,17 @@ public class PushedV2CoreAccountPersonDeletedEvent : V2.PushedEvent
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
///
- public Task FetchRelatedObjectAsync()
+ public Task FetchRelatedObjectAsync()
{
- return this.FetchRelatedObjectAsync(this.RelatedObject);
+ return this.FetchRelatedObjectAsync(this.RelatedObject);
}
///
/// Retrieves the related object from the API. Make an API request on every call.
///
- public V2.Core.Person FetchRelatedObject()
+ public V2.Core.AccountPerson FetchRelatedObject()
{
- return this.FetchRelatedObject(this.RelatedObject);
+ return this.FetchRelatedObject(this.RelatedObject);
}
public V2CoreAccountPersonDeletedEvent Pull()
diff --git a/src/Stripe.net/Events/PushedV2CoreAccountPersonUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreAccountPersonUpdatedEvent.cs
index dc98bc0e31..64fe964241 100644
--- a/src/Stripe.net/Events/PushedV2CoreAccountPersonUpdatedEvent.cs
+++ b/src/Stripe.net/Events/PushedV2CoreAccountPersonUpdatedEvent.cs
@@ -26,17 +26,17 @@ public class PushedV2CoreAccountPersonUpdatedEvent : V2.PushedEvent
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
///
- public Task FetchRelatedObjectAsync()
+ public Task FetchRelatedObjectAsync()
{
- return this.FetchRelatedObjectAsync(this.RelatedObject);
+ return this.FetchRelatedObjectAsync(this.RelatedObject);
}
///
/// Retrieves the related object from the API. Make an API request on every call.
///
- public V2.Core.Person FetchRelatedObject()
+ public V2.Core.AccountPerson FetchRelatedObject()
{
- return this.FetchRelatedObject(this.RelatedObject);
+ return this.FetchRelatedObject(this.RelatedObject);
}
public V2CoreAccountPersonUpdatedEvent Pull()
diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxClaimedEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxClaimedEvent.cs
deleted file mode 100644
index 7c03fb5405..0000000000
--- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxClaimedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a claimable sandbox is claimed.
- ///
- public class PushedV2CoreClaimableSandboxClaimedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Core.ClaimableSandbox FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V2CoreClaimableSandboxClaimedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiredEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiredEvent.cs
deleted file mode 100644
index e282d7fc91..0000000000
--- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiredEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a claimable sandbox expires.
- ///
- public class PushedV2CoreClaimableSandboxExpiredEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Core.ClaimableSandbox FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V2CoreClaimableSandboxExpiredEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiringEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiringEvent.cs
deleted file mode 100644
index 802b6d0d51..0000000000
--- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxExpiringEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a claimable sandbox is expiring in 7 days.
- ///
- public class PushedV2CoreClaimableSandboxExpiringEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Core.ClaimableSandbox FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V2CoreClaimableSandboxExpiringEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs b/src/Stripe.net/Events/PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs
deleted file mode 100644
index 53aedd3541..0000000000
--- a/src/Stripe.net/Events/PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a claimable sandbox is activated by the user with the intention to go live
- /// and your Stripe app is installed on the live account.
- ///
- public class PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Core.ClaimableSandbox FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV2ReportingReportRunCreatedEvent.cs b/src/Stripe.net/Events/PushedV2ReportingReportRunCreatedEvent.cs
deleted file mode 100644
index db2ad325ac..0000000000
--- a/src/Stripe.net/Events/PushedV2ReportingReportRunCreatedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a ReportRun is created.
- ///
- public class PushedV2ReportingReportRunCreatedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Reporting.ReportRun FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V2ReportingReportRunCreatedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV2ReportingReportRunFailedEvent.cs b/src/Stripe.net/Events/PushedV2ReportingReportRunFailedEvent.cs
deleted file mode 100644
index be1e4cc96a..0000000000
--- a/src/Stripe.net/Events/PushedV2ReportingReportRunFailedEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a ReportRun has failed to complete.
- ///
- public class PushedV2ReportingReportRunFailedEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Reporting.ReportRun FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V2ReportingReportRunFailedEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/PushedV2ReportingReportRunSucceededEvent.cs b/src/Stripe.net/Events/PushedV2ReportingReportRunSucceededEvent.cs
deleted file mode 100644
index 4925bc2477..0000000000
--- a/src/Stripe.net/Events/PushedV2ReportingReportRunSucceededEvent.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a ReportRun has successfully completed.
- ///
- public class PushedV2ReportingReportRunSucceededEvent : V2.PushedEvent
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Reporting.ReportRun FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
-
- public V2ReportingReportRunSucceededEvent Pull()
- {
- return this.PullEvent();
- }
-
- public Task PullAsync()
- {
- return this.PullEventAsync();
- }
- }
-}
diff --git a/src/Stripe.net/Events/V2BillingCadenceBilledEvent.cs b/src/Stripe.net/Events/V2BillingCadenceBilledEvent.cs
index d9054641e6..7c20818fe2 100644
--- a/src/Stripe.net/Events/V2BillingCadenceBilledEvent.cs
+++ b/src/Stripe.net/Events/V2BillingCadenceBilledEvent.cs
@@ -12,16 +12,6 @@ namespace Stripe.Events
///
public class V2BillingCadenceBilledEvent : V2.Event
{
- ///
- /// Data for the v2.billing.cadence.billed event.
- ///
- [JsonProperty("data")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("data")]
-#endif
-
- public V2BillingCadenceBilledEventData Data { get; set; }
-
///
/// Object containing the reference to API resource relevant to the event.
///
diff --git a/src/Stripe.net/Events/V2BillingCadenceBilledEventData.cs b/src/Stripe.net/Events/V2BillingCadenceBilledEventData.cs
deleted file mode 100644
index 1a87a0c626..0000000000
--- a/src/Stripe.net/Events/V2BillingCadenceBilledEventData.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- public class V2BillingCadenceBilledEventData : StripeEntity
- {
- ///
- /// The IDs of the invoices that were generated by the tick for this Cadence.
- ///
- [JsonProperty("invoices")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("invoices")]
-#endif
- public List Invoices { get; set; }
- }
-}
diff --git a/src/Stripe.net/Events/V2ReportingReportRunUpdatedEvent.cs b/src/Stripe.net/Events/V2BillingCadenceErroredEvent.cs
similarity index 68%
rename from src/Stripe.net/Events/V2ReportingReportRunUpdatedEvent.cs
rename to src/Stripe.net/Events/V2BillingCadenceErroredEvent.cs
index f0208a5ad2..038011e6b8 100644
--- a/src/Stripe.net/Events/V2ReportingReportRunUpdatedEvent.cs
+++ b/src/Stripe.net/Events/V2BillingCadenceErroredEvent.cs
@@ -8,9 +8,9 @@ namespace Stripe.Events
#endif
///
- /// Occurs when a ReportRun is updated.
+ /// Occurs when a billing Cadence encounters an error during a tick.
///
- public class V2ReportingReportRunUpdatedEvent : V2.Event
+ public class V2BillingCadenceErroredEvent : V2.Event
{
///
/// Object containing the reference to API resource relevant to the event.
@@ -26,17 +26,17 @@ public class V2ReportingReportRunUpdatedEvent : V2.Event
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
///
- public Task FetchRelatedObjectAsync()
+ public Task FetchRelatedObjectAsync()
{
- return this.FetchRelatedObjectAsync(this.RelatedObject);
+ return this.FetchRelatedObjectAsync(this.RelatedObject);
}
///
/// Retrieves the related object from the API. Make an API request on every call.
///
- public V2.Reporting.ReportRun FetchRelatedObject()
+ public V2.Billing.Cadence FetchRelatedObject()
{
- return this.FetchRelatedObject(this.RelatedObject);
+ return this.FetchRelatedObject(this.RelatedObject);
}
}
}
diff --git a/src/Stripe.net/Events/V2CoreAccountPersonCreatedEvent.cs b/src/Stripe.net/Events/V2CoreAccountPersonCreatedEvent.cs
index ecc27c6bac..6d9514ff63 100644
--- a/src/Stripe.net/Events/V2CoreAccountPersonCreatedEvent.cs
+++ b/src/Stripe.net/Events/V2CoreAccountPersonCreatedEvent.cs
@@ -36,17 +36,17 @@ public class V2CoreAccountPersonCreatedEvent : V2.Event
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
///
- public Task FetchRelatedObjectAsync()
+ public Task FetchRelatedObjectAsync()
{
- return this.FetchRelatedObjectAsync(this.RelatedObject);
+ return this.FetchRelatedObjectAsync(this.RelatedObject);
}
///
/// Retrieves the related object from the API. Make an API request on every call.
///
- public V2.Core.Person FetchRelatedObject()
+ public V2.Core.AccountPerson FetchRelatedObject()
{
- return this.FetchRelatedObject(this.RelatedObject);
+ return this.FetchRelatedObject(this.RelatedObject);
}
}
}
diff --git a/src/Stripe.net/Events/V2CoreAccountPersonDeletedEvent.cs b/src/Stripe.net/Events/V2CoreAccountPersonDeletedEvent.cs
index 9b6440a80c..c78213c273 100644
--- a/src/Stripe.net/Events/V2CoreAccountPersonDeletedEvent.cs
+++ b/src/Stripe.net/Events/V2CoreAccountPersonDeletedEvent.cs
@@ -36,17 +36,17 @@ public class V2CoreAccountPersonDeletedEvent : V2.Event
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
///
- public Task FetchRelatedObjectAsync()
+ public Task FetchRelatedObjectAsync()
{
- return this.FetchRelatedObjectAsync(this.RelatedObject);
+ return this.FetchRelatedObjectAsync(this.RelatedObject);
}
///
/// Retrieves the related object from the API. Make an API request on every call.
///
- public V2.Core.Person FetchRelatedObject()
+ public V2.Core.AccountPerson FetchRelatedObject()
{
- return this.FetchRelatedObject(this.RelatedObject);
+ return this.FetchRelatedObject(this.RelatedObject);
}
}
}
diff --git a/src/Stripe.net/Events/V2CoreAccountPersonUpdatedEvent.cs b/src/Stripe.net/Events/V2CoreAccountPersonUpdatedEvent.cs
index ff8f715718..d58a4df7ca 100644
--- a/src/Stripe.net/Events/V2CoreAccountPersonUpdatedEvent.cs
+++ b/src/Stripe.net/Events/V2CoreAccountPersonUpdatedEvent.cs
@@ -36,17 +36,17 @@ public class V2CoreAccountPersonUpdatedEvent : V2.Event
/// Asynchronously retrieves the related object from the API. Make an API request on every
/// call.
///
- public Task FetchRelatedObjectAsync()
+ public Task FetchRelatedObjectAsync()
{
- return this.FetchRelatedObjectAsync(this.RelatedObject);
+ return this.FetchRelatedObjectAsync(this.RelatedObject);
}
///
/// Retrieves the related object from the API. Make an API request on every call.
///
- public V2.Core.Person FetchRelatedObject()
+ public V2.Core.AccountPerson FetchRelatedObject()
{
- return this.FetchRelatedObject(this.RelatedObject);
+ return this.FetchRelatedObject(this.RelatedObject);
}
}
}
diff --git a/src/Stripe.net/Events/V2CoreClaimableSandboxClaimedEvent.cs b/src/Stripe.net/Events/V2CoreClaimableSandboxClaimedEvent.cs
deleted file mode 100644
index 257e70dd76..0000000000
--- a/src/Stripe.net/Events/V2CoreClaimableSandboxClaimedEvent.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a claimable sandbox is claimed.
- ///
- public class V2CoreClaimableSandboxClaimedEvent : V2.Event
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Core.ClaimableSandbox FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
- }
-}
diff --git a/src/Stripe.net/Events/V2CoreClaimableSandboxExpiredEvent.cs b/src/Stripe.net/Events/V2CoreClaimableSandboxExpiredEvent.cs
deleted file mode 100644
index 3f8e44b974..0000000000
--- a/src/Stripe.net/Events/V2CoreClaimableSandboxExpiredEvent.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a claimable sandbox expires.
- ///
- public class V2CoreClaimableSandboxExpiredEvent : V2.Event
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Core.ClaimableSandbox FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
- }
-}
diff --git a/src/Stripe.net/Events/V2CoreClaimableSandboxExpiringEvent.cs b/src/Stripe.net/Events/V2CoreClaimableSandboxExpiringEvent.cs
deleted file mode 100644
index 60a63d8bdc..0000000000
--- a/src/Stripe.net/Events/V2CoreClaimableSandboxExpiringEvent.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a claimable sandbox is expiring in 7 days.
- ///
- public class V2CoreClaimableSandboxExpiringEvent : V2.Event
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Core.ClaimableSandbox FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
- }
-}
diff --git a/src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs b/src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs
deleted file mode 100644
index 57f6583068..0000000000
--- a/src/Stripe.net/Events/V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a claimable sandbox is activated by the user with the intention to go live
- /// and your Stripe app is installed on the live account.
- ///
- public class V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent : V2.Event
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Core.ClaimableSandbox FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
- }
-}
diff --git a/src/Stripe.net/Events/V2CoreHealthAuthorizationRateDropFiringEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthAuthorizationRateDropFiringEventDataImpact.cs
index 5455e2cf48..afda2a9c13 100644
--- a/src/Stripe.net/Events/V2CoreHealthAuthorizationRateDropFiringEventDataImpact.cs
+++ b/src/Stripe.net/Events/V2CoreHealthAuthorizationRateDropFiringEventDataImpact.cs
@@ -27,7 +27,7 @@ public class V2CoreHealthAuthorizationRateDropFiringEventDataImpact : StripeEnti
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("current_percentage")]
#endif
- public string CurrentPercentage { get; set; }
+ public decimal CurrentPercentage { get; set; }
///
/// Dimensions that describe what subset of payments are impacted.
@@ -64,6 +64,6 @@ public class V2CoreHealthAuthorizationRateDropFiringEventDataImpact : StripeEnti
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("previous_percentage")]
#endif
- public string PreviousPercentage { get; set; }
+ public decimal PreviousPercentage { get; set; }
}
}
diff --git a/src/Stripe.net/Events/V2CoreHealthAuthorizationRateDropResolvedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthAuthorizationRateDropResolvedEventDataImpact.cs
index 7cb5ee0446..1f4829366b 100644
--- a/src/Stripe.net/Events/V2CoreHealthAuthorizationRateDropResolvedEventDataImpact.cs
+++ b/src/Stripe.net/Events/V2CoreHealthAuthorizationRateDropResolvedEventDataImpact.cs
@@ -27,7 +27,7 @@ public class V2CoreHealthAuthorizationRateDropResolvedEventDataImpact : StripeEn
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("current_percentage")]
#endif
- public string CurrentPercentage { get; set; }
+ public decimal CurrentPercentage { get; set; }
///
/// Dimensions that describe what subset of payments are impacted.
@@ -64,6 +64,6 @@ public class V2CoreHealthAuthorizationRateDropResolvedEventDataImpact : StripeEn
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("previous_percentage")]
#endif
- public string PreviousPercentage { get; set; }
+ public decimal PreviousPercentage { get; set; }
}
}
diff --git a/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventData.cs b/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventData.cs
index 1719956d07..347af15b76 100644
--- a/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventData.cs
+++ b/src/Stripe.net/Events/V2CoreHealthFraudRateIncreasedEventData.cs
@@ -44,7 +44,7 @@ public class V2CoreHealthFraudRateIncreasedEventData : StripeEntity
/// The time when impact on the user experience was first detected.
diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs
index 72ac902f57..00f6fc74b1 100644
--- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs
+++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact.cs
@@ -25,7 +25,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("approved_impacted_requests")]
#endif
- public long? ApprovedImpactedRequests { get; set; }
+ public long ApprovedImpactedRequests { get; set; }
///
/// Estimated aggregated amount for the declined requests.
@@ -43,6 +43,6 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventDataImpact
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("declined_impacted_requests")]
#endif
- public long? DeclinedImpactedRequests { get; set; }
+ public long DeclinedImpactedRequests { get; set; }
}
}
diff --git a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs
index 88385d2b40..73043ce8aa 100644
--- a/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs
+++ b/src/Stripe.net/Events/V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpact.cs
@@ -25,7 +25,7 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpa
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("approved_impacted_requests")]
#endif
- public long? ApprovedImpactedRequests { get; set; }
+ public long ApprovedImpactedRequests { get; set; }
///
/// Estimated aggregated amount for the declined requests.
@@ -43,6 +43,6 @@ public class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventDataImpa
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("declined_impacted_requests")]
#endif
- public long? DeclinedImpactedRequests { get; set; }
+ public long DeclinedImpactedRequests { get; set; }
}
}
diff --git a/src/Stripe.net/Events/V2CoreHealthTrafficVolumeDropFiringEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthTrafficVolumeDropFiringEventDataImpact.cs
index 5cf4cd3701..011b01d18e 100644
--- a/src/Stripe.net/Events/V2CoreHealthTrafficVolumeDropFiringEventDataImpact.cs
+++ b/src/Stripe.net/Events/V2CoreHealthTrafficVolumeDropFiringEventDataImpact.cs
@@ -25,7 +25,7 @@ public class V2CoreHealthTrafficVolumeDropFiringEventDataImpact : StripeEntity
/// The size of the observation time window.
diff --git a/src/Stripe.net/Events/V2CoreHealthTrafficVolumeDropResolvedEventDataImpact.cs b/src/Stripe.net/Events/V2CoreHealthTrafficVolumeDropResolvedEventDataImpact.cs
index b24f23a896..d0d8ce6130 100644
--- a/src/Stripe.net/Events/V2CoreHealthTrafficVolumeDropResolvedEventDataImpact.cs
+++ b/src/Stripe.net/Events/V2CoreHealthTrafficVolumeDropResolvedEventDataImpact.cs
@@ -25,7 +25,7 @@ public class V2CoreHealthTrafficVolumeDropResolvedEventDataImpact : StripeEntity
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("expected_traffic")]
#endif
- public long? ExpectedTraffic { get; set; }
+ public long ExpectedTraffic { get; set; }
///
/// The size of the observation time window.
diff --git a/src/Stripe.net/Events/V2ReportingReportRunCreatedEvent.cs b/src/Stripe.net/Events/V2ReportingReportRunCreatedEvent.cs
deleted file mode 100644
index ed0c8e4528..0000000000
--- a/src/Stripe.net/Events/V2ReportingReportRunCreatedEvent.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a ReportRun is created.
- ///
- public class V2ReportingReportRunCreatedEvent : V2.Event
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Reporting.ReportRun FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
- }
-}
diff --git a/src/Stripe.net/Events/V2ReportingReportRunFailedEvent.cs b/src/Stripe.net/Events/V2ReportingReportRunFailedEvent.cs
deleted file mode 100644
index 2963e02e1d..0000000000
--- a/src/Stripe.net/Events/V2ReportingReportRunFailedEvent.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a ReportRun has failed to complete.
- ///
- public class V2ReportingReportRunFailedEvent : V2.Event
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Reporting.ReportRun FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
- }
-}
diff --git a/src/Stripe.net/Events/V2ReportingReportRunSucceededEvent.cs b/src/Stripe.net/Events/V2ReportingReportRunSucceededEvent.cs
deleted file mode 100644
index 55c90fb173..0000000000
--- a/src/Stripe.net/Events/V2ReportingReportRunSucceededEvent.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Events
-{
- using System.Threading.Tasks;
- using Newtonsoft.Json;
-#if NET6_0_OR_GREATER
- using STJS = System.Text.Json.Serialization;
-#endif
-
- ///
- /// Occurs when a ReportRun has successfully completed.
- ///
- public class V2ReportingReportRunSucceededEvent : V2.Event
- {
- ///
- /// Object containing the reference to API resource relevant to the event.
- ///
- [JsonProperty("related_object")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("related_object")]
-#endif
-
- public V2.EventRelatedObject RelatedObject { get; set; }
-
- ///
- /// Asynchronously retrieves the related object from the API. Make an API request on every
- /// call.
- ///
- public Task FetchRelatedObjectAsync()
- {
- return this.FetchRelatedObjectAsync(this.RelatedObject);
- }
-
- ///
- /// Retrieves the related object from the API. Make an API request on every call.
- ///
- public V2.Reporting.ReportRun FetchRelatedObject()
- {
- return this.FetchRelatedObject(this.RelatedObject);
- }
- }
-}
diff --git a/src/Stripe.net/Exceptions/V2/RateLimitException.cs b/src/Stripe.net/Exceptions/V2/RateLimitException.cs
deleted file mode 100644
index 7428b94f83..0000000000
--- a/src/Stripe.net/Exceptions/V2/RateLimitException.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2
-{
- using System.Net;
- using Newtonsoft.Json.Linq;
-
- public class RateLimitException : StripeException
- {
- private RateLimitException(
- HttpStatusCode httpStatusCode,
- StripeError stripeError,
- string message)
- : base(httpStatusCode, stripeError)
- {
- }
-
- internal static RateLimitException Parse(
- HttpStatusCode httpStatusCode,
- JToken body)
- {
- var stripeError = StripeError.FromJson(body);
- return new RateLimitException(httpStatusCode, stripeError, stripeError.Message);
- }
- }
-}
\ No newline at end of file
diff --git a/src/Stripe.net/Infrastructure/FormEncoding/ContentEncoder.cs b/src/Stripe.net/Infrastructure/FormEncoding/ContentEncoder.cs
index aeb2453cc8..32733e638c 100644
--- a/src/Stripe.net/Infrastructure/FormEncoding/ContentEncoder.cs
+++ b/src/Stripe.net/Infrastructure/FormEncoding/ContentEncoder.cs
@@ -145,6 +145,10 @@ private static List> FlattenParamsValue(object valu
flatParams = SingleParam(keyPrefix, s);
break;
+ case MultipartFileContent f:
+ flatParams = SingleParam(keyPrefix, f);
+ break;
+
case Stream s:
flatParams = SingleParam(keyPrefix, s);
break;
diff --git a/src/Stripe.net/Infrastructure/FormEncoding/FormEncoder.cs b/src/Stripe.net/Infrastructure/FormEncoding/FormEncoder.cs
index 53b2441bae..2c9bca954d 100644
--- a/src/Stripe.net/Infrastructure/FormEncoding/FormEncoder.cs
+++ b/src/Stripe.net/Infrastructure/FormEncoding/FormEncoder.cs
@@ -116,6 +116,10 @@ private static List> FlattenParamsValue(object valu
flatParams = SingleParam(keyPrefix, s);
break;
+ case MultipartFileContent f:
+ flatParams = SingleParam(keyPrefix, f);
+ break;
+
case Stream s:
flatParams = SingleParam(keyPrefix, s);
break;
diff --git a/src/Stripe.net/Infrastructure/FormEncoding/MultipartFormDataContent.cs b/src/Stripe.net/Infrastructure/FormEncoding/MultipartFormDataContent.cs
index d7ff9b3427..4c2c46d290 100644
--- a/src/Stripe.net/Infrastructure/FormEncoding/MultipartFormDataContent.cs
+++ b/src/Stripe.net/Infrastructure/FormEncoding/MultipartFormDataContent.cs
@@ -41,26 +41,29 @@ public MultipartFormDataContent(
private static StringContent CreateStringContent(string value)
=> new StringContent(value, System.Text.Encoding.UTF8);
- private static StreamContent CreateStreamContent(Stream value, string name)
+ private static StreamContent CreateStreamContent(MultipartFileContent value, string name)
{
- var fileName = "blob";
- var extension = string.Empty;
+ var fileName = value.Name ?? "blob";
+ var extension = Path.GetExtension(fileName);
+ var stream = value.Data;
- FileStream fileStream = value as FileStream;
+ FileStream fileStream = stream as FileStream;
if ((fileStream != null) && (!string.IsNullOrEmpty(fileStream.Name)))
{
fileName = fileStream.Name;
extension = Path.GetExtension(fileName);
}
- var content = new StreamContent(value);
+ var type = value.Type ?? MimeTypes.GetMimeType(extension);
+
+ var content = new StreamContent(stream);
content.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data")
{
Name = name,
FileName = fileName,
FileNameStar = fileName,
};
- content.Headers.ContentType = new MediaTypeHeaderValue(MimeTypes.GetMimeType(extension));
+ content.Headers.ContentType = new MediaTypeHeaderValue(type);
return content;
}
@@ -79,8 +82,16 @@ private void ProcessParameters(IEnumerable> nameVal
this.Add(CreateStringContent(s), QuoteString(kvp.Key));
break;
+ case MultipartFileContent f:
+ this.Add(CreateStreamContent(f, QuoteString(kvp.Key)));
+ break;
+
case Stream s:
- this.Add(CreateStreamContent(s, QuoteString(kvp.Key)));
+ var fileData = new MultipartFileContent
+ {
+ Data = s,
+ };
+ this.Add(CreateStreamContent(fileData, QuoteString(kvp.Key)));
break;
default:
diff --git a/src/Stripe.net/Infrastructure/Public/ApiRequestorAdapter.cs b/src/Stripe.net/Infrastructure/Public/ApiRequestorAdapter.cs
index c2a366da5d..95751ea666 100644
--- a/src/Stripe.net/Infrastructure/Public/ApiRequestorAdapter.cs
+++ b/src/Stripe.net/Infrastructure/Public/ApiRequestorAdapter.cs
@@ -54,7 +54,7 @@ public override Task RequestAsync(
if (baseAddress != BaseAddress.Api)
{
requestOptions ??= new RequestOptions();
- requestOptions.BaseUrl = this.GetBaseUrl(baseAddress);
+ requestOptions.InternalBaseUrl = this.GetBaseUrl(baseAddress);
}
return this.client.RequestAsync(method, path, options, requestOptions, cancellationToken);
diff --git a/src/Stripe.net/Infrastructure/Public/LiveApiRequestor.cs b/src/Stripe.net/Infrastructure/Public/LiveApiRequestor.cs
index 652b563171..e478935b8b 100644
--- a/src/Stripe.net/Infrastructure/Public/LiveApiRequestor.cs
+++ b/src/Stripe.net/Infrastructure/Public/LiveApiRequestor.cs
@@ -231,7 +231,7 @@ private StripeRequest MakeStripeRequest(
}
var uri = StripeRequest.BuildUri(
- requestOptions?.BaseUrl ?? this.GetBaseUrl(baseAddress),
+ requestOptions?.InternalBaseUrl ?? this.GetBaseUrl(baseAddress),
method,
path,
options,
diff --git a/src/Stripe.net/Infrastructure/Public/StripeException.cs b/src/Stripe.net/Infrastructure/Public/StripeException.cs
index 99bc07d2ae..fd6df15dd1 100644
--- a/src/Stripe.net/Infrastructure/Public/StripeException.cs
+++ b/src/Stripe.net/Infrastructure/Public/StripeException.cs
@@ -95,10 +95,6 @@ internal static StripeException ParseV2Exception(string type, StripeResponse res
ret = Stripe.V2.QuotaExceededException.Parse(httpStatusCode, body);
break;
- case "rate_limit":
- ret = Stripe.V2.RateLimitException.Parse(httpStatusCode, body);
- break;
-
case "recipient_not_notifiable":
ret = Stripe.V2.RecipientNotNotifiableException.Parse(httpStatusCode, body);
break;
diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
index b4116a1c2c..4f06714fae 100644
--- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
+++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
@@ -268,7 +268,7 @@ public static class StripeTypeRegistry
{ "v2.billing.service_action", typeof(V2.Billing.ServiceAction) },
{ "v2.core.account", typeof(V2.Core.Account) },
{ "v2.core.account_link", typeof(V2.Core.AccountLink) },
- { "v2.core.account_person", typeof(V2.Core.Person) },
+ { "v2.core.account_person", typeof(V2.Core.AccountPerson) },
{ "v2.core.claimable_sandbox", typeof(V2.Core.ClaimableSandbox) },
{ "v2.core.event", typeof(V2.Event) },
{ "v2.core.event_destination", typeof(V2.EventDestination) },
@@ -322,8 +322,6 @@ public static class StripeTypeRegistry
V2.MoneyManagement.TransactionEntry)
},
{ "v2.payments.off_session_payment", typeof(V2.Payments.OffSessionPayment) },
- { "v2.reporting.report", typeof(V2.Reporting.Report) },
- { "v2.reporting.report_run", typeof(V2.Reporting.ReportRun) },
{ "v2.tax.automatic_rule", typeof(V2.Tax.AutomaticRule) },
// V2ObjectsToTypes: The end of the section generated from our OpenAPI spec
@@ -344,6 +342,7 @@ public static class StripeTypeRegistry
{ "v2.billing.cadence.billed", typeof(Events.V2BillingCadenceBilledEvent) },
{ "v2.billing.cadence.canceled", typeof(Events.V2BillingCadenceCanceledEvent) },
{ "v2.billing.cadence.created", typeof(Events.V2BillingCadenceCreatedEvent) },
+ { "v2.billing.cadence.errored", typeof(Events.V2BillingCadenceErroredEvent) },
{
"v2.billing.license_fee.created", typeof(
Events.V2BillingLicenseFeeCreatedEvent)
@@ -537,22 +536,6 @@ public static class StripeTypeRegistry
"v2.core.account_person.updated", typeof(
Events.V2CoreAccountPersonUpdatedEvent)
},
- {
- "v2.core.claimable_sandbox.claimed", typeof(
- Events.V2CoreClaimableSandboxClaimedEvent)
- },
- {
- "v2.core.claimable_sandbox.expired", typeof(
- Events.V2CoreClaimableSandboxExpiredEvent)
- },
- {
- "v2.core.claimable_sandbox.expiring", typeof(
- Events.V2CoreClaimableSandboxExpiringEvent)
- },
- {
- "v2.core.claimable_sandbox.sandbox_details_owner_account_updated", typeof(
- Events.V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent)
- },
{
"v2.core.event_destination.ping", typeof(
Events.V2CoreEventDestinationPingEvent)
@@ -785,22 +768,6 @@ public static class StripeTypeRegistry
"v2.payments.off_session_payment.succeeded", typeof(
Events.V2PaymentsOffSessionPaymentSucceededEvent)
},
- {
- "v2.reporting.report_run.created", typeof(
- Events.V2ReportingReportRunCreatedEvent)
- },
- {
- "v2.reporting.report_run.failed", typeof(
- Events.V2ReportingReportRunFailedEvent)
- },
- {
- "v2.reporting.report_run.succeeded", typeof(
- Events.V2ReportingReportRunSucceededEvent)
- },
- {
- "v2.reporting.report_run.updated", typeof(
- Events.V2ReportingReportRunUpdatedEvent)
- },
// ThinTypesToEventTypes: The end of the section generated from our OpenAPI spec
});
@@ -829,6 +796,10 @@ public static class StripeTypeRegistry
"v2.billing.cadence.created", typeof(
Events.PushedV2BillingCadenceCreatedEvent)
},
+ {
+ "v2.billing.cadence.errored", typeof(
+ Events.PushedV2BillingCadenceErroredEvent)
+ },
{
"v2.billing.license_fee.created", typeof(
Events.PushedV2BillingLicenseFeeCreatedEvent)
@@ -1028,22 +999,6 @@ public static class StripeTypeRegistry
"v2.core.account_person.updated", typeof(
Events.PushedV2CoreAccountPersonUpdatedEvent)
},
- {
- "v2.core.claimable_sandbox.claimed", typeof(
- Events.PushedV2CoreClaimableSandboxClaimedEvent)
- },
- {
- "v2.core.claimable_sandbox.expired", typeof(
- Events.PushedV2CoreClaimableSandboxExpiredEvent)
- },
- {
- "v2.core.claimable_sandbox.expiring", typeof(
- Events.PushedV2CoreClaimableSandboxExpiringEvent)
- },
- {
- "v2.core.claimable_sandbox.sandbox_details_owner_account_updated", typeof(
- Events.PushedV2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent)
- },
{
"v2.core.event_destination.ping", typeof(
Events.PushedV2CoreEventDestinationPingEvent)
@@ -1276,22 +1231,6 @@ public static class StripeTypeRegistry
"v2.payments.off_session_payment.succeeded", typeof(
Events.PushedV2PaymentsOffSessionPaymentSucceededEvent)
},
- {
- "v2.reporting.report_run.created", typeof(
- Events.PushedV2ReportingReportRunCreatedEvent)
- },
- {
- "v2.reporting.report_run.failed", typeof(
- Events.PushedV2ReportingReportRunFailedEvent)
- },
- {
- "v2.reporting.report_run.succeeded", typeof(
- Events.PushedV2ReportingReportRunSucceededEvent)
- },
- {
- "v2.reporting.report_run.updated", typeof(
- Events.PushedV2ReportingReportRunUpdatedEvent)
- },
// PushedTypesToEventTypes: The end of the section generated from our OpenAPI spec
});
diff --git a/src/Stripe.net/Services/Files/FileCreateOptions.cs b/src/Stripe.net/Services/Files/FileCreateOptions.cs
index a252e950b2..093dcefc53 100644
--- a/src/Stripe.net/Services/Files/FileCreateOptions.cs
+++ b/src/Stripe.net/Services/Files/FileCreateOptions.cs
@@ -1,7 +1,6 @@
// File generated from our OpenAPI spec
namespace Stripe
{
- using System.IO;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
@@ -17,7 +16,7 @@ public class FileCreateOptions : BaseOptions
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("file")]
#endif
- public Stream File { get; set; }
+ public MultipartFileContent File { get; set; }
///
/// Optional parameters that automatically create a
- /// The month to anchor the billing on for a type="month" billing cycle from 1-12. If not
- /// provided, this will default to the month the cadence was created. This setting can only
- /// be used for monthly billing cycles with interval_count of 2, 3, 4 or 6. All
- /// occurrences will be calculated from month provided.
- ///
- [JsonProperty("month_of_year")]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("month_of_year")]
-#endif
- public long? MonthOfYear { get; set; }
-
///
/// The time at which the billing cycle ends. This field is optional, and if not provided,
/// it will default to the time at which the cadence was created in UTC timezone.
diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsBillOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsBillOptions.cs
index efc4f3ac9a..d23debe252 100644
--- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsBillOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsBillOptions.cs
@@ -2,14 +2,10 @@
namespace Stripe.V2.Billing
{
using Newtonsoft.Json;
- using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif
-#if NET6_0_OR_GREATER
- [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
-#endif
public class CadenceUpdateSettingsBillOptions : INestedOptions, IHasId
{
///
@@ -21,28 +17,6 @@ public class CadenceUpdateSettingsBillOptions : INestedOptions, IHasId
#endif
public string Id { get; set; }
- [JsonProperty("version")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("version")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalVersion { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyVersion
- {
- get => this.InternalVersion?.Empty ?? false;
- set
- {
- this.InternalVersion ??= new Emptyable();
- this.InternalVersion.Empty = value;
- }
- }
-
///
/// An optional field to specify the version of Settings to use. If not provided, this will
/// always default to the live_version specified on the setting, any time the
@@ -50,18 +24,10 @@ public bool EmptyVersion
/// updating, and is discouraged for cadences. To clear a pinned version, set the version to
/// null.
///
- [JsonIgnore]
+ [JsonProperty("version")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("version")]
#endif
- public string Version
- {
- get => this.InternalVersion?.Value;
- set
- {
- this.InternalVersion ??= new Emptyable();
- this.InternalVersion.Value = value;
- }
- }
+ public string Version { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsCollectionOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsCollectionOptions.cs
index fa191bb95c..49da48beb8 100644
--- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsCollectionOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsCollectionOptions.cs
@@ -2,14 +2,10 @@
namespace Stripe.V2.Billing
{
using Newtonsoft.Json;
- using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif
-#if NET6_0_OR_GREATER
- [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
-#endif
public class CadenceUpdateSettingsCollectionOptions : INestedOptions, IHasId
{
///
@@ -21,28 +17,6 @@ public class CadenceUpdateSettingsCollectionOptions : INestedOptions, IHasId
#endif
public string Id { get; set; }
- [JsonProperty("version")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("version")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalVersion { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyVersion
- {
- get => this.InternalVersion?.Empty ?? false;
- set
- {
- this.InternalVersion ??= new Emptyable();
- this.InternalVersion.Empty = value;
- }
- }
-
///
/// An optional field to specify the version of Settings to use. If not provided, this will
/// always default to the live_version specified on the setting, any time the
@@ -50,18 +24,10 @@ public bool EmptyVersion
/// updating, and is discouraged for cadences. To clear a pinned version, set the version to
/// null.
///
- [JsonIgnore]
+ [JsonProperty("version")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("version")]
#endif
- public string Version
- {
- get => this.InternalVersion?.Value;
- set
- {
- this.InternalVersion ??= new Emptyable();
- this.InternalVersion.Value = value;
- }
- }
+ public string Version { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsOptions.cs
index a282dc06b7..96b6453a57 100644
--- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceUpdateSettingsOptions.cs
@@ -2,95 +2,31 @@
namespace Stripe.V2.Billing
{
using Newtonsoft.Json;
- using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif
-#if NET6_0_OR_GREATER
- [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
-#endif
public class CadenceUpdateSettingsOptions : INestedOptions
{
- [JsonProperty("bill")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("bill")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalBill { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyBill
- {
- get => this.InternalBill?.Empty ?? false;
- set
- {
- this.InternalBill ??= new Emptyable();
- this.InternalBill.Empty = value;
- }
- }
-
///
/// Settings that configure bills generation, which includes calculating totals, tax, and
/// presenting invoices. If null is provided, the current bill settings will be removed from
/// the billing cadence.
///
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public CadenceUpdateSettingsBillOptions Bill
- {
- get => this.InternalBill?.Value;
- set
- {
- this.InternalBill ??= new Emptyable();
- this.InternalBill.Value = value;
- }
- }
-
- [JsonProperty("collection")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("collection")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalCollection { get; set; }
-
- [JsonIgnore]
+ [JsonProperty("bill")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("bill")]
#endif
- public bool EmptyCollection
- {
- get => this.InternalCollection?.Empty ?? false;
- set
- {
- this.InternalCollection ??= new Emptyable();
- this.InternalCollection.Empty = value;
- }
- }
+ public CadenceUpdateSettingsBillOptions Bill { get; set; }
///
/// Settings that configure and manage the behavior of collecting payments. If null is
/// provided, the current collection settings will be removed from the billing cadence.
///
- [JsonIgnore]
+ [JsonProperty("collection")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("collection")]
#endif
- public CadenceUpdateSettingsCollectionOptions Collection
- {
- get => this.InternalCollection?.Value;
- set
- {
- this.InternalCollection ??= new Emptyable();
- this.InternalCollection.Value = value;
- }
- }
+ public CadenceUpdateSettingsCollectionOptions Collection { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsKonbiniOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsKonbiniOptions.cs
deleted file mode 100644
index a82d44fa21..0000000000
--- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsKonbiniOptions.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- public class CollectionSettingCreatePaymentMethodOptionsKonbiniOptions : INestedOptions
- {
- }
-}
diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsOptions.cs
index af79b1c255..64cf216852 100644
--- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsOptions.cs
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
+ using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
@@ -52,7 +53,7 @@ public class CollectionSettingCreatePaymentMethodOptionsOptions : INestedOptions
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("konbini")]
#endif
- public CollectionSettingCreatePaymentMethodOptionsKonbiniOptions Konbini { get; set; }
+ public Dictionary Konbini { get; set; }
///
/// This sub-hash contains details about the SEPA Direct Debit payment method options.
@@ -61,7 +62,7 @@ public class CollectionSettingCreatePaymentMethodOptionsOptions : INestedOptions
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("sepa_debit")]
#endif
- public CollectionSettingCreatePaymentMethodOptionsSepaDebitOptions SepaDebit { get; set; }
+ public Dictionary SepaDebit { get; set; }
///
/// This sub-hash contains details about the ACH direct debit payment method options.
diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsSepaDebitOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsSepaDebitOptions.cs
deleted file mode 100644
index 9dff04fd87..0000000000
--- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingCreatePaymentMethodOptionsSepaDebitOptions.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- public class CollectionSettingCreatePaymentMethodOptionsSepaDebitOptions : INestedOptions
- {
- }
-}
diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdateOptions.cs
index 8dac387bc3..ae57cd7e36 100644
--- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdateOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdateOptions.cs
@@ -2,14 +2,10 @@
namespace Stripe.V2.Billing
{
using Newtonsoft.Json;
- using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif
-#if NET6_0_OR_GREATER
- [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
-#endif
public class CollectionSettingUpdateOptions : BaseOptions
{
///
@@ -36,44 +32,14 @@ public class CollectionSettingUpdateOptions : BaseOptions
#endif
public string DisplayName { get; set; }
- [JsonProperty("email_delivery")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("email_delivery")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalEmailDelivery { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyEmailDelivery
- {
- get => this.InternalEmailDelivery?.Empty ?? false;
- set
- {
- this.InternalEmailDelivery ??= new Emptyable();
- this.InternalEmailDelivery.Empty = value;
- }
- }
-
///
/// Email delivery settings.
///
- [JsonIgnore]
+ [JsonProperty("email_delivery")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("email_delivery")]
#endif
- public CollectionSettingUpdateEmailDeliveryOptions EmailDelivery
- {
- get => this.InternalEmailDelivery?.Value;
- set
- {
- this.InternalEmailDelivery ??= new Emptyable();
- this.InternalEmailDelivery.Value = value;
- }
- }
+ public CollectionSettingUpdateEmailDeliveryOptions EmailDelivery { get; set; }
///
/// Optionally change the live version of the CollectionSetting. Billing Cadences and other
diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsKonbiniOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsKonbiniOptions.cs
deleted file mode 100644
index 711e89e0c9..0000000000
--- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsKonbiniOptions.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- public class CollectionSettingUpdatePaymentMethodOptionsKonbiniOptions : INestedOptions
- {
- }
-}
diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsOptions.cs
index 797559032b..e0ff6a0a02 100644
--- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsOptions.cs
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
+ using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
@@ -52,7 +53,7 @@ public class CollectionSettingUpdatePaymentMethodOptionsOptions : INestedOptions
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("konbini")]
#endif
- public CollectionSettingUpdatePaymentMethodOptionsKonbiniOptions Konbini { get; set; }
+ public Dictionary Konbini { get; set; }
///
/// This sub-hash contains details about the SEPA Direct Debit payment method options.
@@ -61,7 +62,7 @@ public class CollectionSettingUpdatePaymentMethodOptionsOptions : INestedOptions
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("sepa_debit")]
#endif
- public CollectionSettingUpdatePaymentMethodOptionsSepaDebitOptions SepaDebit { get; set; }
+ public Dictionary SepaDebit { get; set; }
///
/// This sub-hash contains details about the ACH direct debit payment method options.
diff --git a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsSepaDebitOptions.cs b/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsSepaDebitOptions.cs
deleted file mode 100644
index e26302c6ca..0000000000
--- a/src/Stripe.net/Services/V2/Billing/CollectionSettings/CollectionSettingUpdatePaymentMethodOptionsSepaDebitOptions.cs
+++ /dev/null
@@ -1,7 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- public class CollectionSettingUpdatePaymentMethodOptionsSepaDebitOptions : INestedOptions
- {
- }
-}
diff --git a/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitUpdateOptions.cs
index 0d150cf32d..ea452c0634 100644
--- a/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitUpdateOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/CustomPricingUnits/CustomPricingUnitUpdateOptions.cs
@@ -3,14 +3,10 @@ namespace Stripe.V2.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
- using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif
-#if NET6_0_OR_GREATER
- [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
-#endif
public class CustomPricingUnitUpdateOptions : BaseOptions, IHasMetadata
{
///
@@ -31,44 +27,14 @@ public class CustomPricingUnitUpdateOptions : BaseOptions, IHasMetadata
#endif
public string DisplayName { get; set; }
- [JsonProperty("lookup_key")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("lookup_key")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalLookupKey { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyLookupKey
- {
- get => this.InternalLookupKey?.Empty ?? false;
- set
- {
- this.InternalLookupKey ??= new Emptyable();
- this.InternalLookupKey.Empty = value;
- }
- }
-
///
/// An internal key you can use to search for a particular CustomPricingUnit item.
///
- [JsonIgnore]
+ [JsonProperty("lookup_key")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("lookup_key")]
#endif
- public string LookupKey
- {
- get => this.InternalLookupKey?.Value;
- set
- {
- this.InternalLookupKey ??= new Emptyable();
- this.InternalLookupKey.Value = value;
- }
- }
+ public string LookupKey { get; set; }
///
/// Set of key-value pairs that you can attach to an object.
diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions.cs
index f5014b9d2c..68b77ba675 100644
--- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions.cs
@@ -25,6 +25,6 @@ public class IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions : INest
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("percent_off")]
#endif
- public string PercentOff { get; set; }
+ public decimal? PercentOff { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateEffectiveAtOptions.cs
index a40712ae82..dd5c325d34 100644
--- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateEffectiveAtOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateEffectiveAtOptions.cs
@@ -21,8 +21,7 @@ public class IntentCreateActionDeactivateEffectiveAtOptions : INestedOptions
///
/// When the deactivate action will take effect.
- /// One of: current_billing_period_end, current_billing_period_start,
- /// on_reserve, or timestamp.
+ /// One of: current_billing_period_start, on_reserve, or timestamp.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateTierOptions.cs b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateTierOptions.cs
index 205be249cc..d2f3a1a553 100644
--- a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateTierOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeCreateTierOptions.cs
@@ -36,7 +36,7 @@ public class LicenseFeeCreateTierOptions : INestedOptions
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("up_to_decimal")]
#endif
- public string UpToDecimal { get; set; }
+ public decimal? UpToDecimal { get; set; }
///
/// No upper bound to this tier. Only one of up_to_decimal and up_to_inf may
diff --git a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateTierOptions.cs b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateTierOptions.cs
index e1086b9525..1a91ed5179 100644
--- a/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateTierOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/LicenseFees/LicenseFeeUpdateTierOptions.cs
@@ -36,7 +36,7 @@ public class LicenseFeeUpdateTierOptions : INestedOptions
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("up_to_decimal")]
#endif
- public string UpToDecimal { get; set; }
+ public decimal? UpToDecimal { get; set; }
///
/// No upper bound to this tier. Only one of up_to_decimal and up_to_inf may
diff --git a/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemUpdateOptions.cs
index f1d6b49c62..c3eb9f3b2e 100644
--- a/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemUpdateOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/LicensedItems/LicensedItemUpdateOptions.cs
@@ -3,14 +3,10 @@ namespace Stripe.V2.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
- using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif
-#if NET6_0_OR_GREATER
- [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
-#endif
public class LicensedItemUpdateOptions : BaseOptions, IHasMetadata
{
///
@@ -23,45 +19,15 @@ public class LicensedItemUpdateOptions : BaseOptions, IHasMetadata
#endif
public string DisplayName { get; set; }
- [JsonProperty("lookup_key")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("lookup_key")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalLookupKey { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyLookupKey
- {
- get => this.InternalLookupKey?.Empty ?? false;
- set
- {
- this.InternalLookupKey ??= new Emptyable();
- this.InternalLookupKey.Empty = value;
- }
- }
-
///
/// An internal key you can use to search for a particular billable item. Maximum length of
/// 200 characters. To remove the lookup_key from the object, set it to null in the request.
///
- [JsonIgnore]
+ [JsonProperty("lookup_key")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("lookup_key")]
#endif
- public string LookupKey
- {
- get => this.InternalLookupKey?.Value;
- set
- {
- this.InternalLookupKey ??= new Emptyable();
- this.InternalLookupKey.Value = value;
- }
- }
+ public string LookupKey { get; set; }
///
/// Set of key-value pairs that you can
@@ -83,45 +49,15 @@ public string LookupKey
#endif
public LicensedItemUpdateTaxDetailsOptions TaxDetails { get; set; }
- [JsonProperty("unit_label")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("unit_label")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalUnitLabel { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyUnitLabel
- {
- get => this.InternalUnitLabel?.Empty ?? false;
- set
- {
- this.InternalUnitLabel ??= new Emptyable();
- this.InternalUnitLabel.Empty = value;
- }
- }
-
///
/// The unit to use when displaying prices for this billable item in places like Checkout.
/// For example, set this field to "seat" for Checkout to display "(price) per seat", or
/// "environment" to display "(price) per environment". Maximum length of 100 characters.
///
- [JsonIgnore]
+ [JsonProperty("unit_label")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("unit_label")]
#endif
- public string UnitLabel
- {
- get => this.InternalUnitLabel?.Value;
- set
- {
- this.InternalUnitLabel ??= new Emptyable();
- this.InternalUnitLabel.Value = value;
- }
- }
+ public string UnitLabel { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateOptions.cs
index 8917d41b17..e928d13fbd 100644
--- a/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateOptions.cs
@@ -10,7 +10,7 @@ namespace Stripe.V2.Billing
public class MeterEventStreamCreateOptions : BaseOptions
{
///
- /// List of meter events to include in the request. Supports up to 100 events per request.
+ /// List of meter events to include in the request.
///
[JsonProperty("events")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemUpdateOptions.cs
index 360b1668f1..069bd6bfa3 100644
--- a/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemUpdateOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/MeteredItems/MeteredItemUpdateOptions.cs
@@ -3,14 +3,10 @@ namespace Stripe.V2.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
- using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif
-#if NET6_0_OR_GREATER
- [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
-#endif
public class MeteredItemUpdateOptions : BaseOptions, IHasMetadata
{
///
@@ -23,45 +19,15 @@ public class MeteredItemUpdateOptions : BaseOptions, IHasMetadata
#endif
public string DisplayName { get; set; }
- [JsonProperty("lookup_key")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("lookup_key")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalLookupKey { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyLookupKey
- {
- get => this.InternalLookupKey?.Empty ?? false;
- set
- {
- this.InternalLookupKey ??= new Emptyable();
- this.InternalLookupKey.Empty = value;
- }
- }
-
///
/// An internal key you can use to search for a particular billable item. Maximum length of
/// 200 characters. To remove the lookup_key from the object, set it to null in the request.
///
- [JsonIgnore]
+ [JsonProperty("lookup_key")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("lookup_key")]
#endif
- public string LookupKey
- {
- get => this.InternalLookupKey?.Value;
- set
- {
- this.InternalLookupKey ??= new Emptyable();
- this.InternalLookupKey.Value = value;
- }
- }
+ public string LookupKey { get; set; }
///
/// Set of key-value pairs that you can
@@ -83,28 +49,6 @@ public string LookupKey
#endif
public MeteredItemUpdateTaxDetailsOptions TaxDetails { get; set; }
- [JsonProperty("unit_label")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("unit_label")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalUnitLabel { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyUnitLabel
- {
- get => this.InternalUnitLabel?.Empty ?? false;
- set
- {
- this.InternalUnitLabel ??= new Emptyable();
- this.InternalUnitLabel.Empty = value;
- }
- }
-
///
/// The unit to use when displaying prices for this billable item in places like Checkout.
/// For example, set this field to "CPU-hour" for Checkout to display "(price) per
@@ -112,18 +56,10 @@ public bool EmptyUnitLabel
/// length of 100 characters. To remove the unit_label from the object, set it to null in
/// the request.
///
- [JsonIgnore]
+ [JsonProperty("unit_label")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("unit_label")]
#endif
- public string UnitLabel
- {
- get => this.InternalUnitLabel?.Value;
- set
- {
- this.InternalUnitLabel ??= new Emptyable();
- this.InternalUnitLabel.Value = value;
- }
- }
+ public string UnitLabel { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/PricingPlans/Components/ComponentService.cs b/src/Stripe.net/Services/V2/Billing/PricingPlans/Components/ComponentService.cs
index 13e5d5ed40..90b9693e4a 100644
--- a/src/Stripe.net/Services/V2/Billing/PricingPlans/Components/ComponentService.cs
+++ b/src/Stripe.net/Services/V2/Billing/PricingPlans/Components/ComponentService.cs
@@ -39,17 +39,17 @@ public virtual V2.Billing.PricingPlanComponent Create(string id, ComponentCreate
///
/// Remove a Pricing Plan Component from the latest version of a Pricing Plan.
///
- public virtual V2.Billing.PricingPlanComponent Delete(string parentId, string id, ComponentDeleteOptions options = null, RequestOptions requestOptions = null)
+ public virtual V2.DeletedObject Delete(string parentId, string id, ComponentDeleteOptions options = null, RequestOptions requestOptions = null)
{
- return this.Request(BaseAddress.Api, HttpMethod.Delete, $"/v2/billing/pricing_plans/{WebUtility.UrlEncode(parentId)}/components/{WebUtility.UrlEncode(id)}", options, requestOptions);
+ return this.Request(BaseAddress.Api, HttpMethod.Delete, $"/v2/billing/pricing_plans/{WebUtility.UrlEncode(parentId)}/components/{WebUtility.UrlEncode(id)}", options, requestOptions);
}
///
/// Remove a Pricing Plan Component from the latest version of a Pricing Plan.
///
- public virtual Task DeleteAsync(string parentId, string id, ComponentDeleteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
+ public virtual Task DeleteAsync(string parentId, string id, ComponentDeleteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
{
- return this.RequestAsync(BaseAddress.Api, HttpMethod.Delete, $"/v2/billing/pricing_plans/{WebUtility.UrlEncode(parentId)}/components/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken);
+ return this.RequestAsync(BaseAddress.Api, HttpMethod.Delete, $"/v2/billing/pricing_plans/{WebUtility.UrlEncode(parentId)}/components/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken);
}
///
diff --git a/src/Stripe.net/Services/V2/Billing/Profiles/ProfileUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/Profiles/ProfileUpdateOptions.cs
index b6352b87de..0fecdd11d0 100644
--- a/src/Stripe.net/Services/V2/Billing/Profiles/ProfileUpdateOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Profiles/ProfileUpdateOptions.cs
@@ -3,14 +3,10 @@ namespace Stripe.V2.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
- using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif
-#if NET6_0_OR_GREATER
- [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
-#endif
public class ProfileUpdateOptions : BaseOptions, IHasMetadata
{
///
@@ -22,86 +18,26 @@ public class ProfileUpdateOptions : BaseOptions, IHasMetadata
#endif
public string DefaultPaymentMethod { get; set; }
- [JsonProperty("display_name")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("display_name")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalDisplayName { get; set; }
-
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public bool EmptyDisplayName
- {
- get => this.InternalDisplayName?.Empty ?? false;
- set
- {
- this.InternalDisplayName ??= new Emptyable();
- this.InternalDisplayName.Empty = value;
- }
- }
-
///
/// A customer-facing name for the billing profile. Maximum length of 250 characters. To
/// remove the display_name from the object, set it to null in the request.
///
- [JsonIgnore]
-#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
-#endif
- public string DisplayName
- {
- get => this.InternalDisplayName?.Value;
- set
- {
- this.InternalDisplayName ??= new Emptyable();
- this.InternalDisplayName.Value = value;
- }
- }
-
- [JsonProperty("lookup_key")]
- [JsonConverter(typeof(EmptyableConverter))]
-#if NET6_0_OR_GREATER
- [STJS.JsonPropertyName("lookup_key")]
- [STJS.JsonConverter(typeof(STJEmptyableConverter))]
-#endif
- internal Emptyable InternalLookupKey { get; set; }
-
- [JsonIgnore]
+ [JsonProperty("display_name")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("display_name")]
#endif
- public bool EmptyLookupKey
- {
- get => this.InternalLookupKey?.Empty ?? false;
- set
- {
- this.InternalLookupKey ??= new Emptyable();
- this.InternalLookupKey.Empty = value;
- }
- }
+ public string DisplayName { get; set; }
///
/// An internal key you can use to search for a particular billing profile. It must be
/// unique among billing profiles for a given customer. Maximum length of 200 characters. To
/// remove the lookup_key from the object, set it to null in the request.
///
- [JsonIgnore]
+ [JsonProperty("lookup_key")]
#if NET6_0_OR_GREATER
- [STJS.JsonIgnore]
+ [STJS.JsonPropertyName("lookup_key")]
#endif
- public string LookupKey
- {
- get => this.InternalLookupKey?.Value;
- set
- {
- this.InternalLookupKey ??= new Emptyable();
- this.InternalLookupKey.Value = value;
- }
- }
+ public string LookupKey { get; set; }
///
/// Set of key-value pairs that you can attach to an object. This can be useful for storing
diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateTierOptions.cs b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateTierOptions.cs
index 2f2f134618..1506b1f151 100644
--- a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateTierOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateCreateTierOptions.cs
@@ -36,7 +36,7 @@ public class RateCreateTierOptions : INestedOptions
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("up_to_decimal")]
#endif
- public string UpToDecimal { get; set; }
+ public decimal? UpToDecimal { get; set; }
///
/// No upper bound to this tier. Only one of up_to_decimal and up_to_inf may
diff --git a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateService.cs b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateService.cs
index 6892f1ef92..471a5d88cc 100644
--- a/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateService.cs
+++ b/src/Stripe.net/Services/V2/Billing/RateCards/Rates/RateService.cs
@@ -42,18 +42,18 @@ public virtual V2.Billing.RateCardRate Create(string id, RateCreateOptions optio
/// Remove an existing Rate from a Rate Card. This will create a new Rate Card Version
/// without that Rate.
///
- public virtual V2.Billing.RateCardRate Delete(string parentId, string id, RateDeleteOptions options = null, RequestOptions requestOptions = null)
+ public virtual V2.DeletedObject Delete(string parentId, string id, RateDeleteOptions options = null, RequestOptions requestOptions = null)
{
- return this.Request(BaseAddress.Api, HttpMethod.Delete, $"/v2/billing/rate_cards/{WebUtility.UrlEncode(parentId)}/rates/{WebUtility.UrlEncode(id)}", options, requestOptions);
+ return this.Request(BaseAddress.Api, HttpMethod.Delete, $"/v2/billing/rate_cards/{WebUtility.UrlEncode(parentId)}/rates/{WebUtility.UrlEncode(id)}", options, requestOptions);
}
///
/// Remove an existing Rate from a Rate Card. This will create a new Rate Card Version
/// without that Rate.
///
- public virtual Task DeleteAsync(string parentId, string id, RateDeleteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
+ public virtual Task DeleteAsync(string parentId, string id, RateDeleteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
{
- return this.RequestAsync