Class: Stripe::PaymentLinkCreateParams::TaxIdCollection

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, required: nil) ⇒ TaxIdCollection

Returns a new instance of TaxIdCollection.



721
722
723
724
# File 'lib/stripe/params/payment_link_create_params.rb', line 721

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

Instance Attribute Details

#enabledObject

Enable tax ID collection during checkout. Defaults to ‘false`.



717
718
719
# File 'lib/stripe/params/payment_link_create_params.rb', line 717

def enabled
  @enabled
end

#requiredObject

Describes whether a tax ID is required during checkout. Defaults to ‘never`. You can’t set this parameter if ‘ui_mode` is `custom`.



719
720
721
# File 'lib/stripe/params/payment_link_create_params.rb', line 719

def required
  @required
end