UNPKG

@fabrix/spool-cart

Version:

Spool - eCommerce Spool for Fabrix

19 lines (18 loc) 910 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const spool_email_1 = require("@fabrix/spool-email"); class Source extends spool_email_1.Template { expired(source) { return `<h1>Your ${source.getType()} Expired</h1> <p>Dear ${source.Customer ? source.Customer.getSalutation() : 'Customer'},</p> <p>Your ${source.getBrand()} ${source.getType()} ending in ${source.getLast4()} expired ${source.getExpiration()}. Please consider logging in and updating it.</p> <p>Thank you!</p>`; } willExpire(source) { return `<h1>Your ${source.getType()} Will Expire</h1> <p>Dear ${source.Customer ? source.Customer.getSalutation() : 'Customer'},</p> <p>Your ${source.getBrand()} ${source.getType()} ending in ${source.getLast4()} expires on ${source.getExpiration()}. Please consider logging in and updating it.</p> <p>Thank you!</p>`; } } exports.Source = Source;