diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0380667751..1cf360ac35 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1370 \ No newline at end of file +v1378 \ 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"; 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/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. /// 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. /// 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")] 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; }