Amount

class Amount

A monetary amount with a currency code. Used throughout the Billing API to represent credit balances, allocations, and adjustments.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The amount as a decimal string (for example, "743.21"). Negative values represent credits that reduce a bill.

Link copied to clipboard

The ISO 4217 currency code for the amount (for example, USD).

Functions

Link copied to clipboard
inline fun copy(block: Amount.Builder.() -> Unit = {}): Amount
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String