Package com.stripe.param
Class ChargeUpdateParams.PaymentDetails.CarRental.Builder
java.lang.Object
com.stripe.param.ChargeUpdateParams.PaymentDetails.CarRental.Builder
- Enclosing class:
- ChargeUpdateParams.PaymentDetails.CarRental
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `drivers` list.Add all elements to `extraCharges` list.Add an element to `drivers` list.Add an element to `extraCharges` 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 details for this purchase.setBookingNumber
(EmptyParam bookingNumber) Required. The booking number associated with the car rental.setBookingNumber
(String bookingNumber) Required. The booking number associated with the car rental.setCarClassCode
(EmptyParam carClassCode) Class code of the car.setCarClassCode
(String carClassCode) Class code of the car.setCarMake
(EmptyParam carMake) Make of the car.setCarMake
(String carMake) Make of the car.setCarModel
(EmptyParam carModel) Model of the car.setCarModel
(String carModel) Model of the car.setCompany
(EmptyParam company) The name of the rental car company.setCompany
(String company) The name of the rental car company.setCustomerServicePhoneNumber
(EmptyParam customerServicePhoneNumber) The customer service phone number of the car rental company.setCustomerServicePhoneNumber
(String customerServicePhoneNumber) The customer service phone number of the car rental company.setDaysRented
(Long daysRented) Required. Number of days the car is being rented.Delivery details for this purchase.The details of the distance traveled during the rental period.Indicates if the customer did not keep nor cancel their booking.Car pick-up address.setPickupAt
(Long pickupAt) Required. Car pick-up time.setPickupLocationName
(EmptyParam pickupLocationName) Name of the pickup location.setPickupLocationName
(String pickupLocationName) Name of the pickup location.setRateAmount
(Long rateAmount) Rental rate.The frequency at which the rate amount is applied.setRenterName
(EmptyParam renterName) The name of the person or entity renting the car.setRenterName
(String renterName) The name of the person or entity renting the car.Car return address.setReturnAt
(Long returnAt) Required. Car return time.setReturnLocationName
(EmptyParam returnLocationName) Name of the return location.setReturnLocationName
(String returnLocationName) Name of the return location.setTaxExempt
(Boolean taxExempt) Indicates whether the goods or services are tax-exempt or tax is not collected.setVehicleIdentificationNumber
(EmptyParam vehicleIdentificationNumber) The vehicle identification number.setVehicleIdentificationNumber
(String vehicleIdentificationNumber) The vehicle identification number.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAffiliate
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setAffiliate(ChargeUpdateParams.PaymentDetails.CarRental.Affiliate affiliate) Affiliate details for this purchase. -
setBookingNumber
Required. The booking number associated with the car rental. -
setBookingNumber
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setBookingNumber(EmptyParam bookingNumber) Required. The booking number associated with the car rental. -
setCarClassCode
Class code of the car. -
setCarClassCode
Class code of the car. -
setCarMake
Make of the car. -
setCarMake
Make of the car. -
setCarModel
Model of the car. -
setCarModel
Model of the car. -
setCompany
The name of the rental car company. -
setCompany
The name of the rental car company. -
setCustomerServicePhoneNumber
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setCustomerServicePhoneNumber(String customerServicePhoneNumber) The customer service phone number of the car rental company. -
setCustomerServicePhoneNumber
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setCustomerServicePhoneNumber(EmptyParam customerServicePhoneNumber) The customer service phone number of the car rental company. -
setDaysRented
Required. Number of days the car is being rented. -
setDelivery
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setDelivery(ChargeUpdateParams.PaymentDetails.CarRental.Delivery delivery) Delivery details for this purchase. -
setDistance
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setDistance(ChargeUpdateParams.PaymentDetails.CarRental.Distance distance) The details of the distance traveled during the rental period. -
addDriver
public ChargeUpdateParams.PaymentDetails.CarRental.Builder addDriver(ChargeUpdateParams.PaymentDetails.CarRental.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. SeeChargeUpdateParams.PaymentDetails.CarRental.drivers
for the field documentation. -
addAllDriver
public ChargeUpdateParams.PaymentDetails.CarRental.Builder addAllDriver(List<ChargeUpdateParams.PaymentDetails.CarRental.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. SeeChargeUpdateParams.PaymentDetails.CarRental.drivers
for the field documentation. -
addExtraCharge
public ChargeUpdateParams.PaymentDetails.CarRental.Builder addExtraCharge(ChargeUpdateParams.PaymentDetails.CarRental.ExtraCharge element) Add an element to `extraCharges` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeChargeUpdateParams.PaymentDetails.CarRental.extraCharges
for the field documentation. -
addAllExtraCharge
public ChargeUpdateParams.PaymentDetails.CarRental.Builder addAllExtraCharge(List<ChargeUpdateParams.PaymentDetails.CarRental.ExtraCharge> elements) Add all elements to `extraCharges` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeChargeUpdateParams.PaymentDetails.CarRental.extraCharges
for the field documentation. -
putExtraParam
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. SeeChargeUpdateParams.PaymentDetails.CarRental.extraParams
for the field documentation. -
putAllExtraParam
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. SeeChargeUpdateParams.PaymentDetails.CarRental.extraParams
for the field documentation. -
setNoShow
Indicates if the customer did not keep nor cancel their booking. -
setPickupAddress
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setPickupAddress(ChargeUpdateParams.PaymentDetails.CarRental.PickupAddress pickupAddress) Car pick-up address. -
setPickupAt
Required. Car pick-up time. Measured in seconds since the Unix epoch. -
setPickupLocationName
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setPickupLocationName(String pickupLocationName) Name of the pickup location. -
setPickupLocationName
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setPickupLocationName(EmptyParam pickupLocationName) Name of the pickup location. -
setRateAmount
Rental rate. -
setRateInterval
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setRateInterval(ChargeUpdateParams.PaymentDetails.CarRental.RateInterval rateInterval) The frequency at which the rate amount is applied. One ofday
,week
ormonth
-
setRenterName
The name of the person or entity renting the car. -
setRenterName
The name of the person or entity renting the car. -
setReturnAddress
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setReturnAddress(ChargeUpdateParams.PaymentDetails.CarRental.ReturnAddress returnAddress) Car return address. -
setReturnAt
Required. Car return time. Measured in seconds since the Unix epoch. -
setReturnLocationName
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setReturnLocationName(String returnLocationName) Name of the return location. -
setReturnLocationName
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setReturnLocationName(EmptyParam returnLocationName) Name of the return location. -
setTaxExempt
Indicates whether the goods or services are tax-exempt or tax is not collected. -
setVehicleIdentificationNumber
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setVehicleIdentificationNumber(String vehicleIdentificationNumber) The vehicle identification number. -
setVehicleIdentificationNumber
public ChargeUpdateParams.PaymentDetails.CarRental.Builder setVehicleIdentificationNumber(EmptyParam vehicleIdentificationNumber) The vehicle identification number.
-