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