Class: BalanceDocWithDetails<T>
T extends NumberType
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1007
Extends
BaseNumberTypeClass<BalanceDocWithDetails<T>>
Extended by
Type Parameters
T
T extends NumberType
Implements
Constructors
Constructor
new BalanceDocWithDetails<
T>(data):BalanceDocWithDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1022
Parameters
data
Returns
BalanceDocWithDetails<T>
Overrides
BaseNumberTypeClass.constructor
Properties
_docId
_docId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1011
A unique stringified document ID
Implementation of
_id?
optional_id?:string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1012
A unique document ID (Mongo DB ObjectID)
Implementation of
autoApproveAllIncomingTransfers
autoApproveAllIncomingTransfers:
boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1019
Whether the user's all incoming transfers are auto-approved. If not, they must be explicitly approved using the incoming approvals.
Implementation of
iBalanceDocWithDetails.autoApproveAllIncomingTransfers
autoApproveSelfInitiatedIncomingTransfers
autoApproveSelfInitiatedIncomingTransfers:
boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1017
Whether the user's self-initiated incoming transfers are auto-approved. If not, they must be explicitly approved using the incoming approvals.
Implementation of
iBalanceDocWithDetails.autoApproveSelfInitiatedIncomingTransfers
autoApproveSelfInitiatedOutgoingTransfers
autoApproveSelfInitiatedOutgoingTransfers:
boolean
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1018
Whether the user's self-initiated outgoing transfers are auto-approved. If not, they must be explicitly approved using the outgoing approvals.
Implementation of
iBalanceDocWithDetails.autoApproveSelfInitiatedOutgoingTransfers
balances
balances:
BalanceArray<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1016
The user's balances.
Implementation of
iBalanceDocWithDetails.balances
bitbadgesAddress
bitbadgesAddress:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1014
The BitBadges address of the user
Implementation of
iBalanceDocWithDetails.bitbadgesAddress
collectionId
collectionId:
string
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1013
The collection ID
Implementation of
iBalanceDocWithDetails.collectionId
incomingApprovals
incomingApprovals:
UserIncomingApprovalWithDetails<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1009
The incoming approvals with details like metadata and address lists.
Implementation of
iBalanceDocWithDetails.incomingApprovals
outgoingApprovals
outgoingApprovals:
UserOutgoingApprovalWithDetails<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1008
The outgoing approvals with details like metadata and address lists.
Implementation of
iBalanceDocWithDetails.outgoingApprovals
tags?
optionaltags?:string[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1020
Optional tags for this balance
Implementation of
updateHistory
updateHistory:
UpdateHistory<T>[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1015
The update history of this balance
Implementation of
iBalanceDocWithDetails.updateHistory
userPermissions
userPermissions:
UserPermissionsWithDetails<T>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1010
The user permissions with details like metadata and address lists.
Implementation of
iBalanceDocWithDetails.userPermissions
Methods
clone()
clone():
BalanceDocWithDetails
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:151
Deep copies the object and returns a new instance.
Returns
BalanceDocWithDetails
Inherited from
convert()
convert<
U>(convertFunction,options?):BalanceDocWithDetails<U>
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1043
Converts the object to a different NumberType equivalent.
Type Parameters
U
U extends NumberType
Parameters
convertFunction
(item) => U
options?
Returns
BalanceDocWithDetails<U>
Overrides
equals()
equals<
U>(other,normalizeNumberTypes?):boolean
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:147
Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.
If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").
Type Parameters
U
U extends CustomType<U>
Parameters
other
CustomType<U> | null | undefined
normalizeNumberTypes?
boolean
Returns
boolean
Inherited from
getNumberFieldNames()
getNumberFieldNames():
string[]
Defined in: packages/bitbadgesjs-sdk/src/api-indexer/docs-types/docs.ts:1039
Internal helper method to convert the number fields of the object to a different NumberType equivalent.
Returns
string[]
Overrides
BaseNumberTypeClass.getNumberFieldNames
hasNumberFields()
hasNumberFields():
boolean
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:161
Checks if the object has number fields.
Returns
boolean
Inherited from
BaseNumberTypeClass.hasNumberFields
toJson()
toJson():
JsonObject
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:139
Converts the object to a JSON object with all primitive types.
Returns
JsonObject
Inherited from
toJsonString()
toJsonString():
string
Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:143
Converts the object to a JSON string.
Returns
string