enableVoid method
Função para cancelar a compra
Implementation
Future<ReturnExecutionStatus?> enableVoid(voidSale) async {
try {
Response response =
await dio.put("${environment!.apiUrl}/1/sales/$voidSale/void");
return ReturnExecutionStatus.fromJson(response.data);
} on DioError catch (e) {
_getErrorDio(e);
} on CieloException catch (e) {
_getErrorCieloException(e);
}
return null;
}