@dexpenses/rule-conditions
Version:
Condition engine and parser for Dexpenses rules
12 lines • 401 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class PaymentMethodCondition {
constructor(paymentMethod) {
this.paymentMethod = paymentMethod;
}
test(receipt) {
return (!!receipt.paymentMethod && receipt.paymentMethod === this.paymentMethod);
}
}
exports.default = PaymentMethodCondition;
//# sourceMappingURL=PaymentMethodCondition.js.map