@atomixdesign/nodepay-ezidebit
Version:
Nodepay strategy for the Ezidebit payment gateway.
11 lines (10 loc) • 427 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IsOptionalIfEmpty = void 0;
var class_validator_1 = require("class-validator");
function IsOptionalIfEmpty(validationOptions) {
return class_validator_1.ValidateIf(function (_object, value) {
return value !== null && value !== undefined && value !== '';
}, validationOptions);
}
exports.IsOptionalIfEmpty = IsOptionalIfEmpty;