Class: Stripe::PaymentLinkCreateParams::NameCollection::Business

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

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.



493
494
495
496
# File 'lib/stripe/params/payment_link_create_params.rb', line 493

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

Instance Attribute Details

#enabledObject

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



489
490
491
# File 'lib/stripe/params/payment_link_create_params.rb', line 489

def enabled
  @enabled
end

#optionalObject

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



491
492
493
# File 'lib/stripe/params/payment_link_create_params.rb', line 491

def optional
  @optional
end