@donation-alerts/api
Version:
Interact with Donation Alerts API.
44 lines (43 loc) • 1.3 kB
JavaScript
import { __decorate } from "tslib";
import { DataObject, rawDataSymbol, ReadDocumentation } from '@donation-alerts/common';
/**
* Represents merchant information.
*
* @remarks
* This class provides details about a merchant associated with Donation Alerts merchandise.
* It includes the merchant's unique identifier and display name.
*/
let DonationAlertsMerchandiseMerchant = class DonationAlertsMerchandiseMerchant extends DataObject {
/**
* Unique merchant ID on Donation Alerts.
*
* @remarks
* A unique identifier assigned to the merchant by the Donation Alerts platform.
*
* @returns The merchant's unique identifier as a string.
*/
get identifier() {
return this[rawDataSymbol].identifier;
}
/**
* Merchant name.
*
* @remarks
* The human-readable name of the merchant as displayed on Donation Alerts.
*
* @returns The merchant's name as a string.
*/
get name() {
return this[rawDataSymbol].name;
}
toJSON() {
return {
identifier: this.identifier,
name: this.name,
};
}
};
DonationAlertsMerchandiseMerchant = __decorate([
ReadDocumentation('api')
], DonationAlertsMerchandiseMerchant);
export { DonationAlertsMerchandiseMerchant };