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

Merged
merged 10 commits into from
Dec 5, 2024
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1370
v1384
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
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ public IBalanceTransactionSource Source
/// <c>obligation_reversal_inbound</c>, <c>payment</c>, <c>payment_failure_refund</c>,
/// <c>payment_network_reserve_hold</c>, <c>payment_network_reserve_release</c>,
/// <c>payment_refund</c>, <c>payment_reversal</c>, <c>payment_unreconciled</c>,
/// <c>payout</c>, <c>payout_cancel</c>, <c>payout_failure</c>, <c>refund</c>,
/// <c>refund_failure</c>, <c>reserve_transaction</c>, <c>reserved_funds</c>,
/// <c>payout</c>, <c>payout_cancel</c>, <c>payout_failure</c>,
/// <c>payout_minimum_balance_hold</c>, <c>payout_minimum_balance_release</c>,
/// <c>refund</c>, <c>refund_failure</c>, <c>reserve_transaction</c>, <c>reserved_funds</c>,
/// <c>stripe_fee</c>, <c>stripe_fx_fee</c>, <c>tax_fee</c>, <c>topup</c>,
/// <c>topup_reversal</c>, <c>transfer</c>, <c>transfer_cancel</c>, <c>transfer_failure</c>,
/// or <c>transfer_refund</c>. Learn more about <a
Expand All @@ -171,8 +172,9 @@ public IBalanceTransactionSource Source
/// <c>obligation_reversal_inbound</c>, <c>payment</c>, <c>payment_failure_refund</c>,
/// <c>payment_network_reserve_hold</c>, <c>payment_network_reserve_release</c>,
/// <c>payment_refund</c>, <c>payment_reversal</c>, <c>payment_unreconciled</c>,
/// <c>payout</c>, <c>payout_cancel</c>, <c>payout_failure</c>, <c>refund</c>,
/// <c>refund_failure</c>, <c>reserve_transaction</c>, <c>reserved_funds</c>,
/// <c>payout</c>, <c>payout_cancel</c>, <c>payout_failure</c>,
/// <c>payout_minimum_balance_hold</c>, <c>payout_minimum_balance_release</c>,
/// <c>refund</c>, <c>refund_failure</c>, <c>reserve_transaction</c>, <c>reserved_funds</c>,
/// <c>stripe_fee</c>, <c>stripe_fx_fee</c>, <c>tax_fee</c>, <c>topup</c>,
/// <c>topup_reversal</c>, <c>transfer</c>, <c>transfer_cancel</c>, <c>transfer_failure</c>,
/// or <c>transfer_refund</c>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public Customer Customer
#endregion

/// <summary>
/// The time when the billing credits become effectivewhen they're eligible for use.
/// The time when the billing credits become effective-when they're eligible for use.
/// </summary>
[JsonProperty("effective_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.Billing
public class CreditGrantApplicabilityConfigScope : StripeEntity<CreditGrantApplicabilityConfigScope>
{
/// <summary>
/// The price type for which credit grants can apply. We currently only support the
/// The price type that credit grants can apply to. We currently only support the
/// <c>metered</c> price type. This refers to prices that have a <a
/// href="https://docs.stripe.com/api/billing/meter">Billing Meter</a> attached to them.
/// </summary>
Expand Down
8 changes: 4 additions & 4 deletions src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ namespace Stripe.Billing
using Stripe.Infrastructure;

/// <summary>
/// A billing meter event represents a customer's usage of a product. Meter events are used
/// to bill a customer based on their usage. Meter events are associated with billing
/// meters, which define the shape of the event's payload and how those events are
/// aggregated for billing.
/// Meter events represent actions that customers take in your system. You can use meter
/// events to bill a customer based on their usage. Meter events are associated with billing
/// meters, which define both the contents of the events payload and how to aggregate those
/// events.
/// </summary>
public class MeterEvent : StripeEntity<MeterEvent>, IHasObject
{
Expand Down
7 changes: 3 additions & 4 deletions src/Stripe.net/Entities/Billing/Meters/Meter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ namespace Stripe.Billing
using Stripe.Infrastructure;

/// <summary>
/// A billing meter is a resource that allows you to track usage of a particular event. For
/// example, you might create a billing meter to track the number of API calls made by a
/// particular user. You can then attach the billing meter to a price and attach the price
/// to a subscription to charge the user for the number of API calls they make.
/// Meters specify how to aggregate meter events over a billing period. Meter events
/// represent the actions that customers take in your system. Meters attach to prices and
/// form the basis of the bill.
///
/// Related guide: <a href="https://docs.stripe.com/billing/subscriptions/usage-based">Usage
/// based billing</a>.
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public class Session : StripeEntity<Session>, IHasId, IHasMetadata, IHasObject

/// <summary>
/// The client secret of the Session. Use this with <a
/// href="https://stripe.com/docs/js/custom_checkout/init">initCustomCheckout</a> on your
/// front end.
/// href="https://stripe.com/docs/js/custom_checkout/init">initCheckout</a> on your front
/// end.
/// </summary>
[JsonProperty("client_secret")]
public string ClientSecret { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsBacsDebitMandateOptions : StripeEntity<SessionPaymentMethodOptionsBacsDebitMandateOptions>
{
/// <summary>
/// Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
/// consist of only uppercase letters, numbers, spaces, or the following special characters:
/// '/', '_', '-', '&amp;', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
/// </summary>
[JsonProperty("reference_prefix")]
public string ReferencePrefix { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsSepaDebitMandateOptions : StripeEntity<SessionPaymentMethodOptionsSepaDebitMandateOptions>
{
/// <summary>
/// Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
/// consist of only uppercase letters, numbers, spaces, or the following special characters:
/// '/', '_', '-', '&amp;', '.'. Cannot begin with 'STRIPE'.
/// </summary>
[JsonProperty("reference_prefix")]
public string ReferencePrefix { get; set; }
}
}
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
@@ -1,7 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class OrderPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions : StripeEntity<OrderPaymentSettingsPaymentMethodOptionsSepaDebitMandateOptions>
{
/// <summary>
/// Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
/// consist of only uppercase letters, numbers, spaces, or the following special characters:
/// '/', '_', '-', '&amp;', '.'. Cannot begin with 'STRIPE'.
/// </summary>
[JsonProperty("reference_prefix")]
public string ReferencePrefix { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentIntentPaymentMethodOptionsBacsDebitMandateOptions : StripeEntity<PaymentIntentPaymentMethodOptionsBacsDebitMandateOptions>
{
/// <summary>
/// Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
/// consist of only uppercase letters, numbers, spaces, or the following special characters:
/// '/', '_', '-', '&amp;', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
/// </summary>
[JsonProperty("reference_prefix")]
public string ReferencePrefix { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentIntentPaymentMethodOptionsSepaDebitMandateOptions : StripeEntity<PaymentIntentPaymentMethodOptionsSepaDebitMandateOptions>
{
/// <summary>
/// Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
/// consist of only uppercase letters, numbers, spaces, or the following special characters:
/// '/', '_', '-', '&amp;', '.'. Cannot begin with 'STRIPE'.
/// </summary>
[JsonProperty("reference_prefix")]
public string ReferencePrefix { get; set; }
}
}
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
@@ -1,7 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class SetupIntentPaymentMethodOptionsBacsDebitMandateOptions : StripeEntity<SetupIntentPaymentMethodOptionsBacsDebitMandateOptions>
{
/// <summary>
/// Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
/// consist of only uppercase letters, numbers, spaces, or the following special characters:
/// '/', '_', '-', '&amp;', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
/// </summary>
[JsonProperty("reference_prefix")]
public string ReferencePrefix { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class SetupIntentPaymentMethodOptionsSepaDebitMandateOptions : StripeEntity<SetupIntentPaymentMethodOptionsSepaDebitMandateOptions>
{
/// <summary>
/// Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must
/// consist of only uppercase letters, numbers, spaces, or the following special characters:
/// '/', '_', '-', '&amp;', '.'. Cannot begin with 'STRIPE'.
/// </summary>
[JsonProperty("reference_prefix")]
public string ReferencePrefix { get; set; }
}
}
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
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.Treasury
public class FinancialAccountFeaturesInboundTransfers : StripeEntity<FinancialAccountFeaturesInboundTransfers>
{
/// <summary>
/// Toggle settings for enabling/disabling an ACH specific feature.
/// Toggle settings for enabling/disabling an inbound ACH specific feature.
/// </summary>
[JsonProperty("ach")]
public FinancialAccountFeaturesInboundTransfersAch Ach { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.Treasury
public class FinancialAccountFeaturesOutboundPayments : StripeEntity<FinancialAccountFeaturesOutboundPayments>
{
/// <summary>
/// Toggle settings for enabling/disabling an ACH specific feature.
/// Toggle settings for enabling/disabling an outbound ACH specific feature.
/// </summary>
[JsonProperty("ach")]
public FinancialAccountFeaturesOutboundPaymentsAch Ach { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Stripe.Treasury
public class FinancialAccountFeaturesOutboundTransfers : StripeEntity<FinancialAccountFeaturesOutboundTransfers>
{
/// <summary>
/// Toggle settings for enabling/disabling an ACH specific feature.
/// Toggle settings for enabling/disabling an outbound ACH specific feature.
/// </summary>
[JsonProperty("ach")]
public FinancialAccountFeaturesOutboundTransfersAch Ach { get; set; }
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
Loading
Loading