Interface PaymentIntent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PaymentIntent.Builder,,PaymentIntent> SdkBuilder<PaymentIntent.Builder,,PaymentIntent> SdkPojo
- Enclosing class:
PaymentIntent
-
Method Summary
Modifier and TypeMethodDescriptiondefault PaymentIntent.BuilderauthorizedAmount(Consumer<PaymentIntentAmount.Builder> authorizedAmount) The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.authorizedAmount(PaymentIntentAmount authorizedAmount) The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.buyerApprovalStatus(String buyerApprovalStatus) Buyer Approval state for the current PaymentIntent version.buyerApprovalStatus(BuyerApprovalStatus buyerApprovalStatus) Buyer Approval state for the current PaymentIntent version.default PaymentIntent.BuildercapturedAmount(Consumer<PaymentIntentAmount.Builder> capturedAmount) The cumulative amount captured across all captures (aggregate roll-up).capturedAmount(PaymentIntentAmount capturedAmount) The cumulative amount captured across all captures (aggregate roll-up).captures(Collection<Capture> captures) The captures created against this intent (populated on Get).captures(Consumer<Capture.Builder>... captures) The captures created against this intent (populated on Get).The captures created against this intent (populated on Get).captureStrategy(String captureStrategy) The capture timing strategy for this intent (INSTANT | FUTURE).captureStrategy(CaptureStrategy captureStrategy) The capture timing strategy for this intent (INSTANT | FUTURE).default PaymentIntent.BuildercheckoutDetails(Consumer<PaymentIntentCheckoutDetails.Builder> checkoutDetails) The checkout details for this payment intent.checkoutDetails(PaymentIntentCheckoutDetails checkoutDetails) The checkout details for this payment intent.The timestamp when this payment intent was created.partnerAuthorizationReference(String partnerAuthorizationReference) The provider authorization reference produced at Authorize (Stripe pi_, PayPal authorization_id, Amazon Pay chargeId).partnerIntentReference(String partnerIntentReference) The PSP session reference created by InitiatePaymentIntent.paymentConnectorId(String paymentConnectorId) The single connector selected when this payment intent was created.paymentIntentId(String paymentIntentId) The unique identifier for this payment intent.paymentManagerArn(String paymentManagerArn) The ARN of the payment manager that owns this payment intent.The current status of this payment intent.status(PaymentIntentStatus status) The current status of this payment intent.The timestamp when this payment intent was last updated.The immutable version represented by this response.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
-
paymentIntentId
The unique identifier for this payment intent.
- Parameters:
paymentIntentId- The unique identifier for this payment intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentManagerArn
The ARN of the payment manager that owns this payment intent.
- Parameters:
paymentManagerArn- The ARN of the payment manager that owns this payment intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The immutable version represented by this response.
- Parameters:
version- The immutable version represented by this response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buyerApprovalStatus
Buyer Approval state for the current PaymentIntent version.
- Parameters:
buyerApprovalStatus- Buyer Approval state for the current PaymentIntent version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
buyerApprovalStatus
Buyer Approval state for the current PaymentIntent version.
- Parameters:
buyerApprovalStatus- Buyer Approval state for the current PaymentIntent version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
paymentConnectorId
The single connector selected when this payment intent was created.
- Parameters:
paymentConnectorId- The single connector selected when this payment intent was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checkoutDetails
The checkout details for this payment intent.
- Parameters:
checkoutDetails- The checkout details for this payment intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checkoutDetails
default PaymentIntent.Builder checkoutDetails(Consumer<PaymentIntentCheckoutDetails.Builder> checkoutDetails) The checkout details for this payment intent.
This is a convenience method that creates an instance of thePaymentIntentCheckoutDetails.Builderavoiding the need to create one manually viaPaymentIntentCheckoutDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocheckoutDetails(PaymentIntentCheckoutDetails).- Parameters:
checkoutDetails- a consumer that will call methods onPaymentIntentCheckoutDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of this payment intent.
- Parameters:
status- The current status of this payment intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of this payment intent.
- Parameters:
status- The current status of this payment intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
captureStrategy
The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.
- Parameters:
captureStrategy- The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
captureStrategy
The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.
- Parameters:
captureStrategy- The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authorizedAmount
The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.
- Parameters:
authorizedAmount- The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizedAmount
default PaymentIntent.Builder authorizedAmount(Consumer<PaymentIntentAmount.Builder> authorizedAmount) The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.
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 toauthorizedAmount(PaymentIntentAmount).- Parameters:
authorizedAmount- 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:
-
capturedAmount
The cumulative amount captured across all captures (aggregate roll-up).
- Parameters:
capturedAmount- The cumulative amount captured across all captures (aggregate roll-up).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capturedAmount
The cumulative amount captured across all captures (aggregate roll-up).
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 tocapturedAmount(PaymentIntentAmount).- Parameters:
capturedAmount- 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:
-
partnerIntentReference
The PSP session reference created by InitiatePaymentIntent.
- Parameters:
partnerIntentReference- The PSP session reference created by InitiatePaymentIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partnerAuthorizationReference
The provider authorization reference produced at Authorize (Stripe pi_, PayPal authorization_id, Amazon Pay chargeId). Consumed by CapturePaymentIntent and CancelPaymentIntent.
- Parameters:
partnerAuthorizationReference- The provider authorization reference produced at Authorize (Stripe pi_, PayPal authorization_id, Amazon Pay chargeId). Consumed by CapturePaymentIntent and CancelPaymentIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captures
The captures created against this intent (populated on Get). Empty until first capture.
- Parameters:
captures- The captures created against this intent (populated on Get). Empty until first capture.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captures
The captures created against this intent (populated on Get). Empty until first capture.
- Parameters:
captures- The captures created against this intent (populated on Get). Empty until first capture.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captures
The captures created against this intent (populated on Get). Empty until first capture.
This is a convenience method that creates an instance of theCapture.Builderavoiding the need to create one manually viaCapture.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocaptures(List<Capture>).- Parameters:
captures- a consumer that will call methods onCapture.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The timestamp when this payment intent was created.
- Parameters:
createdAt- The timestamp when this payment intent was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp when this payment intent was last updated.
- Parameters:
updatedAt- The timestamp when this payment intent was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-