Interface CapturePaymentIntentRequest.Builder

  • Method Details

    • userId

      The user ID associated with this payment intent.

      Parameters:
      userId - The user ID associated with this payment intent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentName

      The agent name associated with this request, used for observability.

      Parameters:
      agentName - The agent name associated with this request, used for observability.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentManagerArn

      CapturePaymentIntentRequest.Builder paymentManagerArn(String 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.
    • paymentIntentId

      CapturePaymentIntentRequest.Builder paymentIntentId(String paymentIntentId)

      The ID of the payment intent to capture (must be in AUTHORIZED or PARTIALLY_CAPTURED status).

      Parameters:
      paymentIntentId - The ID of the payment intent to capture (must be in AUTHORIZED or PARTIALLY_CAPTURED status).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureAmount

      The amount to capture. Omit to capture the remaining authorized amount.

      Parameters:
      captureAmount - The amount to capture. Omit to capture the remaining authorized amount.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • captureAmount

      The amount to capture. Omit to capture the remaining authorized amount.

      This is a convenience method that creates an instance of the PaymentIntentAmount.Builder avoiding the need to create one manually via PaymentIntentAmount.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to captureAmount(PaymentIntentAmount).

      Parameters:
      captureAmount - a consumer that will call methods on PaymentIntentAmount.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientToken

      CapturePaymentIntentRequest.Builder clientToken(String clientToken)

      Idempotency token identifying this capture. AWS SDKs and the CLI generate one automatically.

      An intent can be captured more than once (partial captures), so the service cannot tell a retry from a new capture on its own: the token is what makes them distinguishable. Reuse the same clientToken when retrying the same capture (the original result is returned and the provider is not charged again); a new clientToken always requests a new capture.

      Parameters:
      clientToken - Idempotency token identifying this capture. AWS SDKs and the CLI generate one automatically.

      An intent can be captured more than once (partial captures), so the service cannot tell a retry from a new capture on its own: the token is what makes them distinguishable. Reuse the same clientToken when retrying the same capture (the original result is returned and the provider is not charged again); a new clientToken always requests a new capture.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      CapturePaymentIntentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.