Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #3032

Open
wants to merge 5 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1370
v1378
6 changes: 4 additions & 2 deletions src/Stripe.net/Constants/EventTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,14 @@ public static class EventTypes
public const string ChargePending = "charge.pending";

/// <summary>
/// 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 <c>refund.updated</c> instead.
/// </summary>
public const string ChargeRefundUpdated = "charge.refund.updated";

/// <summary>
/// Occurs whenever a charge is refunded, including partial refunds.
/// Occurs whenever a charge is refunded, including partial refunds. Listen to
/// <c>refund.created</c> for information about the refund.
/// </summary>
public const string ChargeRefunded = "charge.refunded";

Expand Down
7 changes: 7 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("au_becs_debit_payments")]
public string AuBecsDebitPayments { get; set; }

/// <summary>
/// The status of the automatic_indirect_tax capability of the account.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("automatic_indirect_tax")]
public string AutomaticIndirectTax { get; set; }

/// <summary>
/// The status of the Bacs Direct Debits payments capability of the account, or whether the
/// account can directly process Bacs Direct Debits charges.
Expand Down
8 changes: 8 additions & 0 deletions src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ namespace Stripe

public class InvoiceAutomaticTax : StripeEntity<InvoiceAutomaticTax>
{
/// <summary>
/// If Stripe disabled automatic tax, this enum describes why.
/// One of: <c>finalization_requires_location_inputs</c>, or
/// <c>finalization_system_error</c>.
/// </summary>
[JsonProperty("disabled_reason")]
public string DisabledReason { get; set; }

/// <summary>
/// Whether Stripe automatically computes tax on this invoice. Note that incompatible
/// invoice items (invoice items with manually specified <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ namespace Stripe

public class QuotePreviewInvoiceAutomaticTax : StripeEntity<QuotePreviewInvoiceAutomaticTax>
{
/// <summary>
/// If Stripe disabled automatic tax, this enum describes why.
/// One of: <c>finalization_requires_location_inputs</c>, or
/// <c>finalization_system_error</c>.
/// </summary>
[JsonProperty("disabled_reason")]
public string DisabledReason { get; set; }

/// <summary>
/// Whether Stripe automatically computes tax on this invoice. Note that incompatible
/// invoice items (invoice items with manually specified <a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class QuotePreviewSubscriptionScheduleDefaultSettingsAutomaticTax : StripeEntity<QuotePreviewSubscriptionScheduleDefaultSettingsAutomaticTax>
{
/// <summary>
/// If Stripe disabled automatic tax, this enum describes why.
/// </summary>
[JsonProperty("disabled_reason")]
public string DisabledReason { get; set; }

/// <summary>
/// Whether Stripe automatically computes tax on invoices created during this phase.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class QuotePreviewSubscriptionSchedulePhaseAutomaticTax : StripeEntity<QuotePreviewSubscriptionSchedulePhaseAutomaticTax>
{
/// <summary>
/// If Stripe disabled automatic tax, this enum describes why.
/// </summary>
[JsonProperty("disabled_reason")]
public string DisabledReason { get; set; }

/// <summary>
/// Whether Stripe automatically computes tax on invoices created during this phase.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class SubscriptionScheduleDefaultSettingsAutomaticTax : StripeEntity<SubscriptionScheduleDefaultSettingsAutomaticTax>
{
/// <summary>
/// If Stripe disabled automatic tax, this enum describes why.
/// </summary>
[JsonProperty("disabled_reason")]
public string DisabledReason { get; set; }

/// <summary>
/// Whether Stripe automatically computes tax on invoices created during this phase.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class SubscriptionSchedulePhaseAutomaticTax : StripeEntity<SubscriptionSchedulePhaseAutomaticTax>
{
/// <summary>
/// If Stripe disabled automatic tax, this enum describes why.
/// </summary>
[JsonProperty("disabled_reason")]
public string DisabledReason { get; set; }

/// <summary>
/// Whether Stripe automatically computes tax on invoices created during this phase.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ namespace Stripe

public class SubscriptionAutomaticTax : StripeEntity<SubscriptionAutomaticTax>
{
/// <summary>
/// If Stripe disabled automatic tax, this enum describes why.
/// </summary>
[JsonProperty("disabled_reason")]
public string DisabledReason { get; set; }

/// <summary>
/// Whether Stripe automatically computes tax on this subscription.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountCapabilitiesAutomaticIndirectTaxOptions : INestedOptions
{
/// <summary>
/// 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 <c>requirements</c> arrays.
/// </summary>
[JsonProperty("requested")]
public bool? Requested { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("au_becs_debit_payments")]
public AccountCapabilitiesAuBecsDebitPaymentsOptions AuBecsDebitPayments { get; set; }

/// <summary>
/// The automatic_indirect_tax capability.
/// </summary>
[JsonProperty("automatic_indirect_tax")]
public AccountCapabilitiesAutomaticIndirectTaxOptions AutomaticIndirectTax { get; set; }

/// <summary>
/// The bacs_debit_payments capability.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Services/Customers/CustomerTaxOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class CustomerTaxOptions : INestedOptions

/// <summary>
/// A flag that indicates when Stripe should validate the customer tax location. Defaults to
/// <c>deferred</c>.
/// <c>auto</c>.
/// One of: <c>auto</c>, <c>deferred</c>, or <c>immediately</c>.
/// </summary>
[JsonProperty("validate_location")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public class InvoiceUpcomingLinesSubscriptionDetailsItemOptions : INestedOptions
public InvoiceUpcomingLinesSubscriptionDetailsItemBillingThresholdsOptions BillingThresholds { get; set; }

/// <summary>
/// Delete all usage for a given subscription item. Allowed only when <c>deleted</c> is set
/// to <c>true</c> and the current plan's <c>usage_type</c> is <c>metered</c>.
/// Delete all usage for a given subscription item. You must pass this when deleting a usage
/// records subscription item. <c>clear_usage</c> has no effect if the plan has a billing
/// meter attached.
/// </summary>
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public class InvoiceUpcomingLinesSubscriptionItemOptions : INestedOptions, IHasI
public InvoiceUpcomingLinesSubscriptionItemBillingThresholdsOptions BillingThresholds { get; set; }

/// <summary>
/// Delete all usage for a given subscription item. Allowed only when <c>deleted</c> is set
/// to <c>true</c> and the current plan's <c>usage_type</c> is <c>metered</c>.
/// Delete all usage for a given subscription item. You must pass this when deleting a usage
/// records subscription item. <c>clear_usage</c> has no effect if the plan has a billing
/// meter attached.
/// </summary>
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public class InvoiceSubscriptionDetailsItemOptions : INestedOptions, IHasId, IHa
public InvoiceSubscriptionDetailsItemBillingThresholdsOptions BillingThresholds { get; set; }

/// <summary>
/// Delete all usage for a given subscription item. Allowed only when <c>deleted</c> is set
/// to <c>true</c> and the current plan's <c>usage_type</c> is <c>metered</c>.
/// Delete all usage for a given subscription item. You must pass this when deleting a usage
/// records subscription item. <c>clear_usage</c> has no effect if the plan has a billing
/// meter attached.
/// </summary>
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public class InvoiceSubscriptionItemOptions : INestedOptions, IHasId, IHasMetada
public InvoiceSubscriptionItemBillingThresholdsOptions BillingThresholds { get; set; }

/// <summary>
/// Delete all usage for a given subscription item. Allowed only when <c>deleted</c> is set
/// to <c>true</c> and the current plan's <c>usage_type</c> is <c>metered</c>.
/// Delete all usage for a given subscription item. You must pass this when deleting a usage
/// records subscription item. <c>clear_usage</c> has no effect if the plan has a billing
/// meter attached.
/// </summary>
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public class SubscriptionItemOptions : INestedOptions, IHasId, IHasMetadata
public SubscriptionItemBillingThresholdsOptions BillingThresholds { get; set; }

/// <summary>
/// Delete all usage for a given subscription item. Allowed only when <c>deleted</c> is set
/// to <c>true</c> and the current plan's <c>usage_type</c> is <c>metered</c>.
/// Delete all usage for a given subscription item. You must pass this when deleting a usage
/// records subscription item. <c>clear_usage</c> has no effect if the plan has a billing
/// meter attached.
/// </summary>
[JsonProperty("clear_usage")]
public bool? ClearUsage { get; set; }
Expand Down
Loading