Interface AuthorizePaymentIntentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreResponse.Builder,Buildable,CopyableBuilder<AuthorizePaymentIntentResponse.Builder,,AuthorizePaymentIntentResponse> SdkBuilder<AuthorizePaymentIntentResponse.Builder,,AuthorizePaymentIntentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AuthorizePaymentIntentResponse
-
Method Summary
Modifier and TypeMethodDescriptioncapture(Consumer<Capture.Builder> capture) The capture created when captureStrategy=INSTANT (funds captured at authorization).The capture created when captureStrategy=INSTANT (funds captured at authorization).paymentIntent(Consumer<PaymentIntent.Builder> paymentIntent) The updated payment intent (status AUTHORIZED for FUTURE, CAPTURED for INSTANT).paymentIntent(PaymentIntent paymentIntent) The updated payment intent (status AUTHORIZED for FUTURE, CAPTURED for INSTANT).Methods inherited from interface software.amazon.awssdk.services.bedrockagentcore.model.BedrockAgentCoreResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
paymentIntent
The updated payment intent (status AUTHORIZED for FUTURE, CAPTURED for INSTANT). For INSTANT, if the provider accepted the capture but has not settled it (capture status CAPTURE_PENDING), the intent stays INITIATED; call AuthorizePaymentIntent again to refresh it. Its partnerAuthorizationReference carries the provider authorization reference.
- Parameters:
paymentIntent- The updated payment intent (status AUTHORIZED for FUTURE, CAPTURED for INSTANT). For INSTANT, if the provider accepted the capture but has not settled it (capture status CAPTURE_PENDING), the intent stays INITIATED; call AuthorizePaymentIntent again to refresh it. Its partnerAuthorizationReference carries the provider authorization reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentIntent
default AuthorizePaymentIntentResponse.Builder paymentIntent(Consumer<PaymentIntent.Builder> paymentIntent) The updated payment intent (status AUTHORIZED for FUTURE, CAPTURED for INSTANT). For INSTANT, if the provider accepted the capture but has not settled it (capture status CAPTURE_PENDING), the intent stays INITIATED; call AuthorizePaymentIntent again to refresh it. Its partnerAuthorizationReference carries the provider authorization reference.
This is a convenience method that creates an instance of thePaymentIntent.Builderavoiding the need to create one manually viaPaymentIntent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentIntent(PaymentIntent).- Parameters:
paymentIntent- a consumer that will call methods onPaymentIntent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capture
The capture created when captureStrategy=INSTANT (funds captured at authorization).
- Parameters:
capture- The capture created when captureStrategy=INSTANT (funds captured at authorization).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capture
The capture created when captureStrategy=INSTANT (funds captured at authorization).
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 tocapture(Capture).- Parameters:
capture- 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:
-