def external_tool_upsell(lookup_pk: str) -> None: from .models import Lookup from .notifications import trigger_upsell from smsbot.tasks import send_welcome_sms lookup = Lookup.objects.select_related().get(pk=lookup_pk) send_welcome_sms(str(lookup.phone), "verifier") trigger_upsell(lookup)
def external_tool_upsell(registration_pk: str) -> None: from .models import Registration from .notification import trigger_external_tool_upsell from smsbot.tasks import send_welcome_sms registration = Registration.objects.select_related().get( pk=registration_pk) send_welcome_sms(str(registration.phone), "register") trigger_external_tool_upsell(registration)
def send_mail_chase(registration_pk: str, action_pk: str = None) -> None: from .models import Registration from .notification import trigger_mail_chase from smsbot.tasks import send_welcome_sms registration = Registration.objects.select_related().get( pk=registration_pk) send_welcome_sms(str(registration.phone), "register") trigger_mail_chase(registration)
def send_mail_chase(ballot_request_pk: str, action_pk: str = None) -> None: from .models import BallotRequest from .notification import trigger_mail_chase from smsbot.tasks import send_welcome_sms ballot_request = BallotRequest.objects.select_related().get( pk=ballot_request_pk) send_welcome_sms(str(ballot_request.phone), "absentee") trigger_mail_chase(ballot_request)
def external_tool_upsell(ballot_request_pk: str) -> None: from .models import BallotRequest from .notification import trigger_external_tool_upsell from smsbot.tasks import send_welcome_sms ballot_request = BallotRequest.objects.select_related().get( pk=ballot_request_pk) send_welcome_sms(str(ballot_request.phone), "absentee") trigger_external_tool_upsell(ballot_request)
def send_print_and_forward_returned(registration_pk: str, action_pk: str = None) -> None: from .models import Registration from .notification import trigger_print_and_forward_returned from smsbot.tasks import send_welcome_sms registration = Registration.objects.select_related().get( pk=registration_pk) send_welcome_sms(str(registration.phone), "register") trigger_print_and_forward_returned(registration)
def send_print_and_forward_confirm_nag(registration_pk: str) -> None: from smsbot.tasks import send_welcome_sms from .models import Registration from .notification import trigger_print_and_forward_confirm_nag registration = Registration.objects.select_related().get( pk=registration_pk) send_welcome_sms(str(registration.phone), "register") if registration.action.event_set.filter( event_type=EventType.FINISH_LOB_CONFIRM).exists(): return trigger_print_and_forward_confirm_nag(registration)