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