Automatic self-serve merchant onboarding
State diagram
Automatic self-serve merchant onboarding introduces an activation_status to the business object. This state diagram explains the various activation_statuses and how they connect.
stateDiagram-v2
    direction LR
    initiated --> pending_external_activation
    initiated --> pending_legal_agreement
    initiated --> active
    pending_external_activation --> active
    pending_legal_agreement --> active
    note left of pending_legal_agreement
        The merchant needs to sign
        the DoorDash contract
    end note
    pending_external_activation --> abandoned
    note left of pending_external_activation
        The merchant needs to be
        activated by the platform
    end note
    pending_legal_agreement --> abandoned
    pending_external_activation --> failed
    pending_legal_agreement --> failed
    active --> inactive