def METHOD_NAME(
    availability_response: str, payload: PickupRequest, settings: Settings
):
    availability = XP.to_object(
        PickupAvailabilityReply, XP.to_xml(availability_response)
    )
    data = _pickup_request(payload, settings) if availability else None
    return Job(id="create_pickup", data=data, fallback="")