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) for the resulting payment.
|
PaymentIntentUpdateParams.Builder |
setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
The amount of the application fee (if any) for the resulting payment.
|
PaymentIntentUpdateParams.Builder |
setCurrency(java.lang.String currency)
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
PaymentIntentUpdateParams.Builder |
setCustomer(java.lang.String customer)
ID of the Customer this PaymentIntent belongs to, if one exists.
|
PaymentIntentUpdateParams.Builder |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
PaymentIntentUpdateParams.Builder |
setPaymentMethod(java.lang.String paymentMethod)
ID of the payment method (a PaymentMethod, Card, BankAccount, or saved Source object) to
attach to 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.
|
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(java.lang.String source)
This is a legacy field that will be removed in the future.
|
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(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(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 setCustomer(java.lang.String customer)
If present, payment methods used with this PaymentIntent can only be attached to this Customer, and payment methods attached to other Customers cannot be used with this PaymentIntent.
public PaymentIntentUpdateParams.Builder setDescription(java.lang.String 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 setPaymentMethod(java.lang.String paymentMethod)
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)
public PaymentIntentUpdateParams.Builder setReceiptEmail(EmptyParam receiptEmail)
public PaymentIntentUpdateParams.Builder setSavePaymentMethod(java.lang.Boolean savePaymentMethod)
If the payment method is already saved to a customer, this does nothing. If this type of payment method cannot be saved to a customer, the request will error.
public PaymentIntentUpdateParams.Builder setSetupFutureUsage(EmptyParam setupFutureUsage)
If present, the payment method used with this PaymentIntent can be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer, even after the transaction completes.
Use `on_session` if you intend to only reuse the payment method when your customer is present in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow.
Stripe uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules. For example, if your customer is impacted by [SCA](https://stripe.com/docs/strong-customer-authentication), using `off_session` will ensure that they are authenticated while processing this PaymentIntent. You will then be able to collect [off-session payments](https://stripe.com/docs/payments/cards/charging-saved-cards#off-session-payments-with-saved-cards) for this customer.
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(PaymentIntentUpdateParams.SetupFutureUsage setupFutureUsage)
If present, the payment method used with this PaymentIntent can be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer, even after the transaction completes.
Use `on_session` if you intend to only reuse the payment method when your customer is present in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow.
Stripe uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules. For example, if your customer is impacted by [SCA](https://stripe.com/docs/strong-customer-authentication), using `off_session` will ensure that they are authenticated while processing this PaymentIntent. You will then be able to collect [off-session payments](https://stripe.com/docs/payments/cards/charging-saved-cards#off-session-payments-with-saved-cards) for this customer.
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)
public PaymentIntentUpdateParams.Builder setStatementDescriptor(java.lang.String statementDescriptor)
public PaymentIntentUpdateParams.Builder setStatementDescriptorSuffix(java.lang.String statementDescriptorSuffix)
public PaymentIntentUpdateParams.Builder setTransferData(PaymentIntentUpdateParams.TransferData transferData)
public PaymentIntentUpdateParams.Builder setTransferGroup(java.lang.String transferGroup)