Files
alrahma_sunday_school_api/apps/api/dist/modules/companies/company.presenter.js
T
2026-06-11 03:22:12 -04:00

18 lines
597 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.presentCompany = presentCompany;
exports.presentBrand = presentBrand;
function presentCompany(company) {
return company;
}
function presentBrand(brand) {
if (!brand)
return brand;
const { amanpaySecretKey, amanpayMerchantId, paypalEmail, paypalMerchantId, ...safe } = brand;
return {
...safe,
amanpayConfigured: !!(amanpayMerchantId && amanpaySecretKey),
paypalConfigured: !!(paypalEmail || paypalMerchantId),
};
}
//# sourceMappingURL=company.presenter.js.map