Package com.stripe.param
Class PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder
java.lang.Object
com.stripe.param.PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder
- Enclosing class:
- PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total
public static class PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExtraCharge(List<PaymentIntentUpdateParams.PaymentDetails.LodgingData.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 price of the lodging reservation in cents.setCashAdvances(Long cashAdvances) Cash advances in cents.setCurrency(EmptyParam currency) Currency of the total amount.setCurrency(String currency) Currency of the total amount.Discount details for the lodging.setPrepaidAmount(Long prepaidAmount) Prepaid amount in cents.Tax breakdown for the lodging reservation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Required. Total price of the lodging reservation in cents. -
setCashAdvances
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder setCashAdvances(Long cashAdvances) Cash advances in cents. -
setCurrency
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder setCurrency(String currency) Currency of the total amount. -
setCurrency
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder setCurrency(EmptyParam currency) Currency of the total amount. -
setDiscounts
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder setDiscounts(PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Discounts discounts) Discount details for the lodging. -
addExtraCharge
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder addExtraCharge(PaymentIntentUpdateParams.PaymentDetails.LodgingData.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.LodgingData.Total.extraChargesfor the field documentation. -
addAllExtraCharge
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder addAllExtraCharge(List<PaymentIntentUpdateParams.PaymentDetails.LodgingData.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.LodgingData.Total.extraChargesfor the field documentation. -
putExtraParam
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.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.LodgingData.Total.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.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.LodgingData.Total.extraParamsfor the field documentation. -
setPrepaidAmount
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder setPrepaidAmount(Long prepaidAmount) Prepaid amount in cents. -
setTax
public PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Builder setTax(PaymentIntentUpdateParams.PaymentDetails.LodgingData.Total.Tax tax) Tax breakdown for the lodging reservation.
-