/// Initiates resumption of a paused subscription, optionally resetting the billing cycle
/// anchor and creating prorations. If a resumption invoice is generated, it must be paid or
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
index 8dfc8b5e36..53d24ec201 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
@@ -85,8 +85,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata
///
/// Indicate whether this subscription should cancel at the end of the current period
- /// (current_period_end). Defaults to false. This param will be removed in a
- /// future API version. Please use cancel_at instead.
+ /// (current_period_end). Defaults to false.
///
[JsonProperty("cancel_at_period_end")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs
index fe0b1f40f6..9087eaf07b 100644
--- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs
@@ -818,6 +818,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsTzOptions Tz { get; set; }
+ ///
+ /// Options for the registration in UA.
+ ///
+ [JsonProperty("ua")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ua")]
+#endif
+ public RegistrationCountryOptionsUaOptions Ua { get; set; }
+
///
/// Options for the registration in UG.
///
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.cs
new file mode 100644
index 0000000000..678e55e641
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsUaOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigOptions.cs
new file mode 100644
index 0000000000..fc2b972dd2
--- /dev/null
+++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigOptions.cs
@@ -0,0 +1,50 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Terminal
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ReaderCollectConfigOptions : INestedOptions
+ {
+ ///
+ /// This field indicates whether this payment method can be shown again to its customer in a
+ /// checkout flow. Stripe products such as Checkout and Elements use this field to determine
+ /// whether a payment method can be shown as a saved payment method in a checkout flow.
+ /// One of: always, limited, or unspecified.
+ ///
+ [JsonProperty("allow_redisplay")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("allow_redisplay")]
+#endif
+ public string AllowRedisplay { get; set; }
+
+ ///
+ /// Enables cancel button on transaction screens.
+ ///
+ [JsonProperty("enable_customer_cancellation")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("enable_customer_cancellation")]
+#endif
+ public bool? EnableCustomerCancellation { get; set; }
+
+ ///
+ /// Override showing a tipping selection screen on this transaction.
+ ///
+ [JsonProperty("skip_tipping")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("skip_tipping")]
+#endif
+ public bool? SkipTipping { get; set; }
+
+ ///
+ /// Tipping configuration for this transaction.
+ ///
+ [JsonProperty("tipping")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("tipping")]
+#endif
+ public ReaderCollectConfigTippingOptions Tipping { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigTippingOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigTippingOptions.cs
new file mode 100644
index 0000000000..9fae3d192e
--- /dev/null
+++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigTippingOptions.cs
@@ -0,0 +1,22 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Terminal
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ReaderCollectConfigTippingOptions : INestedOptions
+ {
+ ///
+ /// Amount used to calculate tip suggestions on tipping selection screen for this
+ /// transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents
+ /// to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
+ ///
+ [JsonProperty("amount_eligible")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("amount_eligible")]
+#endif
+ public long? AmountEligible { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCollectPaymentMethodOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectPaymentMethodOptions.cs
new file mode 100644
index 0000000000..15f5a87b38
--- /dev/null
+++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectPaymentMethodOptions.cs
@@ -0,0 +1,29 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Terminal
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ReaderCollectPaymentMethodOptions : BaseOptions
+ {
+ ///
+ /// Configuration overrides.
+ ///
+ [JsonProperty("collect_config")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("collect_config")]
+#endif
+ public ReaderCollectConfigOptions CollectConfig { get; set; }
+
+ ///
+ /// PaymentIntent ID.
+ ///
+ [JsonProperty("payment_intent")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("payment_intent")]
+#endif
+ public string PaymentIntent { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmConfigOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmConfigOptions.cs
new file mode 100644
index 0000000000..b38c1f459a
--- /dev/null
+++ b/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmConfigOptions.cs
@@ -0,0 +1,22 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Terminal
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ReaderConfirmConfigOptions : INestedOptions
+ {
+ ///
+ /// The URL to redirect your customer back to after they authenticate or cancel their
+ /// payment on the payment method's app or site. If you'd prefer to redirect to a mobile
+ /// application, you can alternatively supply an application URI scheme.
+ ///
+ [JsonProperty("return_url")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("return_url")]
+#endif
+ public string ReturnUrl { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmPaymentIntentOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmPaymentIntentOptions.cs
new file mode 100644
index 0000000000..4dace8691e
--- /dev/null
+++ b/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmPaymentIntentOptions.cs
@@ -0,0 +1,29 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Terminal
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ReaderConfirmPaymentIntentOptions : BaseOptions
+ {
+ ///
+ /// Configuration overrides.
+ ///
+ [JsonProperty("confirm_config")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("confirm_config")]
+#endif
+ public ReaderConfirmConfigOptions ConfirmConfig { get; set; }
+
+ ///
+ /// PaymentIntent ID.
+ ///
+ [JsonProperty("payment_intent")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("payment_intent")]
+#endif
+ public string PaymentIntent { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderService.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderService.cs
index 1a4d1deb4a..5c55c1463f 100644
--- a/src/Stripe.net/Services/Terminal/Readers/ReaderService.cs
+++ b/src/Stripe.net/Services/Terminal/Readers/ReaderService.cs
@@ -61,6 +61,40 @@ public virtual Task CollectInputsAsync(string id, ReaderCollectInputsOpt
return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/collect_inputs", options, requestOptions, cancellationToken);
}
+ ///
+ /// Initiates a payment flow on a Reader and updates the PaymentIntent with card details
+ /// before manual confirmation.
.
+ ///
+ public virtual Reader CollectPaymentMethod(string id, ReaderCollectPaymentMethodOptions options = null, RequestOptions requestOptions = null)
+ {
+ return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/collect_payment_method", options, requestOptions);
+ }
+
+ ///
+ /// Initiates a payment flow on a Reader and updates the PaymentIntent with card details
+ /// before manual confirmation.
.
+ ///
+ public virtual Task CollectPaymentMethodAsync(string id, ReaderCollectPaymentMethodOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
+ {
+ return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/collect_payment_method", options, requestOptions, cancellationToken);
+ }
+
+ ///
+ /// Finalizes a payment on a Reader.
.
+ ///
+ public virtual Reader ConfirmPaymentIntent(string id, ReaderConfirmPaymentIntentOptions options = null, RequestOptions requestOptions = null)
+ {
+ return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/confirm_payment_intent", options, requestOptions);
+ }
+
+ ///
+ /// Finalizes a payment on a Reader.
.
+ ///
+ public virtual Task ConfirmPaymentIntentAsync(string id, ReaderConfirmPaymentIntentOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
+ {
+ return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/confirm_payment_intent", options, requestOptions, cancellationToken);
+ }
+
///
/// Creates a new Reader object.
.
///
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs
new file mode 100644
index 0000000000..6111113b41
--- /dev/null
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs
@@ -0,0 +1,7 @@
+// File generated from our OpenAPI spec
+namespace Stripe.TestHelpers
+{
+ public class ConfirmationTokenPaymentMethodDataCryptoOptions : INestedOptions
+ {
+ }
+}
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs
index 257ee608d3..b774cf9191 100644
--- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs
@@ -11,10 +11,10 @@ public class ConfirmationTokenPaymentMethodDataIdealOptions : INestedOptions
///
/// The customer's bank. Only use this parameter for existing customers. Don't use it for
/// new customers.
- /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing,
- /// knab, moneyou, n26, nn, rabobank, regiobank,
- /// revolut, sns_bank, triodos_bank, van_lanschot, or
- /// yoursafe.
+ /// One of: abn_amro, asn_bank, bunq, buut,
+ /// handelsbanken, ing, knab, moneyou, n26, nn,
+ /// rabobank, regiobank, revolut, sns_bank, triodos_bank,
+ /// van_lanschot, or yoursafe.
///
[JsonProperty("bank")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
index 3e63c248c3..089046ae92 100644
--- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
@@ -162,6 +162,16 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet
#endif
public ConfirmationTokenPaymentMethodDataCashappOptions Cashapp { get; set; }
+ ///
+ /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment
+ /// method.
+ ///
+ [JsonProperty("crypto")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("crypto")]
+#endif
+ public ConfirmationTokenPaymentMethodDataCryptoOptions Crypto { get; set; }
+
///
/// If this is a customer_balance PaymentMethod, this hash contains details about the
/// CustomerBalance payment method.
@@ -502,9 +512,9 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet
/// One of: acss_debit, affirm, afterpay_clearpay, alipay,
/// alma, amazon_pay, au_becs_debit, bacs_debit,
/// bancontact, billie, blik, boleto, cashapp,
- /// customer_balance, eps, fpx, giropay, grabpay,
- /// ideal, kakao_pay, klarna, konbini, kr_card,
- /// link, mobilepay, multibanco, naver_pay,
+ /// crypto, customer_balance, eps, fpx, giropay,
+ /// grabpay, ideal, kakao_pay, klarna, konbini,
+ /// kr_card, link, mobilepay, multibanco, naver_pay,
/// nz_bank_account, oxxo, p24, pay_by_bank, payco,
/// paynow, paypal, pix, promptpay, revolut_pay,
/// samsung_pay, satispay, sepa_debit, sofort, swish,
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs
index ec7d8d257b..8dd1a75c10 100644
--- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs
@@ -30,7 +30,8 @@ public class ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions :
public string Interval { get; set; }
///
- /// Type of installment plan, one of fixed_count.
+ /// Type of installment plan, one of fixed_count, bonus, or revolving.
+ /// One of: bonus, fixed_count, or revolving.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs
index 5f2609ac15..4ff41ec6c6 100644
--- a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs
+++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs
@@ -173,6 +173,9 @@ public class TokenAccountCompanyOptions : INestedOptions
#endif
public string Phone { get; set; }
+ ///
+ /// When the business was incorporated or registered.
+ ///
[JsonProperty("registration_date")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("registration_date")]
diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs
index 36b0999588..2962c8dcd8 100644
--- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs
+++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs
@@ -20,5 +20,15 @@ public class FinancialAccountListOptions : ListOptions
[STJS.JsonConverter(typeof(STJAnyOfConverter))]
#endif
public AnyOf Created { get; set; }
+
+ ///
+ /// Only return FinancialAccounts that have the given status: open or closed.
+ /// One of: closed, or open.
+ ///
+ [JsonProperty("status")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("status")]
+#endif
+ public string Status { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/BillingService.cs b/src/Stripe.net/Services/V2/BillingService.cs
index ca4bbfa97e..d83cd1385c 100644
--- a/src/Stripe.net/Services/V2/BillingService.cs
+++ b/src/Stripe.net/Services/V2/BillingService.cs
@@ -7,8 +7,8 @@ namespace Stripe.V2
public class BillingService : Service
{
- private V2.Billing.MeterEventSessionService meterEventSession;
private V2.Billing.MeterEventAdjustmentService meterEventAdjustments;
+ private V2.Billing.MeterEventSessionService meterEventSession;
private V2.Billing.MeterEventStreamService meterEventStream;
private V2.Billing.MeterEventService meterEvents;
@@ -22,10 +22,10 @@ internal BillingService(IStripeClient client)
{
}
- public virtual V2.Billing.MeterEventSessionService MeterEventSession => this.meterEventSession ??= new V2.Billing.MeterEventSessionService(
+ public virtual V2.Billing.MeterEventAdjustmentService MeterEventAdjustments => this.meterEventAdjustments ??= new V2.Billing.MeterEventAdjustmentService(
this.Requestor);
- public virtual V2.Billing.MeterEventAdjustmentService MeterEventAdjustments => this.meterEventAdjustments ??= new V2.Billing.MeterEventAdjustmentService(
+ public virtual V2.Billing.MeterEventSessionService MeterEventSession => this.meterEventSession ??= new V2.Billing.MeterEventSessionService(
this.Requestor);
public virtual V2.Billing.MeterEventStreamService MeterEventStream => this.meterEventStream ??= new V2.Billing.MeterEventStreamService(
diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
index 0a63f408c8..c9ea072b78 100644
--- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
+++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
@@ -40,7 +40,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata
/// 2024-04-10, 2024-06-20, 2024-09-30.acacia,
/// 2024-10-28.acacia, 2024-11-20.acacia, 2024-12-18.acacia,
/// 2025-01-27.acacia, 2025-02-24.acacia, 2025-03-01.dashboard,
- /// 2025-03-31.basil, 2025-04-30.basil, or 2025-05-28.basil.
+ /// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil, or
+ /// 2025-06-30.basil.
///
[JsonProperty("api_version")]
#if NET6_0_OR_GREATER
@@ -167,14 +168,14 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata
/// subscription_schedule.expiring, subscription_schedule.released,
/// subscription_schedule.updated, tax.settings.updated,
/// tax_rate.created, tax_rate.updated, terminal.reader.action_failed,
- /// terminal.reader.action_succeeded, test_helpers.test_clock.advancing,
- /// test_helpers.test_clock.created, test_helpers.test_clock.deleted,
- /// test_helpers.test_clock.internal_failure, test_helpers.test_clock.ready,
- /// topup.canceled, topup.created, topup.failed, topup.reversed,
- /// topup.succeeded, transfer.created, transfer.reversed,
- /// transfer.updated, treasury.credit_reversal.created,
- /// treasury.credit_reversal.posted, treasury.debit_reversal.completed,
- /// treasury.debit_reversal.created,
+ /// terminal.reader.action_succeeded, terminal.reader.action_updated,
+ /// test_helpers.test_clock.advancing, test_helpers.test_clock.created,
+ /// test_helpers.test_clock.deleted, test_helpers.test_clock.internal_failure,
+ /// test_helpers.test_clock.ready, topup.canceled, topup.created,
+ /// topup.failed, topup.reversed, topup.succeeded,
+ /// transfer.created, transfer.reversed, transfer.updated,
+ /// treasury.credit_reversal.created, treasury.credit_reversal.posted,
+ /// treasury.debit_reversal.completed, treasury.debit_reversal.created,
/// treasury.debit_reversal.initial_credit_granted,
/// treasury.financial_account.closed, treasury.financial_account.created,
/// treasury.financial_account.features_status_updated,
diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs
index 1e86e2a808..0e1da9ffd9 100644
--- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs
+++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs
@@ -127,14 +127,14 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata
/// subscription_schedule.expiring, subscription_schedule.released,
/// subscription_schedule.updated, tax.settings.updated,
/// tax_rate.created, tax_rate.updated, terminal.reader.action_failed,
- /// terminal.reader.action_succeeded, test_helpers.test_clock.advancing,
- /// test_helpers.test_clock.created, test_helpers.test_clock.deleted,
- /// test_helpers.test_clock.internal_failure, test_helpers.test_clock.ready,
- /// topup.canceled, topup.created, topup.failed, topup.reversed,
- /// topup.succeeded, transfer.created, transfer.reversed,
- /// transfer.updated, treasury.credit_reversal.created,
- /// treasury.credit_reversal.posted, treasury.debit_reversal.completed,
- /// treasury.debit_reversal.created,
+ /// terminal.reader.action_succeeded, terminal.reader.action_updated,
+ /// test_helpers.test_clock.advancing, test_helpers.test_clock.created,
+ /// test_helpers.test_clock.deleted, test_helpers.test_clock.internal_failure,
+ /// test_helpers.test_clock.ready, topup.canceled, topup.created,
+ /// topup.failed, topup.reversed, topup.succeeded,
+ /// transfer.created, transfer.reversed, transfer.updated,
+ /// treasury.credit_reversal.created, treasury.credit_reversal.posted,
+ /// treasury.debit_reversal.completed, treasury.debit_reversal.created,
/// treasury.debit_reversal.initial_credit_granted,
/// treasury.financial_account.closed, treasury.financial_account.created,
/// treasury.financial_account.features_status_updated,
diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs
index 73cbb1a83a..ac3c572bcc 100644
--- a/src/StripeTests/Services/GeneratedExamplesTest.cs
+++ b/src/StripeTests/Services/GeneratedExamplesTest.cs
@@ -6149,24 +6149,6 @@ public void TestWebhookEndpointsPost2()
"/v1/webhook_endpoints/we_xxxxxxxxxxxxx");
}
- [Fact]
- public void TestV2BillingMeterEventSessionPost()
- {
- this.StubRequest(
- HttpMethod.Post,
- "/v2/billing/meter_event_session",
- (HttpStatusCode)200,
- "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true}");
- var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions();
- var client = new StripeClient(this.Requestor);
- var service = client.V2.Billing.MeterEventSession;
- Stripe.V2.Billing.MeterEventSession meterEventSession = service
- .Create(options);
- this.AssertRequest(
- HttpMethod.Post,
- "/v2/billing/meter_event_session");
- }
-
[Fact]
public void TestV2BillingMeterEventAdjustmentPost()
{
@@ -6193,6 +6175,24 @@ public void TestV2BillingMeterEventAdjustmentPost()
"/v2/billing/meter_event_adjustments");
}
+ [Fact]
+ public void TestV2BillingMeterEventSessionPost()
+ {
+ this.StubRequest(
+ HttpMethod.Post,
+ "/v2/billing/meter_event_session",
+ (HttpStatusCode)200,
+ "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true}");
+ var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions();
+ var client = new StripeClient(this.Requestor);
+ var service = client.V2.Billing.MeterEventSession;
+ Stripe.V2.Billing.MeterEventSession meterEventSession = service
+ .Create(options);
+ this.AssertRequest(
+ HttpMethod.Post,
+ "/v2/billing/meter_event_session");
+ }
+
[Fact]
public void TestV2BillingMeterEventStreamPost()
{
@@ -6249,6 +6249,21 @@ public void TestV2BillingMeterEventPost()
this.AssertRequest(HttpMethod.Post, "/v2/billing/meter_events");
}
+ [Fact]
+ public void TestV2CoreEventDestinationGet()
+ {
+ this.StubRequest(
+ HttpMethod.Get,
+ "/v2/core/event_destinations",
+ (HttpStatusCode)200,
+ "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}],\"next_page_url\":null,\"previous_page_url\":null}");
+ var client = new StripeClient(this.Requestor);
+ var service = client.V2.Core.EventDestinations;
+ Stripe.V2.StripeList eventDestinations = service
+ .List();
+ this.AssertRequest(HttpMethod.Get, "/v2/core/event_destinations");
+ }
+
[Fact]
public void TestV2CoreEventDestinationPost()
{
@@ -6288,84 +6303,72 @@ public void TestV2CoreEventDestinationDelete()
}
[Fact]
- public void TestV2CoreEventDestinationPost2()
+ public void TestV2CoreEventDestinationGet2()
{
this.StubRequest(
- HttpMethod.Post,
- "/v2/core/event_destinations/id_123/disable",
+ HttpMethod.Get,
+ "/v2/core/event_destinations/id_123",
(HttpStatusCode)200,
"{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- Stripe.V2.EventDestination eventDestination = service.Disable(
- "id_123");
+ Stripe.V2.EventDestination eventDestination = service.Get("id_123");
this.AssertRequest(
- HttpMethod.Post,
- "/v2/core/event_destinations/id_123/disable");
+ HttpMethod.Get,
+ "/v2/core/event_destinations/id_123");
}
[Fact]
- public void TestV2CoreEventDestinationPost3()
+ public void TestV2CoreEventDestinationPost2()
{
this.StubRequest(
HttpMethod.Post,
- "/v2/core/event_destinations/id_123/enable",
+ "/v2/core/event_destinations/id_123",
(HttpStatusCode)200,
"{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
+ var options = new Stripe.V2.Core.EventDestinationUpdateOptions();
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- Stripe.V2.EventDestination eventDestination = service.Enable(
- "id_123");
+ Stripe.V2.EventDestination eventDestination = service.Update(
+ "id_123",
+ options);
this.AssertRequest(
HttpMethod.Post,
- "/v2/core/event_destinations/id_123/enable");
- }
-
- [Fact]
- public void TestV2CoreEventDestinationGet()
- {
- this.StubRequest(
- HttpMethod.Get,
- "/v2/core/event_destinations",
- (HttpStatusCode)200,
- "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}],\"next_page_url\":null,\"previous_page_url\":null}");
- var client = new StripeClient(this.Requestor);
- var service = client.V2.Core.EventDestinations;
- Stripe.V2.StripeList eventDestinations = service
- .List();
- this.AssertRequest(HttpMethod.Get, "/v2/core/event_destinations");
+ "/v2/core/event_destinations/id_123");
}
[Fact]
- public void TestV2CoreEventDestinationPost4()
+ public void TestV2CoreEventDestinationPost3()
{
this.StubRequest(
HttpMethod.Post,
- "/v2/core/event_destinations/id_123/ping",
+ "/v2/core/event_destinations/id_123/disable",
(HttpStatusCode)200,
- "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":null,\"type\":\"type\"}");
+ "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- Stripe.V2.Event result = service.Ping("id_123");
+ Stripe.V2.EventDestination eventDestination = service.Disable(
+ "id_123");
this.AssertRequest(
HttpMethod.Post,
- "/v2/core/event_destinations/id_123/ping");
+ "/v2/core/event_destinations/id_123/disable");
}
[Fact]
- public void TestV2CoreEventDestinationGet2()
+ public void TestV2CoreEventDestinationPost4()
{
this.StubRequest(
- HttpMethod.Get,
- "/v2/core/event_destinations/id_123",
+ HttpMethod.Post,
+ "/v2/core/event_destinations/id_123/enable",
(HttpStatusCode)200,
"{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- Stripe.V2.EventDestination eventDestination = service.Get("id_123");
+ Stripe.V2.EventDestination eventDestination = service.Enable(
+ "id_123");
this.AssertRequest(
- HttpMethod.Get,
- "/v2/core/event_destinations/id_123");
+ HttpMethod.Post,
+ "/v2/core/event_destinations/id_123/enable");
}
[Fact]
@@ -6373,18 +6376,15 @@ public void TestV2CoreEventDestinationPost5()
{
this.StubRequest(
HttpMethod.Post,
- "/v2/core/event_destinations/id_123",
+ "/v2/core/event_destinations/id_123/ping",
(HttpStatusCode)200,
- "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
- var options = new Stripe.V2.Core.EventDestinationUpdateOptions();
+ "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":null,\"type\":\"type\"}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- Stripe.V2.EventDestination eventDestination = service.Update(
- "id_123",
- options);
+ Stripe.V2.Event result = service.Ping("id_123");
this.AssertRequest(
HttpMethod.Post,
- "/v2/core/event_destinations/id_123");
+ "/v2/core/event_destinations/id_123/ping");
}
[Fact]