Class: Purchase#

Describes a single product that has been purchased by a user.

REQUIRES: Purchasing Services

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new Purchase(other?: any): Purchase

Overrides EntityBase.constructor

Defined in src/models/Purchase.ts:51

Parameters:#

Name

Type

other?

any

Returns: Purchase

Properties#

data#

data: any = undefined

Defined in src/models/Purchase.ts:46

An arbitrary map of metadata associated with this purchase.


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.


expirationDate#

expirationDate: Date | undefined = undefined

Defined in src/models/Purchase.ts:24

The date and time that this purchase will expire. A undefined value indicates no expiration.


productUid#

productUid: string = “”

Defined in src/models/Purchase.ts:19

The unique identifier of the product that has been subscribed to.


referral#

referral: string = “”

Defined in src/models/Purchase.ts:29

The unique identifier of the third party that referred this purchase sale.


renewalDate#

renewalDate: Date | undefined = undefined

Defined in src/models/Purchase.ts:36

The date and time that the purchase will be automatically renewed. A undefined value indicates that either the purchase does not require renewal (perpetual license) or will not be automatically renewed at the end of the licensing term.


startDate#

startDate: Date | undefined = new Date()

Defined in src/models/Purchase.ts:41

The date and time that the license to the purchase began.


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.


walletUid#

walletUid: string = “”

Defined in src/models/Purchase.ts:51

The unique identifier of the wallet that owns the product purchase.

Accessors#

ClassName#

Staticget ClassName(): string

Defined in src/models/Purchase.ts:14

Returns: string