From 456f2b8d915358617bc51bca86183e89319e044f Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Fri, 22 Nov 2024 14:59:46 +0000
Subject: [PATCH 1/5] Update generated code for v1373
---
OPENAPI_VERSION | 2 +-
.../InvoiceUpcomingLinesSubscriptionDetailsItemOptions.cs | 5 +++--
.../InvoiceUpcomingLinesSubscriptionItemOptions.cs | 5 +++--
.../Invoices/InvoiceSubscriptionDetailsItemOptions.cs | 5 +++--
.../Services/Invoices/InvoiceSubscriptionItemOptions.cs | 5 +++--
.../Services/Subscriptions/SubscriptionItemOptions.cs | 5 +++--
6 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 0380667751..c30547467c 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1370
\ No newline at end of file
+v1373
\ No newline at end of file
diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemOptions.cs
index ea07a4cede..6a8edcfe40 100644
--- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemOptions.cs
+++ b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemOptions.cs
@@ -15,8 +15,9 @@ public class InvoiceUpcomingLinesSubscriptionDetailsItemOptions : INestedOptions
public InvoiceUpcomingLinesSubscriptionDetailsItemBillingThresholdsOptions BillingThresholds { get; set; }
///
- /// Delete all usage for a given subscription item. Allowed only when deleted is set
- /// to true and the current plan's usage_type is metered.
+ /// Delete all usage for a given subscription item. You must pass this when deleting a usage
+ /// records subscription item. clear_usage has no effect if the plan has a billing
+ /// meter attached.
///
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemOptions.cs
index e3f26aa86f..9ec6b7760e 100644
--- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemOptions.cs
+++ b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemOptions.cs
@@ -15,8 +15,9 @@ public class InvoiceUpcomingLinesSubscriptionItemOptions : INestedOptions, IHasI
public InvoiceUpcomingLinesSubscriptionItemBillingThresholdsOptions BillingThresholds { get; set; }
///
- /// Delete all usage for a given subscription item. Allowed only when deleted is set
- /// to true and the current plan's usage_type is metered.
+ /// Delete all usage for a given subscription item. You must pass this when deleting a usage
+ /// records subscription item. clear_usage has no effect if the plan has a billing
+ /// meter attached.
///
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs
index 95b89132eb..0478a4b070 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsItemOptions.cs
@@ -15,8 +15,9 @@ public class InvoiceSubscriptionDetailsItemOptions : INestedOptions, IHasId, IHa
public InvoiceSubscriptionDetailsItemBillingThresholdsOptions BillingThresholds { get; set; }
///
- /// Delete all usage for a given subscription item. Allowed only when deleted is set
- /// to true and the current plan's usage_type is metered.
+ /// Delete all usage for a given subscription item. You must pass this when deleting a usage
+ /// records subscription item. clear_usage has no effect if the plan has a billing
+ /// meter attached.
///
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemOptions.cs
index bdd64206c5..e7db32aaae 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionItemOptions.cs
@@ -15,8 +15,9 @@ public class InvoiceSubscriptionItemOptions : INestedOptions, IHasId, IHasMetada
public InvoiceSubscriptionItemBillingThresholdsOptions BillingThresholds { get; set; }
///
- /// Delete all usage for a given subscription item. Allowed only when deleted is set
- /// to true and the current plan's usage_type is metered.
+ /// Delete all usage for a given subscription item. You must pass this when deleting a usage
+ /// records subscription item. clear_usage has no effect if the plan has a billing
+ /// meter attached.
///
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs
index 0bcf026bef..94fae3f1f9 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionItemOptions.cs
@@ -15,8 +15,9 @@ public class SubscriptionItemOptions : INestedOptions, IHasId, IHasMetadata
public SubscriptionItemBillingThresholdsOptions BillingThresholds { get; set; }
///
- /// Delete all usage for a given subscription item. Allowed only when deleted is set
- /// to true and the current plan's usage_type is metered.
+ /// Delete all usage for a given subscription item. You must pass this when deleting a usage
+ /// records subscription item. clear_usage has no effect if the plan has a billing
+ /// meter attached.
///
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
From b8c8d4ef8468146feea072f393656e9860320c3e Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Fri, 22 Nov 2024 22:28:10 +0000
Subject: [PATCH 2/5] Update generated code for v1374
---
OPENAPI_VERSION | 2 +-
.../Entities/Accounts/AccountCapabilities.cs | 7 +++++++
...untCapabilitiesAutomaticIndirectTaxOptions.cs | 16 ++++++++++++++++
.../Accounts/AccountCapabilitiesOptions.cs | 6 ++++++
4 files changed, 30 insertions(+), 1 deletion(-)
create mode 100644 src/Stripe.net/Services/Accounts/AccountCapabilitiesAutomaticIndirectTaxOptions.cs
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index c30547467c..9d10af8c12 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1373
\ No newline at end of file
+v1374
\ No newline at end of file
diff --git a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
index 552c644b73..0078d7ae56 100644
--- a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
+++ b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
@@ -53,6 +53,13 @@ public class AccountCapabilities : StripeEntity
[JsonProperty("au_becs_debit_payments")]
public string AuBecsDebitPayments { get; set; }
+ ///
+ /// The status of the automatic_indirect_tax capability of the account.
+ /// One of: active, inactive, or pending.
+ ///
+ [JsonProperty("automatic_indirect_tax")]
+ public string AutomaticIndirectTax { get; set; }
+
///
/// The status of the Bacs Direct Debits payments capability of the account, or whether the
/// account can directly process Bacs Direct Debits charges.
diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesAutomaticIndirectTaxOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesAutomaticIndirectTaxOptions.cs
new file mode 100644
index 0000000000..1da60836b4
--- /dev/null
+++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesAutomaticIndirectTaxOptions.cs
@@ -0,0 +1,16 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+
+ public class AccountCapabilitiesAutomaticIndirectTaxOptions : INestedOptions
+ {
+ ///
+ /// Passing true requests the capability for the account, if it is not already requested. A
+ /// requested capability may not immediately become active. Any requirements to activate the
+ /// capability are returned in the requirements arrays.
+ ///
+ [JsonProperty("requested")]
+ public bool? Requested { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs
index 0c21aaa815..dc08bb491d 100644
--- a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs
+++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs
@@ -41,6 +41,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("au_becs_debit_payments")]
public AccountCapabilitiesAuBecsDebitPaymentsOptions AuBecsDebitPayments { get; set; }
+ ///
+ /// The automatic_indirect_tax capability.
+ ///
+ [JsonProperty("automatic_indirect_tax")]
+ public AccountCapabilitiesAutomaticIndirectTaxOptions AutomaticIndirectTax { get; set; }
+
///
/// The bacs_debit_payments capability.
///
From 97347672366f18b0c3ad34d9f924703a23ccca2c Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 25 Nov 2024 01:16:12 +0000
Subject: [PATCH 3/5] Update generated code for v1375
---
OPENAPI_VERSION | 2 +-
src/Stripe.net/Constants/EventTypes.cs | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 9d10af8c12..5aa6d5652e 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1374
\ No newline at end of file
+v1375
\ No newline at end of file
diff --git a/src/Stripe.net/Constants/EventTypes.cs b/src/Stripe.net/Constants/EventTypes.cs
index 8303a93ce6..48cfd750aa 100644
--- a/src/Stripe.net/Constants/EventTypes.cs
+++ b/src/Stripe.net/Constants/EventTypes.cs
@@ -203,12 +203,14 @@ public static class EventTypes
public const string ChargePending = "charge.pending";
///
- /// Occurs whenever a refund is updated, on selected payment methods.
+ /// Occurs whenever a refund is updated on selected payment methods. For updates on all
+ /// refunds, listen to refund.updated instead.
///
public const string ChargeRefundUpdated = "charge.refund.updated";
///
- /// Occurs whenever a charge is refunded, including partial refunds.
+ /// Occurs whenever a charge is refunded, including partial refunds. Listen to
+ /// refund.created for information about the refund.
///
public const string ChargeRefunded = "charge.refunded";
From 008cfade65f06536ec2d0370450bd817d411a3cb Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 25 Nov 2024 19:06:29 +0000
Subject: [PATCH 4/5] Update generated code for v1377
---
OPENAPI_VERSION | 2 +-
src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs | 8 ++++++++
.../QuotePreviewInvoiceAutomaticTax.cs | 8 ++++++++
...viewSubscriptionScheduleDefaultSettingsAutomaticTax.cs | 6 ++++++
.../QuotePreviewSubscriptionSchedulePhaseAutomaticTax.cs | 6 ++++++
.../SubscriptionScheduleDefaultSettingsAutomaticTax.cs | 6 ++++++
.../SubscriptionSchedulePhaseAutomaticTax.cs | 6 ++++++
.../Entities/Subscriptions/SubscriptionAutomaticTax.cs | 6 ++++++
8 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 5aa6d5652e..f1d2c03739 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1375
\ No newline at end of file
+v1377
\ No newline at end of file
diff --git a/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs b/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs
index bac2c6d988..39d8b96ffc 100644
--- a/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs
@@ -5,6 +5,14 @@ namespace Stripe
public class InvoiceAutomaticTax : StripeEntity
{
+ ///
+ /// If Stripe disabled automatic tax, this enum describes why.
+ /// One of: finalization_requires_location_inputs, or
+ /// finalization_system_error.
+ ///
+ [JsonProperty("disabled_reason")]
+ public string DisabledReason { get; set; }
+
///
/// Whether Stripe automatically computes tax on this invoice. Note that incompatible
/// invoice items (invoice items with manually specified
{
+ ///
+ /// If Stripe disabled automatic tax, this enum describes why.
+ /// One of: finalization_requires_location_inputs, or
+ /// finalization_system_error.
+ ///
+ [JsonProperty("disabled_reason")]
+ public string DisabledReason { get; set; }
+
///
/// Whether Stripe automatically computes tax on this invoice. Note that incompatible
/// invoice items (invoice items with manually specified
{
+ ///
+ /// If Stripe disabled automatic tax, this enum describes why.
+ ///
+ [JsonProperty("disabled_reason")]
+ public string DisabledReason { get; set; }
+
///
/// Whether Stripe automatically computes tax on invoices created during this phase.
///
diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseAutomaticTax.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseAutomaticTax.cs
index ca465c41e9..13b58ef859 100644
--- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseAutomaticTax.cs
+++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseAutomaticTax.cs
@@ -5,6 +5,12 @@ namespace Stripe
public class QuotePreviewSubscriptionSchedulePhaseAutomaticTax : StripeEntity
{
+ ///
+ /// If Stripe disabled automatic tax, this enum describes why.
+ ///
+ [JsonProperty("disabled_reason")]
+ public string DisabledReason { get; set; }
+
///
/// Whether Stripe automatically computes tax on invoices created during this phase.
///
diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTax.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTax.cs
index 60e4aebe7f..f7858ea804 100644
--- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTax.cs
+++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTax.cs
@@ -5,6 +5,12 @@ namespace Stripe
public class SubscriptionScheduleDefaultSettingsAutomaticTax : StripeEntity
{
+ ///
+ /// If Stripe disabled automatic tax, this enum describes why.
+ ///
+ [JsonProperty("disabled_reason")]
+ public string DisabledReason { get; set; }
+
///
/// Whether Stripe automatically computes tax on invoices created during this phase.
///
diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTax.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTax.cs
index f59a708da2..70e688e37d 100644
--- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTax.cs
+++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTax.cs
@@ -5,6 +5,12 @@ namespace Stripe
public class SubscriptionSchedulePhaseAutomaticTax : StripeEntity
{
+ ///
+ /// If Stripe disabled automatic tax, this enum describes why.
+ ///
+ [JsonProperty("disabled_reason")]
+ public string DisabledReason { get; set; }
+
///
/// Whether Stripe automatically computes tax on invoices created during this phase.
///
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionAutomaticTax.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionAutomaticTax.cs
index d23638bf11..2d0b1369e4 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionAutomaticTax.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionAutomaticTax.cs
@@ -5,6 +5,12 @@ namespace Stripe
public class SubscriptionAutomaticTax : StripeEntity
{
+ ///
+ /// If Stripe disabled automatic tax, this enum describes why.
+ ///
+ [JsonProperty("disabled_reason")]
+ public string DisabledReason { get; set; }
+
///
/// Whether Stripe automatically computes tax on this subscription.
///
From 9e467b10ce9060f14e5969b8fbb0a31c4cf7f3ea Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Mon, 25 Nov 2024 22:08:58 +0000
Subject: [PATCH 5/5] Update generated code for v1378
---
OPENAPI_VERSION | 2 +-
src/Stripe.net/Services/Customers/CustomerTaxOptions.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index f1d2c03739..1cf360ac35 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1377
\ No newline at end of file
+v1378
\ No newline at end of file
diff --git a/src/Stripe.net/Services/Customers/CustomerTaxOptions.cs b/src/Stripe.net/Services/Customers/CustomerTaxOptions.cs
index c965cd7dcd..9b166e88fe 100644
--- a/src/Stripe.net/Services/Customers/CustomerTaxOptions.cs
+++ b/src/Stripe.net/Services/Customers/CustomerTaxOptions.cs
@@ -16,7 +16,7 @@ public class CustomerTaxOptions : INestedOptions
///
/// A flag that indicates when Stripe should validate the customer tax location. Defaults to
- /// deferred.
+ /// auto.
/// One of: auto, deferred, or immediately.
///
[JsonProperty("validate_location")]