Package com.stripe.param
Class PaymentIntentCaptureParams.AmountDetails.LineItem.Builder
java.lang.Object
com.stripe.param.PaymentIntentCaptureParams.AmountDetails.LineItem.Builder
- Enclosing class:
- PaymentIntentCaptureParams.AmountDetails.LineItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
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
(Long discountAmount) The amount an item was discounted for.setPaymentMethodOptions
(PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items.setProductCode
(String productCode) Unique identifier of the product.setProductName
(String productName) Required. Name of the product.setQuantity
(Long quantity) Required. Number of items of the product.Contains information about the tax on the item.setUnitCost
(Long unitCost) Required. Cost of the product.setUnitOfMeasure
(String unitOfMeasure) A unit of measure for the line item, such as gallons, feet, meters, etc.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDiscountAmount
public PaymentIntentCaptureParams.AmountDetails.LineItem.Builder setDiscountAmount(Long discountAmount) The amount an item was discounted for. Positive integer. -
putExtraParam
public PaymentIntentCaptureParams.AmountDetails.LineItem.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. SeePaymentIntentCaptureParams.AmountDetails.LineItem.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCaptureParams.AmountDetails.LineItem.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. SeePaymentIntentCaptureParams.AmountDetails.LineItem.extraParams
for the field documentation. -
setPaymentMethodOptions
public PaymentIntentCaptureParams.AmountDetails.LineItem.Builder setPaymentMethodOptions(PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items. -
setProductCode
Unique identifier of the product. At most 12 characters long. -
setProductName
Required. Name of the product. At most 100 characters long. -
setQuantity
Required. Number of items of the product. Positive integer. -
setTax
public PaymentIntentCaptureParams.AmountDetails.LineItem.Builder setTax(PaymentIntentCaptureParams.AmountDetails.LineItem.Tax tax) Contains information about the tax on the item. -
setUnitCost
Required. Cost of the product. Non-negative integer. -
setUnitOfMeasure
public PaymentIntentCaptureParams.AmountDetails.LineItem.Builder setUnitOfMeasure(String unitOfMeasure) A unit of measure for the line item, such as gallons, feet, meters, etc.
-