Package com.stripe.param
Class PaymentLinkUpdateParams.Builder
- java.lang.Object
-
- com.stripe.param.PaymentLinkUpdateParams.Builder
-
- Enclosing class:
- PaymentLinkUpdateParams
public static class PaymentLinkUpdateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentLinkUpdateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.PaymentLinkUpdateParams.Builder
addAllLineItem(java.util.List<PaymentLinkUpdateParams.LineItem> elements)
Add all elements to `lineItems` list.PaymentLinkUpdateParams.Builder
addAllPaymentMethodType(java.util.List<PaymentLinkUpdateParams.PaymentMethodType> elements)
Add all elements to `paymentMethodTypes` list.PaymentLinkUpdateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.PaymentLinkUpdateParams.Builder
addLineItem(PaymentLinkUpdateParams.LineItem element)
Add an element to `lineItems` list.PaymentLinkUpdateParams.Builder
addPaymentMethodType(PaymentLinkUpdateParams.PaymentMethodType element)
Add an element to `paymentMethodTypes` list.PaymentLinkUpdateParams
build()
Finalize and obtain parameter instance from this builder.PaymentLinkUpdateParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.PaymentLinkUpdateParams.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.PaymentLinkUpdateParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.PaymentLinkUpdateParams.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.PaymentLinkUpdateParams.Builder
setActive(java.lang.Boolean active)
Whether the payment link'surl
is active.PaymentLinkUpdateParams.Builder
setAfterCompletion(PaymentLinkUpdateParams.AfterCompletion afterCompletion)
Behavior after the purchase is complete.PaymentLinkUpdateParams.Builder
setAllowPromotionCodes(java.lang.Boolean allowPromotionCodes)
Enables user redeemable promotion codes.PaymentLinkUpdateParams.Builder
setAutomaticTax(PaymentLinkUpdateParams.AutomaticTax automaticTax)
Configuration for automatic tax collection.PaymentLinkUpdateParams.Builder
setBillingAddressCollection(PaymentLinkUpdateParams.BillingAddressCollection billingAddressCollection)
Configuration for collecting the customer's billing address.PaymentLinkUpdateParams.Builder
setPaymentMethodTypes(EmptyParam paymentMethodTypes)
The list of payment method types that customers can use.PaymentLinkUpdateParams.Builder
setPaymentMethodTypes(java.util.List<PaymentLinkUpdateParams.PaymentMethodType> paymentMethodTypes)
The list of payment method types that customers can use.PaymentLinkUpdateParams.Builder
setShippingAddressCollection(EmptyParam shippingAddressCollection)
Configuration for collecting the customer's shipping address.PaymentLinkUpdateParams.Builder
setShippingAddressCollection(PaymentLinkUpdateParams.ShippingAddressCollection shippingAddressCollection)
Configuration for collecting the customer's shipping address.
-
-
-
Method Detail
-
build
public PaymentLinkUpdateParams build()
Finalize and obtain parameter instance from this builder.
-
setActive
public PaymentLinkUpdateParams.Builder setActive(java.lang.Boolean active)
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
public PaymentLinkUpdateParams.Builder setAllowPromotionCodes(java.lang.Boolean allowPromotionCodes)
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.
-
addExpand
public PaymentLinkUpdateParams.Builder addExpand(java.lang.String element)
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
public PaymentLinkUpdateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
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
public PaymentLinkUpdateParams.Builder putExtraParam(java.lang.String key, java.lang.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. SeePaymentLinkUpdateParams.extraParams
for the field documentation.
-
putAllExtraParam
public PaymentLinkUpdateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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. SeePaymentLinkUpdateParams.extraParams
for the field documentation.
-
addLineItem
public PaymentLinkUpdateParams.Builder addLineItem(PaymentLinkUpdateParams.LineItem element)
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(java.util.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
public PaymentLinkUpdateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
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
public PaymentLinkUpdateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
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.
-
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(java.util.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
public PaymentLinkUpdateParams.Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes)
The list of payment method types that customers can use. Onlycard
is supported. Pass an empty string to enable automatic payment methods that use your payment method settings.
-
setPaymentMethodTypes
public PaymentLinkUpdateParams.Builder setPaymentMethodTypes(java.util.List<PaymentLinkUpdateParams.PaymentMethodType> paymentMethodTypes)
The list of payment method types that customers can use. Onlycard
is supported. 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.
-
-