Package com.stripe.param
Class PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder
java.lang.Object
com.stripe.param.PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder
- Enclosing class:
- PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total
public static class PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExtraCharge(List<PaymentIntentCaptureParams.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
public PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder setCurrency(String currency) Currency of the amount. -
setDiscounts
public PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder setDiscounts(PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Discounts discounts) Discount details for the rental. -
addExtraCharge
public PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder addExtraCharge(PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.extraChargesfor the field documentation. -
addAllExtraCharge
public PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder addAllExtraCharge(List<PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.extraChargesfor the field documentation. -
putExtraParam
public PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.extraParamsfor the field documentation. -
setRatePerUnit
public PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder setRatePerUnit(Long ratePerUnit) Rate per unit for the rental. -
setRateUnit
public PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder setRateUnit(PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.RateUnit rateUnit) Unit of measurement for the rate. -
setTax
public PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Builder setTax(PaymentIntentCaptureParams.PaymentDetails.CarRentalData.Total.Tax tax) Tax breakdown for the rental.
-