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.



550
551
552
553
# File 'lib/stripe/params/checkout/session_create_params.rb', line 550

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`.



546
547
548
# File 'lib/stripe/params/checkout/session_create_params.rb', line 546

def enabled
  @enabled
end

#optionalObject

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



548
549
550
# File 'lib/stripe/params/checkout/session_create_params.rb', line 548

def optional
  @optional
end