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