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

Constructor Details

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

Returns a new instance of Label.



274
275
276
277
# File 'lib/stripe/params/checkout/session_create_params.rb', line 274

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.



270
271
272
# File 'lib/stripe/params/checkout/session_create_params.rb', line 270

def custom
  @custom
end

#typeObject

The type of the label.



272
273
274
# File 'lib/stripe/params/checkout/session_create_params.rb', line 272

def type
  @type
end