call method

  1. @override
Future<(bool, String?)> call({
  1. required ActionModel action,
})
override

Implementation

@override
Future<(bool, String?)> call({required ActionModel action}) async {
  var establishmentId = await _findEstablishmentById.currentId();

  if (establishmentId == null) {
    return (false, "");
  }

  action.establishmentId = int.parse(establishmentId);

  return await _repository.sendNfe(action: action);
}