add check sms and sen email if appointment is accepted
This commit is contained in:
+8
-1
@@ -13,7 +13,9 @@ class SimInfoPojo:
|
||||
passport: str
|
||||
email: str
|
||||
|
||||
def __init__(self, phone: str, ccid: str, position, operator: str, slot_position, sim_position,
|
||||
def __init__(self, phone: str, ccid: str, position, operator: str, slot_position, sim_position, name=None,
|
||||
passport=None,
|
||||
email=None,
|
||||
update_at: int = int(time.time())):
|
||||
self.phone = phone
|
||||
self.ccid = ccid
|
||||
@@ -22,6 +24,9 @@ class SimInfoPojo:
|
||||
self.operator = operator
|
||||
self.slot_position = slot_position
|
||||
self.sim_position = sim_position
|
||||
self.name = name
|
||||
self.passport = passport
|
||||
self.email = email
|
||||
|
||||
@staticmethod
|
||||
def from_firestore_dict(source):
|
||||
@@ -52,6 +57,8 @@ class SimInfoPojo:
|
||||
u'operator': self.operator,
|
||||
u'slot_position': self.slot_position,
|
||||
u'sim_position': self.sim_position,
|
||||
u'email': self.email,
|
||||
u'passport': self.passport,
|
||||
}
|
||||
|
||||
return dest
|
||||
|
||||
Reference in New Issue
Block a user