public static class PaymentIntentUpdateParams.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PaymentIntentUpdateParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.
|
PaymentIntentUpdateParams.Builder |
addAllPaymentMethodType(java.util.List<java.lang.String> elements)
Add all elements to `paymentMethodTypes` list.
|
PaymentIntentUpdateParams.Builder |
addExpand(java.lang.String element)
Add an element to `expand` list.
|
PaymentIntentUpdateParams.Builder |
addPaymentMethodType(java.lang.String element)
Add an element to `paymentMethodTypes` list.
|
PaymentIntentUpdateParams |
build()
Finalize and obtain parameter instance from this builder.
|
PaymentIntentUpdateParams.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
PaymentIntentUpdateParams.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.
|
PaymentIntentUpdateParams.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
PaymentIntentUpdateParams.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
Add a key/value pair to `metadata` map.
|
PaymentIntentUpdateParams.Builder |
setAmount(java.lang.Long amount)
Amount intended to be collected by this PaymentIntent.
|
PaymentIntentUpdateParams.Builder |
setApplicationFeeAmount(EmptyParam applicationFeeAmount)
The amount of the application fee (if any) that will be applied to the payment and
transferred to the application owner's Stripe account.
|
PaymentIntentUpdateParams.Builder |
setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
The amount of the application fee (if any) that will be applied to the payment and
transferred to the application owner's Stripe account.
|
PaymentIntentUpdateParams.Builder |
setCurrency(EmptyParam currency)
Three-letter ISO currency
code, in lowercase.
|
PaymentIntentUpdateParams.Builder |
setCurrency(java.lang.String currency)
Three-letter ISO currency
code, in lowercase.
|
PaymentIntentUpdateParams.Builder |
setCustomer(EmptyParam customer)
ID of the Customer this PaymentIntent belongs to, if one exists.
|
PaymentIntentUpdateParams.Builder |
setCustomer(java.lang.String customer)
ID of the Customer this PaymentIntent belongs to, if one exists.
|
PaymentIntentUpdateParams.Builder |
setDescription(EmptyParam description)
An arbitrary string attached to the object.
|
PaymentIntentUpdateParams.Builder |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
PaymentIntentUpdateParams.Builder |
setMetadata(EmptyParam metadata)
Set of key-value pairs that you can attach
to an object.
|
PaymentIntentUpdateParams.Builder |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach
to an object.
|
PaymentIntentUpdateParams.Builder |
setPaymentMethod(EmptyParam paymentMethod)
ID of the payment method (a PaymentMethod, Card, or compatible Source
object) to attach to this PaymentIntent.
|
PaymentIntentUpdateParams.Builder |
setPaymentMethod(java.lang.String paymentMethod)
ID of the payment method (a PaymentMethod, Card, or compatible Source
object) to attach to this PaymentIntent.
|
PaymentIntentUpdateParams.Builder |
setPaymentMethodData(PaymentIntentUpdateParams.PaymentMethodData paymentMethodData)
If provided, this hash will be used to create a PaymentMethod.
|
PaymentIntentUpdateParams.Builder |
setPaymentMethodOptions(PaymentIntentUpdateParams.PaymentMethodOptions paymentMethodOptions)
Payment-method-specific configuration for this PaymentIntent.
|
PaymentIntentUpdateParams.Builder |
setReceiptEmail(EmptyParam receiptEmail)
Email address that the receipt for the resulting payment will be sent to.
|
PaymentIntentUpdateParams.Builder |
setReceiptEmail(java.lang.String receiptEmail)
Email address that the receipt for the resulting payment will be sent to.
|
PaymentIntentUpdateParams.Builder |
setSavePaymentMethod(java.lang.Boolean savePaymentMethod)
If the PaymentIntent has a
payment_method and a customer or if you're
attaching a payment method to the PaymentIntent in this request, you can pass save_payment_method=true to save the payment method to the customer immediately. |
PaymentIntentUpdateParams.Builder |
setSetupFutureUsage(EmptyParam setupFutureUsage)
Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
PaymentIntentUpdateParams.Builder |
setSetupFutureUsage(PaymentIntentUpdateParams.SetupFutureUsage setupFutureUsage)
Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
PaymentIntentUpdateParams.Builder |
setShipping(EmptyParam shipping)
Shipping information for this PaymentIntent.
|
PaymentIntentUpdateParams.Builder |
setShipping(PaymentIntentUpdateParams.Shipping shipping)
Shipping information for this PaymentIntent.
|
PaymentIntentUpdateParams.Builder |
setSource(EmptyParam source)
This is a legacy field that will be removed in the future.
|
PaymentIntentUpdateParams.Builder |
setSource(java.lang.String source)
This is a legacy field that will be removed in the future.
|
PaymentIntentUpdateParams.Builder |
setStatementDescriptor(EmptyParam statementDescriptor)
For non-card charges, you can use this value as the complete description that appears on your
customers’ statements.
|
PaymentIntentUpdateParams.Builder |
setStatementDescriptor(java.lang.String statementDescriptor)
For non-card charges, you can use this value as the complete description that appears on your
customers’ statements.
|
PaymentIntentUpdateParams.Builder |
setStatementDescriptorSuffix(EmptyParam statementDescriptorSuffix)
Provides information about a card payment that customers see on their statements.
|
PaymentIntentUpdateParams.Builder |
setStatementDescriptorSuffix(java.lang.String statementDescriptorSuffix)
Provides information about a card payment that customers see on their statements.
|
PaymentIntentUpdateParams.Builder |
setTransferData(PaymentIntentUpdateParams.TransferData transferData)
The parameters used to automatically create a Transfer when the payment succeeds.
|
PaymentIntentUpdateParams.Builder |
setTransferGroup(EmptyParam transferGroup)
A string that identifies the resulting payment as part of a group.
|
PaymentIntentUpdateParams.Builder |
setTransferGroup(java.lang.String transferGroup)
A string that identifies the resulting payment as part of a group.
|
public PaymentIntentUpdateParams build()
public PaymentIntentUpdateParams.Builder setAmount(java.lang.Long amount)
public PaymentIntentUpdateParams.Builder setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
public PaymentIntentUpdateParams.Builder setApplicationFeeAmount(EmptyParam applicationFeeAmount)
public PaymentIntentUpdateParams.Builder setCurrency(java.lang.String currency)
public PaymentIntentUpdateParams.Builder setCurrency(EmptyParam currency)
public PaymentIntentUpdateParams.Builder setCustomer(java.lang.String customer)
Payment methods attached to other Customers cannot be used with this PaymentIntent.
If present in combination with setup_future_usage, this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete.
public PaymentIntentUpdateParams.Builder setCustomer(EmptyParam customer)
Payment methods attached to other Customers cannot be used with this PaymentIntent.
If present in combination with setup_future_usage, this PaymentIntent's payment method will be attached to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete.
public PaymentIntentUpdateParams.Builder setDescription(java.lang.String description)
public PaymentIntentUpdateParams.Builder setDescription(EmptyParam description)
public PaymentIntentUpdateParams.Builder addExpand(java.lang.String element)
PaymentIntentUpdateParams.expand for the field documentation.public PaymentIntentUpdateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
PaymentIntentUpdateParams.expand for the field documentation.public PaymentIntentUpdateParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
PaymentIntentUpdateParams.extraParams for the field documentation.public PaymentIntentUpdateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
PaymentIntentUpdateParams.extraParams for the field documentation.public PaymentIntentUpdateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
PaymentIntentUpdateParams.metadata for the field documentation.public PaymentIntentUpdateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
PaymentIntentUpdateParams.metadata for the field documentation.public PaymentIntentUpdateParams.Builder setMetadata(EmptyParam metadata)
metadata.public PaymentIntentUpdateParams.Builder setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata.public PaymentIntentUpdateParams.Builder setPaymentMethod(java.lang.String paymentMethod)
public PaymentIntentUpdateParams.Builder setPaymentMethod(EmptyParam paymentMethod)
public PaymentIntentUpdateParams.Builder setPaymentMethodData(PaymentIntentUpdateParams.PaymentMethodData paymentMethodData)
public PaymentIntentUpdateParams.Builder setPaymentMethodOptions(PaymentIntentUpdateParams.PaymentMethodOptions paymentMethodOptions)
public PaymentIntentUpdateParams.Builder addPaymentMethodType(java.lang.String element)
PaymentIntentUpdateParams.paymentMethodTypes for the field documentation.public PaymentIntentUpdateParams.Builder addAllPaymentMethodType(java.util.List<java.lang.String> elements)
PaymentIntentUpdateParams.paymentMethodTypes for the field documentation.public PaymentIntentUpdateParams.Builder setReceiptEmail(java.lang.String receiptEmail)
receipt_email is specified for a payment in live mode, a receipt will be sent regardless of
your email settings.public PaymentIntentUpdateParams.Builder setReceiptEmail(EmptyParam receiptEmail)
receipt_email is specified for a payment in live mode, a receipt will be sent regardless of
your email settings.public PaymentIntentUpdateParams.Builder setSavePaymentMethod(java.lang.Boolean savePaymentMethod)
payment_method and a customer or if you're
attaching a payment method to the PaymentIntent in this request, you can pass save_payment_method=true to save the payment method to the customer immediately.
If the payment method is already saved to a customer, this parameter does nothing. If this type of payment method cannot be saved to a customer, the request will error.
Saving a payment method using this parameter is not recommended because it will save the payment method even if it cannot be charged (e.g. the user made a typo). To ensure that only payment methods which are likely to be chargeable are saved to a customer, use the (setup_future_usage)[#payment_intents/object#payment_intent_object-setup_future_usage] property, which saves the payment method after the PaymentIntent has been confirmed and all required actions by the customer are complete.
public PaymentIntentUpdateParams.Builder setSetupFutureUsage(PaymentIntentUpdateParams.SetupFutureUsage setupFutureUsage)
Providing this parameter will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.
When processing card payments, Stripe also uses setup_future_usage to dynamically
optimize your payment flow and comply with regional legislation and network rules, such as SCA.
If setup_future_usage is already set and you are performing a request using a
publishable key, you may only update the value from on_session to off_session.
public PaymentIntentUpdateParams.Builder setSetupFutureUsage(EmptyParam setupFutureUsage)
Providing this parameter will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be attached to a Customer after the transaction completes.
When processing card payments, Stripe also uses setup_future_usage to dynamically
optimize your payment flow and comply with regional legislation and network rules, such as SCA.
If setup_future_usage is already set and you are performing a request using a
publishable key, you may only update the value from on_session to off_session.
public PaymentIntentUpdateParams.Builder setShipping(PaymentIntentUpdateParams.Shipping shipping)
public PaymentIntentUpdateParams.Builder setShipping(EmptyParam shipping)
public PaymentIntentUpdateParams.Builder setSource(java.lang.String source)
payment_method field instead, which
also supports Cards and compatible Source
objects.public PaymentIntentUpdateParams.Builder setSource(EmptyParam source)
payment_method field instead, which
also supports Cards and compatible Source
objects.public PaymentIntentUpdateParams.Builder setStatementDescriptor(java.lang.String statementDescriptor)
public PaymentIntentUpdateParams.Builder setStatementDescriptor(EmptyParam statementDescriptor)
public PaymentIntentUpdateParams.Builder setStatementDescriptorSuffix(java.lang.String statementDescriptorSuffix)
public PaymentIntentUpdateParams.Builder setStatementDescriptorSuffix(EmptyParam statementDescriptorSuffix)
public PaymentIntentUpdateParams.Builder setTransferData(PaymentIntentUpdateParams.TransferData transferData)
public PaymentIntentUpdateParams.Builder setTransferGroup(java.lang.String transferGroup)
transfer_group may
only be provided if it has not been set. See the PaymentIntents use case for connected
accounts for details.public PaymentIntentUpdateParams.Builder setTransferGroup(EmptyParam transferGroup)
transfer_group may
only be provided if it has not been set. See the PaymentIntents use case for connected
accounts for details.