Interface ProcessPaymentResponse.Builder

  • Method Details

    • processPaymentId

      ProcessPaymentResponse.Builder processPaymentId(String processPaymentId)

      The unique ID of the processed payment transaction.

      Parameters:
      processPaymentId - The unique ID of the processed payment transaction.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentManagerArn

      ProcessPaymentResponse.Builder paymentManagerArn(String paymentManagerArn)

      The ARN of the payment manager that processed this payment.

      Parameters:
      paymentManagerArn - The ARN of the payment manager that processed this payment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentSessionId

      ProcessPaymentResponse.Builder paymentSessionId(String paymentSessionId)

      The ID of the payment session for this transaction.

      Parameters:
      paymentSessionId - The ID of the payment session for this transaction.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentInstrumentId

      ProcessPaymentResponse.Builder paymentInstrumentId(String paymentInstrumentId)

      The ID of the payment instrument used for this transaction.

      Parameters:
      paymentInstrumentId - The ID of the payment instrument used for this transaction.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentType

      ProcessPaymentResponse.Builder paymentType(String paymentType)

      The type of payment that was processed.

      Parameters:
      paymentType - The type of payment that was processed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentType

      ProcessPaymentResponse.Builder paymentType(PaymentType paymentType)

      The type of payment that was processed.

      Parameters:
      paymentType - The type of payment that was processed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the payment transaction.

      Parameters:
      status - The status of the payment transaction.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the payment transaction.

      Parameters:
      status - The status of the payment transaction.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • paymentOutput

      ProcessPaymentResponse.Builder paymentOutput(PaymentOutput paymentOutput)

      The payment output details specific to the payment type.

      Parameters:
      paymentOutput - The payment output details specific to the payment type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentOutput

      default ProcessPaymentResponse.Builder paymentOutput(Consumer<PaymentOutput.Builder> paymentOutput)

      The payment output details specific to the payment type.

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

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

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

      The timestamp when the payment was created.

      Parameters:
      createdAt - The timestamp when the payment was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      The timestamp when the payment was last updated.

      Parameters:
      updatedAt - The timestamp when the payment was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.