Package com.stripe.param
Class ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Builder
java.lang.Object
com.stripe.param.ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Builder
- Enclosing class:
- ChargeCaptureParams.PaymentDetails.CarRentalData.Total
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExtraCharge(List<ChargeCaptureParams.PaymentDetails.CarRentalData.Total.ExtraCharge> elements) Add all elements to `extraCharges` 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.Required. Total amount in cents.setCurrency(String currency) Currency of the amount.Discount details for the rental.setRatePerUnit(Long ratePerUnit) Rate per unit for the rental.Unit of measurement for the rate.Tax breakdown for the rental.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Required. Total amount in cents. -
setCurrency
Currency of the amount. -
setDiscounts
public ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Builder setDiscounts(ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Discounts discounts) Discount details for the rental. -
addExtraCharge
public ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Builder addExtraCharge(ChargeCaptureParams.PaymentDetails.CarRentalData.Total.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. SeeChargeCaptureParams.PaymentDetails.CarRentalData.Total.extraChargesfor the field documentation. -
addAllExtraCharge
public ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Builder addAllExtraCharge(List<ChargeCaptureParams.PaymentDetails.CarRentalData.Total.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. SeeChargeCaptureParams.PaymentDetails.CarRentalData.Total.extraChargesfor the field documentation. -
putExtraParam
public ChargeCaptureParams.PaymentDetails.CarRentalData.Total.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. SeeChargeCaptureParams.PaymentDetails.CarRentalData.Total.extraParamsfor the field documentation. -
putAllExtraParam
public ChargeCaptureParams.PaymentDetails.CarRentalData.Total.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. SeeChargeCaptureParams.PaymentDetails.CarRentalData.Total.extraParamsfor the field documentation. -
setRatePerUnit
public ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Builder setRatePerUnit(Long ratePerUnit) Rate per unit for the rental. -
setRateUnit
public ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Builder setRateUnit(ChargeCaptureParams.PaymentDetails.CarRentalData.Total.RateUnit rateUnit) Unit of measurement for the rate. -
setTax
public ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Builder setTax(ChargeCaptureParams.PaymentDetails.CarRentalData.Total.Tax tax) Tax breakdown for the rental.
-