Class: Stripe::PaymentLink::UpdateParams::CustomField::Dropdown

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_link.rb

Defined Under Namespace

Classes: Option

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(default_value: nil, options: nil) ⇒ Dropdown

Returns a new instance of Dropdown.



1085
1086
1087
1088
# File 'lib/stripe/resources/payment_link.rb', line 1085

def initialize(default_value: nil, options: nil)
  @default_value = default_value
  @options = options
end

Instance Attribute Details

#default_valueObject

The value that will pre-fill the field on the payment page.Must match a ‘value` in the `options` array.



1081
1082
1083
# File 'lib/stripe/resources/payment_link.rb', line 1081

def default_value
  @default_value
end

#optionsObject

The options available for the customer to select. Up to 200 options allowed.



1083
1084
1085
# File 'lib/stripe/resources/payment_link.rb', line 1083

def options
  @options
end