Skip to content

Terminate r and e peer

Workflow for terminating an R&E Peer subscription.

initial_input_form_generator(subscription_id)

Initial input form generator for terminating an R&E Peer subscription.

Source code in gso/workflows/l3_core_service/r_and_e_peer/terminate_r_and_e_peer.py
def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
    """Initial input form generator for terminating an R&E Peer subscription."""
    subscription = RAndEPeer.from_subscription(subscription_id)

    class TerminateForm(SubmitFormPage):
        tt_number: TTNumber

    user_input = yield TerminateForm

    return {"subscription": subscription} | user_input.model_dump()

terminate_r_and_e_peer()

Terminate an R&E Peer subscription.

Source code in gso/workflows/l3_core_service/r_and_e_peer/terminate_r_and_e_peer.py
@terminate_workflow("Terminate R&E Peer", initial_input_form=initial_input_form_generator)
def terminate_r_and_e_peer() -> StepList:
    """Terminate an R&E Peer subscription."""
    return begin