From 528ffeda7f830543313c89f34f37279969f3b1f9 Mon Sep 17 00:00:00 2001 From: Roelof Jan Elsinga Date: Tue, 7 Feb 2023 13:40:28 +0100 Subject: [PATCH] Added tracking_url to parcel struct and response --- parcel.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parcel.go b/parcel.go index c56e61b..1d207b4 100644 --- a/parcel.go +++ b/parcel.go @@ -95,6 +95,7 @@ type Parcel struct { Method int64 `json:"method"` PhoneNumber *string `json:"phone_number"` TrackingNumber string `json:"tracking_number"` + TrackingUrl string `json:"tracking_url"` ServicePointID *int64 `json:"to_service_point"` Weight string `json:"weight"` Label string `json:"label"` @@ -174,6 +175,7 @@ type ParcelResponse struct { ToServicePointID *int64 `json:"to_service_point"` Telephone *string `json:"telephone"` TrackingNumber string `json:"tracking_number"` + TrackingUrl string `json:"tracking_url"` Weight string `json:"weight"` Label LabelResponse `json:"label"` OrderNumber string `json:"order_number"` @@ -277,6 +279,7 @@ func (p *ParcelResponseContainer) GetResponse() interface{} { CountryCode: p.Parcel.Country.Iso2, PhoneNumber: p.Parcel.Telephone, TrackingNumber: p.Parcel.TrackingNumber, + TrackingUrl: p.Parcel.TrackingUrl, ServicePointID: p.Parcel.ToServicePointID, Label: p.Parcel.Label.LabelPrinter, OrderNumber: p.Parcel.OrderNumber,