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