Documentation ¶
Index ¶
- Variables
- type Acceptor
- type AdditionalServices
- type Address
- type AssessedMeasurement
- type AssessedVolume
- type AssessedWeight
- type Client
- type CollectionParty
- type CompositeFault
- type Consignee
- type Consignor
- type Contact
- type Coordinate
- type DeliveryPoint
- type DestinationDeliveryPoint
- type Events
- type Faults
- type FreeText
- type GeoLocation
- type Height
- type Items
- type Length
- type Locale
- type Location
- type OpeningHour
- type Options
- type ParamValues
- type PickupParty
- type References
- type Response
- type ReturnParty
- type Service
- type ShipmentReferences
- type Shipments
- type SplitStatuses
- type StatedMeasurement
- type StatusText
- type TotalVolume
- type TotalWeight
- type TrackingInformation
- type Volume
- type Weight
- type Width
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{Locale: LocaleDefault}
Functions ¶
This section is empty.
Types ¶
type AdditionalServices ¶
type AssessedMeasurement ¶
type AssessedVolume ¶
type AssessedWeight ¶
type CollectionParty ¶
type CompositeFault ¶
type CompositeFault struct {
Faults []Faults `json:"faults"`
}
type Coordinate ¶
type DeliveryPoint ¶
type DeliveryPoint struct { Name string `json:"name"` LocationDetail string `json:"locationDetail"` Address Address `json:"address"` Contact Contact `json:"contact"` Coordinate []Coordinate `json:"coordinate"` OpeningHour []OpeningHour `json:"openingHour"` DisplayName string `json:"displayName"` LocationID string `json:"locationId"` ServicePointType string `json:"servicePointType"` }
type DestinationDeliveryPoint ¶
type DestinationDeliveryPoint struct { Name string `json:"name"` LocationDetail string `json:"locationDetail"` Address Address `json:"address"` Contact Contact `json:"contact"` Coordinate []Coordinate `json:"coordinate"` OpeningHour []OpeningHour `json:"openingHour"` DisplayName string `json:"displayName"` LocationID string `json:"locationId"` ServicePointType string `json:"servicePointType"` }
type Events ¶
type Events struct { EventTime civil.DateTime `json:"eventTime"` EventCode string `json:"eventCode"` Location Location `json:"location"` GeoLocation GeoLocation `json:"geoLocation"` Status string `json:"status"` EventDescription string `json:"eventDescription"` LocalDeviationDode string `json:"localDeviationDode"` }
type Faults ¶
type Faults struct { FaultCode string `json:"faultCode"` ExplanationText string `json:"explanationText"` ParamValues []ParamValues `json:"paramValues"` }
type GeoLocation ¶
type Items ¶
type Items struct { ItemID string `json:"itemId"` EstimatedTimeOfArrival civil.DateTime `json:"estimatedTimeOfArrival"` DropOffDate civil.DateTime `json:"dropOffDate"` DeliveryDate civil.DateTime `json:"deliveryDate"` ReturnDate civil.DateTime `json:"returnDate"` TypeOfItem string `json:"typeOfItem"` TypeOfItemName string `json:"typeOfItemName"` TypeOfItemActual string `json:"typeOfItemActual"` TypeOfItemActualName string `json:"typeOfItemActualName"` AdditionalInformation string `json:"additionalInformation"` NoItems int `json:"noItems"` NumberOfPallets string `json:"numberOfPallets"` Status string `json:"status"` StatusText StatusText `json:"statusText"` Acceptor Acceptor `json:"acceptor"` StatedMeasurement StatedMeasurement `json:"statedMeasurement"` AssessedMeasurement AssessedMeasurement `json:"assessedMeasurement"` Events []Events `json:"events"` References []References `json:"references"` PreviousItemStates []string `json:"previousItemStates"` FreeText []FreeText `json:"freeText"` }
type Location ¶
type Location struct { Name string `json:"name"` CountryCode string `json:"countryCode"` Country string `json:"country"` LocationID string `json:"locationId"` DisplayName string `json:"displayName"` Postcode string `json:"postcode"` City string `json:"city"` LocationType string `json:"locationType"` }
type OpeningHour ¶
type OpeningHour struct { OpenFrom string `json:"openFrom"` OpenTo string `json:"openTo"` OpenFrom2 string `json:"openFrom2"` OpenTo2 string `json:"openTo2"` Monday bool `json:"monday"` Tuesday bool `json:"tuesday"` Wednesday bool `json:"wednesday"` Thursday bool `json:"thursday"` Friday bool `json:"friday"` Saturday bool `json:"saturday"` Sunday bool `json:"sunday"` }
type Options ¶
type Options struct {
Locale Locale
}
Options is used to set the options used to retrieve information about shipments.
type ParamValues ¶
type PickupParty ¶
type References ¶
type Response ¶
type Response struct {
TrackingInformation TrackingInformation `json:"TrackingInformationResponse"`
}
type ReturnParty ¶
type ShipmentReferences ¶
type Shipments ¶
type Shipments struct { ShipmentID string `json:"shipmentId"` URI string `json:"uri"` AssessedNumberOfItems int `json:"assessedNumberOfItems"` CashOnDeliveryText string `json:"cashOnDeliveryText"` DeliveryDate civil.DateTime `json:"deliveryDate"` ReturnDate civil.DateTime `json:"returnDate"` EstimatedTimeOfArrival civil.DateTime `json:"estimatedTimeOfArrival"` NumberOfPallets string `json:"numberOfPallets"` FlexChangePossible bool `json:"flexChangePossible"` Service Service `json:"service"` Consignor Consignor `json:"consignor"` Consignee Consignee `json:"consignee"` ReturnParty ReturnParty `json:"returnParty"` PickupParty PickupParty `json:"pickupParty"` CollectionParty CollectionParty `json:"collectionParty"` StatusText StatusText `json:"statusText"` Status string `json:"status"` DeliveryPoint DeliveryPoint `json:"deliveryPoint"` DestinationDeliveryPoint DestinationDeliveryPoint `json:"destinationDeliveryPoint"` TotalWeight TotalWeight `json:"totalWeight"` TotalVolume TotalVolume `json:"totalVolume"` AssessedWeight AssessedWeight `json:"assessedWeight"` AssessedVolume AssessedVolume `json:"assessedVolume"` SplitStatuses []SplitStatuses `json:"splitStatuses"` ShipmentReferences []ShipmentReferences `json:"shipmentReferences"` AdditionalServices []AdditionalServices `json:"additionalServices"` HarmonizedVersion int `json:"harmonizedVersion"` Items []Items `json:"items"` }
type SplitStatuses ¶
type StatedMeasurement ¶
type StatusText ¶
type TotalVolume ¶
type TotalWeight ¶
type TrackingInformation ¶
type TrackingInformation struct { CompositeFault CompositeFault `json:"compositeFault"` Shipments []Shipments `json:"shipments"` }
Click to show internal directories.
Click to hide internal directories.