Перейти к содержанию

appointment

appointment_to_exchange async

appointment_to_exchange(
    order_ids: str,
    user: Annotated[
        SotransOIDCUserModel,
        Depends(
            get_current_user(
                required_role_names=[company_logistician]
            )
        ),
    ],
    order: OrderUpdateModel,
) -> MultiselectError

Accepts start_price(required) and assigned. Must be finished with auction_end_time

Source code in api/endpoints/orders/appointment.py
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@appointment_router.put("/{order_ids}/to-exchange")
async def appointment_to_exchange(
    order_ids: str,
    user: Annotated[
        SotransOIDCUserModel,
        Depends(
            idp.get_current_user(
                required_role_names=[SotransRole.company_logistician]
            )
        ),
    ],
    order: OrderUpdateModel,
) -> MultiselectError:
    """Accepts start_price(required) and assigned. Must be finished with auction_end_time"""
    return await multiexec(order_ids, on_appointment_to_exchange, user, order)