From d7885fb16d3d8290955026f29ad3e8aa850cdf18 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 15 Nov 2023 22:55:39 +0000 Subject: [PATCH] Update generated code for v665 --- OPENAPI_VERSION | 2 +- .../CustomerSessions/CustomerSession.cs | 6 ---- .../CustomerSessionComponents.cs | 20 ------------- ...CustomerSessionComponentsPaymentElement.cs | 20 ------------- ...SessionComponentsPaymentElementFeatures.cs | 29 ------------------- .../CustomerSessionComponentsPricingTable.cs | 14 --------- .../CustomerSessionComponentsOptions.cs | 20 ------------- ...ComponentsPaymentElementFeaturesOptions.cs | 29 ------------------- ...rSessionComponentsPaymentElementOptions.cs | 20 ------------- ...merSessionComponentsPricingTableOptions.cs | 14 --------- .../CustomerSessionCreateOptions.cs | 6 ---- 11 files changed, 1 insertion(+), 179 deletions(-) delete mode 100644 src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponents.cs delete mode 100644 src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElement.cs delete mode 100644 src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs delete mode 100644 src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPricingTable.cs delete mode 100644 src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsOptions.cs delete mode 100644 src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs delete mode 100644 src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementOptions.cs delete mode 100644 src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPricingTableOptions.cs diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b9f726cff1..eb13725219 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v664 \ No newline at end of file +v665 \ No newline at end of file diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs index 73b46be026..cce28a2852 100644 --- a/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs +++ b/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs @@ -28,12 +28,6 @@ public class CustomerSession : StripeEntity, IHasObject [JsonProperty("client_secret")] public string ClientSecret { get; set; } - /// - /// Configuration for the components supported by this customer session. - /// - [JsonProperty("components")] - public CustomerSessionComponents Components { get; set; } - #region Expandable Customer /// diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponents.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponents.cs deleted file mode 100644 index a8cd7f20e1..0000000000 --- a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponents.cs +++ /dev/null @@ -1,20 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; - - public class CustomerSessionComponents : StripeEntity - { - /// - /// This hash contains whether the payment element is enabled and the features it supports. - /// - [JsonProperty("payment_element")] - public CustomerSessionComponentsPaymentElement PaymentElement { get; set; } - - /// - /// This hash contains whether the pricing table is enabled. - /// - [JsonProperty("pricing_table")] - public CustomerSessionComponentsPricingTable PricingTable { get; set; } - } -} diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElement.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElement.cs deleted file mode 100644 index 8a614fc944..0000000000 --- a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElement.cs +++ /dev/null @@ -1,20 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; - - public class CustomerSessionComponentsPaymentElement : StripeEntity - { - /// - /// Whether the payment element is enabled. - /// - [JsonProperty("enabled")] - public bool Enabled { get; set; } - - /// - /// This hash contains the features the Payment Element supports. - /// - [JsonProperty("features")] - public CustomerSessionComponentsPaymentElementFeatures Features { get; set; } - } -} diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs deleted file mode 100644 index befde8fcd4..0000000000 --- a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs +++ /dev/null @@ -1,29 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; - - public class CustomerSessionComponentsPaymentElementFeatures : StripeEntity - { - /// - /// Whether the payment element supports detaching payment methods. - /// One of: auto, or never. - /// - [JsonProperty("payment_method_detach")] - public string PaymentMethodDetach { get; set; } - - /// - /// Whether the payment element supports setting payment methods as the customer's default. - /// One of: auto, or never. - /// - [JsonProperty("payment_method_set_as_customer_default")] - public string PaymentMethodSetAsCustomerDefault { get; set; } - - /// - /// Whether the payment element supports updating payment methods. - /// One of: auto, or never. - /// - [JsonProperty("payment_method_update")] - public string PaymentMethodUpdate { get; set; } - } -} diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPricingTable.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPricingTable.cs deleted file mode 100644 index 7ec8b017ac..0000000000 --- a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPricingTable.cs +++ /dev/null @@ -1,14 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; - - public class CustomerSessionComponentsPricingTable : StripeEntity - { - /// - /// Whether the pricing table is enabled. - /// - [JsonProperty("enabled")] - public bool Enabled { get; set; } - } -} diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsOptions.cs deleted file mode 100644 index 85113e7530..0000000000 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; - - public class CustomerSessionComponentsOptions : INestedOptions - { - /// - /// Configuration for the payment element. - /// - [JsonProperty("payment_element")] - public CustomerSessionComponentsPaymentElementOptions PaymentElement { get; set; } - - /// - /// Configuration for the pricing table. - /// - [JsonProperty("pricing_table")] - public CustomerSessionComponentsPricingTableOptions PricingTable { get; set; } - } -} diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs deleted file mode 100644 index cd59d36ed4..0000000000 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs +++ /dev/null @@ -1,29 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; - - public class CustomerSessionComponentsPaymentElementFeaturesOptions : INestedOptions - { - /// - /// Whether the payment element supports detaching a payment method. - /// One of: auto, or never. - /// - [JsonProperty("payment_method_detach")] - public string PaymentMethodDetach { get; set; } - - /// - /// Whether the payment element supports setting a payment method as the customer's default. - /// One of: auto, or never. - /// - [JsonProperty("payment_method_set_as_customer_default")] - public string PaymentMethodSetAsCustomerDefault { get; set; } - - /// - /// Whether the payment element supports updating a payment method. - /// One of: auto, or never. - /// - [JsonProperty("payment_method_update")] - public string PaymentMethodUpdate { get; set; } - } -} diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementOptions.cs deleted file mode 100644 index bedad0058d..0000000000 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; - - public class CustomerSessionComponentsPaymentElementOptions : INestedOptions - { - /// - /// Whether the payment element is enabled. - /// - [JsonProperty("enabled")] - public bool? Enabled { get; set; } - - /// - /// This hash defines whether the payment element supports certain features. - /// - [JsonProperty("features")] - public CustomerSessionComponentsPaymentElementFeaturesOptions Features { get; set; } - } -} diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPricingTableOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPricingTableOptions.cs deleted file mode 100644 index 19b8f152fb..0000000000 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPricingTableOptions.cs +++ /dev/null @@ -1,14 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using Newtonsoft.Json; - - public class CustomerSessionComponentsPricingTableOptions : INestedOptions - { - /// - /// Whether pricing table is enabled. - /// - [JsonProperty("enabled")] - public bool? Enabled { get; set; } - } -} diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs index 31c11e11dd..97f09bf245 100644 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerSessions/CustomerSessionCreateOptions.cs @@ -5,12 +5,6 @@ namespace Stripe public class CustomerSessionCreateOptions : BaseOptions { - /// - /// Configuration for each component. - /// - [JsonProperty("components")] - public CustomerSessionComponentsOptions Components { get; set; } - /// /// The ID of an existing customer for which to create the customer session. ///