Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::CarRentalDatum

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

Defined Under Namespace

Classes: Affiliate, Distance, Driver, DropOff, Insurance, Pickup, Total, Vehicle

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(affiliate: nil, booking_number: nil, carrier_name: nil, customer_service_phone_number: nil, days_rented: nil, distance: nil, drivers: nil, drop_off: nil, insurances: nil, no_show_indicator: nil, pickup: nil, renter_name: nil, total: nil, vehicle: nil) ⇒ CarRentalDatum

Returns a new instance of CarRentalDatum.



754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 754

def initialize(
  affiliate: nil,
  booking_number: nil,
  carrier_name: nil,
  customer_service_phone_number: nil,
  days_rented: nil,
  distance: nil,
  drivers: nil,
  drop_off: nil,
  insurances: nil,
  no_show_indicator: nil,
  pickup: nil,
  renter_name: nil,
  total: nil,
  vehicle: nil
)
  @affiliate = affiliate
  @booking_number = booking_number
  @carrier_name = carrier_name
  @customer_service_phone_number = customer_service_phone_number
  @days_rented = days_rented
  @distance = distance
  @drivers = drivers
  @drop_off = drop_off
  @insurances = insurances
  @no_show_indicator = no_show_indicator
  @pickup = pickup
  @renter_name = renter_name
  @total = total
  @vehicle = vehicle
end

Instance Attribute Details

#affiliateObject

Affiliate (such as travel agency) details for the rental.



726
727
728
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 726

def affiliate
  @affiliate
end

#booking_numberObject

Booking confirmation number for the car rental.



728
729
730
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 728

def booking_number
  @booking_number
end

#carrier_nameObject

Name of the car rental company.



730
731
732
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 730

def carrier_name
  @carrier_name
end

#customer_service_phone_numberObject

Customer service phone number for the car rental company.



732
733
734
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 732

def customer_service_phone_number
  @customer_service_phone_number
end

#days_rentedObject

Number of days the car is being rented.



734
735
736
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 734

def days_rented
  @days_rented
end

#distanceObject

Distance details for the rental.



736
737
738
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 736

def distance
  @distance
end

#driversObject

List of drivers for the rental.



738
739
740
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 738

def drivers
  @drivers
end

#drop_offObject

Drop-off location details.



740
741
742
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 740

def drop_off
  @drop_off
end

#insurancesObject

Insurance details for the rental.



742
743
744
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 742

def insurances
  @insurances
end

#no_show_indicatorObject

Indicates if the customer was a no-show.



744
745
746
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 744

def no_show_indicator
  @no_show_indicator
end

#pickupObject

Pickup location details.



746
747
748
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 746

def pickup
  @pickup
end

#renter_nameObject

Name of the person renting the vehicle.



748
749
750
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 748

def renter_name
  @renter_name
end

#totalObject

Total cost breakdown for the rental.



750
751
752
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 750

def total
  @total
end

#vehicleObject

Vehicle details for the rental.



752
753
754
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 752

def vehicle
  @vehicle
end