Package com.stripe.param.v2.payments
Class OffSessionPaymentCreateParams.AmountDetails.Builder
java.lang.Object
com.stripe.param.v2.payments.OffSessionPaymentCreateParams.AmountDetails.Builder
- Enclosing class:
- OffSessionPaymentCreateParams.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
(Long discountAmount) The amount the total transaction was discounted for.Contains information about the shipping 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
The amount the total transaction was discounted for. -
putExtraParam
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.extraParams
for the field documentation. -
putAllExtraParam
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.extraParams
for the field documentation. -
addLineItem
public OffSessionPaymentCreateParams.AmountDetails.Builder addLineItem(OffSessionPaymentCreateParams.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. SeeOffSessionPaymentCreateParams.AmountDetails.lineItems
for the field documentation. -
addAllLineItem
public OffSessionPaymentCreateParams.AmountDetails.Builder addAllLineItem(List<OffSessionPaymentCreateParams.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. SeeOffSessionPaymentCreateParams.AmountDetails.lineItems
for the field documentation. -
setShipping
public OffSessionPaymentCreateParams.AmountDetails.Builder setShipping(OffSessionPaymentCreateParams.AmountDetails.Shipping shipping) Contains information about the shipping portion of the amount. -
setTax
public OffSessionPaymentCreateParams.AmountDetails.Builder setTax(OffSessionPaymentCreateParams.AmountDetails.Tax tax) Contains information about the tax portion of the amount.
-