Class: Stripe::Checkout::SessionService::CreateParams::CustomField::Label

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/checkout/session_service.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.



288
289
290
291
# File 'lib/stripe/services/checkout/session_service.rb', line 288

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.



284
285
286
# File 'lib/stripe/services/checkout/session_service.rb', line 284

def custom
  @custom
end

#typeObject

The type of the label.



286
287
288
# File 'lib/stripe/services/checkout/session_service.rb', line 286

def type
  @type
end