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

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

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



938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
# File 'lib/stripe/params/payment_intent_create_params.rb', line 938

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.



910
911
912
# File 'lib/stripe/params/payment_intent_create_params.rb', line 910

def affiliate
  @affiliate
end

#booking_numberObject

Booking confirmation number for the car rental.



912
913
914
# File 'lib/stripe/params/payment_intent_create_params.rb', line 912

def booking_number
  @booking_number
end

#carrier_nameObject

Name of the car rental company.



914
915
916
# File 'lib/stripe/params/payment_intent_create_params.rb', line 914

def carrier_name
  @carrier_name
end

#customer_service_phone_numberObject

Customer service phone number for the car rental company.



916
917
918
# File 'lib/stripe/params/payment_intent_create_params.rb', line 916

def customer_service_phone_number
  @customer_service_phone_number
end

#days_rentedObject

Number of days the car is being rented.



918
919
920
# File 'lib/stripe/params/payment_intent_create_params.rb', line 918

def days_rented
  @days_rented
end

#distanceObject

Distance details for the rental.



920
921
922
# File 'lib/stripe/params/payment_intent_create_params.rb', line 920

def distance
  @distance
end

#driversObject

List of drivers for the rental.



922
923
924
# File 'lib/stripe/params/payment_intent_create_params.rb', line 922

def drivers
  @drivers
end

#drop_offObject

Drop-off location details.



924
925
926
# File 'lib/stripe/params/payment_intent_create_params.rb', line 924

def drop_off
  @drop_off
end

#insurancesObject

Insurance details for the rental.



926
927
928
# File 'lib/stripe/params/payment_intent_create_params.rb', line 926

def insurances
  @insurances
end

#no_show_indicatorObject

Indicates if the customer was a no-show.



928
929
930
# File 'lib/stripe/params/payment_intent_create_params.rb', line 928

def no_show_indicator
  @no_show_indicator
end

#pickupObject

Pickup location details.



930
931
932
# File 'lib/stripe/params/payment_intent_create_params.rb', line 930

def pickup
  @pickup
end

#renter_nameObject

Name of the person renting the vehicle.



932
933
934
# File 'lib/stripe/params/payment_intent_create_params.rb', line 932

def renter_name
  @renter_name
end

#totalObject

Total cost breakdown for the rental.



934
935
936
# File 'lib/stripe/params/payment_intent_create_params.rb', line 934

def total
  @total
end

#vehicleObject

Vehicle details for the rental.



936
937
938
# File 'lib/stripe/params/payment_intent_create_params.rb', line 936

def vehicle
  @vehicle
end