Class: Stripe::PaymentLinkCreateParams::NameCollection::Individual

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Individual.



456
457
458
459
# File 'lib/stripe/params/payment_link_create_params.rb', line 456

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

Instance Attribute Details

#enabledObject

Enable individual name collection on the payment link. Defaults to ‘false`.



452
453
454
# File 'lib/stripe/params/payment_link_create_params.rb', line 452

def enabled
  @enabled
end

#optionalObject

Whether the customer is required to provide their full name before checking out. Defaults to ‘false`.



454
455
456
# File 'lib/stripe/params/payment_link_create_params.rb', line 454

def optional
  @optional
end