@donation-alerts/api
Version:
Interact with Donation Alerts API.
47 lines (46 loc) • 1.52 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DonationAlertsMerchandiseMerchant = void 0;
const tslib_1 = require("tslib");
const common_1 = require("@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 common_1.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[common_1.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[common_1.rawDataSymbol].name;
}
toJSON() {
return {
identifier: this.identifier,
name: this.name,
};
}
};
exports.DonationAlertsMerchandiseMerchant = DonationAlertsMerchandiseMerchant;
exports.DonationAlertsMerchandiseMerchant = DonationAlertsMerchandiseMerchant = tslib_1.__decorate([
(0, common_1.ReadDocumentation)('api')
], DonationAlertsMerchandiseMerchant);