Documentation
¶
Index ¶
- type AdditionalTrackingInfo
- type Address
- type AncillaryDetail
- type AvailableImage
- type Client
- type CompleteTrackResult
- type Config
- type ConsolidationDetail
- type Contact
- type ContactAndAddress
- type Content
- type CustomDeliveryOption
- type DateAndTime
- type DateISO
- type DeclaredValue
- type DelayDetail
- type DeliveryDetails
- type DeliveryOptionEligibilityDetail
- type Dimensions
- type DistanceToDestination
- type Error
- type HoldAtLocation
- type InformationNote
- type LatestStatusDetail
- type Location
- type OAuthResponse
- type Output
- type PackageDetails
- type PackageIdentifier
- type Parameter
- type PieceCount
- type ReasonDetail
- type RequestedAppointmentDetail
- type ReturnDetail
- type ScanEvent
- type ServiceCommitMessage
- type ServiceDetail
- type ShipmentDetails
- type SpecialHandling
- type SplitShipment
- type TimeWindow
- type TrackResponse
- type TrackResult
- type TrackingInfoRequest
- type TrackingNumberInfo
- type TrackingNumberInfoRequest
- type TrackingRequest
- type Weight
- type WeightAndDimensions
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalTrackingInfo ¶
type AdditionalTrackingInfo struct { HasAssociatedShipments bool `json:"hasAssociatedShipments"` Nickname string `json:"nickname"` PackageIdentifiers []PackageIdentifier `json:"packageIdentifiers"` ShipmentNotes string `json:"shipmentNotes"` }
AdditionalTrackingInfo
type Address ¶
type Address struct { City string `json:"city"` Classification string `json:"classification"` CountryCode string `json:"countryCode"` CountryName string `json:"countryName,omitempty"` // modified, not necessarily always present PostalCode string `json:"postalCode"` Residential bool `json:"residential"` StateOrProvinceCode string `json:"stateOrProvinceCode"` StreetLines []string `json:"streetLines"` UrbanizationCode string `json:"urbanizationCode"` }
type AncillaryDetail ¶
type AvailableImage ¶
AvailableImage
type Client ¶
type Client struct { Config Config OAuth OAuthResponse }
func (*Client) RefreshToken ¶
type CompleteTrackResult ¶
type CompleteTrackResult struct { TrackResults []TrackResult `json:"trackResults"` TrackingNumber string `json:"trackingNumber"` }
type ConsolidationDetail ¶
type ConsolidationDetail struct { ConsolidationID string `json:"consolidationID"` EventType string `json:"eventType"` PackageCount int64 `json:"packageCount"` ReasonDetail ReasonDetail `json:"reasonDetail"` TimeStamp string `json:"timeStamp"` }
ConsolidationDetail
type ContactAndAddress ¶
type CustomDeliveryOption ¶
type CustomDeliveryOption struct { Description string `json:"description"` RequestedAppointmentDetail RequestedAppointmentDetail `json:"requestedAppointmentDetail"` Status string `json:"status"` Type string `json:"type"` }
CustomDeliveryOption
type DateAndTime ¶
DateAndTime
type DateISO ¶
func (*DateISO) UnmarshalJSON ¶
type DeclaredValue ¶
type DelayDetail ¶
type DeliveryDetails ¶
type DeliveryDetails struct { ActualDeliveryAddress Address `json:"actualDeliveryAddress"` DeliveryAttempts string `json:"deliveryAttempts"` DeliveryOptionEligibilityDetails []DeliveryOptionEligibilityDetail `json:"deliveryOptionEligibilityDetails"` DeliveryToday bool `json:"deliveryToday"` DestinationServiceArea string `json:"destinationServiceArea"` DestinationServiceAreaDescription string `json:"destinationServiceAreaDescription"` LocationDescription string `json:"locationDescription"` LocationType string `json:"locationType"` OfficeOrderDeliveryMethod string `json:"officeOrderDeliveryMethod"` ReceivedByName string `json:"receivedByName"` SignedByName string `json:"signedByName"` }
DeliveryDetails
type Dimensions ¶
type DistanceToDestination ¶
DistanceToDestination
type Error ¶
type Error struct { Code string `json:"code"` Message string `json:"message"` ParameterList []Parameter `json:"parameterList"` }
Error
type HoldAtLocation ¶
type HoldAtLocation struct { LocationContactAndAddress ContactAndAddress `json:"locationContactAndAddress"` LocationID string `json:"locationId"` LocationType string `json:"locationType"` }
HoldAtLocation
type InformationNote ¶
InformationNote
type LatestStatusDetail ¶
type LatestStatusDetail struct { AncillaryDetails []AncillaryDetail `json:"ancillaryDetails"` Code string `json:"code"` DelayDetail DelayDetail `json:"delayDetail"` DerivedCode string `json:"derivedCode"` Description string `json:"description"` ScanLocation Address `json:"scanLocation"` StatusByLocale string `json:"statusByLocale"` }
LatestStatusDetail
type Location ¶
type Location struct { ContactAndAddress ContactAndAddress `json:"locationContactAndAddress"` ID string `json:"locationId"` Type string `json:"locationType"` }
Location
type OAuthResponse ¶
type Output ¶
type Output struct { Alerts string `json:"alerts"` CompleteTrackResults []CompleteTrackResult `json:"completeTrackResults"` }
type PackageDetails ¶
type PackageDetails struct { ContentPieceCount string `json:"contentPieceCount"` Count string `json:"count"` DeclaredValue DeclaredValue `json:"declaredValue"` PackageContent []string `json:"packageContent"` PackagingDescription ReasonDetail `json:"packagingDescription"` PhysicalPackagingType string `json:"physicalPackagingType"` SequenceNumber string `json:"sequenceNumber"` UndeliveredCount string `json:"undeliveredCount"` WeightAndDimensions WeightAndDimensions `json:"weightAndDimensions"` }
PackageDetails
type PackageIdentifier ¶
type PieceCount ¶
type PieceCount struct { Count string `json:"count"` Description string `json:"description"` Type string `json:"type"` }
PieceCount
type ReasonDetail ¶
type RequestedAppointmentDetail ¶
type RequestedAppointmentDetail struct { Date string `json:"date"` Window []TimeWindow `json:"window"` }
type ReturnDetail ¶
type ReturnDetail struct { AuthorizationName string `json:"authorizationName"` ReasonDetail []ReasonDetail `json:"reasonDetail"` }
ReturnDetail
type ScanEvent ¶
type ScanEvent struct { Date DateISO `json:"date"` DelayDetail DelayDetail `json:"delayDetail"` DerivedStatus string `json:"derivedStatus"` DerivedStatusCode string `json:"derivedStatusCode"` EventDescription string `json:"eventDescription"` EventType string `json:"eventType"` ExceptionCode string `json:"exceptionCode"` ExceptionDescription string `json:"exceptionDescription"` ScanLocation Address `json:"scanLocation"` }
ScanEvent
type ServiceCommitMessage ¶
ServiceCommitMessage
type ServiceDetail ¶
type ServiceDetail struct { Description string `json:"description"` ShortDescription string `json:"shortDescription"` Type string `json:"type"` }
ServiceDetail
type ShipmentDetails ¶
type ShipmentDetails struct { BeforePossessionStatus bool `json:"beforePossessionStatus"` ContentPieceCount string `json:"contentPieceCount"` Contents []Content `json:"contents"` SplitShipments []SplitShipment `json:"splitShipments"` Weight []Weight `json:"weight"` }
ShipmentDetails
type SpecialHandling ¶
type SpecialHandling struct { Description string `json:"description"` PaymentType string `json:"paymentType"` Type string `json:"type"` }
SpecialHandling
type SplitShipment ¶
type TimeWindow ¶
type TrackResponse ¶
type TrackResponse struct { CustomerTransactionID string `json:"customerTransactionId"` Output Output `json:"output"` TransactionID string `json:"transactionId"` }
func (*TrackResponse) Tracking ¶
func (r *TrackResponse) Tracking() (t track.Tracking)
type TrackResult ¶
type TrackResult struct { AdditionalTrackingInfo AdditionalTrackingInfo `json:"additionalTrackingInfo"` AvailableImages []AvailableImage `json:"availableImages"` AvailableNotifications []string `json:"availableNotifications"` ConsolidationDetail []ConsolidationDetail `json:"consolidationDetail"` CustomDeliveryOptions []CustomDeliveryOption `json:"customDeliveryOptions"` DateAndTimes []DateAndTime `json:"dateAndTimes"` DeliveryDetails DeliveryDetails `json:"deliveryDetails"` DestinationLocation Location `json:"destinationLocation"` DistanceToDestination DistanceToDestination `json:"distanceToDestination"` Error Error `json:"error"` EstimatedDeliveryTimeWindow TimeWindow `json:"estimatedDeliveryTimeWindow"` GoodsClassificationCode string `json:"goodsClassificationCode"` HoldAtLocation HoldAtLocation `json:"holdAtLocation"` InformationNotes []InformationNote `json:"informationNotes"` LastUpdatedDestinationAddress Address `json:"lastUpdatedDestinationAddress"` LatestStatusDetail LatestStatusDetail `json:"latestStatusDetail"` MeterNumber string `json:"meterNumber"` OriginLocation Location `json:"originLocation"` PackageDetails PackageDetails `json:"packageDetails"` PieceCounts []PieceCount `json:"pieceCounts"` ReasonDetail ReasonDetail `json:"reasonDetail"` RecipientInformation ContactAndAddress `json:"recipientInformation"` ReturnDetail ReturnDetail `json:"returnDetail"` ScanEvents []ScanEvent `json:"scanEvents"` ServiceCommitMessage ServiceCommitMessage `json:"serviceCommitMessage"` ServiceDetail ServiceDetail `json:"serviceDetail"` ShipmentDetails ShipmentDetails `json:"shipmentDetails"` ShipperInformation ContactAndAddress `json:"shipperInformation"` SpecialHandlings []SpecialHandling `json:"specialHandlings"` StandardTransitTimeWindow TimeWindow `json:"standardTransitTimeWindow"` TrackingNumberInfo TrackingNumberInfo `json:"trackingNumberInfo"` }
type TrackingInfoRequest ¶
type TrackingInfoRequest struct {
TrackingNumberInfo TrackingNumberInfoRequest `json:"trackingNumberInfo"`
}
type TrackingNumberInfo ¶
type TrackingNumberInfo struct { CarrierCode string `json:"carrierCode"` TrackingNumber string `json:"trackingNumber"` TrackingNumberUniqueID string `json:"trackingNumberUniqueId"` }
TrackingNumberInfo
type TrackingNumberInfoRequest ¶
type TrackingNumberInfoRequest struct {
TrackingNumber string `json:"trackingNumber"`
}
type TrackingRequest ¶
type TrackingRequest struct { IncludeDetailedScans bool `json:"includeDetailedScans"` TrackingInfo []TrackingInfoRequest `json:"trackingInfo"` }
type WeightAndDimensions ¶
type WeightAndDimensions struct { Dimensions []Dimensions `json:"dimensions"` Weight []Weight `json:"weight"` }
Click to show internal directories.
Click to hide internal directories.