Interface PaymentSession.Builder

  • Method Details

    • paymentSessionId

      PaymentSession.Builder paymentSessionId(String paymentSessionId)

      The unique identifier for this payment session.

      Parameters:
      paymentSessionId - The unique identifier for this payment session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • paymentManagerArn

      PaymentSession.Builder paymentManagerArn(String paymentManagerArn)

      The ARN of the payment manager that owns this session.

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

      The spending limits for this session.

      Parameters:
      limits - The spending limits for this session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • limits

      The spending limits for this session.

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

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

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

      The user ID associated with this payment session.

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

      PaymentSession.Builder expiryTimeInMinutes(Integer expiryTimeInMinutes)

      The session expiry time in minutes.

      Parameters:
      expiryTimeInMinutes - The session expiry time in minutes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      PaymentSession.Builder createdAt(Instant createdAt)

      The timestamp when this payment session was created.

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

      PaymentSession.Builder availableLimits(AvailableLimits availableLimits)

      The available limits for this session after accounting for processed payments.

      Parameters:
      availableLimits - The available limits for this session after accounting for processed payments.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availableLimits

      default PaymentSession.Builder availableLimits(Consumer<AvailableLimits.Builder> availableLimits)

      The available limits for this session after accounting for processed payments.

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

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

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

      PaymentSession.Builder updatedAt(Instant updatedAt)

      The timestamp when this payment session was last updated.

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