Class: Stripe::Checkout::Session::CreateParams::CustomField::Label

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Label.



1322
1323
1324
1325
# File 'lib/stripe/resources/checkout/session.rb', line 1322

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

Instance Attribute Details

#customObject

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



1318
1319
1320
# File 'lib/stripe/resources/checkout/session.rb', line 1318

def custom
  @custom
end

#typeObject

The type of the label.



1320
1321
1322
# File 'lib/stripe/resources/checkout/session.rb', line 1320

def type
  @type
end