import 'package:pweb/utils/payment/operation_code.dart';

const String _documentOperation = 'card_payout';
const String _documentAction = 'send';

bool isOperationDocumentEligible(String? operationCode) {
  final pair = parseOperationCodePair(operationCode);
  if (pair == null) return false;
  return _isDocumentOperationPair(pair);
}

bool _isDocumentOperationPair(OperationCodePair pair) {
  return pair.operation == _documentOperation && pair.action == _documentAction;
}
