Class: Stripe::Checkout::SessionCreateParams::CustomField::Label

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, discriminator, discriminator_fields, field_encodings, new, #to_h

Constructor Details

#initialize(custom: nil, type: nil) ⇒ Label

Returns a new instance of Label.



191
192
193
194
# File 'lib/stripe/params/checkout/session_create_params.rb', line 191

def initialize(custom: nil, type: nil)
  @custom = custom
  @type = type
end

Instance Attribute Details

#custom ⇒ Object

Custom text for the label, displayed to the customer. Up to 100 characters.



187
188
189
# File 'lib/stripe/params/checkout/session_create_params.rb', line 187

def custom
  @custom
end

#type ⇒ Object

The type of the label.



189
190
191
# File 'lib/stripe/params/checkout/session_create_params.rb', line 189

def type
  @type
end