Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPS Label Created status has no date; not sortable #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kingIZZZY
Copy link

  • Also added "Loaded on Delivery Vehicle" status under In Transit statuses
  • Maybe we need another status group for pre-in-transit? For Label created etc.

Here is an example UPS API json response trackDetails[0].shipmentProgressActivities, see the last one about shipping label

[
    {
        "date": "12/08/2022",
        "time": "1:01 P.M.",
        "location": "BROOKLYN, NY, US",
        "activityScan": "DELIVERED ",
        "milestoneName": {
            "name": "Delivered",
            "nameKey": "cms.stapp.delivered"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": true,
        "isRFIDIconEvent": false,
        "actCode": "9E"
    },
    {
        "date": "12/08/2022",
        "time": "9:34 A.M.",
        "location": "Maspeth, NY, United States",
        "activityScan": "Out For Delivery Today",
        "milestoneName": {
            "name": "Out for Delivery",
            "nameKey": "cms.stapp.outForDelivery"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "OT"
    },
    {
        "date": "12/08/2022",
        "time": "3:01 A.M.",
        "location": "Maspeth, NY, United States",
        "activityScan": "Loaded on Delivery Vehicle ",
        "milestoneName": {
            "name": "On the Way",
            "nameKey": "cms.stapp.inTransit"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "OF"
    },
    {
        "date": "",
        "time": "",
        "location": "United States",
        "activityScan": "Shipper created a label, UPS has not received the package yet. ",
        "milestoneName": {
            "name": "Label Created",
            "nameKey": "cms.stapp.orderReceived"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "MP"
    }
]

Example UPS `trackDetails[0].shipmentProgressActivities`

```json
[
    {
        "date": "12/08/2022",
        "time": "1:01 P.M.",
        "location": "BROOKLYN, NY, US",
        "activityScan": "DELIVERED ",
        "milestoneName": {
            "name": "Delivered",
            "nameKey": "cms.stapp.delivered"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": true,
        "isRFIDIconEvent": false,
        "actCode": "9E"
    },
    {
        "date": "12/08/2022",
        "time": "9:34 A.M.",
        "location": "Maspeth, NY, United States",
        "activityScan": "Out For Delivery Today",
        "milestoneName": {
            "name": "Out for Delivery",
            "nameKey": "cms.stapp.outForDelivery"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "OT"
    },
    {
        "date": "12/08/2022",
        "time": "3:01 A.M.",
        "location": "Maspeth, NY, United States",
        "activityScan": "Loaded on Delivery Vehicle ",
        "milestoneName": {
            "name": "On the Way",
            "nameKey": "cms.stapp.inTransit"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "OF"
    },
    {
        "date": "",
        "time": "",
        "location": "United States",
        "activityScan": "Shipper created a label, UPS has not received the package yet. ",
        "milestoneName": {
            "name": "Label Created",
            "nameKey": "cms.stapp.orderReceived"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "MP"
    }
]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant