27 lines
998 B
JavaScript
27 lines
998 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.DonationBookshelfRepository = void 0;
|
|
class DonationBookshelfRepository {
|
|
#Model;
|
|
constructor({ DonationPaymentEventModel }) {
|
|
this.#Model = DonationPaymentEventModel;
|
|
}
|
|
async save(event) {
|
|
await this.#Model.add({
|
|
name: event.name,
|
|
email: event.email,
|
|
member_id: event.memberId,
|
|
amount: event.amount,
|
|
currency: event.currency,
|
|
donation_message: event.donationMessage,
|
|
attribution_id: event.attributionId,
|
|
attribution_url: event.attributionUrl,
|
|
attribution_type: event.attributionType,
|
|
referrer_source: event.referrerSource,
|
|
referrer_medium: event.referrerMedium,
|
|
referrer_url: event.referrerUrl
|
|
});
|
|
}
|
|
}
|
|
exports.DonationBookshelfRepository = DonationBookshelfRepository;
|
|
//# sourceMappingURL=DonationBookshelfRepository.js.map
|