Package com.stripe.param
Class PaymentIntentCaptureParams.AmountDetails.Builder
java.lang.Object
com.stripe.param.PaymentIntentCaptureParams.AmountDetails.Builder
- Enclosing class:
- PaymentIntentCaptureParams.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 PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.AmountDetails.extraParams
for the field documentation. -
addLineItem
public PaymentIntentCaptureParams.AmountDetails.Builder addLineItem(PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.AmountDetails.lineItems
for the field documentation. -
addAllLineItem
public PaymentIntentCaptureParams.AmountDetails.Builder addAllLineItem(List<PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.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 PaymentIntentCaptureParams.AmountDetails.Builder setLineItems(List<PaymentIntentCaptureParams.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 PaymentIntentCaptureParams.AmountDetails.Builder setShipping(PaymentIntentCaptureParams.AmountDetails.Shipping shipping) Contains information about the shipping portion of the amount. -
setShipping
Contains information about the shipping portion of the amount. -
setTax
public PaymentIntentCaptureParams.AmountDetails.Builder setTax(PaymentIntentCaptureParams.AmountDetails.Tax tax) Contains information about the tax portion of the amount. -
setTax
Contains information about the tax portion of the amount.
-