Class: Stripe::Checkout::SessionService::CreateParams::InvoiceCreation::InvoiceData::CustomField

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(name: nil, value: nil) ⇒ CustomField

Returns a new instance of CustomField.



373
374
375
376
# File 'lib/stripe/services/checkout/session_service.rb', line 373

def initialize(name: nil, value: nil)
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject

The name of the custom field. This may be up to 40 characters.



369
370
371
# File 'lib/stripe/services/checkout/session_service.rb', line 369

def name
  @name
end

#valueObject

The value of the custom field. This may be up to 140 characters.



371
372
373
# File 'lib/stripe/services/checkout/session_service.rb', line 371

def value
  @value
end