Package com.stripe.param
Class PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem
public static class PaymentIntentCreateParams.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 PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Builder setCategory(PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Category category) Type of the line item. -
setDescription
public PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Builder setDescription(String description) Description of the line item. -
putExtraParam
public PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.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. SeePaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.extraParams
for the field documentation. -
setName
Required. Descriptive name of the line item. -
setQuantity
public PaymentIntentCreateParams.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 PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Builder setSoldBy(String soldBy) The Stripe account ID of the connected account that sells the item. -
setTax
public PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Builder setTax(PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Tax tax) The tax information for the line item. -
setUnitAmount
public PaymentIntentCreateParams.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.
-