Documentation ¶
Index ¶
- Variables
- type Address
- type AuthSession
- type Contact
- type Dashboard
- type DashboardShipment
- type DocumentLink
- type GetOrderListResult
- type GetShipmentListResult
- type KeyFloatPairs
- type Location
- type LoginRequest
- type LoginResult
- type LookupData
- type LookupDataPrefix
- type Note
- type Order
- type Organisation
- type Packing
- type Shipment
Constants ¶
This section is empty.
Variables ¶
var LookDataPrefix = LookupDataPrefix{
Organisation: "ORG",
Location: "LOC",
Address: "ADDR",
Contact: "CONTACT",
Documents: "DOC",
Notes: "NOTE",
Packing: "PKG",
}
LookDataPrefix defines the prefixes for the lookup keys
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Address *string `json:"address"` Code *string `json:"code"` City *string `json:"city"` State *string `json:"state"` PostCode *string `json:"postCode"` Email *string `json:"email"` Phone *string `json:"phone"` }
Address struct
func (*Address) Map ¶
func (dest *Address) Map(src *shipmentservices.OrgAddress)
Map from SOAP OrgAddress to wrapper Address
type AuthSession ¶
type AuthSession struct { ID string `json:"id"` Email string `json:"email"` AccessToken string `json:"accessToken"` }
AuthSession struct
type Contact ¶
type Contact struct { Name *string `json:"name"` Language *string `json:"language"` NotifyMode *string `json:"notifyMode"` AttachmentType *string `json:"attachmentType"` Email *string `json:"email"` Fax *string `json:"fax"` Phone *[]string `json:"phone"` }
Contact struct
func (*Contact) Map ¶
func (dest *Contact) Map(src *shipmentservices.OrgContact, lookup *LookupData)
Map from SOAP OrgContact to wrapper Contact
type Dashboard ¶
type Dashboard struct {
Shipments *[]DashboardShipment
}
Dashboard struct
func (*Dashboard) Map ¶
func (dest *Dashboard) Map(src *GetShipmentListResult)
Map maps the related info from the shipments
type DashboardShipment ¶
type DashboardShipment struct { Number *string `json:"number"` Origin *Location `json:"origin"` Destination *Location `json:"destination"` DetentionSpend *KeyFloatPairs `json:"detentionSpend"` Prices *KeyFloatPairs `json:"prices"` ETD *int64 `json:"etd"` ETA *int64 `json:"eta"` DeliveredDate *int64 `json:"deliveredDate"` }
DashboardShipment struct
type DocumentLink ¶
type DocumentLink struct { Date *int64 `json:"date"` Description *string `json:"description"` Link *string `json:"link"` }
DocumentLink struct
func (*DocumentLink) Map ¶
func (dest *DocumentLink) Map(src *shipmentservices.DocumentLink)
Map maps a SOAP DocumentLink to the wrapper DocumentLink
type GetOrderListResult ¶
type GetOrderListResult struct { TotalRows uint64 `json:"totalRows"` ReturnedRows uint64 `json:"returnedRows"` Orders *[]Order `json:"orders"` }
GetOrderListResult struct
type GetShipmentListResult ¶
type GetShipmentListResult struct { TotalRows uint64 `json:"totalRows"` ReturnedRows uint64 `json:"returnedRows"` Shipments *[]Shipment `json:"shipments"` Lookup *LookupData `json:"lookup"` }
GetShipmentListResult struct
func (*GetShipmentListResult) Map ¶
func (dest *GetShipmentListResult) Map(src *shipmentservices.WebShipments, noLookup bool)
Map maps the SOAP WebShipments to the wrapper GetShipmentListResult
type KeyFloatPairs ¶
KeyFloatPairs struct
func (*KeyFloatPairs) MapDimension ¶
func (dest *KeyFloatPairs) MapDimension(src shipmentservices.DimensionValue)
MapDimension maps a SOAP DimensionValue to the wrapper KeyFloatPairs
func (*KeyFloatPairs) MapFinancial ¶
func (dest *KeyFloatPairs) MapFinancial(src shipmentservices.FinancialValue)
MapFinancial maps a SOAP FinancialValue to the wrapper KeyFloatPairs
type Location ¶
Location struct
func (*Location) Map ¶
func (dest *Location) Map(src *shipmentservices.UNLOCO)
Map from SOAP UNLOCO to wrapper Location
type LoginRequest ¶
LoginRequest struct
type LoginResult ¶
type LoginResult struct {
AccessToken string `json:"accessToken"`
}
LoginResult struct
type LookupData ¶
type LookupData map[string]interface{}
LookupData defines a normalize set of reference data, that each record can be belonged to one or many shipments
type LookupDataPrefix ¶
type LookupDataPrefix struct { Organisation string Location string Address string Contact string Documents string Notes string Packing string }
LookupDataPrefix map
type Note ¶
type Note struct { Type *string `json:"type"` Text *string `json:"text"` CreatedAt *int64 `json:"createdAt"` }
Note struct
func (*Note) Map ¶
func (dest *Note) Map(src *shipmentservices.NotesNote)
Map maps a SOAP NotesNote to the wrapper Note
type Organisation ¶
type Organisation struct { Name *string `json:"name"` Location *string `json:"location"` Addresses *[]string `json:"addresses"` Contacts *[]string `json:"contacts"` EDICode *string `json:"ediCode"` OwnerCode *string `json:"ownerCode"` }
Organisation struct
func (*Organisation) Map ¶
func (dest *Organisation) Map(src *shipmentservices.Organisation, lookup *LookupData)
Map from SOAP Organisation to wrapper Organisation
type Packing ¶
type Packing struct { Type *string `json:"type"` LinePrice *KeyFloatPairs `json:"linePrice"` Weight *KeyFloatPairs `json:"weight"` Volume *KeyFloatPairs `json:"volume"` Description *string `json:"description"` ContainerNumber *string `json:"containerNo"` }
Packing struct
func (*Packing) Map ¶
func (dest *Packing) Map(src *shipmentservices.WebPacking, prices *KeyFloatPairs)
Map maps a SOAP WebPacking to the wrapper Packing
type Shipment ¶
type Shipment struct { Number *string `json:"number"` HouseBill *string `json:"houseBill"` Shipper *string `json:"shipper"` Consignee *string `json:"consignee"` GoodsDescription *string `json:"goodsDesc"` ServiceLevel *string `json:"serviceLevel"` Origin *string `json:"origin"` Destination *string `json:"destination"` ETD *int64 `json:"etd"` ETA *int64 `json:"eta"` DeliveredDate *int64 `json:"deliveredDate"` Packings *[]string `json:"packings"` Notes *[]string `json:"notes"` Documents *[]string `json:"documents"` Prices *KeyFloatPairs `json:"prices"` }
Shipment struct
func (*Shipment) Map ¶
func (dest *Shipment) Map(src *shipmentservices.WebShipment, lookup *LookupData)
Map maps a SOAP WebShipment to the wrapper Shipment