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

attr_accessor, coerce_params, coerce_value, field_encodings, new, #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.



835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
# File 'lib/stripe/params/payment_intent_create_params.rb', line 835

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.



823
824
825
# File 'lib/stripe/params/payment_intent_create_params.rb', line 823

def make
  @make
end

#modelObject

Model of the rental vehicle.



825
826
827
# File 'lib/stripe/params/payment_intent_create_params.rb', line 825

def model
  @model
end

#odometerObject

Odometer reading at the time of rental.



827
828
829
# File 'lib/stripe/params/payment_intent_create_params.rb', line 827

def odometer
  @odometer
end

#typeObject

Type of the rental vehicle.



829
830
831
# File 'lib/stripe/params/payment_intent_create_params.rb', line 829

def type
  @type
end

#vehicle_classObject

Class of the rental vehicle.



831
832
833
# File 'lib/stripe/params/payment_intent_create_params.rb', line 831

def vehicle_class
  @vehicle_class
end

#vehicle_identification_numberObject

Vehicle identification number (VIN).



833
834
835
# File 'lib/stripe/params/payment_intent_create_params.rb', line 833

def vehicle_identification_number
  @vehicle_identification_number
end