Class: Stripe::PaymentIntentCreateParams::PaymentDetails::CarRentalDatum::Driver

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_create_params.rb

Defined Under Namespace

Classes: DateOfBirth

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(date_of_birth: nil, driver_identification_number: nil, driver_tax_number: nil, name: nil) ⇒ Driver

Returns a new instance of Driver.



607
608
609
610
611
612
613
614
615
616
617
# File 'lib/stripe/params/payment_intent_create_params.rb', line 607

def initialize(
  date_of_birth: nil,
  driver_identification_number: nil,
  driver_tax_number: nil,
  name: nil
)
  @date_of_birth = date_of_birth
  @driver_identification_number = driver_identification_number
  @driver_tax_number = driver_tax_number
  @name = name
end

Instance Attribute Details

#date_of_birthObject

Driver’s date of birth.



599
600
601
# File 'lib/stripe/params/payment_intent_create_params.rb', line 599

def date_of_birth
  @date_of_birth
end

#driver_identification_numberObject

Driver’s identification number.



601
602
603
# File 'lib/stripe/params/payment_intent_create_params.rb', line 601

def driver_identification_number
  @driver_identification_number
end

#driver_tax_numberObject

Driver’s tax number.



603
604
605
# File 'lib/stripe/params/payment_intent_create_params.rb', line 603

def driver_tax_number
  @driver_tax_number
end

#nameObject

Driver’s full name.



605
606
607
# File 'lib/stripe/params/payment_intent_create_params.rb', line 605

def name
  @name
end