Package com.stripe.param
Class PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Builder
java.lang.Object
com.stripe.param.PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Builder
- Enclosing class:
- PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem
public static class PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.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.Type of the line item.setDescription
(String description) Description of the line item.Required. Descriptive name of the line item.setQuantity
(Long quantity) Required. Quantity of the line item.Client facing stock keeping unit, article number or similar.The Stripe account ID of the connected account that sells the item.The tax information for the line item.setUnitAmount
(Long unitAmount) Required. Price for a single unit of the line item in minor units.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCategory
public PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Builder setCategory(PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Category category) Type of the line item. -
setDescription
public PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Builder setDescription(String description) Description of the line item. -
putExtraParam
public PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.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. SeePaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.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. SeePaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.extraParams
for the field documentation. -
setName
Required. Descriptive name of the line item. -
setQuantity
public PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Builder setQuantity(Long quantity) Required. Quantity of the line item. Must be a positive number. -
setSku
Client facing stock keeping unit, article number or similar. -
setSoldBy
public PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Builder setSoldBy(String soldBy) The Stripe account ID of the connected account that sells the item. -
setTax
public PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Builder setTax(PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Tax tax) The tax information for the line item. -
setUnitAmount
public PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Builder setUnitAmount(Long unitAmount) Required. Price for a single unit of the line item in minor units. Cannot be a negative number.
-