def validate_birth_date( self, slot_value: Any, dispatcher: CollectingDispatcher, tracker: Tracker, domain: DomainDict, ) -> Dict[Text, Any]: """Validate birth date value.""" if Helpers.validate_older_than_18(slot_value): return {"birth_date": slot_value} else: dispatcher.utter_message(template="utter_wrong_birth_date") return {"birth_date": None}
def validate_property_loan_term( self, slot_value: Any, dispatcher: CollectingDispatcher, tracker: Tracker, domain: DomainDict, ) -> Dict[Text, Any]: """Validate property loan term value.""" if Helpers.validate_property_loan_term(slot_value): return {"property_loan_term": slot_value} else: dispatcher.utter_message(template="utter_wrong_loan") return {"property_loan_term": None}
def validate_cpf( self, slot_value: Any, dispatcher: CollectingDispatcher, tracker: Tracker, domain: DomainDict, ) -> Dict[Text, Any]: """Validate cpf value.""" if Helpers.validate_cpf(slot_value): return {"cpf": slot_value} else: dispatcher.utter_message(template="utter_wrong_cpf") return {"cpf": None}