Interface Price.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Price.Builder,Price>, SdkBuilder<Price.Builder,Price>, SdkPojo
Enclosing class:
Price

@Mutable @NotThreadSafe public static interface Price.Builder extends SdkPojo, CopyableBuilder<Price.Builder,Price>
  • Method Details

    • amount

      Price.Builder amount(String amount)

      The price per request as a decimal string in the specified currency. Minimum: 0.001. Maximum: 999999999.999. Supports up to 3 decimal places.

      Parameters:
      amount - The price per request as a decimal string in the specified currency. Minimum: 0.001. Maximum: 999999999.999. Supports up to 3 decimal places.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currency

      Price.Builder currency(String currency)

      The cryptocurrency for payment. Currently only USDC is supported.

      Parameters:
      currency - The cryptocurrency for payment. Currently only USDC is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currency

      Price.Builder currency(CryptoCurrency currency)

      The cryptocurrency for payment. Currently only USDC is supported.

      Parameters:
      currency - The cryptocurrency for payment. Currently only USDC is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: