Package com.stripe.param
Class PaymentIntentConfirmParams.AmountDetails.Builder
java.lang.Object
com.stripe.param.PaymentIntentConfirmParams.AmountDetails.Builder
- Enclosing class:
- PaymentIntentConfirmParams.AmountDetails
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `lineItems` list.Add an element to `lineItems` 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.setDiscountAmount
(EmptyParam discountAmount) The amount an item was discounted for.setDiscountAmount
(Long discountAmount) The amount an item was discounted for.setLineItems
(EmptyParam lineItems) A list of line items, each containing information about a product in the PaymentIntent.A list of line items, each containing information about a product in the PaymentIntent.setShipping
(EmptyParam shipping) Contains information about the shipping portion of the amount.Contains information about the shipping portion of the amount.setTax
(EmptyParam tax) Contains information about the tax portion of the amount.Contains information about the tax portion of the amount.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDiscountAmount
The amount an item was discounted for. -
setDiscountAmount
public PaymentIntentConfirmParams.AmountDetails.Builder setDiscountAmount(EmptyParam discountAmount) The amount an item was discounted for. -
putExtraParam
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. SeePaymentIntentConfirmParams.AmountDetails.extraParams
for the field documentation. -
putAllExtraParam
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. SeePaymentIntentConfirmParams.AmountDetails.extraParams
for the field documentation. -
addLineItem
public PaymentIntentConfirmParams.AmountDetails.Builder addLineItem(PaymentIntentConfirmParams.AmountDetails.LineItem element) Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentConfirmParams.AmountDetails.lineItems
for the field documentation. -
addAllLineItem
public PaymentIntentConfirmParams.AmountDetails.Builder addAllLineItem(List<PaymentIntentConfirmParams.AmountDetails.LineItem> elements) Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentConfirmParams.AmountDetails.lineItems
for the field documentation. -
setLineItems
A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. -
setLineItems
public PaymentIntentConfirmParams.AmountDetails.Builder setLineItems(List<PaymentIntentConfirmParams.AmountDetails.LineItem> lineItems) A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. -
setShipping
public PaymentIntentConfirmParams.AmountDetails.Builder setShipping(PaymentIntentConfirmParams.AmountDetails.Shipping shipping) Contains information about the shipping portion of the amount. -
setShipping
Contains information about the shipping portion of the amount. -
setTax
public PaymentIntentConfirmParams.AmountDetails.Builder setTax(PaymentIntentConfirmParams.AmountDetails.Tax tax) Contains information about the tax portion of the amount. -
setTax
Contains information about the tax portion of the amount.
-