Class: Stripe::Checkout::SessionCreateParams::PhoneNumberCollection

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(enabled: nil) ⇒ PhoneNumberCollection

Returns a new instance of PhoneNumberCollection.



2194
2195
2196
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2194

def initialize(enabled: nil)
  @enabled = enabled
end

Instance Attribute Details

#enabledObject

Set to ‘true` to enable phone number collection.

Can only be set in ‘payment` and `subscription` mode.



2192
2193
2194
# File 'lib/stripe/params/checkout/session_create_params.rb', line 2192

def enabled
  @enabled
end