From 9046b4d06e443a8962670b5a5d748e007d911bd5 Mon Sep 17 00:00:00 2001 From: panxl6 Date: Wed, 5 Feb 2025 10:47:48 +0800 Subject: [PATCH 1/2] fix: make transit_time in last_mile nullable --- src/API/Tracking/LastMileCreateTrackingResponse.php | 2 +- src/API/Tracking/LastMileDeleteTrackingByIdResponse.php | 2 +- src/API/Tracking/LastMileGetTrackingByIdResponse.php | 2 +- src/API/Tracking/LastMileMarkTrackingCompletedByIdResponse.php | 2 +- src/API/Tracking/LastMileRetrackTrackingByIdResponse.php | 2 +- src/API/Tracking/LastMileUpdateTrackingByIdResponse.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/API/Tracking/LastMileCreateTrackingResponse.php b/src/API/Tracking/LastMileCreateTrackingResponse.php index 1901f0c..09503f5 100644 --- a/src/API/Tracking/LastMileCreateTrackingResponse.php +++ b/src/API/Tracking/LastMileCreateTrackingResponse.php @@ -18,7 +18,7 @@ class LastMileCreateTrackingResponse extends Base */ public $slug; /** - * @var string The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date + * @var string|null The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date */ public $transit_time; /** diff --git a/src/API/Tracking/LastMileDeleteTrackingByIdResponse.php b/src/API/Tracking/LastMileDeleteTrackingByIdResponse.php index 6e93ec7..71e0962 100644 --- a/src/API/Tracking/LastMileDeleteTrackingByIdResponse.php +++ b/src/API/Tracking/LastMileDeleteTrackingByIdResponse.php @@ -18,7 +18,7 @@ class LastMileDeleteTrackingByIdResponse extends Base */ public $slug; /** - * @var string The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date + * @var string|null The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date */ public $transit_time; /** diff --git a/src/API/Tracking/LastMileGetTrackingByIdResponse.php b/src/API/Tracking/LastMileGetTrackingByIdResponse.php index 5b560da..a39b6da 100644 --- a/src/API/Tracking/LastMileGetTrackingByIdResponse.php +++ b/src/API/Tracking/LastMileGetTrackingByIdResponse.php @@ -18,7 +18,7 @@ class LastMileGetTrackingByIdResponse extends Base */ public $slug; /** - * @var string The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date + * @var string|null The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date */ public $transit_time; /** diff --git a/src/API/Tracking/LastMileMarkTrackingCompletedByIdResponse.php b/src/API/Tracking/LastMileMarkTrackingCompletedByIdResponse.php index 86b55dc..19f2c17 100644 --- a/src/API/Tracking/LastMileMarkTrackingCompletedByIdResponse.php +++ b/src/API/Tracking/LastMileMarkTrackingCompletedByIdResponse.php @@ -18,7 +18,7 @@ class LastMileMarkTrackingCompletedByIdResponse extends Base */ public $slug; /** - * @var string The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date + * @var string|null The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date */ public $transit_time; /** diff --git a/src/API/Tracking/LastMileRetrackTrackingByIdResponse.php b/src/API/Tracking/LastMileRetrackTrackingByIdResponse.php index 49f6e6d..400c242 100644 --- a/src/API/Tracking/LastMileRetrackTrackingByIdResponse.php +++ b/src/API/Tracking/LastMileRetrackTrackingByIdResponse.php @@ -18,7 +18,7 @@ class LastMileRetrackTrackingByIdResponse extends Base */ public $slug; /** - * @var string The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date + * @var string|null The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date */ public $transit_time; /** diff --git a/src/API/Tracking/LastMileUpdateTrackingByIdResponse.php b/src/API/Tracking/LastMileUpdateTrackingByIdResponse.php index 72e8f8d..103f558 100644 --- a/src/API/Tracking/LastMileUpdateTrackingByIdResponse.php +++ b/src/API/Tracking/LastMileUpdateTrackingByIdResponse.php @@ -18,7 +18,7 @@ class LastMileUpdateTrackingByIdResponse extends Base */ public $slug; /** - * @var string The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date + * @var string|null The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date */ public $transit_time; /** From e14ea1f6794eb495709b58674672975ec33b3572 Mon Sep 17 00:00:00 2001 From: panxl6 Date: Wed, 5 Feb 2025 10:48:03 +0800 Subject: [PATCH 2/2] fix: make transit_time in last_mile nullable --- src/Model/LastMileTracking.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/LastMileTracking.php b/src/Model/LastMileTracking.php index a55c3b9..93687d9 100644 --- a/src/Model/LastMileTracking.php +++ b/src/Model/LastMileTracking.php @@ -18,7 +18,7 @@ class LastMileTracking extends Base */ public $slug; /** - * @var string The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date + * @var string|null The transit time for the last-mile of a shipment in days. This field is calculated based on whether the handed_over_to_last_mile_carrier or the received_by_last_mile_carrier event is detected by AfterShip. The handover event date is used to calculate the last-mile transit time.- Last mile transit time (in days)= Delivered date - Handover date */ public $transit_time; /**