Package com.stripe.param
Class PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder
java.lang.Object
com.stripe.param.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder
- Enclosing class:
- PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem
public static class PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder
extends Object
-
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 discount applied on this line item represented in the smallest currency unit.setPaymentMethodOptions(PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items.setProductCode(String productCode) The product code of the line item, such as an SKU.setProductName(String productName) Required. The product name of the line item.setQuantity(Long quantity) Required. The quantity of items.Contains information about the tax on the item.setUnitCost(Long unitCost) Required. The unit cost of the line item represented in the smallest currency unit.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 PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder setDiscountAmount(Long discountAmount) The discount applied on this line item represented in the smallest currency unit. An integer greater than 0.This field is mutually exclusive with the
amount_details[discount_amount]field. -
putExtraParam
public PaymentIntentIncrementAuthorizationParams.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. SeePaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentIncrementAuthorizationParams.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. SeePaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.extraParamsfor the field documentation. -
setPaymentMethodOptions
public PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder setPaymentMethodOptions(PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items. -
setProductCode
public PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder setProductCode(String productCode) The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. -
setProductName
public PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder setProductName(String productName) Required. The product name of the line item. Required for L3 rates. At most 1024 characters long.For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
-
setQuantity
public PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder setQuantity(Long quantity) Required. The quantity of items. Required for L3 rates. An integer greater than 0. -
setTax
public PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder setTax(PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Tax tax) Contains information about the tax on the item. -
setUnitCost
public PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder setUnitCost(Long unitCost) Required. The unit cost of the line item represented in the smallest currency unit. Required for L3 rates. An integer greater than or equal to 0. -
setUnitOfMeasure
public PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Builder setUnitOfMeasure(String unitOfMeasure) A unit of measure for the line item, such as gallons, feet, meters, etc.
-