Package com.stripe.param
Class PaymentIntentUpdateParams.AmountDetails.LineItem.Builder
java.lang.Object
com.stripe.param.PaymentIntentUpdateParams.AmountDetails.LineItem.Builder
- Enclosing class:
- PaymentIntentUpdateParams.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 discount applied on this line item represented in the smallest currency unit.setPaymentMethodOptions(PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items.setProductCode(EmptyParam productCode) The product code of the line item, such as an SKU.setProductCode(String productCode) The product code of the line item, such as an SKU.setProductName(EmptyParam productName) Required. The product name of the line item.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(EmptyParam unitOfMeasure) A unit of measure for the line item, such as gallons, feet, meters, etc.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 PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.AmountDetails.LineItem.extraParamsfor the field documentation. -
putAllExtraParam
public PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.AmountDetails.LineItem.extraParamsfor the field documentation. -
setPaymentMethodOptions
public PaymentIntentUpdateParams.AmountDetails.LineItem.Builder setPaymentMethodOptions(PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions paymentMethodOptions) Payment method-specific information for line items. -
setProductCode
The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. -
setProductCode
public PaymentIntentUpdateParams.AmountDetails.LineItem.Builder setProductCode(EmptyParam productCode) The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. -
setProductName
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.
-
setProductName
public PaymentIntentUpdateParams.AmountDetails.LineItem.Builder setProductName(EmptyParam 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
Required. The quantity of items. Required for L3 rates. An integer greater than 0. -
setTax
public PaymentIntentUpdateParams.AmountDetails.LineItem.Builder setTax(PaymentIntentUpdateParams.AmountDetails.LineItem.Tax tax) Contains information about the tax on the item. -
setUnitCost
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 PaymentIntentUpdateParams.AmountDetails.LineItem.Builder setUnitOfMeasure(String unitOfMeasure) A unit of measure for the line item, such as gallons, feet, meters, etc. -
setUnitOfMeasure
public PaymentIntentUpdateParams.AmountDetails.LineItem.Builder setUnitOfMeasure(EmptyParam unitOfMeasure) A unit of measure for the line item, such as gallons, feet, meters, etc.
-