Package com.stripe.param
Class PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentDetails.FlightData.Total
public static class PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExtraCharge(List<PaymentIntentCreateParams.PaymentDetails.FlightData.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 flight amount.setCreditReason(PaymentIntentCreateParams.PaymentDetails.FlightData.Total.CreditReason creditReason) Reason for credit.setCurrency(String currency) Total currency.Discount details.Tax breakdown.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Required. Total flight amount. -
setCreditReason
public PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder setCreditReason(PaymentIntentCreateParams.PaymentDetails.FlightData.Total.CreditReason creditReason) Reason for credit. -
setCurrency
public PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder setCurrency(String currency) Total currency. -
setDiscounts
public PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder setDiscounts(PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Discounts discounts) Discount details. -
addExtraCharge
public PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder addExtraCharge(PaymentIntentCreateParams.PaymentDetails.FlightData.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.FlightData.Total.extraChargesfor the field documentation. -
addAllExtraCharge
public PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder addAllExtraCharge(List<PaymentIntentCreateParams.PaymentDetails.FlightData.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.FlightData.Total.extraChargesfor the field documentation. -
putExtraParam
public PaymentIntentCreateParams.PaymentDetails.FlightData.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.FlightData.Total.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.PaymentDetails.FlightData.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.FlightData.Total.extraParamsfor the field documentation. -
setTax
public PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Builder setTax(PaymentIntentCreateParams.PaymentDetails.FlightData.Total.Tax tax) Tax breakdown.
-