exchange_orders
confirm_order
async
confirm_order(
order_ids: str,
user: Annotated[
SotransOIDCUserModel,
Depends(
get_current_user(
required_role_names=[company_logistician]
)
),
],
order: OrderUpdateModel | None = None,
) -> MultiselectError
Accepts carrier(optional) and assigned(optional).
Source code in api/endpoints/orders/exchange_orders.py
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | |
get_exchange
async
get_exchange(
user=Depends(
get_active_user(
[SotransRole.carrier_logistician],
company_security_verification=None,
)
),
params: BaseGetListQueryParams = Depends(),
) -> GenericGetListResponse[OrderDBModel]
For any status starting with 'exchange' for CompLogistician
Source code in api/endpoints/orders/exchange_orders.py
120 121 122 123 124 125 126 127 128 129 130 131 | |
get_exchange_bids
async
get_exchange_bids(
user=Depends(
get_active_user(
[SotransRole.carrier_logistician],
company_security_verification=None,
)
),
params: BaseGetListQueryParams = Depends(),
) -> GenericGetListResponse[OrderDBModel]
For any status starting with 'exchange' for CompLogistician
Source code in api/endpoints/orders/exchange_orders.py
134 135 136 137 138 139 140 141 142 143 144 145 | |
get_exchange_order_by_id
async
get_exchange_order_by_id(
order_id: PydanticObjectIdPath,
user=Depends(
get_active_user(
[
SotransRole.carrier_logistician,
SotransRole.bid_service,
]
)
),
params: BaseGetOneQueryParams = Depends(),
) -> OrderDBModel
For any status starting with 'exchange' in exchange collection
Source code in api/endpoints/orders/exchange_orders.py
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |