Package com.stripe.param.v2.payments
Class OffSessionPaymentCreateParams.AmountDetails.LineItem.Builder
java.lang.Object
com.stripe.param.v2.payments.OffSessionPaymentCreateParams.AmountDetails.LineItem.Builder
- Enclosing class:
- OffSessionPaymentCreateParams.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.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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDiscountAmount
public OffSessionPaymentCreateParams.AmountDetails.LineItem.Builder setDiscountAmount(Long discountAmount) The amount an item was discounted for. Positive integer. -
putExtraParam
public OffSessionPaymentCreateParams.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. SeeOffSessionPaymentCreateParams.AmountDetails.LineItem.extraParams
for the field documentation. -
putAllExtraParam
public OffSessionPaymentCreateParams.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. SeeOffSessionPaymentCreateParams.AmountDetails.LineItem.extraParams
for the field documentation. -
setProductCode
public OffSessionPaymentCreateParams.AmountDetails.LineItem.Builder setProductCode(String productCode) Unique identifier of the product. At most 12 characters long. -
setProductName
public OffSessionPaymentCreateParams.AmountDetails.LineItem.Builder setProductName(String productName) Required. Name of the product. At most 100 characters long. -
setQuantity
Required. Number of items of the product. Positive integer. -
setTax
public OffSessionPaymentCreateParams.AmountDetails.LineItem.Builder setTax(OffSessionPaymentCreateParams.AmountDetails.LineItem.Tax tax) Contains information about the tax on the item. -
setUnitCost
Required. Cost of the product. Non-negative integer.
-