-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.sql
62 lines (56 loc) · 1.4 KB
/
app.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
classDiagram
class Usuario {
-String matricula
-String nombre
-String documentoIdentificacion
+consultarFacturas()
+realizarPago()
+consultarHistorialPagos()
}
class Factura {
-String numeroFactura
-Date mesFacturacion
-double montoPagar
-double consumo
-boolean pagada
+generarPDF()
+obtenerHistorialConsumo()
}
class Pago {
-String idTransaccion
-Date fechaPago
-double monto
-String estado
-String metodoPago
+procesarPago()
+generarConfirmacion()
}
class PagoTarjeta {
-String numeroTarjeta
-String titular
-Date fechaVencimiento
-String codigoSeguridad
-String tipoTarjeta
+validarDatosTarjeta()
}
class PagoPSE {
-String banco
-String idSesionBancaria
+redirigirBanco()
+verificarEstadoTransaccion()
}
class Notificacion {
-String idNotificacion
-String mensaje
-Date fecha
-String tipo
+enviarNotificacion()
+marcarComoLeida()
}
Usuario "1" --> "*" Factura : tiene
Usuario "1" --> "*" Pago : realiza
Usuario "1" --> "0..*" Notificacion : recibe
Factura "1" --> "*" Pago : genera
Pago <|-- PagoTarjeta
Pago <|-- PagoPSE
Pago "1" --> "0..1" Notificacion : genera