WalletAllocation

API: Internal/Beta

An allocation grants access to resources

data class WalletAllocation(
    val id: String,
    val allocationPath: List<String>,
    val balance: Long,
    val initialBalance: Long,
    val localBalance: Long,
    val startDate: Long,
    val endDate: Long?,
    val grantedIn: Long?,
    val canAllocate: Boolean?,
    val allowSubAllocationsToAllocate: Boolean?,
)

You can find more information about WalletAllocations here.

Properties
id: String A unique ID of this allocation
allocationPath: List<String> A path, starting from the top, through the allocations that will be charged, when a charge is made

Note that this allocation path will always include, as its last element, this allocation.

balance: Long The current balance of this wallet allocation's subtree
initialBalance: Long The initial balance which was granted to this allocation
localBalance: Long The current balance of this wallet allocation
startDate: Long Timestamp for when this allocation becomes valid
endDate: Long? Timestamp for when this allocation becomes invalid, null indicates that this allocation does not expire automatically
grantedIn: Long? ID reference to which grant application this allocation was granted in
canAllocate: Boolean? A property which indicates if this allocation can be used to create sub-allocations
allowSubAllocationsToAllocate: Boolean? A property which indicates that new sub-allocations of this allocation by default should have canAllocate = true