[ADD] CAMBIO DE CONDICIONES PAGADO A ABONADO EN BBVA SERVICE

parent 9a1a16ac
...@@ -31,13 +31,11 @@ public class driveRest { ...@@ -31,13 +31,11 @@ public class driveRest {
JSONObject response = new JSONObject(); JSONObject response = new JSONObject();
if (id_file_response == null) { if (id_file_response == null) {
response.put("status", false); response.put("status", false);
response.put("message", "No se pudo subir el archivo," + response.put("message", "The file could not be uploaded. There are multiple reasons why this may occur. Please check that the file is not too large, that the format is correct, or that you have permission in the folder.");
" existe multiples razones por las cuales esto puede ocurrir," +
" por favor verifique que el archivo no sea muy grande , que el formato sea correcto o se tenga permiso en la carpeta");
return ResponseEntity.badRequest().body(response.toMap()); return ResponseEntity.badRequest().body(response.toMap());
} else { } else {
response.put("status", true); response.put("status", true);
response.put("message", "Archivo subido correctamente"); response.put("message", "File uploaded successfully.");
response.put("file_id", id_file_response); response.put("file_id", id_file_response);
response.put("file_url", "https://drive.google.com/file/d/" + id_file_response + "/view?usp=sharing"); response.put("file_url", "https://drive.google.com/file/d/" + id_file_response + "/view?usp=sharing");
response.put("download_url", "https://drive.google.com/uc?export=download&id="+id_file_response); response.put("download_url", "https://drive.google.com/uc?export=download&id="+id_file_response);
......
...@@ -215,7 +215,7 @@ public class bbvaService { ...@@ -215,7 +215,7 @@ public class bbvaService {
String nameStatus = statusBill.getString("name"); String nameStatus = statusBill.getString("name");
returnMessage.put("message", nameStatus); //nameStatus returnMessage.put("message", nameStatus); //nameStatus
returnMessage.put("status", nameStatus.equals("PAGADO")); //nameStatus.equals("PAGADO") returnMessage.put("status", nameStatus.equals("ABONADO")); //nameStatus.equals("PAGADO")
} else { } else {
returnMessage.put("message", "Id not found"); returnMessage.put("message", "Id not found");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment