示例#1
0
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)
示例#2
0
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)
示例#3
0
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)
示例#4
0
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)
示例#5
0
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)
示例#6
0
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)
示例#7
0
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)