Class: Stripe::PaymentIntentConfirmParams::PaymentDetails::CarRentalDatum

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_confirm_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.



819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 819

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.



791
792
793
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 791

def affiliate
  @affiliate
end

#booking_numberObject

Booking confirmation number for the car rental.



793
794
795
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 793

def booking_number
  @booking_number
end

#carrier_nameObject

Name of the car rental company.



795
796
797
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 795

def carrier_name
  @carrier_name
end

#customer_service_phone_numberObject

Customer service phone number for the car rental company.



797
798
799
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 797

def customer_service_phone_number
  @customer_service_phone_number
end

#days_rentedObject

Number of days the car is being rented.



799
800
801
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 799

def days_rented
  @days_rented
end

#distanceObject

Distance details for the rental.



801
802
803
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 801

def distance
  @distance
end

#driversObject

List of drivers for the rental.



803
804
805
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 803

def drivers
  @drivers
end

#drop_offObject

Drop-off location details.



805
806
807
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 805

def drop_off
  @drop_off
end

#insurancesObject

Insurance details for the rental.



807
808
809
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 807

def insurances
  @insurances
end

#no_show_indicatorObject

Indicates if the customer was a no-show.



809
810
811
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 809

def no_show_indicator
  @no_show_indicator
end

#pickupObject

Pickup location details.



811
812
813
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 811

def pickup
  @pickup
end

#renter_nameObject

Name of the person renting the vehicle.



813
814
815
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 813

def renter_name
  @renter_name
end

#totalObject

Total cost breakdown for the rental.



815
816
817
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 815

def total
  @total
end

#vehicleObject

Vehicle details for the rental.



817
818
819
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 817

def vehicle
  @vehicle
end