Package com.stripe.param
Class PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder
java.lang.Object
com.stripe.param.PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder
- Enclosing class:
- PaymentIntentUpdateParams.PaymentDetails.CarRentalData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `drivers` list.Add all elements to `insurances` list.Add an element to `drivers` list.Add an element to `insurances` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.Affiliate (such as travel agency) details for the rental.setBookingNumber(EmptyParam bookingNumber) Booking confirmation number for the car rental.setBookingNumber(String bookingNumber) Booking confirmation number for the car rental.setCarrierName(EmptyParam carrierName) Name of the car rental company.setCarrierName(String carrierName) Name of the car rental company.setCustomerServicePhoneNumber(EmptyParam customerServicePhoneNumber) Customer service phone number for the car rental company.setCustomerServicePhoneNumber(String customerServicePhoneNumber) Customer service phone number for the car rental company.setDaysRented(Long daysRented) Number of days the car is being rented.Distance details for the rental.Required. Drop-off location details.setNoShowIndicator(Boolean noShowIndicator) Indicates if the customer was a no-show.Required. Pickup location details.setRenterName(EmptyParam renterName) Name of the person renting the vehicle.setRenterName(String renterName) Name of the person renting the vehicle.Required. Total cost breakdown for the rental.Vehicle details for the rental.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAffiliate
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setAffiliate(PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Affiliate affiliate) Affiliate (such as travel agency) details for the rental. -
setBookingNumber
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setBookingNumber(String bookingNumber) Booking confirmation number for the car rental. -
setBookingNumber
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setBookingNumber(EmptyParam bookingNumber) Booking confirmation number for the car rental. -
setCarrierName
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setCarrierName(String carrierName) Name of the car rental company. -
setCarrierName
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setCarrierName(EmptyParam carrierName) Name of the car rental company. -
setCustomerServicePhoneNumber
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setCustomerServicePhoneNumber(String customerServicePhoneNumber) Customer service phone number for the car rental company. -
setCustomerServicePhoneNumber
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setCustomerServicePhoneNumber(EmptyParam customerServicePhoneNumber) Customer service phone number for the car rental company. -
setDaysRented
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setDaysRented(Long daysRented) Number of days the car is being rented. -
setDistance
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setDistance(PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Distance distance) Distance details for the rental. -
addDriver
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder addDriver(PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Driver element) Add an element to `drivers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentUpdateParams.PaymentDetails.CarRentalData.driversfor the field documentation. -
addAllDriver
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder addAllDriver(List<PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Driver> elements) Add all elements to `drivers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentUpdateParams.PaymentDetails.CarRentalData.driversfor the field documentation. -
setDropOff
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setDropOff(PaymentIntentUpdateParams.PaymentDetails.CarRentalData.DropOff dropOff) Required. Drop-off location details. -
putExtraParam
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePaymentIntentUpdateParams.PaymentDetails.CarRentalData.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePaymentIntentUpdateParams.PaymentDetails.CarRentalData.extraParamsfor the field documentation. -
addInsurance
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder addInsurance(PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Insurance element) Add an element to `insurances` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentUpdateParams.PaymentDetails.CarRentalData.insurancesfor the field documentation. -
addAllInsurance
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder addAllInsurance(List<PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Insurance> elements) Add all elements to `insurances` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentUpdateParams.PaymentDetails.CarRentalData.insurancesfor the field documentation. -
setNoShowIndicator
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setNoShowIndicator(Boolean noShowIndicator) Indicates if the customer was a no-show. -
setPickup
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setPickup(PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Pickup pickup) Required. Pickup location details. -
setRenterName
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setRenterName(String renterName) Name of the person renting the vehicle. -
setRenterName
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setRenterName(EmptyParam renterName) Name of the person renting the vehicle. -
setTotal
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setTotal(PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Total total) Required. Total cost breakdown for the rental. -
setVehicle
public PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Builder setVehicle(PaymentIntentUpdateParams.PaymentDetails.CarRentalData.Vehicle vehicle) Vehicle details for the rental.
-