Balance

data class Balance(val amount: Long, val currency: String)

Metadata for a given balance for a dev.ansa.kmp.customer.Customer's balance.

NOTE: Amounts are integers

All amount parameters and returned values are integers. These amounts represent the lowest denomination of the provided currency code, such as cents for USD. For example, "amount": > 1000 would indicate an amount of $10.00.

Parameters

amount

The integer amount in the lowest denomination of the provided currency code.

currency

Three letter ISO currency code, in lowercase. If not set, defaults to usd.

Constructors

Link copied to clipboard
constructor(amount: Long, currency: String)

Properties

Link copied to clipboard
Link copied to clipboard