scstransportation

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package scstransportation provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.

Index

Constants

View Source
const (
	OAuth2ClientCredentialsWithAssertionScopes = "OAuth2ClientCredentialsWithAssertion.Scopes"
)

Variables

This section is empty.

Functions

func NewSC360PublisherAPIIngestRequest

func NewSC360PublisherAPIIngestRequest(server string, body SC360PublisherAPIIngestJSONRequestBody) (*http.Request, error)

NewSC360PublisherAPIIngestRequest calls the generic SC360PublisherAPIIngest builder with application/json body

func NewSC360PublisherAPIIngestRequestWithBody

func NewSC360PublisherAPIIngestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSC360PublisherAPIIngestRequestWithBody generates requests for SC360PublisherAPIIngest with any type of body

Types

type ActivityInformation

type ActivityInformation struct {
	// ActivityID Unique identifier for the activity
	ActivityID       *string           `json:"activityID"`
	ActivityLocation *ActivityLocation `json:"activityLocation,omitempty"`

	// ActivitySubType Optional field used to specify additional details for the activity
	ActivitySubType *string `json:"activitySubType"`

	// ActivitySubTypeDescription Field used to specify additional details for the activity sub type
	ActivitySubTypeDescription *string `json:"activitySubTypeDescription"`

	// DeliveryInformation This field is used to capture any details about package delivery
	DeliveryInformation *DeliveryInformation `json:"deliveryInformation,omitempty"`

	// Description activity description
	Description   *string    `json:"description,omitempty"`
	GmtDateTime   *time.Time `json:"gmtDateTime"`
	GmtOffset     *string    `json:"gmtOffset"`
	LocalDateTime *time.Time `json:"localDateTime,omitempty"`

	// SensorEvent Use this flag to specify if this activity is a result of sensor event
	SensorEvent *bool `json:"sensorEvent"`

	// Type This field is used to specify the type of activity or event
	Type                 *string                `json:"type,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ActivityInformation Use this to provide info about activities and milestones updates for the shipment.

func (ActivityInformation) Get

func (a ActivityInformation) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ActivityInformation. Returns the specified element and whether it was found

func (ActivityInformation) MarshalJSON

func (a ActivityInformation) MarshalJSON() ([]byte, error)

Override default JSON handling for ActivityInformation to handle AdditionalProperties

func (*ActivityInformation) Set

func (a *ActivityInformation) Set(fieldName string, value interface{})

Setter for additional properties for ActivityInformation

func (*ActivityInformation) UnmarshalJSON

func (a *ActivityInformation) UnmarshalJSON(b []byte) error

Override default JSON handling for ActivityInformation to handle AdditionalProperties

type ActivityLocation

type ActivityLocation struct {
	// City City name where the activity generated
	City *string `json:"city,omitempty"`

	// Country Country name where the activity generated
	Country *string `json:"country,omitempty"`

	// Latitude Latitude
	Latitude *string `json:"latitude"`

	// Longitude Longitude
	Longitude     *string `json:"longitude"`
	PostalCode    *string `json:"postalCode"`
	StateProvince *string `json:"stateProvince"`
}

ActivityLocation defines model for ActivityLocation.

type BillingInformation

type BillingInformation struct {
	// BillingTermCode Use this field to specify whom the shipment is charged to (consignee, shipper, third party)
	BillingTermCode *string `json:"billingTermCode"`

	// BillingTermDescription Descriptions for billing code
	BillingTermDescription *string `json:"billingTermDescription"`
}

BillingInformation Use this field to specify whom the shipment is charged to and descriptions for billing code

type Carrier

type Carrier struct {
	// CarrierCode Carrier code of carrier used for shipment
	CarrierCode *string `json:"carrierCode"`
	CarrierName *string `json:"carrierName"`

	// CarrierType Carrier type of carrier used for shipment
	CarrierType *string `json:"carrierType"`
}

Carrier Use this field to provide info about carrier used for shipment

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) SC360PublisherAPIIngest

func (c *Client) SC360PublisherAPIIngest(ctx context.Context, body SC360PublisherAPIIngestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SC360PublisherAPIIngestWithBody

func (c *Client) SC360PublisherAPIIngestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// SC360PublisherAPIIngestWithBody request with any body
	SC360PublisherAPIIngestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SC360PublisherAPIIngest(ctx context.Context, body SC360PublisherAPIIngestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) SC360PublisherAPIIngestWithBodyWithResponse

func (c *ClientWithResponses) SC360PublisherAPIIngestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SC360PublisherAPIIngestResponse, error)

SC360PublisherAPIIngestWithBodyWithResponse request with arbitrary body returning *SC360PublisherAPIIngestResponse

func (*ClientWithResponses) SC360PublisherAPIIngestWithResponse

func (c *ClientWithResponses) SC360PublisherAPIIngestWithResponse(ctx context.Context, body SC360PublisherAPIIngestJSONRequestBody, reqEditors ...RequestEditorFn) (*SC360PublisherAPIIngestResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// SC360PublisherAPIIngestWithBodyWithResponse request with any body
	SC360PublisherAPIIngestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SC360PublisherAPIIngestResponse, error)

	SC360PublisherAPIIngestWithResponse(ctx context.Context, body SC360PublisherAPIIngestJSONRequestBody, reqEditors ...RequestEditorFn) (*SC360PublisherAPIIngestResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type DeliveryInformation

type DeliveryInformation struct {
	ActualDeliveryDateTime *time.Time `json:"actualDeliveryDateTime"`

	// ActualDeliveryDateTimegmtOffset actual delivery datetime gmt offset
	ActualDeliveryDateTimegmtOffset *string    `json:"actualDeliveryDateTimegmtOffset"`
	PodSignatureImage               *string    `json:"podSignatureImage"`
	PodSignatureText                *string    `json:"podSignatureText"`
	PodSignedBy                     *string    `json:"podSignedBy"`
	PodSignedOn                     *time.Time `json:"podSignedOn"`
}

DeliveryInformation This field is used to capture any details about package delivery

type Error

type Error struct {
	Code    *string `json:"code"`
	Message *string `json:"message"`

	// Source Source method name from where the exception is generated
	Source *string `json:"source"`
}

Error defines model for Error.

type ExceptionInformation

type ExceptionInformation struct {
	ExceptionCreatedDate          *time.Time `json:"exceptionCreatedDate"`
	ExceptionCreatedDateGmt       *time.Time `json:"exceptionCreatedDateGmt"`
	ExceptionCreatedDateGmtOffset *string    `json:"exceptionCreatedDateGmtOffset"`

	// ExceptionType This field is used to provide type of exception
	ExceptionType *string `json:"exceptionType,omitempty"`

	// ReasonCode This field is used to provide reason code of exception
	ReasonCode *string `json:"reasonCode"`

	// ReasonDescription This field is used to provide reason description of exception
	ReasonDescription *string `json:"reasonDescription"`

	// ResolutionCode This field is used to provide resolution code of exception
	ResolutionCode *string `json:"resolutionCode,omitempty"`

	// ResolutionDescription This field is used to provide resolution description of exception
	ResolutionDescription *string `json:"resolutionDescription"`

	// StatusCode This field is used to provide status code of exception
	StatusCode *string `json:"statusCode"`

	// StatusDescription This field is used to provide status description of exception
	StatusDescription *string `json:"statusDescription"`
}

ExceptionInformation This is used to provide additional details about the package delivery exception

type Gps

type Gps struct {
	// City City name where the shipment is currently present
	City *string `json:"city"`

	// Country Country name where the shipment is currently present
	Country     *string    `json:"country"`
	GmtDateTime *time.Time `json:"gmtDateTime"`
	GmtOffset   *string    `json:"gmtOffset"`

	// Latitude Latitude
	Latitude      *string    `json:"latitude"`
	LocalDateTime *time.Time `json:"localDateTime"`

	// Longitude Longitude
	Longitude *string `json:"longitude"`
}

Gps Use this field for shipment tracking

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type HumidityLevel

type HumidityLevel struct {
	GmtDateTime *time.Time `json:"gmtDateTime"`
	GmtOffset   *string    `json:"gmtOffset"`
	Humidity    *string    `json:"humidity"`

	// HumidityUOM Humidity Unit of measurement
	HumidityUOM   *string    `json:"humidityUOM"`
	LocalDateTime *time.Time `json:"localDateTime"`
}

HumidityLevel Use this field to provide information about the shipment humidity conditions

type InternationalShipment

type InternationalShipment struct {
	// HarmonizedCommodityCode The international commodity or harmonized code that represents the commodity contained in the invoice line
	HarmonizedCommodityCode *string `json:"harmonizedCommodityCode"`

	// ShipmentExportCountryCode Country Code of shipment export
	ShipmentExportCountryCode *string `json:"shipmentExportCountryCode"`

	// SpecialInstructions Any international special instructions required
	SpecialInstructions *string `json:"specialInstructions"`
}

InternationalShipment Use this field for international shipment info like country and commodity code

type LightStrength

type LightStrength struct {
	GmtDateTime *time.Time `json:"gmtDateTime"`
	GmtOffset   *string    `json:"gmtOffset"`

	// Light Light sensor
	Light         *string                `json:"light"`
	LightUOM      *LightStrengthLightUOM `json:"lightUOM"`
	LocalDateTime *time.Time             `json:"localDateTime"`
}

LightStrength Light sensor data

type LightStrengthLightUOM

type LightStrengthLightUOM string

LightStrengthLightUOM defines model for LightStrength.LightUOM.

const (
	Candles     LightStrengthLightUOM = "candles"
	Footcandles LightStrengthLightUOM = "footcandles"
	Lumens      LightStrengthLightUOM = "lumens"
	Lux         LightStrengthLightUOM = "lux"
)

Defines values for LightStrengthLightUOM.

type ObjectServiceResponse

type ObjectServiceResponse struct {
	Errors *[]Error `json:"errors"`

	// IsCompleted This field denotes if the request was processed successfully or not
	IsCompleted *bool `json:"isCompleted,omitempty"`

	// IsFaulted This field denotes if there is any error while precessing the shipments
	IsFaulted *bool `json:"isFaulted,omitempty"`

	// Result List of shipments received in request with the status if they were processed successfully or not
	Result *map[string]interface{} `json:"result"`
}

ObjectServiceResponse Service response object containgin details if the shipments were processed successfully or not.

type OrderDetails

type OrderDetails struct {
	CustomerAccountNumber string `json:"customerAccountNumber"`

	// CustomerPONumber Customer Purchase Order Number
	CustomerPONumber *string    `json:"customerPONumber"`
	OrderNumber      *string    `json:"orderNumber"`
	OrderPlacedDate  *time.Time `json:"orderPlacedDate,omitempty"`

	// ShipmentDetails Use this section to provide information about the shipment
	ShipmentDetails []ShipmentDetail `json:"shipmentDetails"`
}

OrderDetails Use this section to provide/map info about the order (ex load, shipment etc)

type PartyDetail

type PartyDetail struct {
	// City Party(Shipper, Consignee, etc) city name
	City *string `json:"city,omitempty"`

	// CountryCode Party(Shipper, Consignee, etc) Country code
	CountryCode *string          `json:"countryCode,omitempty"`
	StateCode   *string          `json:"stateCode"`
	Type        *PartyDetailType `json:"type,omitempty"`
}

PartyDetail Use this section to provide info about entities associated with the shipment. For ex, Shipper, Consignee etc.

type PartyDetailType

type PartyDetailType string

PartyDetailType defines model for PartyDetail.Type.

const (
	Consignee PartyDetailType = "Consignee"
	Shipper   PartyDetailType = "Shipper"
)

Defines values for PartyDetailType.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type SC360Interface

type SC360Interface struct {
	// DocFlow Field for publishers to populate about the document flow type
	DocFlow *SC360InterfaceDocFlow `json:"docFlow,omitempty"`

	// DocId Unique Identifier for JSON message. Source system will generate a value for this field and ensure it is unique.
	DocId *string `json:"docId,omitempty"`

	// DocTime Current Date/Time when message is generated in UTC format
	DocTime *time.Time            `json:"docTime,omitempty"`
	DocType SC360InterfaceDocType `json:"docType"`

	// DocVer Document version. Current version is 1.0
	DocVer       *string        `json:"docVer,omitempty"`
	OrderDetails []OrderDetails `json:"orderDetails"`

	// OriginalDocId Unique Identifier for JSON message at the publisher side. Optional field for message publishers to populate
	OriginalDocId *string `json:"originalDocId"`
	PartnerId     *string `json:"partnerId"`

	// SbMessageId Service Bus message id
	SbMessageId *string `json:"sbMessageId"`

	// SourceSystem source system name
	SourceSystem    string  `json:"sourceSystem"`
	TransactionType *string `json:"transactionType"`
}

SC360Interface Supply chain 360 interface

type SC360InterfaceDocFlow

type SC360InterfaceDocFlow string

SC360InterfaceDocFlow Field for publishers to populate about the document flow type

const (
	Inbound  SC360InterfaceDocFlow = "Inbound"
	Outbound SC360InterfaceDocFlow = "Outbound"
)

Defines values for SC360InterfaceDocFlow.

type SC360InterfaceDocType

type SC360InterfaceDocType string

SC360InterfaceDocType defines model for SC360Interface.DocType.

const (
	SC360InterfaceDocTypeOrder       SC360InterfaceDocType = "Order"
	SC360InterfaceDocTypeOrderStatus SC360InterfaceDocType = "OrderStatus"
)

Defines values for SC360InterfaceDocType.

type SC360InterfaceSC360IngestRequest

type SC360InterfaceSC360IngestRequest struct {
	ApiVersion SC360InterfaceSC360IngestRequestApiVersion `json:"apiVersion"`

	// Request Supply chain 360 interface
	Request SC360Interface `json:"request"`
}

SC360InterfaceSC360IngestRequest Supply chain 360 interface ingest request

type SC360InterfaceSC360IngestRequestApiVersion

type SC360InterfaceSC360IngestRequestApiVersion string

SC360InterfaceSC360IngestRequestApiVersion defines model for SC360InterfaceSC360IngestRequest.ApiVersion.

Defines values for SC360InterfaceSC360IngestRequestApiVersion.

type SC360PublisherAPIIngestJSONRequestBody

type SC360PublisherAPIIngestJSONRequestBody = SC360InterfaceSC360IngestRequest

SC360PublisherAPIIngestJSONRequestBody defines body for SC360PublisherAPIIngest for application/json ContentType.

type SC360PublisherAPIIngestResponse

type SC360PublisherAPIIngestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SC360ResponseListServiceResponse
	JSON207      *SC360ResponseListServiceResponse
	JSON400      *ObjectServiceResponse
	JSON401      *ObjectServiceResponse
	JSON500      *ObjectServiceResponse
}

func ParseSC360PublisherAPIIngestResponse

func ParseSC360PublisherAPIIngestResponse(rsp *http.Response) (*SC360PublisherAPIIngestResponse, error)

ParseSC360PublisherAPIIngestResponse parses an HTTP response from a SC360PublisherAPIIngestWithResponse call

func (SC360PublisherAPIIngestResponse) Status

Status returns HTTPResponse.Status

func (SC360PublisherAPIIngestResponse) StatusCode

func (r SC360PublisherAPIIngestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SC360Response

type SC360Response struct {
	// DocId Unique Identifier for JSON message. Source system will generate a value for this field and ensure it is unique.
	DocId       string               `json:"docId"`
	DocType     SC360ResponseDocType `json:"docType"`
	IsCompleted *bool                `json:"isCompleted,omitempty"`

	// MessageId Service bus message id for a shipment
	MessageId string `json:"messageId"`

	// OrderNumber Unique identifier for the order/load. An order could have multiple shipments.
	OrderNumber string `json:"orderNumber"`

	// ShipmentNumber Unique identifier of a shipment
	ShipmentNumber string `json:"shipmentNumber"`

	// ShipmentUniquekey shipmentUniqueKey is used to uniquely identify a shipment
	ShipmentUniquekey string `json:"shipmentUniquekey"`
}

SC360Response Supply chain 360 response

type SC360ResponseDocType

type SC360ResponseDocType string

SC360ResponseDocType defines model for SC360Response.DocType.

const (
	SC360ResponseDocTypeOrder       SC360ResponseDocType = "Order"
	SC360ResponseDocTypeOrderStatus SC360ResponseDocType = "OrderStatus"
)

Defines values for SC360ResponseDocType.

type SC360ResponseListServiceResponse

type SC360ResponseListServiceResponse struct {
	Errors *[]Error `json:"errors"`

	// IsCompleted This field denotes if the request was processed successfully or not
	IsCompleted *bool `json:"isCompleted,omitempty"`

	// IsFaulted This field denotes if there is any error while precessing the shipments
	IsFaulted *bool `json:"isFaulted,omitempty"`

	// Result List of shipments received in request with the status if they were processed successfully or not
	Result *[]SC360Response `json:"result"`
}

SC360ResponseListServiceResponse Supply chain 360 response list of process shipments

type SensorData

type SensorData struct {
	// Gps Use this field for shipment tracking
	Gps *Gps `json:"gps,omitempty"`

	// HumidityLevel Use this field to provide information about the shipment humidity conditions
	HumidityLevel *HumidityLevel `json:"humidityLevel,omitempty"`

	// LightStrength Light sensor data
	LightStrength *LightStrength `json:"lightStrength,omitempty"`

	// ShockForce Has shipment been dropped or otherwise exposed to an impact force that exceeds a predetermined level
	ShockForce *ShockForce `json:"shockForce,omitempty"`

	// Temperature Temperature information of the shipment
	Temperature *Temperature `json:"temperature,omitempty"`
}

SensorData This section is used for capturing sensor level data for the package when the sensor event flag is true

type Service

type Service struct {
	// CarrierServiceCode Use this field to specify the carrier service level if different than service level
	CarrierServiceCode *string `json:"carrierServiceCode,omitempty"`

	// CarrierServiceDescription Description for carrier service level
	CarrierServiceDescription *string `json:"carrierServiceDescription"`

	// HandlingCode Shipment package handling instructions code
	HandlingCode *string `json:"handlingCode"`

	// HandlingDescription Shipment package handling instructions description
	HandlingDescription  *string                      `json:"handlingDescription"`
	SaturdayDeliveryFlag *ServiceSaturdayDeliveryFlag `json:"saturdayDeliveryFlag"`

	// ServiceCode Code of service level for the shipment
	ServiceCode *string `json:"serviceCode"`

	// ServiceDescription Description for the level of service
	ServiceDescription *string `json:"serviceDescription"`
}

Service Service information like service code (ex ground, overnight, international and descriptions)

type ServiceSaturdayDeliveryFlag

type ServiceSaturdayDeliveryFlag string

ServiceSaturdayDeliveryFlag defines model for Service.SaturdayDeliveryFlag.

const (
	ServiceSaturdayDeliveryFlagN ServiceSaturdayDeliveryFlag = "N"
	ServiceSaturdayDeliveryFlagY ServiceSaturdayDeliveryFlag = "Y"
)

Defines values for ServiceSaturdayDeliveryFlag.

type ShipUnit

type ShipUnit struct {
	// DimensionWeight Shipment Unit Dimensional Weight. This is the estimated weight of the package based on its dimensions.
	DimensionWeight *string `json:"dimensionWeight"`

	// DimensionWeightUOM Dimensional weight unit of measurement
	DimensionWeightUOM *string `json:"dimensionWeightUOM"`

	// Height Height of the shipment package unit
	Height *string `json:"height"`

	// HeightUOM Height unit of measurement
	HeightUOM *string `json:"heightUOM"`

	// ItemDesciption Shipment unit items description
	ItemDesciption *string `json:"itemDesciption"`

	// Length Length of the shipment package unit
	Length *string `json:"length"`

	// LengthUOM Length unit of measurement
	LengthUOM *string `json:"lengthUOM"`

	// ShipmentQuantity Quantity of items in shipment unit
	ShipmentQuantity *int32 `json:"shipmentQuantity"`

	// Volume Volume of the shipment package unit
	Volume *string `json:"volume"`

	// VolumeUOM Volume unit of measurement
	VolumeUOM *string `json:"volumeUOM"`

	// Weight Weight of the shipment package unit
	Weight *string `json:"weight"`

	// WeightUOM Weight unit of measurement
	WeightUOM *string `json:"weightUOM"`

	// Width Widht of the shipment package unit
	Width *string `json:"width"`

	// WidthUOM Width unit of measurement
	WidthUOM *string `json:"widthUOM"`
}

ShipUnit List of shipping units like items, length, width, height, etc

type ShipmentDetail

type ShipmentDetail struct {
	// ActivityInformation Use this to provide info about activities and milestones updates for the shipment.
	ActivityInformation  *ActivityInformation `json:"activityInformation,omitempty"`
	ActualPickupDateTime *time.Time           `json:"actualPickupDateTime"`

	// BillingInformation Use this field to specify whom the shipment is charged to and descriptions for billing code
	BillingInformation *BillingInformation `json:"billingInformation,omitempty"`

	// Carrier Use this field to provide info about carrier used for shipment
	Carrier                 *Carrier  `json:"carrier,omitempty"`
	CarrierShipmentNumber   *[]string `json:"carrierShipmentNumber"`
	CollectOnDeliveryAmount *string   `json:"collectOnDeliveryAmount"`

	// CollectOnDeliveryCurrency Currency code of the amount received on delivery
	CollectOnDeliveryCurrency *string    `json:"collectOnDeliveryCurrency"`
	EarliestDeliveryDateTime  *time.Time `json:"earliestDeliveryDateTime"`

	// ExceptionInformation This is used to provide additional details about the package delivery exception
	ExceptionInformation *ExceptionInformation `json:"exceptionInformation,omitempty"`

	// InternationalShipment Use this field for international shipment info like country and commodity code
	InternationalShipment  *InternationalShipment `json:"internationalShipment,omitempty"`
	LatestDeliveryDateTime *time.Time             `json:"latestDeliveryDateTime"`

	// LeadShipmentNumber Use this field to provide key information for the lead shipment in case there are multiple packages in a shipment
	LeadShipmentNumber *string `json:"leadShipmentNumber"`

	// PartyDetails Use this section to provide info about entities associated with the shipment. For ex, Shipper, Consignee etc
	PartyDetails                *[]PartyDetail `json:"partyDetails"`
	RescheduledDeliveryDateTime *time.Time     `json:"rescheduledDeliveryDateTime"`
	ScheduledDeliveryDateTime   *time.Time     `json:"scheduledDeliveryDateTime"`
	ScheduledPickupDateTime     *time.Time     `json:"scheduledPickupDateTime"`

	// SensorData This section is used for capturing sensor level data for the package when the sensor event flag is true
	SensorData *SensorData `json:"sensorData,omitempty"`

	// Service Service information like service code (ex ground, overnight, international and descriptions)
	Service *Service `json:"service,omitempty"`

	// ShipUnits List of shipping units like number of items, length, width, height,
	ShipUnits          *[]ShipUnit `json:"shipUnits"`
	ShipmentBookedDate *time.Time  `json:"shipmentBookedDate"`

	// ShipmentDescription Shipment contents description text
	ShipmentDescription *string `json:"shipmentDescription"`

	// ShipmentNumber Unique identifier of a shipment
	ShipmentNumber     string    `json:"shipmentNumber"`
	ShipmentPlacedDate time.Time `json:"shipmentPlacedDate"`

	// ShipmentReferences List of reference information about the package
	ShipmentReferences *[]ShipmentReference `json:"shipmentReferences"`

	// ShipmentUniqueKey shipmentUniqueKey is used to uniquely identify a shipment
	ShipmentUniqueKey string `json:"shipmentUniqueKey"`

	// SpecialInformation Provide any special information about shipment like Hazardous material
	SpecialInformation *SpecialInformation `json:"specialInformation,omitempty"`

	// TemperatureCondition Temperature condition
	TemperatureCondition *string `json:"temperatureCondition"`
}

ShipmentDetail defines model for ShipmentDetail.

type ShipmentReference

type ShipmentReference struct {
	// ReferenceCode Code that identifies the reference value
	ReferenceCode *string `json:"referenceCode"`

	// ReferenceType This field is used to specify the type of reference field
	ReferenceType *string `json:"referenceType,omitempty"`

	// ReferenceValue Reference value
	ReferenceValue *string `json:"referenceValue,omitempty"`
}

ShipmentReference List of reference information about the package

type ShockForce

type ShockForce struct {
	GmtDateTime   *time.Time `json:"gmtDateTime"`
	GmtOffset     *string    `json:"gmtOffset"`
	LocalDateTime *time.Time `json:"localDateTime"`

	// Shock Shipment has been dropped or otherwise exposed to an impact force that exceeds a predetermined level
	Shock *string `json:"shock"`

	// ShockUOM Shock Unit of measurement
	ShockUOM *string `json:"shockUOM"`
}

ShockForce Has shipment been dropped or otherwise exposed to an impact force that exceeds a predetermined level

type SpecialInformation

type SpecialInformation struct {
	// HazmatCategoryCode Hazardous material category code
	HazmatCategoryCode *string `json:"hazmatCategoryCode"`

	// HazmatCategoryDescription Hazardous material category description
	HazmatCategoryDescription *string                       `json:"hazmatCategoryDescription"`
	HazmatFlag                *SpecialInformationHazmatFlag `json:"hazmatFlag"`
}

SpecialInformation Provide any special information about shipment like Hazardous material

type SpecialInformationHazmatFlag

type SpecialInformationHazmatFlag string

SpecialInformationHazmatFlag defines model for SpecialInformation.HazmatFlag.

const (
	SpecialInformationHazmatFlagN SpecialInformationHazmatFlag = "N"
	SpecialInformationHazmatFlagY SpecialInformationHazmatFlag = "Y"
)

Defines values for SpecialInformationHazmatFlag.

type Temperature

type Temperature struct {
	GmtDateTime   *time.Time `json:"gmtDateTime"`
	GmtOffset     *string    `json:"gmtOffset"`
	LocalDateTime *time.Time `json:"localDateTime"`

	// TemperatureInfo Temperature value of the container
	TemperatureInfo *string `json:"temperatureInfo"`

	// TemperatureUOM Temperature unit of measurement
	TemperatureUOM *TemperatureTemperatureUOM `json:"temperatureUOM"`
}

Temperature Temperature information of the shipment

type TemperatureTemperatureUOM

type TemperatureTemperatureUOM string

TemperatureTemperatureUOM Temperature unit of measurement

Defines values for TemperatureTemperatureUOM.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL