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