Package com.stripe.param
Class PaymentLinkUpdateParams.Builder
java.lang.Object
com.stripe.param.PaymentLinkUpdateParams.Builder
- Enclosing class:
- PaymentLinkUpdateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `customFields` list.addAllExpand
(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 `customFields` 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.setCustomFields
(EmptyParam customFields) Collect additional information from your customer using custom fields.setCustomFields
(List<PaymentLinkUpdateParams.CustomField> customFields) Collect additional information from your customer using custom fields.setCustomText
(PaymentLinkUpdateParams.CustomText customText) Display additional text for your customers using custom text.setInactiveMessage
(EmptyParam inactiveMessage) The custom message to be displayed to a customer when a payment link is no longer active.setInactiveMessage
(String inactiveMessage) The custom message to be displayed to a customer when a payment link is no longer active.setInvoiceCreation
(PaymentLinkUpdateParams.InvoiceCreation invoiceCreation) Generate a post-purchase Invoice for one-time payments.setPaymentIntentData
(PaymentLinkUpdateParams.PaymentIntentData paymentIntentData) A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions inpayment
mode.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.setRestrictions
(EmptyParam restrictions) Settings that restrict the usage of a payment link.setRestrictions
(PaymentLinkUpdateParams.Restrictions restrictions) Settings that restrict the usage of a payment link.setShippingAddressCollection
(EmptyParam shippingAddressCollection) Configuration for collecting the customer's shipping address.setShippingAddressCollection
(PaymentLinkUpdateParams.ShippingAddressCollection shippingAddressCollection) Configuration for collecting the customer's shipping address.setSubscriptionData
(PaymentLinkUpdateParams.SubscriptionData subscriptionData) When creating a subscription, the specified configuration data will be used.setTaxIdCollection
(PaymentLinkUpdateParams.TaxIdCollection taxIdCollection) Controls tax ID collection during checkout.
-
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. Defaults toauto
. -
addCustomField
Add an element to `customFields` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentLinkUpdateParams.customFields
for the field documentation. -
addAllCustomField
public PaymentLinkUpdateParams.Builder addAllCustomField(List<PaymentLinkUpdateParams.CustomField> elements) Add all elements to `customFields` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentLinkUpdateParams.customFields
for the field documentation. -
setCustomFields
Collect additional information from your customer using custom fields. Up to 3 fields are supported. -
setCustomFields
public PaymentLinkUpdateParams.Builder setCustomFields(List<PaymentLinkUpdateParams.CustomField> customFields) Collect additional information from your customer using custom fields. Up to 3 fields are supported. -
setCustomText
Display additional text for your customers using custom text. -
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. -
setInactiveMessage
The custom message to be displayed to a customer when a payment link is no longer active. -
setInactiveMessage
The custom message to be displayed to a customer when a payment link is no longer active. -
setInvoiceCreation
public PaymentLinkUpdateParams.Builder setInvoiceCreation(PaymentLinkUpdateParams.InvoiceCreation invoiceCreation) Generate a post-purchase Invoice for one-time payments. -
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. -
setPaymentIntentData
public PaymentLinkUpdateParams.Builder setPaymentIntentData(PaymentLinkUpdateParams.PaymentIntentData paymentIntentData) A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions inpayment
mode. -
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. Defaults toalways
.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 dynamic 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 dynamic payment methods that use your payment method settings. -
setRestrictions
public PaymentLinkUpdateParams.Builder setRestrictions(PaymentLinkUpdateParams.Restrictions restrictions) Settings that restrict the usage of a payment link. -
setRestrictions
Settings that restrict the usage of a payment link. -
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. -
setSubscriptionData
public PaymentLinkUpdateParams.Builder setSubscriptionData(PaymentLinkUpdateParams.SubscriptionData subscriptionData) When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to usesubscription_data
. -
setTaxIdCollection
public PaymentLinkUpdateParams.Builder setTaxIdCollection(PaymentLinkUpdateParams.TaxIdCollection taxIdCollection) Controls tax ID collection during checkout.
-