Interface PaymentIntentCheckoutDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PaymentIntentCheckoutDetails.Builder,,PaymentIntentCheckoutDetails> SdkBuilder<PaymentIntentCheckoutDetails.Builder,,PaymentIntentCheckoutDetails> SdkPojo
- Enclosing class:
PaymentIntentCheckoutDetails
-
Method Summary
Modifier and TypeMethodDescriptionamountBreakdown(Consumer<PaymentIntentAmountBreakdown.Builder> amountBreakdown) The shipping, tax and discount that make uptotalAmountalongside the line items.amountBreakdown(PaymentIntentAmountBreakdown amountBreakdown) The shipping, tax and discount that make uptotalAmountalongside the line items.amountMode(String amountMode) How to interpret totalAmount.amountMode(AmountMode amountMode) How to interpret totalAmount.lineItems(Collection<PaymentLineItem> lineItems) The line items included in this payment intent.lineItems(Consumer<PaymentLineItem.Builder>... lineItems) The line items included in this payment intent.lineItems(PaymentLineItem... lineItems) The line items included in this payment intent.merchant(Consumer<Merchant.Builder> merchant) The merchant (payee) that receives this payment.The merchant (payee) that receives this payment.referenceId(String referenceId) The merchant's reference identifier.The URL to redirect to after payment selection.totalAmount(Consumer<PaymentIntentAmount.Builder> totalAmount) The total amount for this payment intent.totalAmount(PaymentIntentAmount totalAmount) The total amount for this payment intent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
lineItems
The line items included in this payment intent. When present, the service requires the sum of
amount×quantityacross them, plusamountBreakdown.shippingandamountBreakdown.tax, minusamountBreakdown.discount, to equaltotalAmount, or, for a SETUP intent whosetotalAmountis an UPTO ceiling, not to exceed it.- Parameters:
lineItems- The line items included in this payment intent. When present, the service requires the sum ofamount×quantityacross them, plusamountBreakdown.shippingandamountBreakdown.tax, minusamountBreakdown.discount, to equaltotalAmount, or, for a SETUP intent whosetotalAmountis an UPTO ceiling, not to exceed it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lineItems
The line items included in this payment intent. When present, the service requires the sum of
amount×quantityacross them, plusamountBreakdown.shippingandamountBreakdown.tax, minusamountBreakdown.discount, to equaltotalAmount, or, for a SETUP intent whosetotalAmountis an UPTO ceiling, not to exceed it.- Parameters:
lineItems- The line items included in this payment intent. When present, the service requires the sum ofamount×quantityacross them, plusamountBreakdown.shippingandamountBreakdown.tax, minusamountBreakdown.discount, to equaltotalAmount, or, for a SETUP intent whosetotalAmountis an UPTO ceiling, not to exceed it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lineItems
The line items included in this payment intent. When present, the service requires the sum of
This is a convenience method that creates an instance of theamount×quantityacross them, plusamountBreakdown.shippingandamountBreakdown.tax, minusamountBreakdown.discount, to equaltotalAmount, or, for a SETUP intent whosetotalAmountis an UPTO ceiling, not to exceed it.PaymentLineItem.Builderavoiding the need to create one manually viaPaymentLineItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolineItems(List<PaymentLineItem>).- Parameters:
lineItems- a consumer that will call methods onPaymentLineItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalAmount
The total amount for this payment intent.
- Parameters:
totalAmount- The total amount for this payment intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalAmount
default PaymentIntentCheckoutDetails.Builder totalAmount(Consumer<PaymentIntentAmount.Builder> totalAmount) The total amount for this payment intent.
This is a convenience method that creates an instance of thePaymentIntentAmount.Builderavoiding the need to create one manually viaPaymentIntentAmount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tototalAmount(PaymentIntentAmount).- Parameters:
totalAmount- a consumer that will call methods onPaymentIntentAmount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amountBreakdown
The shipping, tax and discount that make up
totalAmountalongside the line items. Optional; absent means none of them apply.- Parameters:
amountBreakdown- The shipping, tax and discount that make uptotalAmountalongside the line items. Optional; absent means none of them apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amountBreakdown
default PaymentIntentCheckoutDetails.Builder amountBreakdown(Consumer<PaymentIntentAmountBreakdown.Builder> amountBreakdown) The shipping, tax and discount that make up
This is a convenience method that creates an instance of thetotalAmountalongside the line items. Optional; absent means none of them apply.PaymentIntentAmountBreakdown.Builderavoiding the need to create one manually viaPaymentIntentAmountBreakdown.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toamountBreakdown(PaymentIntentAmountBreakdown).- Parameters:
amountBreakdown- a consumer that will call methods onPaymentIntentAmountBreakdown.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amountMode
How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.
- Parameters:
amountMode- How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amountMode
How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.
- Parameters:
amountMode- How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
returnUrl
The URL to redirect to after payment selection.
- Parameters:
returnUrl- The URL to redirect to after payment selection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referenceId
The merchant's reference identifier. The service sends it to the payment provider. Optional.
- Parameters:
referenceId- The merchant's reference identifier. The service sends it to the payment provider. Optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
merchant
The merchant (payee) that receives this payment. The service copies it into the Payment Mandate
payeewhen the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.- Parameters:
merchant- The merchant (payee) that receives this payment. The service copies it into the Payment Mandatepayeewhen the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
merchant
The merchant (payee) that receives this payment. The service copies it into the Payment Mandate
This is a convenience method that creates an instance of thepayeewhen the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.Merchant.Builderavoiding the need to create one manually viaMerchant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomerchant(Merchant).- Parameters:
merchant- a consumer that will call methods onMerchant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-