Class: Wallet#

Manages information about the current account balance and payment information for a given customer.

The uid of this object should map to a user or organization’s uid.

REQUIRES: Purchasing Services

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new Wallet(other?: any): Wallet

Overrides EntityBase.constructor

Defined in src/models/Wallet.ts:42

Parameters:#

Name

Type

other?

any

Returns: Wallet

Properties#

balance#

balance: number = 0

Defined in src/models/Wallet.ts:27

The current balance of the customer’s funds with the account.


billing#

billing: string | undefined = undefined

Defined in src/models/Wallet.ts:22

The uid of the billing contact for the wallet.


contacts#

contacts: Array<string> = []

Defined in src/models/Wallet.ts:32

The list of uids of the contacts associated with the account.


currency#

currency: Currency = Currency.USD

Defined in src/models/Wallet.ts:37

The current that the balance is represented as.


data#

data: any = undefined

Defined in src/models/Wallet.ts:42

An arbitrary map of metadata associated with this account.


dateCreated#

dateCreated: Date = new Date()

Inherited from EntityBase.dateCreated

Defined in src/EntityBase.ts:18

The date and time that the object was created.


dateModified#

dateModified: Date = new Date()

Inherited from EntityBase.dateModified

Defined in src/EntityBase.ts:23

The date and time that the object was last modified.


uid#

uid: string = uuid.v4()

Inherited from EntityBase.uid

Defined in src/EntityBase.ts:13

The universally unique identifier of the object.


version#

version: number = 0

Inherited from EntityBase.version

Defined in src/EntityBase.ts:28

The optimistic locking version of the object.

Accessors#

ClassName#

Staticget ClassName(): string

Defined in src/models/Wallet.ts:17

Returns: string