Class: Stripe::PaymentIntentCreateParams::PaymentDetails::CarRentalDatum::Vehicle

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(make: nil, model: nil, odometer: nil, type: nil, vehicle_class: nil, vehicle_identification_number: nil) ⇒ Vehicle

Returns a new instance of Vehicle.



788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
# File 'lib/stripe/params/payment_intent_create_params.rb', line 788

def initialize(
  make: nil,
  model: nil,
  odometer: nil,
  type: nil,
  vehicle_class: nil,
  vehicle_identification_number: nil
)
  @make = make
  @model = model
  @odometer = odometer
  @type = type
  @vehicle_class = vehicle_class
  @vehicle_identification_number = vehicle_identification_number
end

Instance Attribute Details

#makeObject

Make of the rental vehicle.



776
777
778
# File 'lib/stripe/params/payment_intent_create_params.rb', line 776

def make
  @make
end

#modelObject

Model of the rental vehicle.



778
779
780
# File 'lib/stripe/params/payment_intent_create_params.rb', line 778

def model
  @model
end

#odometerObject

Odometer reading at the time of rental.



780
781
782
# File 'lib/stripe/params/payment_intent_create_params.rb', line 780

def odometer
  @odometer
end

#typeObject

Type of the rental vehicle.



782
783
784
# File 'lib/stripe/params/payment_intent_create_params.rb', line 782

def type
  @type
end

#vehicle_classObject

Class of the rental vehicle.



784
785
786
# File 'lib/stripe/params/payment_intent_create_params.rb', line 784

def vehicle_class
  @vehicle_class
end

#vehicle_identification_numberObject

Vehicle identification number (VIN).



786
787
788
# File 'lib/stripe/params/payment_intent_create_params.rb', line 786

def vehicle_identification_number
  @vehicle_identification_number
end