Class: Stripe::Checkout::SessionCreateParams::NameCollection::Individual

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, new, #to_h

Constructor Details

#initialize(enabled: nil, optional: nil) ⇒ Individual

Returns a new instance of Individual.



698
699
700
701
# File 'lib/stripe/params/checkout/session_create_params.rb', line 698

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

Instance Attribute Details

#enabledObject

Enable individual name collection on the Checkout Session. Defaults to ‘false`.



694
695
696
# File 'lib/stripe/params/checkout/session_create_params.rb', line 694

def enabled
  @enabled
end

#optionalObject

Whether the customer is required to provide their name before completing the Checkout Session. Defaults to ‘false`.



696
697
698
# File 'lib/stripe/params/checkout/session_create_params.rb', line 696

def optional
  @optional
end