Skip to content

Commit

Permalink
Update generated code for v1436
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jan 8, 2025
1 parent 52ee306 commit 3fe258a
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1433
v1436
15 changes: 15 additions & 0 deletions lib/stripe/resources/payment_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,15 @@ def initialize(
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.
Expand Down Expand Up @@ -1423,6 +1432,10 @@ def initialize(enabled: nil, required: nil)
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.
Expand Down Expand Up @@ -1451,6 +1464,7 @@ def initialize(
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,
Expand All @@ -1473,6 +1487,7 @@ def initialize(
@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
Expand Down
15 changes: 15 additions & 0 deletions lib/stripe/services/payment_link_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,15 @@ def initialize(
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.
Expand Down Expand Up @@ -1160,6 +1169,10 @@ def initialize(enabled: nil, required: nil)
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.
Expand Down Expand Up @@ -1188,6 +1201,7 @@ def initialize(
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,
Expand All @@ -1210,6 +1224,7 @@ def initialize(
@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
Expand Down
15 changes: 14 additions & 1 deletion rbi/stripe/resources/payment_link.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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,
Expand Down
15 changes: 14 additions & 1 deletion rbi/stripe/services/payment_link_service.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 3fe258a

Please sign in to comment.