Documentation
¶
Overview ¶
Package scslogistics 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
- func NewIngestLogisticsDataRequest(server string, params *IngestLogisticsDataParams, ...) (*http.Request, error)
- func NewIngestLogisticsDataRequestWithBody(server string, params *IngestLogisticsDataParams, contentType string, ...) (*http.Request, error)
- type ActivityInformation
- type ActivityLocation
- type BillingInformation
- type Carrier
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) IngestLogisticsDataWithBodyWithResponse(ctx context.Context, params *IngestLogisticsDataParams, contentType string, ...) (*IngestLogisticsDataResponse, error)
- func (c *ClientWithResponses) IngestLogisticsDataWithResponse(ctx context.Context, params *IngestLogisticsDataParams, ...) (*IngestLogisticsDataResponse, error)
- type ClientWithResponsesInterface
- type DeliveryInformation
- type ExceptionInformation
- type HttpRequestDoer
- type IngestLogisticsDataJSONRequestBody
- type IngestLogisticsDataParams
- type IngestLogisticsDataResponse
- type InternationalShipment
- type LogisticsDataRequest
- type ObjectServiceResponse
- type OrderDetail
- type PartyDetail
- type ProcessingResult
- type RequestEditorFn
- type RequestPayload
- type SC360ResponseListServiceResponse
- type Service
- type ServiceError
- type ShipUnit
- type ShipmentDetail
- type ShipmentReference
- type SpecialInformation
- type TransId
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewIngestLogisticsDataRequest ¶
func NewIngestLogisticsDataRequest(server string, params *IngestLogisticsDataParams, body IngestLogisticsDataJSONRequestBody) (*http.Request, error)
NewIngestLogisticsDataRequest calls the generic IngestLogisticsData builder with application/json body
func NewIngestLogisticsDataRequestWithBody ¶
func NewIngestLogisticsDataRequestWithBody(server string, params *IngestLogisticsDataParams, contentType string, body io.Reader) (*http.Request, error)
NewIngestLogisticsDataRequestWithBody generates requests for IngestLogisticsData with any type of body
Types ¶
type ActivityInformation ¶
type ActivityInformation struct {
// ActivityID Activity identifier
ActivityID *string `json:"activityID,omitempty"`
// ActivityLocation Location information for activity
ActivityLocation *ActivityLocation `json:"activityLocation,omitempty"`
// ActivitySubType Activity sub-type code
ActivitySubType *string `json:"activitySubType,omitempty"`
// ActivitySubTypeDescription Activity sub-type description
ActivitySubTypeDescription *string `json:"activitySubTypeDescription,omitempty"`
// DeliveryInformation Delivery confirmation information
DeliveryInformation *DeliveryInformation `json:"deliveryInformation,omitempty"`
// Description Activity description
Description *string `json:"description,omitempty"`
// ExceptionInformation Exception information if any
ExceptionInformation *[]ExceptionInformation `json:"exceptionInformation,omitempty"`
// GmtDateTime GMT date and time
GmtDateTime *time.Time `json:"gmtDateTime,omitempty"`
// GmtOffset GMT offset
GmtOffset *string `json:"gmtOffset,omitempty"`
// LocalDateTime Local date and time
LocalDateTime *time.Time `json:"localDateTime,omitempty"`
// SensorEvent Indicates if this is a sensor event
SensorEvent *bool `json:"sensorEvent,omitempty"`
// Type Activity type
Type *string `json:"type,omitempty"`
}
ActivityInformation Activity tracking information
type ActivityLocation ¶
type ActivityLocation struct {
// City City name
City *string `json:"city,omitempty"`
// Country Country name
Country *string `json:"country,omitempty"`
// Latitude Latitude coordinate
Latitude *string `json:"latitude,omitempty"`
// Longitude Longitude coordinate
Longitude *string `json:"longitude,omitempty"`
// PostalCode Postal/ZIP code
PostalCode *string `json:"postalCode,omitempty"`
// StateProvince State or province
StateProvince *string `json:"stateProvince,omitempty"`
}
ActivityLocation Location information for activity
type BillingInformation ¶
type BillingInformation struct {
// BillingTermCode Billing term code
BillingTermCode *string `json:"billingTermCode,omitempty"`
// BillingTermDescription Billing term description
BillingTermDescription *string `json:"billingTermDescription,omitempty"`
}
BillingInformation Billing information
type Carrier ¶
type Carrier struct {
// CarrierCode Carrier code
CarrierCode *string `json:"carrierCode,omitempty"`
// CarrierName Carrier name
CarrierName *string `json:"carrierName,omitempty"`
// CarrierType Carrier type
CarrierType *string `json:"carrierType,omitempty"`
}
Carrier Carrier information
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) IngestLogisticsData ¶
func (c *Client) IngestLogisticsData(ctx context.Context, params *IngestLogisticsDataParams, body IngestLogisticsDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) IngestLogisticsDataWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// IngestLogisticsDataWithBody request with any body
IngestLogisticsDataWithBody(ctx context.Context, params *IngestLogisticsDataParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
IngestLogisticsData(ctx context.Context, params *IngestLogisticsDataParams, body IngestLogisticsDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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) IngestLogisticsDataWithBodyWithResponse ¶
func (c *ClientWithResponses) IngestLogisticsDataWithBodyWithResponse(ctx context.Context, params *IngestLogisticsDataParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestLogisticsDataResponse, error)
IngestLogisticsDataWithBodyWithResponse request with arbitrary body returning *IngestLogisticsDataResponse
func (*ClientWithResponses) IngestLogisticsDataWithResponse ¶
func (c *ClientWithResponses) IngestLogisticsDataWithResponse(ctx context.Context, params *IngestLogisticsDataParams, body IngestLogisticsDataJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestLogisticsDataResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// IngestLogisticsDataWithBodyWithResponse request with any body
IngestLogisticsDataWithBodyWithResponse(ctx context.Context, params *IngestLogisticsDataParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*IngestLogisticsDataResponse, error)
IngestLogisticsDataWithResponse(ctx context.Context, params *IngestLogisticsDataParams, body IngestLogisticsDataJSONRequestBody, reqEditors ...RequestEditorFn) (*IngestLogisticsDataResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeliveryInformation ¶
type DeliveryInformation struct {
// ActualDeliveryDateTime Actual delivery date and time
ActualDeliveryDateTime *time.Time `json:"actualDeliveryDateTime,omitempty"`
// ActualDeliveryDateTimegmtOffset GMT offset for actual delivery time
ActualDeliveryDateTimegmtOffset *string `json:"actualDeliveryDateTimegmtOffset,omitempty"`
// PodSignatureImage Base64 encoded signature image
PodSignatureImage *string `json:"podSignatureImage,omitempty"`
// PodSignatureText Signature text/name
PodSignatureText *string `json:"podSignatureText,omitempty"`
}
DeliveryInformation Delivery confirmation information
type ExceptionInformation ¶
type ExceptionInformation struct {
// ExceptionCreatedDateGmt Exception creation date in GMT
ExceptionCreatedDateGmt *time.Time `json:"exceptionCreatedDateGmt,omitempty"`
// ExceptionCreatedDateGmtOffset GMT offset for exception creation
ExceptionCreatedDateGmtOffset *string `json:"exceptionCreatedDateGmtOffset,omitempty"`
// ExceptionType Type of exception
ExceptionType *string `json:"exceptionType,omitempty"`
// ReasonCode Exception reason code
ReasonCode *string `json:"reasonCode,omitempty"`
// ReasonDescription Exception reason description
ReasonDescription *string `json:"reasonDescription,omitempty"`
// ResolutionCode Resolution code
ResolutionCode *string `json:"resolutionCode,omitempty"`
// ResolutionDescription Resolution description
ResolutionDescription *string `json:"resolutionDescription,omitempty"`
// StatusCode Status code
StatusCode *string `json:"statusCode,omitempty"`
// StatusDescription Status description
StatusDescription *string `json:"statusDescription,omitempty"`
}
ExceptionInformation Exception details
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IngestLogisticsDataJSONRequestBody ¶
type IngestLogisticsDataJSONRequestBody = LogisticsDataRequest
IngestLogisticsDataJSONRequestBody defines body for IngestLogisticsData for application/json ContentType.
type IngestLogisticsDataParams ¶
type IngestLogisticsDataParams struct {
// TransId An identifier unique to the request.
TransId TransId `json:"transId"`
}
IngestLogisticsDataParams defines parameters for IngestLogisticsData.
type IngestLogisticsDataResponse ¶
type IngestLogisticsDataResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SC360ResponseListServiceResponse
JSON207 *SC360ResponseListServiceResponse
JSON400 *ObjectServiceResponse
JSON401 *ObjectServiceResponse
JSON500 *ObjectServiceResponse
}
func ParseIngestLogisticsDataResponse ¶
func ParseIngestLogisticsDataResponse(rsp *http.Response) (*IngestLogisticsDataResponse, error)
ParseIngestLogisticsDataResponse parses an HTTP response from a IngestLogisticsDataWithResponse call
func (IngestLogisticsDataResponse) Status ¶
func (r IngestLogisticsDataResponse) Status() string
Status returns HTTPResponse.Status
func (IngestLogisticsDataResponse) StatusCode ¶
func (r IngestLogisticsDataResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InternationalShipment ¶
type InternationalShipment struct {
// HarmonizedCommodityCode Harmonized commodity code
HarmonizedCommodityCode *string `json:"harmonizedCommodityCode,omitempty"`
// ShipmentExportCountryCode Export country code
ShipmentExportCountryCode *string `json:"shipmentExportCountryCode,omitempty"`
// SpecialInstructions Special handling instructions
SpecialInstructions *string `json:"specialInstructions,omitempty"`
}
InternationalShipment International shipment details
type LogisticsDataRequest ¶
type LogisticsDataRequest struct {
// ApiVersion API version identifier
ApiVersion string `json:"apiVersion"`
// Request Main request payload containing order and shipment details
Request RequestPayload `json:"request"`
}
LogisticsDataRequest Request for ingesting logistics data from WMS
type ObjectServiceResponse ¶
type ObjectServiceResponse struct {
// Errors Array of errors
Errors *[]ServiceError `json:"errors,omitempty"`
}
ObjectServiceResponse Service response for error conditions
type OrderDetail ¶
type OrderDetail struct {
// CustomerAccountNumber Customer account number
CustomerAccountNumber *string `json:"customerAccountNumber,omitempty"`
// OrderNumber Order number
OrderNumber *string `json:"orderNumber,omitempty"`
// OrderPlacedDate Date when order was placed
OrderPlacedDate *openapi_types.Date `json:"orderPlacedDate,omitempty"`
// ShipmentDetails Array of shipment details for the order
ShipmentDetails *[]ShipmentDetail `json:"shipmentDetails,omitempty"`
}
OrderDetail Order detail information
type PartyDetail ¶
type PartyDetail struct {
// AddressLine1 Address line 1
AddressLine1 *string `json:"addressLine1,omitempty"`
// AddressLine2 Address line 2
AddressLine2 *string `json:"addressLine2,omitempty"`
// AddressLine3 Address line 3
AddressLine3 *string `json:"addressLine3,omitempty"`
// AttentionName Attention name
AttentionName *string `json:"attentionName,omitempty"`
// City City
City *string `json:"city,omitempty"`
// Country Country name
Country *string `json:"country,omitempty"`
// CountryCode Country code
CountryCode *string `json:"countryCode,omitempty"`
// County County
County *string `json:"county,omitempty"`
// Email Email address
Email *openapi_types.Email `json:"email,omitempty"`
// Fax Fax number
Fax *string `json:"fax,omitempty"`
// Name Party name
Name *string `json:"name,omitempty"`
// Phone Phone number
Phone *string `json:"phone,omitempty"`
// PostalCode Postal/ZIP code
PostalCode *string `json:"postalCode,omitempty"`
// StateCode State/province code
StateCode *string `json:"stateCode,omitempty"`
// Type Party type (Shipper, Consignee, etc.)
Type *string `json:"type,omitempty"`
}
PartyDetail Party information (shipper, consignee, etc.)
type ProcessingResult ¶
type ProcessingResult struct {
// DocId Document identifier
DocId *string `json:"docId,omitempty"`
// DocType Document type
DocType *string `json:"docType,omitempty"`
// IsCompleted Indicates if this item is completed
IsCompleted *bool `json:"isCompleted,omitempty"`
// MessageId Unique message identifier
MessageId *openapi_types.UUID `json:"messageId,omitempty"`
// OrderNumber Order number
OrderNumber *string `json:"orderNumber,omitempty"`
// ShipmentNumber Shipment number
ShipmentNumber *string `json:"shipmentNumber,omitempty"`
// ShipmentUniquekey Unique shipment key
ShipmentUniquekey *string `json:"shipmentUniquekey,omitempty"`
}
ProcessingResult Individual processing result
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestPayload ¶
type RequestPayload struct {
// DocDateTime Document creation date and time
DocDateTime *time.Time `json:"docDateTime,omitempty"`
// DocFlow Document flow direction
DocFlow *string `json:"docFlow,omitempty"`
// DocId Unique document identifier
DocId string `json:"docId"`
// DocType Type of document
DocType string `json:"docType"`
// DocVer Document version
DocVer *string `json:"docVer,omitempty"`
// OrderDetails Array of order details
OrderDetails *[]OrderDetail `json:"orderDetails,omitempty"`
// OriginalDocId Original document identifier
OriginalDocId *string `json:"originalDocId,omitempty"`
// SourceSystem Source system identifier
SourceSystem string `json:"sourceSystem"`
}
RequestPayload Main request payload containing order and shipment details
type SC360ResponseListServiceResponse ¶
type SC360ResponseListServiceResponse struct {
// Errors Array of errors if any
Errors *[]ServiceError `json:"errors,omitempty"`
// IsCompleted Indicates if processing is completed
IsCompleted *bool `json:"isCompleted,omitempty"`
// IsFaulted Indicates if processing encountered faults
IsFaulted *bool `json:"isFaulted,omitempty"`
// Result Array of processing results
Result *[]ProcessingResult `json:"result,omitempty"`
}
SC360ResponseListServiceResponse Service response with list of results
type Service ¶
type Service struct {
// CarrierServiceCode Carrier-specific service code
CarrierServiceCode *string `json:"carrierServiceCode,omitempty"`
// CarrierServiceDescription Carrier service description
CarrierServiceDescription *string `json:"carrierServiceDescription,omitempty"`
// HandlingCode Handling code
HandlingCode *string `json:"handlingCode,omitempty"`
// HandlingDescription Handling description
HandlingDescription *string `json:"handlingDescription,omitempty"`
// SaturdayDeliveryFlag Saturday delivery flag
SaturdayDeliveryFlag *string `json:"saturdayDeliveryFlag,omitempty"`
// ServiceCode Service code
ServiceCode *string `json:"serviceCode,omitempty"`
// ServiceDescription Service description
ServiceDescription *string `json:"serviceDescription,omitempty"`
}
Service Service level information
type ServiceError ¶
type ServiceError struct {
// Code Error code
Code *string `json:"code,omitempty"`
// Message Error message. Includes source context in the format "(source: <origin>)" to identify where the error was thrown.
Message *string `json:"message,omitempty"`
}
ServiceError Service error details
type ShipUnit ¶
type ShipUnit struct {
// DimensionWeight Dimensional weight
DimensionWeight *string `json:"dimensionWeight,omitempty"`
// DimensionWeightUOM Dimensional weight unit of measure
DimensionWeightUOM *string `json:"dimensionWeightUOM,omitempty"`
// Height Package height
Height *string `json:"height,omitempty"`
// HeightUOM Height unit of measure
HeightUOM *string `json:"heightUOM,omitempty"`
// ItemDesciption Item description
ItemDesciption *string `json:"itemDesciption,omitempty"`
// Length Package length
Length *string `json:"length,omitempty"`
// LengthUOM Length unit of measure
LengthUOM *string `json:"lengthUOM,omitempty"`
// ShipmentQuantity Shipment quantity
ShipmentQuantity *string `json:"shipmentQuantity,omitempty"`
// Volume Package volume
Volume *string `json:"volume,omitempty"`
// VolumeUOM Volume unit of measure
VolumeUOM *string `json:"volumeUOM,omitempty"`
// Weight Package weight
Weight *string `json:"weight,omitempty"`
// WeightUOM Weight unit of measure
WeightUOM *string `json:"weightUOM,omitempty"`
// Width Package width
Width *string `json:"width,omitempty"`
// WidthUOM Width unit of measure
WidthUOM *string `json:"widthUOM,omitempty"`
}
ShipUnit Shipping unit/package information
type ShipmentDetail ¶
type ShipmentDetail struct {
// ActivityInformation Activity tracking information
ActivityInformation *ActivityInformation `json:"activityInformation,omitempty"`
// ActualPickupDateTime Actual pickup date and time
ActualPickupDateTime *time.Time `json:"actualPickupDateTime,omitempty"`
// BillingInformation Billing information
BillingInformation *BillingInformation `json:"billingInformation,omitempty"`
// Carrier Carrier information
Carrier *Carrier `json:"carrier,omitempty"`
// CarrierShipmentNumber Carrier shipment tracking numbers
CarrierShipmentNumber *[]string `json:"carrierShipmentNumber,omitempty"`
// CollectOnDeliveryAmount COD amount
CollectOnDeliveryAmount *string `json:"collectOnDeliveryAmount,omitempty"`
// CollectOnDeliveryCurrency COD currency code
CollectOnDeliveryCurrency *string `json:"collectOnDeliveryCurrency,omitempty"`
// EarliestDeliveryDateTime Earliest delivery date and time
EarliestDeliveryDateTime *time.Time `json:"earliestDeliveryDateTime,omitempty"`
// InternationalShipment International shipment details
InternationalShipment *InternationalShipment `json:"internationalShipment,omitempty"`
// LatestDeliveryDateTime Latest delivery date and time
LatestDeliveryDateTime *time.Time `json:"latestDeliveryDateTime,omitempty"`
// LeadShipmentNumber Lead shipment number for grouped shipments
LeadShipmentNumber *string `json:"leadShipmentNumber,omitempty"`
// LoadId Load identifier
LoadId *string `json:"loadId,omitempty"`
// PartyDetails Party information (shipper, consignee, etc.)
PartyDetails *[]PartyDetail `json:"partyDetails,omitempty"`
// RescheduledDeliveryDateTime Rescheduled delivery date and time
RescheduledDeliveryDateTime *time.Time `json:"rescheduledDeliveryDateTime,omitempty"`
// ScheduledDeliveryDateTime Scheduled delivery date and time
ScheduledDeliveryDateTime *time.Time `json:"scheduledDeliveryDateTime,omitempty"`
// ScheduledPickupDateTime Scheduled pickup date and time
ScheduledPickupDateTime *time.Time `json:"scheduledPickupDateTime,omitempty"`
// Service Service level information
Service *Service `json:"service,omitempty"`
// ShipUnits Shipping units/packages
ShipUnits *[]ShipUnit `json:"shipUnits,omitempty"`
// ShipmentDescription Shipment description
ShipmentDescription *string `json:"shipmentDescription,omitempty"`
// ShipmentNumber Shipment number
ShipmentNumber string `json:"shipmentNumber"`
// ShipmentPlacedDate Date when shipment was placed
ShipmentPlacedDate *openapi_types.Date `json:"shipmentPlacedDate,omitempty"`
// ShipmentReferences Shipment reference numbers
ShipmentReferences *[]ShipmentReference `json:"shipmentReferences,omitempty"`
// ShipmentUniquekey Unique shipment identifier
ShipmentUniquekey string `json:"shipmentUniquekey"`
// SpecialInformation Special handling information
SpecialInformation *SpecialInformation `json:"specialInformation,omitempty"`
}
ShipmentDetail Detailed shipment information
type ShipmentReference ¶
type ShipmentReference struct {
// ReferenceType Reference type
ReferenceType *string `json:"referenceType,omitempty"`
// ReferenceValue Reference value
ReferenceValue *string `json:"referenceValue,omitempty"`
}
ShipmentReference Shipment reference number
type SpecialInformation ¶
type SpecialInformation struct {
// HazmatCategoryCode Hazmat category code
HazmatCategoryCode *string `json:"hazmatCategoryCode,omitempty"`
// HazmatCategoryDescription Hazmat category description
HazmatCategoryDescription *string `json:"hazmatCategoryDescription,omitempty"`
// HazmatFlag Hazmat flag
HazmatFlag *string `json:"hazmatFlag,omitempty"`
}
SpecialInformation Special handling information