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
constructor(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>

Properties

Link copied to clipboard
@SerialName(value = "as_of")
val asOf: Int
Link copied to clipboard
@SerialName(value = "cash")
val cash: CashBalance? = null
Link copied to clipboard
@SerialName(value = "credit")
val credit: CreditBalance? = null
Link copied to clipboard
@SerialName(value = "current")
val current: Map<String, Int>
Link copied to clipboard
@SerialName(value = "type")
val type: Balance.Type

Functions

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