Package com.stripe.param
Class OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder
java.lang.Object
com.stripe.param.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder
public static class OrderCreateParams.Payment.Settings.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.setCategory
(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Category category) 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 OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder setCategory(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Category category) Type of the line item. -
setDescription
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder setDescription(String description) Description of the line item. -
putExtraParam
public OrderCreateParams.Payment.Settings.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. SeeOrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.extraParams
for the field documentation. -
putAllExtraParam
public OrderCreateParams.Payment.Settings.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. SeeOrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.extraParams
for the field documentation. -
setName
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder setName(String name) Required. Descriptive name of the line item. -
setQuantity
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder setQuantity(Long quantity) Required. Quantity of the line item. Must be a positive number. -
setSku
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder setSku(String sku) Client facing stock keeping unit, article number or similar. -
setSoldBy
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder setSoldBy(String soldBy) The Stripe account ID of the connected account that sells the item. -
setTax
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Builder setTax(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Tax tax) The tax information for the line item. -
setUnitAmount
public OrderCreateParams.Payment.Settings.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.
-