Interface SessionLimits.Builder

  • Method Details

    • maxSpendAmount

      SessionLimits.Builder maxSpendAmount(Amount maxSpendAmount)

      The maximum amount that can be spent in this session.

      Parameters:
      maxSpendAmount - The maximum amount that can be spent in this session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxSpendAmount

      default SessionLimits.Builder maxSpendAmount(Consumer<Amount.Builder> maxSpendAmount)

      The maximum amount that can be spent in this session.

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

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

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