Interface PaymentIntent.Builder

  • Method Details

    • paymentIntentId

      PaymentIntent.Builder paymentIntentId(String 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

      PaymentIntent.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.
    • version

      PaymentIntent.Builder version(Integer 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

      PaymentIntent.Builder buyerApprovalStatus(String 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

      PaymentIntent.Builder buyerApprovalStatus(BuyerApprovalStatus 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

      PaymentIntent.Builder paymentConnectorId(String 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

      PaymentIntent.Builder checkoutDetails(PaymentIntentCheckoutDetails 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 the PaymentIntentCheckoutDetails.Builder avoiding the need to create one manually via PaymentIntentCheckoutDetails.builder().

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

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

      PaymentIntent.Builder status(String 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

      PaymentIntent.Builder captureStrategy(String 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

      PaymentIntent.Builder captureStrategy(CaptureStrategy 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

      PaymentIntent.Builder authorizedAmount(PaymentIntentAmount 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 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 authorizedAmount(PaymentIntentAmount).

      Parameters:
      authorizedAmount - 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:
    • capturedAmount

      PaymentIntent.Builder capturedAmount(PaymentIntentAmount 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

      default PaymentIntent.Builder capturedAmount(Consumer<PaymentIntentAmount.Builder> capturedAmount)

      The cumulative amount captured across all captures (aggregate roll-up).

      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 capturedAmount(PaymentIntentAmount).

      Parameters:
      capturedAmount - 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:
    • partnerIntentReference

      PaymentIntent.Builder partnerIntentReference(String 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

      PaymentIntent.Builder partnerAuthorizationReference(String 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

      PaymentIntent.Builder captures(Capture... 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 the Capture.Builder avoiding the need to create one manually via Capture.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to captures(List<Capture>).

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

      PaymentIntent.Builder createdAt(Instant 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

      PaymentIntent.Builder updatedAt(Instant 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.