ifnex/04_Laravel/resubmit-test.json
Kazem Alghasi 7faa778e22 refactor(api): update shipment review logic to update existing reviews
Refactor `ShipmentReviewService` to update the existing pending review
instead of creating a new `ShipmentReview` record during the approval
and rejection processes. This ensures that the review lifecycle
correctly finalizes the current pending revision.

- Implement `getPendingReview` to retrieve the active pending review
- Update `approve` to modify the existing review record
- Update `reject` to modify the existing review record
- Add documentation clarifying when new revisions are created versus
  when existing ones are finalized
2026-09-29 04:37:55 +03:30

36 lines
791 B
JSON

{
"direction": "export",
"type": "PARCEL",
"from_country_id": 96,
"to_country_id": 7,
"weight": 3.70,
"dimensions": "90*90*90",
"packages": [
{
"weight": 3.70,
"dimensions": "90*90*90",
"description": "dfasdf"
}
],
"sender_name": "Moshtari Updated",
"sender_phone": "989898989899",
"sender_address": "New addresssss",
"sender_city": "asdfasdf",
"receiver_name": "moshtari2",
"receiver_phone": "565656565",
"receiver_address": "sdfhsdfsdhsdgh",
"receiver_city": "dfgsdfgsdfgs",
"extra_service": 0,
"packing_cost": 0,
"domestic_pickup": 0,
"domestic_delivery": 0,
"warehousing_cost": 0,
"items": [
{
"description": "HHHH25",
"hs_code": "989898989",
"quantity": 12,
"unit_price": 1.20
}
]
}