Package com.stripe.param
Class PaymentLinkCreateParams.Builder
- java.lang.Object
-
- com.stripe.param.PaymentLinkCreateParams.Builder
-
- Enclosing class:
- PaymentLinkCreateParams
public static class PaymentLinkCreateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentLinkCreateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.PaymentLinkCreateParams.Builder
addAllLineItem(java.util.List<PaymentLinkCreateParams.LineItem> elements)
Add all elements to `lineItems` list.PaymentLinkCreateParams.Builder
addAllPaymentMethodType(java.util.List<PaymentLinkCreateParams.PaymentMethodType> elements)
Add all elements to `paymentMethodTypes` list.PaymentLinkCreateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.PaymentLinkCreateParams.Builder
addLineItem(PaymentLinkCreateParams.LineItem element)
Add an element to `lineItems` list.PaymentLinkCreateParams.Builder
addPaymentMethodType(PaymentLinkCreateParams.PaymentMethodType element)
Add an element to `paymentMethodTypes` list.PaymentLinkCreateParams
build()
Finalize and obtain parameter instance from this builder.PaymentLinkCreateParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.PaymentLinkCreateParams.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.PaymentLinkCreateParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.PaymentLinkCreateParams.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.PaymentLinkCreateParams.Builder
setAfterCompletion(PaymentLinkCreateParams.AfterCompletion afterCompletion)
Behavior after the purchase is complete.PaymentLinkCreateParams.Builder
setAllowPromotionCodes(java.lang.Boolean allowPromotionCodes)
Enables user redeemable promotion codes.PaymentLinkCreateParams.Builder
setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.PaymentLinkCreateParams.Builder
setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places.PaymentLinkCreateParams.Builder
setAutomaticTax(PaymentLinkCreateParams.AutomaticTax automaticTax)
Configuration for automatic tax collection.PaymentLinkCreateParams.Builder
setBillingAddressCollection(PaymentLinkCreateParams.BillingAddressCollection billingAddressCollection)
Configuration for collecting the customer's billing address.PaymentLinkCreateParams.Builder
setOnBehalfOf(java.lang.String onBehalfOf)
The account on behalf of which to charge.PaymentLinkCreateParams.Builder
setPhoneNumberCollection(PaymentLinkCreateParams.PhoneNumberCollection phoneNumberCollection)
Controls phone number collection settings during checkout.PaymentLinkCreateParams.Builder
setShippingAddressCollection(PaymentLinkCreateParams.ShippingAddressCollection shippingAddressCollection)
Configuration for collecting the customer's shipping address.PaymentLinkCreateParams.Builder
setSubscriptionData(PaymentLinkCreateParams.SubscriptionData subscriptionData)
When creating a subscription, the specified configuration data will be used.PaymentLinkCreateParams.Builder
setTransferData(PaymentLinkCreateParams.TransferData transferData)
The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
-
-
-
Method Detail
-
build
public PaymentLinkCreateParams build()
Finalize and obtain parameter instance from this builder.
-
setAfterCompletion
public PaymentLinkCreateParams.Builder setAfterCompletion(PaymentLinkCreateParams.AfterCompletion afterCompletion)
Behavior after the purchase is complete.
-
setAllowPromotionCodes
public PaymentLinkCreateParams.Builder setAllowPromotionCodes(java.lang.Boolean allowPromotionCodes)
Enables user redeemable promotion codes.
-
setApplicationFeeAmount
public PaymentLinkCreateParams.Builder setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices.
-
setApplicationFeePercent
public PaymentLinkCreateParams.Builder setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
-
setAutomaticTax
public PaymentLinkCreateParams.Builder setAutomaticTax(PaymentLinkCreateParams.AutomaticTax automaticTax)
Configuration for automatic tax collection.
-
setBillingAddressCollection
public PaymentLinkCreateParams.Builder setBillingAddressCollection(PaymentLinkCreateParams.BillingAddressCollection billingAddressCollection)
Configuration for collecting the customer's billing address.
-
addExpand
public PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.expand
for the field documentation.
-
addAllExpand
public PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.expand
for the field documentation.
-
putExtraParam
public PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.extraParams
for the field documentation.
-
putAllExtraParam
public PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.extraParams
for the field documentation.
-
addLineItem
public PaymentLinkCreateParams.Builder addLineItem(PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.lineItems
for the field documentation.
-
addAllLineItem
public PaymentLinkCreateParams.Builder addAllLineItem(java.util.List<PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.lineItems
for the field documentation.
-
putMetadata
public PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.metadata
for the field documentation.
-
putAllMetadata
public PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.metadata
for the field documentation.
-
setOnBehalfOf
public PaymentLinkCreateParams.Builder setOnBehalfOf(java.lang.String onBehalfOf)
The account on behalf of which to charge.
-
addPaymentMethodType
public PaymentLinkCreateParams.Builder addPaymentMethodType(PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.paymentMethodTypes
for the field documentation.
-
addAllPaymentMethodType
public PaymentLinkCreateParams.Builder addAllPaymentMethodType(java.util.List<PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.paymentMethodTypes
for the field documentation.
-
setPhoneNumberCollection
public PaymentLinkCreateParams.Builder setPhoneNumberCollection(PaymentLinkCreateParams.PhoneNumberCollection phoneNumberCollection)
Controls phone number collection settings during checkout.We recommend that you review your privacy policy and check with your legal contacts.
-
setShippingAddressCollection
public PaymentLinkCreateParams.Builder setShippingAddressCollection(PaymentLinkCreateParams.ShippingAddressCollection shippingAddressCollection)
Configuration for collecting the customer's shipping address.
-
setSubscriptionData
public PaymentLinkCreateParams.Builder setSubscriptionData(PaymentLinkCreateParams.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
.
-
setTransferData
public PaymentLinkCreateParams.Builder setTransferData(PaymentLinkCreateParams.TransferData transferData)
The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
-
-