Group
Extends
Group
Properties
payload
payload: Group;The underlying payload data for this resource
Inherited from
Bkper.Group.payloadMethods
create()
create(): Group;Perform create new group.
Returns
Group
The created Group, for chainning.
Inherited from
Bkper.Group.createdeleteProperty()
deleteProperty(key): this;Deletes a custom property.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
this
This resource, for chaining
Inherited from
Bkper.Group.deletePropertygetAccounts()
getAccounts(): Account[];Returns
Account[]
All Accounts of this group.
Inherited from
Bkper.Group.getAccountsgetChildren()
getChildren(): Group[];Returns
Group[]
The children Groups
Inherited from
Bkper.Group.getChildrengetDepth()
getDepth(): number;Returns
number
The depth in the parent Group chain up to the root Group
Inherited from
Bkper.Group.getDepthgetId()
getId(): string;Returns
string
The id of this Group
Inherited from
Bkper.Group.getIdgetName()
getName(): string;Returns
string
The name of this Group
Inherited from
Bkper.Group.getNamegetNormalizedName()
getNormalizedName(): string;Returns
string
The name of this group without spaces and special characters
Inherited from
Bkper.Group.getNormalizedNamegetParent()
getParent(): Group;Returns
Group
The parent Group
Inherited from
Bkper.Group.getParentgetParentGroupsChain()
getParentGroupsChain(): Group[];Returns
Group[]
The parent Groups chain up to the root Group
Inherited from
Bkper.Group.getParentGroupsChaingetProperties()
getProperties(): object;Gets the custom properties stored in this resource.
Returns
object
Object with key/value pair properties
Inherited from
Bkper.Group.getPropertiesgetProperty()
getProperty(...keys): string;Gets the property value for given keys. First property found will be retrieved.
Parameters
| Parameter | Type |
|---|---|
…keys | string[] |
Returns
string
The property value or null if not found
Inherited from
Bkper.Group.getPropertygetPropertyKeys()
getPropertyKeys(): string[];Gets the custom properties keys stored in this resource.
Returns
string[]
Array of property keys sorted alphabetically
Inherited from
Bkper.Group.getPropertyKeysgetRoot()
getRoot(): Group;Returns
Group
The root Group
Inherited from
Bkper.Group.getRootgetType()
getType(): AccountType;Returns
The type of the group based on its accounts. Undefined if the group has accounts of different types
Inherited from
Bkper.Group.getTypegetVisibleProperties()
getVisibleProperties(): object;Gets the visible custom properties stored in this resource. Hidden properties (those ending with ”_”) are excluded from the result.
Returns
object
Object with key/value pair properties, excluding hidden properties
Inherited from
Bkper.Group.getVisiblePropertieshasAccounts()
hasAccounts(): boolean;Returns
boolean
True if this group has any account in it
Inherited from
Bkper.Group.hasAccountshasChildren()
hasChildren(): boolean;Tell if this group has any children
Returns
boolean
Inherited from
Bkper.Group.hasChildrenisCredit()
isCredit(): boolean;Tell if this is a credit (Incoming and Liabities) group
Returns
boolean
Inherited from
Bkper.Group.isCreditisHidden()
isHidden(): boolean;Tell if the Group is hidden on main transactions menu
Returns
boolean
Inherited from
Bkper.Group.isHiddenisLocked()
isLocked(): boolean;Returns
boolean
True if the Group is locked by the Book owner.
Inherited from
Bkper.Group.isLockedisMixed()
isMixed(): boolean;Tell if this is a mixed (Assets/Liabilities or Incoming/Outgoing) group
Returns
boolean
Inherited from
Bkper.Group.isMixedisPermanent()
isPermanent(): boolean;Tell if this is a permanent (Assets and Liabilities) group
Returns
boolean
Inherited from
Bkper.Group.isPermanentjson()
json(): Group;Gets an immutable copy of the JSON payload for this resource.
Returns
Group
An immutable copy of the json payload
Inherited from
Bkper.Group.jsonremove()
remove(): Group;Perform delete group.
Returns
Group
Inherited from
Bkper.Group.removesetHidden()
setHidden(hidden): Group;Hide/Show group on main menu.
Parameters
| Parameter | Type |
|---|---|
hidden | boolean |
Returns
Group
Inherited from
Bkper.Group.setHiddensetLocked()
setLocked(locked): Group;Sets the locked state of the Group.
Parameters
| Parameter | Type |
|---|---|
locked | boolean |
Returns
Group
This Group, for chainning.
Inherited from
Bkper.Group.setLockedsetName()
setName(name): Group;Sets the name of the Group.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
Group
This Group, for chainning.
Inherited from
Bkper.Group.setNamesetParent()
setParent(group): Group;Sets the parent Group.
Parameters
| Parameter | Type |
|---|---|
group | Group | null |
Returns
Group
This Group, for chainning.
Inherited from
Bkper.Group.setParentsetProperties()
setProperties(properties): this;Sets the custom properties of this resource.
Parameters
| Parameter | Type |
|---|---|
properties | { [key: string]: string; } |
Returns
this
This resource, for chaining
Inherited from
Bkper.Group.setPropertiessetProperty()
setProperty(key, value): this;Sets a custom property in this resource.
Parameters
| Parameter | Type |
|---|---|
key | string |
value | string |
Returns
this
This resource, for chaining
Inherited from
Bkper.Group.setPropertysetVisibleProperties()
setVisibleProperties(properties): this;Sets the custom properties of this resource, filtering out hidden properties. Hidden properties are those whose keys end with an underscore ”_”.
Parameters
| Parameter | Type |
|---|---|
properties | { [key: string]: string; } |
Returns
this
This resource, for chaining
Inherited from
Bkper.Group.setVisiblePropertiessetVisibleProperty()
setVisibleProperty(key, value): this;Sets a custom property in this resource, filtering out hidden properties. Hidden properties are those whose keys end with an underscore ”_”.
Parameters
| Parameter | Type |
|---|---|
key | string |
value | string | null |
Returns
this
This resource, for chaining
Inherited from
Bkper.Group.setVisiblePropertyupdate()
update(): Group;Perform update group, applying pending changes.
Returns
Group
Inherited from
Bkper.Group.update