feat(pac_answer): se crea clase `PacConsultAnswer` para homogenizar la...

feat(pac_answer): se crea clase `PacConsultAnswer` para homogenizar la respuesta de los pac en la co
parent 7917cd20
# -*- coding: utf-8 -*-
# Lista con los mensajes de respuesta de cancelacion pendiente de los PAC
wait_cancel = [
'En proceso', # Finkok
......@@ -11,6 +10,7 @@ negation_cancel = [
'no_cancelable', # Finkok
'213', # Solucion factible
]
class PacAnswer(object):
'''This class is use to homogenize the PAC's answers'''
def __init__(self, uuid, estatus):
......@@ -31,3 +31,9 @@ class PacCancelAnswer(PacAnswer):
else:
cancelacion = True
return cancelacion
class PacConsultAnswer(PacAnswer):
"""This class is use to homogenize the PAC's consult answer"""
def __init__(self, uuid, estatus, estatus_cancelacion):
PacAnswer.__init__(self, uuid, estatus)
self.estatus_cancelacion = estatus_cancelacion
\ No newline at end of file
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