diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a73f4011..115863e9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1433 \ No newline at end of file +v1436 \ No newline at end of file diff --git a/lib/stripe/resources/payment_link.rb b/lib/stripe/resources/payment_link.rb index be526a45..272c4a9e 100644 --- a/lib/stripe/resources/payment_link.rb +++ b/lib/stripe/resources/payment_link.rb @@ -1290,6 +1290,15 @@ module Stripe end end + class PhoneNumberCollection < Stripe::RequestParams + # Set to `true` to enable phone number collection. + attr_accessor :enabled + + def initialize(enabled: nil) + @enabled = enabled + end + end + class Restrictions < Stripe::RequestParams class CompletedSessions < Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. @@ -1423,6 +1432,10 @@ module Stripe attr_accessor :payment_method_collection # The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). attr_accessor :payment_method_types + # Controls phone number collection settings during checkout. + # + # We recommend that you review your privacy policy and check with your legal contacts. + attr_accessor :phone_number_collection # Settings that restrict the usage of a payment link. attr_accessor :restrictions # Configuration for collecting the customer's shipping address. @@ -1451,6 +1464,7 @@ module Stripe payment_intent_data: nil, payment_method_collection: nil, payment_method_types: nil, + phone_number_collection: nil, restrictions: nil, shipping_address_collection: nil, submit_type: nil, @@ -1473,6 +1487,7 @@ module Stripe @payment_intent_data = payment_intent_data @payment_method_collection = payment_method_collection @payment_method_types = payment_method_types + @phone_number_collection = phone_number_collection @restrictions = restrictions @shipping_address_collection = shipping_address_collection @submit_type = submit_type diff --git a/lib/stripe/services/payment_link_service.rb b/lib/stripe/services/payment_link_service.rb index b5a4ea23..beabe131 100644 --- a/lib/stripe/services/payment_link_service.rb +++ b/lib/stripe/services/payment_link_service.rb @@ -1027,6 +1027,15 @@ module Stripe end end + class PhoneNumberCollection < Stripe::RequestParams + # Set to `true` to enable phone number collection. + attr_accessor :enabled + + def initialize(enabled: nil) + @enabled = enabled + end + end + class Restrictions < Stripe::RequestParams class CompletedSessions < Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. @@ -1160,6 +1169,10 @@ module Stripe attr_accessor :payment_method_collection # The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). attr_accessor :payment_method_types + # Controls phone number collection settings during checkout. + # + # We recommend that you review your privacy policy and check with your legal contacts. + attr_accessor :phone_number_collection # Settings that restrict the usage of a payment link. attr_accessor :restrictions # Configuration for collecting the customer's shipping address. @@ -1188,6 +1201,7 @@ module Stripe payment_intent_data: nil, payment_method_collection: nil, payment_method_types: nil, + phone_number_collection: nil, restrictions: nil, shipping_address_collection: nil, submit_type: nil, @@ -1210,6 +1224,7 @@ module Stripe @payment_intent_data = payment_intent_data @payment_method_collection = payment_method_collection @payment_method_types = payment_method_types + @phone_number_collection = phone_number_collection @restrictions = restrictions @shipping_address_collection = shipping_address_collection @submit_type = submit_type diff --git a/rbi/stripe/resources/payment_link.rbi b/rbi/stripe/resources/payment_link.rbi index 11f3067c..5e04e650 100644 --- a/rbi/stripe/resources/payment_link.rbi +++ b/rbi/stripe/resources/payment_link.rbi @@ -1410,6 +1410,13 @@ module Stripe transfer_group: nil ); end end + class PhoneNumberCollection < Stripe::RequestParams + # Set to `true` to enable phone number collection. + sig { returns(T::Boolean) } + attr_accessor :enabled + sig { params(enabled: T::Boolean).void } + def initialize(enabled: nil); end + end class Restrictions < Stripe::RequestParams class CompletedSessions < Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. @@ -1560,6 +1567,11 @@ module Stripe # The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). sig { returns(T.nilable(T::Array[String])) } attr_accessor :payment_method_types + # Controls phone number collection settings during checkout. + # + # We recommend that you review your privacy policy and check with your legal contacts. + sig { returns(::Stripe::PaymentLink::UpdateParams::PhoneNumberCollection) } + attr_accessor :phone_number_collection # Settings that restrict the usage of a payment link. sig { returns(T.nilable(::Stripe::PaymentLink::UpdateParams::Restrictions)) } attr_accessor :restrictions @@ -1576,7 +1588,7 @@ module Stripe sig { returns(::Stripe::PaymentLink::UpdateParams::TaxIdCollection) } attr_accessor :tax_id_collection sig { - params(active: T::Boolean, after_completion: ::Stripe::PaymentLink::UpdateParams::AfterCompletion, allow_promotion_codes: T::Boolean, automatic_tax: ::Stripe::PaymentLink::UpdateParams::AutomaticTax, billing_address_collection: String, custom_fields: T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::CustomField]), custom_text: ::Stripe::PaymentLink::UpdateParams::CustomText, customer_creation: String, expand: T::Array[String], inactive_message: T.nilable(String), invoice_creation: ::Stripe::PaymentLink::UpdateParams::InvoiceCreation, line_items: T::Array[::Stripe::PaymentLink::UpdateParams::LineItem], metadata: T::Hash[String, String], payment_intent_data: ::Stripe::PaymentLink::UpdateParams::PaymentIntentData, payment_method_collection: String, payment_method_types: T.nilable(T::Array[String]), restrictions: T.nilable(::Stripe::PaymentLink::UpdateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection), submit_type: String, subscription_data: ::Stripe::PaymentLink::UpdateParams::SubscriptionData, tax_id_collection: ::Stripe::PaymentLink::UpdateParams::TaxIdCollection).void + params(active: T::Boolean, after_completion: ::Stripe::PaymentLink::UpdateParams::AfterCompletion, allow_promotion_codes: T::Boolean, automatic_tax: ::Stripe::PaymentLink::UpdateParams::AutomaticTax, billing_address_collection: String, custom_fields: T.nilable(T::Array[::Stripe::PaymentLink::UpdateParams::CustomField]), custom_text: ::Stripe::PaymentLink::UpdateParams::CustomText, customer_creation: String, expand: T::Array[String], inactive_message: T.nilable(String), invoice_creation: ::Stripe::PaymentLink::UpdateParams::InvoiceCreation, line_items: T::Array[::Stripe::PaymentLink::UpdateParams::LineItem], metadata: T::Hash[String, String], payment_intent_data: ::Stripe::PaymentLink::UpdateParams::PaymentIntentData, payment_method_collection: String, payment_method_types: T.nilable(T::Array[String]), phone_number_collection: ::Stripe::PaymentLink::UpdateParams::PhoneNumberCollection, restrictions: T.nilable(::Stripe::PaymentLink::UpdateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLink::UpdateParams::ShippingAddressCollection), submit_type: String, subscription_data: ::Stripe::PaymentLink::UpdateParams::SubscriptionData, tax_id_collection: ::Stripe::PaymentLink::UpdateParams::TaxIdCollection).void } def initialize( active: nil, @@ -1595,6 +1607,7 @@ module Stripe payment_intent_data: nil, payment_method_collection: nil, payment_method_types: nil, + phone_number_collection: nil, restrictions: nil, shipping_address_collection: nil, submit_type: nil, diff --git a/rbi/stripe/services/payment_link_service.rbi b/rbi/stripe/services/payment_link_service.rbi index 8b922b0f..18b9d79c 100644 --- a/rbi/stripe/services/payment_link_service.rbi +++ b/rbi/stripe/services/payment_link_service.rbi @@ -1014,6 +1014,13 @@ module Stripe transfer_group: nil ); end end + class PhoneNumberCollection < Stripe::RequestParams + # Set to `true` to enable phone number collection. + sig { returns(T::Boolean) } + attr_accessor :enabled + sig { params(enabled: T::Boolean).void } + def initialize(enabled: nil); end + end class Restrictions < Stripe::RequestParams class CompletedSessions < Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. @@ -1166,6 +1173,11 @@ module Stripe # The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). sig { returns(T.nilable(T::Array[String])) } attr_accessor :payment_method_types + # Controls phone number collection settings during checkout. + # + # We recommend that you review your privacy policy and check with your legal contacts. + sig { returns(::Stripe::PaymentLinkService::UpdateParams::PhoneNumberCollection) } + attr_accessor :phone_number_collection # Settings that restrict the usage of a payment link. sig { returns(T.nilable(::Stripe::PaymentLinkService::UpdateParams::Restrictions)) } attr_accessor :restrictions @@ -1184,7 +1196,7 @@ module Stripe sig { returns(::Stripe::PaymentLinkService::UpdateParams::TaxIdCollection) } attr_accessor :tax_id_collection sig { - params(active: T::Boolean, after_completion: ::Stripe::PaymentLinkService::UpdateParams::AfterCompletion, allow_promotion_codes: T::Boolean, automatic_tax: ::Stripe::PaymentLinkService::UpdateParams::AutomaticTax, billing_address_collection: String, custom_fields: T.nilable(T::Array[::Stripe::PaymentLinkService::UpdateParams::CustomField]), custom_text: ::Stripe::PaymentLinkService::UpdateParams::CustomText, customer_creation: String, expand: T::Array[String], inactive_message: T.nilable(String), invoice_creation: ::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation, line_items: T::Array[::Stripe::PaymentLinkService::UpdateParams::LineItem], metadata: T::Hash[String, String], payment_intent_data: ::Stripe::PaymentLinkService::UpdateParams::PaymentIntentData, payment_method_collection: String, payment_method_types: T.nilable(T::Array[String]), restrictions: T.nilable(::Stripe::PaymentLinkService::UpdateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLinkService::UpdateParams::ShippingAddressCollection), submit_type: String, subscription_data: ::Stripe::PaymentLinkService::UpdateParams::SubscriptionData, tax_id_collection: ::Stripe::PaymentLinkService::UpdateParams::TaxIdCollection).void + params(active: T::Boolean, after_completion: ::Stripe::PaymentLinkService::UpdateParams::AfterCompletion, allow_promotion_codes: T::Boolean, automatic_tax: ::Stripe::PaymentLinkService::UpdateParams::AutomaticTax, billing_address_collection: String, custom_fields: T.nilable(T::Array[::Stripe::PaymentLinkService::UpdateParams::CustomField]), custom_text: ::Stripe::PaymentLinkService::UpdateParams::CustomText, customer_creation: String, expand: T::Array[String], inactive_message: T.nilable(String), invoice_creation: ::Stripe::PaymentLinkService::UpdateParams::InvoiceCreation, line_items: T::Array[::Stripe::PaymentLinkService::UpdateParams::LineItem], metadata: T::Hash[String, String], payment_intent_data: ::Stripe::PaymentLinkService::UpdateParams::PaymentIntentData, payment_method_collection: String, payment_method_types: T.nilable(T::Array[String]), phone_number_collection: ::Stripe::PaymentLinkService::UpdateParams::PhoneNumberCollection, restrictions: T.nilable(::Stripe::PaymentLinkService::UpdateParams::Restrictions), shipping_address_collection: T.nilable(::Stripe::PaymentLinkService::UpdateParams::ShippingAddressCollection), submit_type: String, subscription_data: ::Stripe::PaymentLinkService::UpdateParams::SubscriptionData, tax_id_collection: ::Stripe::PaymentLinkService::UpdateParams::TaxIdCollection).void } def initialize( active: nil, @@ -1203,6 +1215,7 @@ module Stripe payment_intent_data: nil, payment_method_collection: nil, payment_method_types: nil, + phone_number_collection: nil, restrictions: nil, shipping_address_collection: nil, submit_type: nil,