Total number of bought items.
The number of purchased items as a number.
The date and time when the sale alert was created.
A Date
object representing the creation date of the sale alert.
The currency of the merchandise sale.
A string representing the currency code.
The unique identifier for the merchandise sale alert, assigned by Donation Alerts.
The alert ID as a number.
Whether the alert was shown in the streamer's widget.
true
if the alert was shown; otherwise, false
.
Type of the generated alert.
A string representing the alert type, e.g., 'merchandise-sale'
.
Serializes the instance into a plain JavaScript object.
This method is automatically invoked when the instance is passed to JSON.stringify()
.
In Node.js, it's also used when the instance is logged via console.log()
(via the util.inspect
mechanism).
Represents Donation Alerts merchandise sale alert.
Remarks
This class provides detailed information about merchandise sale alerts generated on the Donation Alerts platform. It includes information about the alert type, customer, amount of the sale, currency, and whether the alert was displayed in the streamer's widget.