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

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

Constructor Details

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

Returns a new instance of Business.



990
991
992
993
# File 'lib/stripe/params/checkout/session_create_params.rb', line 990

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.



986
987
988
# File 'lib/stripe/params/checkout/session_create_params.rb', line 986

def enabled
  @enabled
end

#optionalObject

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



988
989
990
# File 'lib/stripe/params/checkout/session_create_params.rb', line 988

def optional
  @optional
end