Class: Stripe::Checkout::SessionCreateParams::NameCollection::Business

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

#to_h

Constructor Details

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

Returns a new instance of Business.



662
663
664
665
# File 'lib/stripe/params/checkout/session_create_params.rb', line 662

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

Instance Attribute Details

#enabledObject

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



658
659
660
# File 'lib/stripe/params/checkout/session_create_params.rb', line 658

def enabled
  @enabled
end

#optionalObject

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



660
661
662
# File 'lib/stripe/params/checkout/session_create_params.rb', line 660

def optional
  @optional
end