/* * This code was auto generated by AfterShip SDK Generator. * Do not edit the class manually. */ import { TrackingLastMileSource } from "./TrackingLastMileSource"; /** * This field contains information about the last leg of the shipment, starting from the carrier who hands it over to the last-mile carrier, all the way to delivery. Once AfterShip detects that the shipment involves multiple legs and identifies the last-mile carrier, we will populate the last-mile carrier information in this object. Alternatively, the user can provide this information in this field to specify the last-mile carrier, which is helpful if AfterShip is unable to detect it automatically. */ export interface TrackingLastMile { /** * The tracking number of the last-mile carrier. */ tracking_number?: string; /** * The unique code of the carrier responsible for the last-mile of the shipment. Find all the courier slugs . */ slug?: 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 */ transit_time?: number | null; /** * The field contains the official tracking URL of the last-mile carrier, if available. The language parameter of this link is determined by the destination country/region and the language associated with the shipment. If the destination country/region and language data is unavailable, AfterShip will default the language parameter to "US". */ courier_tracking_link?: string | null; /** * The field provides the link for modifying delivery instructions (such as delivery date and shipping address), if supported by the last-mile carrier. The language parameter of this link is determined by the destination country/region and the language associated with the shipment. If the destination country/region and language data is unavailable, AfterShip will default the language parameter to "US". */ courier_redirect_link?: string | null; /** * The field indicates the source of last-mile carrier. */ source?: TrackingLastMileSource; }