Package com.stripe.param
Class PaymentLinkUpdateParams.Builder
java.lang.Object
com.stripe.param.PaymentLinkUpdateParams.Builder
- Enclosing class:
PaymentLinkUpdateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.addAllLineItem
(List<PaymentLinkUpdateParams.LineItem> elements) Add all elements to `lineItems` list.Add all elements to `paymentMethodTypes` list.Add an element to `expand` list.Add an element to `lineItems` list.Add an element to `paymentMethodTypes` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.Whether the payment link'surl
is active.setAfterCompletion
(PaymentLinkUpdateParams.AfterCompletion afterCompletion) Behavior after the purchase is complete.setAllowPromotionCodes
(Boolean allowPromotionCodes) Enables user redeemable promotion codes.setAutomaticTax
(PaymentLinkUpdateParams.AutomaticTax automaticTax) Configuration for automatic tax collection.setBillingAddressCollection
(PaymentLinkUpdateParams.BillingAddressCollection billingAddressCollection) Configuration for collecting the customer's billing address.setCustomerCreation
(PaymentLinkUpdateParams.CustomerCreation customerCreation) Configures whether checkout sessions created by this payment link create a Customer.setPaymentMethodCollection
(PaymentLinkUpdateParams.PaymentMethodCollection paymentMethodCollection) Specify whether Checkout should collect a payment method.setPaymentMethodTypes
(EmptyParam paymentMethodTypes) The list of payment method types that customers can use.setPaymentMethodTypes
(List<PaymentLinkUpdateParams.PaymentMethodType> paymentMethodTypes) The list of payment method types that customers can use.setShippingAddressCollection
(EmptyParam shippingAddressCollection) Configuration for collecting the customer's shipping address.setShippingAddressCollection
(PaymentLinkUpdateParams.ShippingAddressCollection shippingAddressCollection) Configuration for collecting the customer's shipping address.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setActive
Whether the payment link'surl
is active. Iffalse
, customers visiting the URL will be shown a page saying that the link has been deactivated. -
setAfterCompletion
public PaymentLinkUpdateParams.Builder setAfterCompletion(PaymentLinkUpdateParams.AfterCompletion afterCompletion) Behavior after the purchase is complete. -
setAllowPromotionCodes
Enables user redeemable promotion codes. -
setAutomaticTax
public PaymentLinkUpdateParams.Builder setAutomaticTax(PaymentLinkUpdateParams.AutomaticTax automaticTax) Configuration for automatic tax collection. -
setBillingAddressCollection
public PaymentLinkUpdateParams.Builder setBillingAddressCollection(PaymentLinkUpdateParams.BillingAddressCollection billingAddressCollection) Configuration for collecting the customer's billing address. -
setCustomerCreation
public PaymentLinkUpdateParams.Builder setCustomerCreation(PaymentLinkUpdateParams.CustomerCreation customerCreation) Configures whether checkout sessions created by this payment link create a Customer. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentLinkUpdateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentLinkUpdateParams.expand
for the field documentation. -
putExtraParam
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. SeePaymentLinkUpdateParams.extraParams
for the field documentation. -
putAllExtraParam
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. SeePaymentLinkUpdateParams.extraParams
for the field documentation. -
addLineItem
Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentLinkUpdateParams.lineItems
for the field documentation. -
addAllLineItem
public PaymentLinkUpdateParams.Builder addAllLineItem(List<PaymentLinkUpdateParams.LineItem> elements) Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentLinkUpdateParams.lineItems
for the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePaymentLinkUpdateParams.metadata
for the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePaymentLinkUpdateParams.metadata
for the field documentation. -
setPaymentMethodCollection
public PaymentLinkUpdateParams.Builder setPaymentMethodCollection(PaymentLinkUpdateParams.PaymentMethodCollection paymentMethodCollection) Specify whether Checkout should collect a payment method. When set toif_required
, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount.Can only be set in
subscription
mode.If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial.
-
addPaymentMethodType
public PaymentLinkUpdateParams.Builder addPaymentMethodType(PaymentLinkUpdateParams.PaymentMethodType element) Add an element to `paymentMethodTypes` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentLinkUpdateParams.paymentMethodTypes
for the field documentation. -
addAllPaymentMethodType
public PaymentLinkUpdateParams.Builder addAllPaymentMethodType(List<PaymentLinkUpdateParams.PaymentMethodType> elements) Add all elements to `paymentMethodTypes` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentLinkUpdateParams.paymentMethodTypes
for the field documentation. -
setPaymentMethodTypes
The list of payment method types that customers can use. Pass an empty string to enable automatic payment methods that use your payment method settings. -
setPaymentMethodTypes
public PaymentLinkUpdateParams.Builder setPaymentMethodTypes(List<PaymentLinkUpdateParams.PaymentMethodType> paymentMethodTypes) The list of payment method types that customers can use. Pass an empty string to enable automatic payment methods that use your payment method settings. -
setShippingAddressCollection
public PaymentLinkUpdateParams.Builder setShippingAddressCollection(PaymentLinkUpdateParams.ShippingAddressCollection shippingAddressCollection) Configuration for collecting the customer's shipping address. -
setShippingAddressCollection
public PaymentLinkUpdateParams.Builder setShippingAddressCollection(EmptyParam shippingAddressCollection) Configuration for collecting the customer's shipping address.
-