"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const types_1 = require("oak-domain/lib/types"); const checkers = [ { entity: 'withdrawTransfer', type: 'data', action: 'succeed', checker(operation, context) { const { data } = operation; if (data) { const { externalId } = data; if (!externalId) { throw new types_1.OakAttrNotNullException('pay', ['externalId']); } } } }, { entity: 'withdrawTransfer', type: 'data', action: 'fail', checker(operation, context) { const { data } = operation; if (data) { const { reason } = data; if (!reason) { throw new types_1.OakAttrNotNullException('withdrawTransfer', ['reason']); } } } } ]; exports.default = checkers;