Package com.stripe.param
Class PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder
java.lang.Object
com.stripe.param.PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder
- Enclosing class:
- PaymentIntentIncrementAuthorizationParams.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
public PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder setDiscountAmount(Long discountAmount) The amount an item was discounted for. -
setDiscountAmount
public PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder setDiscountAmount(EmptyParam discountAmount) The amount an item was discounted for. -
putExtraParam
public PaymentIntentIncrementAuthorizationParams.AmountDetails.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. SeePaymentIntentIncrementAuthorizationParams.AmountDetails.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentIncrementAuthorizationParams.AmountDetails.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. SeePaymentIntentIncrementAuthorizationParams.AmountDetails.extraParams
for the field documentation. -
addLineItem
public PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder addLineItem(PaymentIntentIncrementAuthorizationParams.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. SeePaymentIntentIncrementAuthorizationParams.AmountDetails.lineItems
for the field documentation. -
addAllLineItem
public PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder addAllLineItem(List<PaymentIntentIncrementAuthorizationParams.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. SeePaymentIntentIncrementAuthorizationParams.AmountDetails.lineItems
for the field documentation. -
setLineItems
public PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder setLineItems(EmptyParam lineItems) A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. -
setLineItems
public PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder setLineItems(List<PaymentIntentIncrementAuthorizationParams.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 PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder setShipping(PaymentIntentIncrementAuthorizationParams.AmountDetails.Shipping shipping) Contains information about the shipping portion of the amount. -
setShipping
public PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder setShipping(EmptyParam shipping) Contains information about the shipping portion of the amount. -
setTax
public PaymentIntentIncrementAuthorizationParams.AmountDetails.Builder setTax(PaymentIntentIncrementAuthorizationParams.AmountDetails.Tax tax) Contains information about the tax portion of the amount. -
setTax
Contains information about the tax portion of the amount.
-