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