Balance

@Serializable
data class Balance(val asOf: Int, val current: Map<String, Int>, val type: Balance.Type = Type.UNKNOWN, val cash: CashBalance? = null, val credit: CreditBalance? = null) : StripeModel, Parcelable

Parameters

asOf

The time that the external institution calculated this balance. Measured in seconds since the Unix epoch.

current

The balances owed to (or by) the account holder. Each key is a three-letter ISO currency code, in lowercase. Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.

type
cash
credit

Constructors

Link copied to clipboard
fun Balance(asOf: Int, current: Map<String, Int>, type: Balance.Type = Type.UNKNOWN, cash: CashBalance? = null, credit: CreditBalance? = null)

Types

Link copied to clipboard
@Serializable
enum Type : Enum<Balance.Type>

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val asOf: Int
Link copied to clipboard
val cash: CashBalance? = null
Link copied to clipboard
val credit: CreditBalance? = null
Link copied to clipboard
Link copied to clipboard