Documentation
¶
Overview ¶
Package tradedirect 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 NewCloseoutMasterShipmentRequest(server string, usiNumber string, params *CloseoutMasterShipmentParams, ...) (*http.Request, error)
- func NewCloseoutMasterShipmentRequestWithBody(server string, usiNumber string, params *CloseoutMasterShipmentParams, ...) (*http.Request, error)
- func NewDeleteChildShipmentRequest(server string, usiNumber string, trackingNumber string, ...) (*http.Request, error)
- func NewDeleteLtlChildShipmentRequest(server string, usiNumber string, subProNumber string, ...) (*http.Request, error)
- func NewDeleteMasterShipmentRequest(server string, usiNumber string, params *DeleteMasterShipmentParams) (*http.Request, error)
- func NewDocumentLabelPlaybackRequest(server string, params *DocumentLabelPlaybackParams, ...) (*http.Request, error)
- func NewDocumentLabelPlaybackRequestWithBody(server string, params *DocumentLabelPlaybackParams, contentType string, ...) (*http.Request, error)
- type Client
- func (c *Client) CloseoutMasterShipment(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, ...) (*http.Response, error)
- func (c *Client) CloseoutMasterShipmentWithBody(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, ...) (*http.Response, error)
- func (c *Client) DeleteChildShipment(ctx context.Context, usiNumber string, trackingNumber string, ...) (*http.Response, error)
- func (c *Client) DeleteLtlChildShipment(ctx context.Context, usiNumber string, subProNumber string, ...) (*http.Response, error)
- func (c *Client) DeleteMasterShipment(ctx context.Context, usiNumber string, params *DeleteMasterShipmentParams, ...) (*http.Response, error)
- func (c *Client) DocumentLabelPlayback(ctx context.Context, params *DocumentLabelPlaybackParams, ...) (*http.Response, error)
- func (c *Client) DocumentLabelPlaybackWithBody(ctx context.Context, params *DocumentLabelPlaybackParams, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CloseoutMasterShipmentWithBodyWithResponse(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, ...) (*CloseoutMasterShipmentResponse, error)
- func (c *ClientWithResponses) CloseoutMasterShipmentWithResponse(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, ...) (*CloseoutMasterShipmentResponse, error)
- func (c *ClientWithResponses) DeleteChildShipmentWithResponse(ctx context.Context, usiNumber string, trackingNumber string, ...) (*DeleteChildShipmentResponse, error)
- func (c *ClientWithResponses) DeleteLtlChildShipmentWithResponse(ctx context.Context, usiNumber string, subProNumber string, ...) (*DeleteLtlChildShipmentResponse, error)
- func (c *ClientWithResponses) DeleteMasterShipmentWithResponse(ctx context.Context, usiNumber string, params *DeleteMasterShipmentParams, ...) (*DeleteMasterShipmentResponse, error)
- func (c *ClientWithResponses) DocumentLabelPlaybackWithBodyWithResponse(ctx context.Context, params *DocumentLabelPlaybackParams, contentType string, ...) (*DocumentLabelPlaybackResponse, error)
- func (c *ClientWithResponses) DocumentLabelPlaybackWithResponse(ctx context.Context, params *DocumentLabelPlaybackParams, ...) (*DocumentLabelPlaybackResponse, error)
- type ClientWithResponsesInterface
- type CloseoutMasterShipmentJSONRequestBody
- type CloseoutMasterShipmentParams
- type CloseoutMasterShipmentResponse
- type CloseoutRequest
- type CloseoutResponse
- type DeleteChildShipmentParams
- type DeleteChildShipmentResponse
- type DeleteLtlChildShipmentParams
- type DeleteLtlChildShipmentResponse
- type DeleteMasterShipmentParams
- type DeleteMasterShipmentResponse
- type Dimensions
- type DimensionsUnitOfMeasurement
- type DocGenerationFile
- type DocGenerationResponse
- func (t DocGenerationResponse) AsDocGenerationResponse0() (DocGenerationResponse0, error)
- func (t DocGenerationResponse) AsDocGenerationResponse1() (DocGenerationResponse1, error)
- func (t *DocGenerationResponse) FromDocGenerationResponse0(v DocGenerationResponse0) error
- func (t *DocGenerationResponse) FromDocGenerationResponse1(v DocGenerationResponse1) error
- func (t DocGenerationResponse) MarshalJSON() ([]byte, error)
- func (t *DocGenerationResponse) MergeDocGenerationResponse0(v DocGenerationResponse0) error
- func (t *DocGenerationResponse) MergeDocGenerationResponse1(v DocGenerationResponse1) error
- func (t *DocGenerationResponse) UnmarshalJSON(b []byte) error
- type DocGenerationResponse0
- type DocGenerationResponse1
- type DocumentLabelPlaybackJSONRequestBody
- type DocumentLabelPlaybackParams
- type DocumentLabelPlaybackResponse
- type DocumentRequest
- type DocumentRequestDocFormat
- type DocumentRequestRequestedDoc
- type DocumentResponse
- type DocumentResponseDocuments0
- type DocumentResponseDocuments1
- type DocumentResponseDocuments2
- type DocumentResponseDocuments3
- type DocumentResponseDocuments4
- type DocumentResponse_Documents
- func (t DocumentResponse_Documents) AsDocumentResponseDocuments0() (DocumentResponseDocuments0, error)
- func (t DocumentResponse_Documents) AsDocumentResponseDocuments1() (DocumentResponseDocuments1, error)
- func (t DocumentResponse_Documents) AsDocumentResponseDocuments2() (DocumentResponseDocuments2, error)
- func (t DocumentResponse_Documents) AsDocumentResponseDocuments3() (DocumentResponseDocuments3, error)
- func (t DocumentResponse_Documents) AsDocumentResponseDocuments4() (DocumentResponseDocuments4, error)
- func (t *DocumentResponse_Documents) FromDocumentResponseDocuments0(v DocumentResponseDocuments0) error
- func (t *DocumentResponse_Documents) FromDocumentResponseDocuments1(v DocumentResponseDocuments1) error
- func (t *DocumentResponse_Documents) FromDocumentResponseDocuments2(v DocumentResponseDocuments2) error
- func (t *DocumentResponse_Documents) FromDocumentResponseDocuments3(v DocumentResponseDocuments3) error
- func (t *DocumentResponse_Documents) FromDocumentResponseDocuments4(v DocumentResponseDocuments4) error
- func (t DocumentResponse_Documents) MarshalJSON() ([]byte, error)
- func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments0(v DocumentResponseDocuments0) error
- func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments1(v DocumentResponseDocuments1) error
- func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments2(v DocumentResponseDocuments2) error
- func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments3(v DocumentResponseDocuments3) error
- func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments4(v DocumentResponseDocuments4) error
- func (t *DocumentResponse_Documents) UnmarshalJSON(b []byte) error
- type Error
- type ErrorResponse
- type HandlingUnits
- type HandlingUnitsFreightClass
- type HandlingUnitsType
- type HttpRequestDoer
- type LabelDetails
- type LabelDetailsOpTyp
- type LabelResponse
- func (t LabelResponse) AsLabelResponse0() (LabelResponse0, error)
- func (t LabelResponse) AsLabelResponse1() (LabelResponse1, error)
- func (t *LabelResponse) FromLabelResponse0(v LabelResponse0) error
- func (t *LabelResponse) FromLabelResponse1(v LabelResponse1) error
- func (t LabelResponse) MarshalJSON() ([]byte, error)
- func (t *LabelResponse) MergeLabelResponse0(v LabelResponse0) error
- func (t *LabelResponse) MergeLabelResponse1(v LabelResponse1) error
- func (t *LabelResponse) UnmarshalJSON(b []byte) error
- type LabelResponse0
- type LabelResponse1
- type Package
- type PackageWeight
- type PackageWeightUnitOfMeasurement
- type RequestEditorFn
- type WarningMessage
Constants ¶
const (
Oauth2Scopes = "oauth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCloseoutMasterShipmentRequest ¶
func NewCloseoutMasterShipmentRequest(server string, usiNumber string, params *CloseoutMasterShipmentParams, body CloseoutMasterShipmentJSONRequestBody) (*http.Request, error)
NewCloseoutMasterShipmentRequest calls the generic CloseoutMasterShipment builder with application/json body
func NewCloseoutMasterShipmentRequestWithBody ¶
func NewCloseoutMasterShipmentRequestWithBody(server string, usiNumber string, params *CloseoutMasterShipmentParams, contentType string, body io.Reader) (*http.Request, error)
NewCloseoutMasterShipmentRequestWithBody generates requests for CloseoutMasterShipment with any type of body
func NewDeleteChildShipmentRequest ¶
func NewDeleteChildShipmentRequest(server string, usiNumber string, trackingNumber string, params *DeleteChildShipmentParams) (*http.Request, error)
NewDeleteChildShipmentRequest generates requests for DeleteChildShipment
func NewDeleteLtlChildShipmentRequest ¶
func NewDeleteLtlChildShipmentRequest(server string, usiNumber string, subProNumber string, params *DeleteLtlChildShipmentParams) (*http.Request, error)
NewDeleteLtlChildShipmentRequest generates requests for DeleteLtlChildShipment
func NewDeleteMasterShipmentRequest ¶
func NewDeleteMasterShipmentRequest(server string, usiNumber string, params *DeleteMasterShipmentParams) (*http.Request, error)
NewDeleteMasterShipmentRequest generates requests for DeleteMasterShipment
func NewDocumentLabelPlaybackRequest ¶
func NewDocumentLabelPlaybackRequest(server string, params *DocumentLabelPlaybackParams, body DocumentLabelPlaybackJSONRequestBody) (*http.Request, error)
NewDocumentLabelPlaybackRequest calls the generic DocumentLabelPlayback builder with application/json body
func NewDocumentLabelPlaybackRequestWithBody ¶
func NewDocumentLabelPlaybackRequestWithBody(server string, params *DocumentLabelPlaybackParams, contentType string, body io.Reader) (*http.Request, error)
NewDocumentLabelPlaybackRequestWithBody generates requests for DocumentLabelPlayback with any type of body
Types ¶
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) CloseoutMasterShipment ¶
func (c *Client) CloseoutMasterShipment(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, body CloseoutMasterShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CloseoutMasterShipmentWithBody ¶
func (*Client) DeleteChildShipment ¶
func (c *Client) DeleteChildShipment(ctx context.Context, usiNumber string, trackingNumber string, params *DeleteChildShipmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteLtlChildShipment ¶
func (c *Client) DeleteLtlChildShipment(ctx context.Context, usiNumber string, subProNumber string, params *DeleteLtlChildShipmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteMasterShipment ¶
func (c *Client) DeleteMasterShipment(ctx context.Context, usiNumber string, params *DeleteMasterShipmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DocumentLabelPlayback ¶
func (c *Client) DocumentLabelPlayback(ctx context.Context, params *DocumentLabelPlaybackParams, body DocumentLabelPlaybackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DocumentLabelPlaybackWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// DocumentLabelPlaybackWithBody request with any body
DocumentLabelPlaybackWithBody(ctx context.Context, params *DocumentLabelPlaybackParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DocumentLabelPlayback(ctx context.Context, params *DocumentLabelPlaybackParams, body DocumentLabelPlaybackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMasterShipment request
DeleteMasterShipment(ctx context.Context, usiNumber string, params *DeleteMasterShipmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteChildShipment request
DeleteChildShipment(ctx context.Context, usiNumber string, trackingNumber string, params *DeleteChildShipmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CloseoutMasterShipmentWithBody request with any body
CloseoutMasterShipmentWithBody(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CloseoutMasterShipment(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, body CloseoutMasterShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteLtlChildShipment request
DeleteLtlChildShipment(ctx context.Context, usiNumber string, subProNumber string, params *DeleteLtlChildShipmentParams, 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) CloseoutMasterShipmentWithBodyWithResponse ¶
func (c *ClientWithResponses) CloseoutMasterShipmentWithBodyWithResponse(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseoutMasterShipmentResponse, error)
CloseoutMasterShipmentWithBodyWithResponse request with arbitrary body returning *CloseoutMasterShipmentResponse
func (*ClientWithResponses) CloseoutMasterShipmentWithResponse ¶
func (c *ClientWithResponses) CloseoutMasterShipmentWithResponse(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, body CloseoutMasterShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseoutMasterShipmentResponse, error)
func (*ClientWithResponses) DeleteChildShipmentWithResponse ¶
func (c *ClientWithResponses) DeleteChildShipmentWithResponse(ctx context.Context, usiNumber string, trackingNumber string, params *DeleteChildShipmentParams, reqEditors ...RequestEditorFn) (*DeleteChildShipmentResponse, error)
DeleteChildShipmentWithResponse request returning *DeleteChildShipmentResponse
func (*ClientWithResponses) DeleteLtlChildShipmentWithResponse ¶
func (c *ClientWithResponses) DeleteLtlChildShipmentWithResponse(ctx context.Context, usiNumber string, subProNumber string, params *DeleteLtlChildShipmentParams, reqEditors ...RequestEditorFn) (*DeleteLtlChildShipmentResponse, error)
DeleteLtlChildShipmentWithResponse request returning *DeleteLtlChildShipmentResponse
func (*ClientWithResponses) DeleteMasterShipmentWithResponse ¶
func (c *ClientWithResponses) DeleteMasterShipmentWithResponse(ctx context.Context, usiNumber string, params *DeleteMasterShipmentParams, reqEditors ...RequestEditorFn) (*DeleteMasterShipmentResponse, error)
DeleteMasterShipmentWithResponse request returning *DeleteMasterShipmentResponse
func (*ClientWithResponses) DocumentLabelPlaybackWithBodyWithResponse ¶
func (c *ClientWithResponses) DocumentLabelPlaybackWithBodyWithResponse(ctx context.Context, params *DocumentLabelPlaybackParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DocumentLabelPlaybackResponse, error)
DocumentLabelPlaybackWithBodyWithResponse request with arbitrary body returning *DocumentLabelPlaybackResponse
func (*ClientWithResponses) DocumentLabelPlaybackWithResponse ¶
func (c *ClientWithResponses) DocumentLabelPlaybackWithResponse(ctx context.Context, params *DocumentLabelPlaybackParams, body DocumentLabelPlaybackJSONRequestBody, reqEditors ...RequestEditorFn) (*DocumentLabelPlaybackResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// DocumentLabelPlaybackWithBodyWithResponse request with any body
DocumentLabelPlaybackWithBodyWithResponse(ctx context.Context, params *DocumentLabelPlaybackParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DocumentLabelPlaybackResponse, error)
DocumentLabelPlaybackWithResponse(ctx context.Context, params *DocumentLabelPlaybackParams, body DocumentLabelPlaybackJSONRequestBody, reqEditors ...RequestEditorFn) (*DocumentLabelPlaybackResponse, error)
// DeleteMasterShipmentWithResponse request
DeleteMasterShipmentWithResponse(ctx context.Context, usiNumber string, params *DeleteMasterShipmentParams, reqEditors ...RequestEditorFn) (*DeleteMasterShipmentResponse, error)
// DeleteChildShipmentWithResponse request
DeleteChildShipmentWithResponse(ctx context.Context, usiNumber string, trackingNumber string, params *DeleteChildShipmentParams, reqEditors ...RequestEditorFn) (*DeleteChildShipmentResponse, error)
// CloseoutMasterShipmentWithBodyWithResponse request with any body
CloseoutMasterShipmentWithBodyWithResponse(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseoutMasterShipmentResponse, error)
CloseoutMasterShipmentWithResponse(ctx context.Context, usiNumber string, params *CloseoutMasterShipmentParams, body CloseoutMasterShipmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseoutMasterShipmentResponse, error)
// DeleteLtlChildShipmentWithResponse request
DeleteLtlChildShipmentWithResponse(ctx context.Context, usiNumber string, subProNumber string, params *DeleteLtlChildShipmentParams, reqEditors ...RequestEditorFn) (*DeleteLtlChildShipmentResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CloseoutMasterShipmentJSONRequestBody ¶
type CloseoutMasterShipmentJSONRequestBody = CloseoutRequest
CloseoutMasterShipmentJSONRequestBody defines body for CloseoutMasterShipment for application/json ContentType.
type CloseoutMasterShipmentParams ¶
type CloseoutMasterShipmentParams struct {
TransId string `json:"transId"`
// TransactionSrc Identifies the client/source application that is calling.
TransactionSrc string `json:"transactionSrc"`
}
CloseoutMasterShipmentParams defines parameters for CloseoutMasterShipment.
type CloseoutMasterShipmentResponse ¶
type CloseoutMasterShipmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CloseoutResponse
JSON207 *struct {
// BolLabelResponse Contains the response details for the generated Bill of Lading (BOL) label, including the format and data of the generated document.
BolLabelResponse DocGenerationResponse `json:"bolLabelResponse"`
// InvoiceLabelResponse Contains the response details for the generated invoice label, including the format and data of the generated document.
InvoiceLabelResponse DocGenerationResponse `json:"invoiceLabelResponse"`
// Message A message providing additional information about the response.
Message *string `json:"message,omitempty"`
// PalletLabelResponses A list of responses for the generated pallet labels, each containing details such as the label number and the base64 encoded data.
PalletLabelResponses LabelResponse `json:"palletLabelResponses"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON422 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseCloseoutMasterShipmentResponse ¶
func ParseCloseoutMasterShipmentResponse(rsp *http.Response) (*CloseoutMasterShipmentResponse, error)
ParseCloseoutMasterShipmentResponse parses an HTTP response from a CloseoutMasterShipmentWithResponse call
func (CloseoutMasterShipmentResponse) Status ¶
func (r CloseoutMasterShipmentResponse) Status() string
Status returns HTTPResponse.Status
func (CloseoutMasterShipmentResponse) StatusCode ¶
func (r CloseoutMasterShipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CloseoutRequest ¶
type CloseoutRequest struct {
// Shipment Contains all the details of the shipment.
Shipment struct {
// Packages The list of packages in the shipment.
Packages *[]Package `json:"packages,omitempty"`
// Shipper Contains the account number to be used in closeout request.
Shipper struct {
// AccountNumber The UPS account number of the shipper to be used to clouseout shipment.
AccountNumber string `json:"accountNumber"`
} `json:"shipper"`
} `json:"shipment"`
}
CloseoutRequest defines model for CloseoutRequest.
type CloseoutResponse ¶
type CloseoutResponse struct {
// BolLabelResponse Contains the response details for the generated Bill of Lading (BOL) label, including the format and data of the generated document.
BolLabelResponse DocGenerationResponse `json:"bolLabelResponse"`
// InvoiceLabelResponse Contains the response details for the generated invoice label, including the format and data of the generated document.
InvoiceLabelResponse DocGenerationResponse `json:"invoiceLabelResponse"`
// PalletLabelResponses A list of responses for the generated pallet labels, each containing details such as the label number and the base64 encoded data.
PalletLabelResponses LabelResponse `json:"palletLabelResponses"`
}
CloseoutResponse defines model for CloseoutResponse.
type DeleteChildShipmentParams ¶
type DeleteChildShipmentParams struct {
TransId string `json:"transId"`
// TransactionSrc Identifies the client/source application that is calling.
TransactionSrc string `json:"transactionSrc"`
}
DeleteChildShipmentParams defines parameters for DeleteChildShipment.
type DeleteChildShipmentResponse ¶
type DeleteChildShipmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteChildShipmentResponse ¶
func ParseDeleteChildShipmentResponse(rsp *http.Response) (*DeleteChildShipmentResponse, error)
ParseDeleteChildShipmentResponse parses an HTTP response from a DeleteChildShipmentWithResponse call
func (DeleteChildShipmentResponse) Status ¶
func (r DeleteChildShipmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteChildShipmentResponse) StatusCode ¶
func (r DeleteChildShipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteLtlChildShipmentParams ¶
type DeleteLtlChildShipmentParams struct {
TransId string `json:"transId"`
// TransactionSrc Identifies the client/source application that is calling.
TransactionSrc string `json:"transactionSrc"`
}
DeleteLtlChildShipmentParams defines parameters for DeleteLtlChildShipment.
type DeleteLtlChildShipmentResponse ¶
type DeleteLtlChildShipmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteLtlChildShipmentResponse ¶
func ParseDeleteLtlChildShipmentResponse(rsp *http.Response) (*DeleteLtlChildShipmentResponse, error)
ParseDeleteLtlChildShipmentResponse parses an HTTP response from a DeleteLtlChildShipmentWithResponse call
func (DeleteLtlChildShipmentResponse) Status ¶
func (r DeleteLtlChildShipmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteLtlChildShipmentResponse) StatusCode ¶
func (r DeleteLtlChildShipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMasterShipmentParams ¶
type DeleteMasterShipmentParams struct {
// ShipperAccountNumber The unique shipment identifier (USI) is used to create Master, LTL and Child shipments. Used for Freight shipments.
ShipperAccountNumber string `form:"shipper_account_number" json:"shipper_account_number"`
// TransId An identifier unique to the request.
TransId string `json:"transId"`
// TransactionSrc Identifies the client/source application that is calling.
TransactionSrc string `json:"transactionSrc"`
}
DeleteMasterShipmentParams defines parameters for DeleteMasterShipment.
type DeleteMasterShipmentResponse ¶
type DeleteMasterShipmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDeleteMasterShipmentResponse ¶
func ParseDeleteMasterShipmentResponse(rsp *http.Response) (*DeleteMasterShipmentResponse, error)
ParseDeleteMasterShipmentResponse parses an HTTP response from a DeleteMasterShipmentWithResponse call
func (DeleteMasterShipmentResponse) Status ¶
func (r DeleteMasterShipmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMasterShipmentResponse) StatusCode ¶
func (r DeleteMasterShipmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Dimensions ¶
type Dimensions struct {
// Height Height of the package/ltl.
Height float32 `json:"height"`
// Length Length of the package/ltl.
Length float32 `json:"length"`
// UnitOfMeasurement The code associated with unit of measurement. The requested code must be valid for the shipper country or territory.
// | Code | Description |
// | :--: | :-- |
// | IN | Inches |
// | CM | Centimeters |
UnitOfMeasurement DimensionsUnitOfMeasurement `json:"unitOfMeasurement"`
// Width Width of the package/ltl.
Width float32 `json:"width"`
}
Dimensions Dimensions for the handling unit.
type DimensionsUnitOfMeasurement ¶
type DimensionsUnitOfMeasurement string
DimensionsUnitOfMeasurement The code associated with unit of measurement. The requested code must be valid for the shipper country or territory. | Code | Description | | :--: | :-- | | IN | Inches | | CM | Centimeters |
const ( CM DimensionsUnitOfMeasurement = "CM" IN DimensionsUnitOfMeasurement = "IN" )
Defines values for DimensionsUnitOfMeasurement.
type DocGenerationFile ¶
type DocGenerationFile struct {
// Data The base64 encoded data of the generated document.
Data string `json:"data"`
// FileFormat The format of the generated document file.
FileFormat string `json:"fileFormat"`
// ReferenceId The unique reference identifier for the generated document.
ReferenceId string `json:"referenceId"`
}
DocGenerationFile Contains the details of a generated document file.
type DocGenerationResponse ¶
type DocGenerationResponse struct {
// Files A list of generated document files.
Files *[]DocGenerationFile `json:"files,omitempty"`
// Warning A warning message that may be returned if the document is not generated successfully.
Warning *WarningMessage `json:"warning,omitempty"`
// contains filtered or unexported fields
}
DocGenerationResponse Contains the details of the generated document files, such as the invoices, bill of lading and pallet labels.
func (DocGenerationResponse) AsDocGenerationResponse0 ¶
func (t DocGenerationResponse) AsDocGenerationResponse0() (DocGenerationResponse0, error)
AsDocGenerationResponse0 returns the union data inside the DocGenerationResponse as a DocGenerationResponse0
func (DocGenerationResponse) AsDocGenerationResponse1 ¶
func (t DocGenerationResponse) AsDocGenerationResponse1() (DocGenerationResponse1, error)
AsDocGenerationResponse1 returns the union data inside the DocGenerationResponse as a DocGenerationResponse1
func (*DocGenerationResponse) FromDocGenerationResponse0 ¶
func (t *DocGenerationResponse) FromDocGenerationResponse0(v DocGenerationResponse0) error
FromDocGenerationResponse0 overwrites any union data inside the DocGenerationResponse as the provided DocGenerationResponse0
func (*DocGenerationResponse) FromDocGenerationResponse1 ¶
func (t *DocGenerationResponse) FromDocGenerationResponse1(v DocGenerationResponse1) error
FromDocGenerationResponse1 overwrites any union data inside the DocGenerationResponse as the provided DocGenerationResponse1
func (DocGenerationResponse) MarshalJSON ¶
func (t DocGenerationResponse) MarshalJSON() ([]byte, error)
func (*DocGenerationResponse) MergeDocGenerationResponse0 ¶
func (t *DocGenerationResponse) MergeDocGenerationResponse0(v DocGenerationResponse0) error
MergeDocGenerationResponse0 performs a merge with any union data inside the DocGenerationResponse, using the provided DocGenerationResponse0
func (*DocGenerationResponse) MergeDocGenerationResponse1 ¶
func (t *DocGenerationResponse) MergeDocGenerationResponse1(v DocGenerationResponse1) error
MergeDocGenerationResponse1 performs a merge with any union data inside the DocGenerationResponse, using the provided DocGenerationResponse1
func (*DocGenerationResponse) UnmarshalJSON ¶
func (t *DocGenerationResponse) UnmarshalJSON(b []byte) error
type DocGenerationResponse0 ¶
type DocGenerationResponse0 = interface{}
DocGenerationResponse0 defines model for .
type DocGenerationResponse1 ¶
type DocGenerationResponse1 = interface{}
DocGenerationResponse1 defines model for .
type DocumentLabelPlaybackJSONRequestBody ¶
type DocumentLabelPlaybackJSONRequestBody = DocumentRequest
DocumentLabelPlaybackJSONRequestBody defines body for DocumentLabelPlayback for application/json ContentType.
type DocumentLabelPlaybackParams ¶
type DocumentLabelPlaybackParams struct {
TransId string `json:"transId"`
// TransactionSrc Identifies the client/source application that is calling.
TransactionSrc string `json:"transactionSrc"`
}
DocumentLabelPlaybackParams defines parameters for DocumentLabelPlayback.
type DocumentLabelPlaybackResponse ¶
type DocumentLabelPlaybackResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DocumentResponse
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON404 *ErrorResponse
JSON422 *ErrorResponse
JSON500 *ErrorResponse
}
func ParseDocumentLabelPlaybackResponse ¶
func ParseDocumentLabelPlaybackResponse(rsp *http.Response) (*DocumentLabelPlaybackResponse, error)
ParseDocumentLabelPlaybackResponse parses an HTTP response from a DocumentLabelPlaybackWithResponse call
func (DocumentLabelPlaybackResponse) Status ¶
func (r DocumentLabelPlaybackResponse) Status() string
Status returns HTTPResponse.Status
func (DocumentLabelPlaybackResponse) StatusCode ¶
func (r DocumentLabelPlaybackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DocumentRequest ¶
type DocumentRequest struct {
// DocFormat Image format type for the label requested by customer.
// | Code | Description |
// | :----: | :-----------: |
// | ZPL | ZPL format |
// | EPL | EPL format |
// | STARPL | STARPL format |
// | SPL | SPL format |
// | PNG | PNG format |
// | PDF | PDF format |
// | GIF | GIF format |
DocFormat DocumentRequestDocFormat `json:"docFormat"`
// RequestedDoc The type of document requested for generation.
// | Code | Description |
// | :----: | :-----------------------------: |
// | CCI | Consolidated Commercial Invoice |
// | CBOL | Consolidated Bill of Lading |
// | BOL | Bill of Lading |
// | PLT | Pallet Label |
// | PKGPLT | Package Pallet Label |
RequestedDoc DocumentRequestRequestedDoc `json:"requestedDoc"`
// ShipperAccountNumber The UPS account number of the shipper that was used in clouseout shipment.
ShipperAccountNumber string `json:"shipperAccountNumber"`
// SubproNumber A unique tracking number used for LTL shipments.
SubproNumber *string `json:"subproNumber,omitempty"`
// UsiNumber The unique shipment identifier (USI) is used to create Master, LTL and Child shipments. Used for Freight shipments.
UsiNumber string `json:"usiNumber"`
}
DocumentRequest Request payload containing shipment details required to generate documents
type DocumentRequestDocFormat ¶
type DocumentRequestDocFormat string
DocumentRequestDocFormat Image format type for the label requested by customer. | Code | Description | | :----: | :-----------: | | ZPL | ZPL format | | EPL | EPL format | | STARPL | STARPL format | | SPL | SPL format | | PNG | PNG format | | PDF | PDF format | | GIF | GIF format |
const ( DocumentRequestDocFormatEPL DocumentRequestDocFormat = "EPL" DocumentRequestDocFormatGIF DocumentRequestDocFormat = "GIF" DocumentRequestDocFormatPDF DocumentRequestDocFormat = "PDF" DocumentRequestDocFormatPNG DocumentRequestDocFormat = "PNG" DocumentRequestDocFormatSPL DocumentRequestDocFormat = "SPL" DocumentRequestDocFormatSTARPL DocumentRequestDocFormat = "STARPL" DocumentRequestDocFormatZPL DocumentRequestDocFormat = "ZPL" )
Defines values for DocumentRequestDocFormat.
type DocumentRequestRequestedDoc ¶
type DocumentRequestRequestedDoc string
DocumentRequestRequestedDoc The type of document requested for generation. | Code | Description | | :----: | :-----------------------------: | | CCI | Consolidated Commercial Invoice | | CBOL | Consolidated Bill of Lading | | BOL | Bill of Lading | | PLT | Pallet Label | | PKGPLT | Package Pallet Label |
const ( BOL DocumentRequestRequestedDoc = "BOL" CBOL DocumentRequestRequestedDoc = "CBOL" CCI DocumentRequestRequestedDoc = "CCI" PKGPLT DocumentRequestRequestedDoc = "PKGPLT" PLT DocumentRequestRequestedDoc = "PLT" )
Defines values for DocumentRequestRequestedDoc.
type DocumentResponse ¶
type DocumentResponse struct {
// Documents Contains the generated documents
Documents *DocumentResponse_Documents `json:"documents,omitempty"`
}
DocumentResponse Response payload containing the generated documents
type DocumentResponseDocuments0 ¶
type DocumentResponseDocuments0 = interface{}
DocumentResponseDocuments0 defines model for .
type DocumentResponseDocuments1 ¶
type DocumentResponseDocuments1 = interface{}
DocumentResponseDocuments1 defines model for .
type DocumentResponseDocuments2 ¶
type DocumentResponseDocuments2 = interface{}
DocumentResponseDocuments2 defines model for .
type DocumentResponseDocuments3 ¶
type DocumentResponseDocuments3 = interface{}
DocumentResponseDocuments3 defines model for .
type DocumentResponseDocuments4 ¶
type DocumentResponseDocuments4 = interface{}
DocumentResponseDocuments4 defines model for .
type DocumentResponse_Documents ¶
type DocumentResponse_Documents struct {
// Bol Contains the generated Bill of Lading (BOL) document. Document will be PDF format and base64 encoded. See base64-data-samples document for sample.
Bol *string `json:"bol,omitempty"`
// Cbol Contains the generated Consolidated Bill of Lading (CBOL) document. Document will be PDF format and base64 encoded. See base64-data-samples document for sample.
Cbol *string `json:"cbol,omitempty"`
// Cci Contains the generated Consolidated Commercial Invoice (CCI) document. Document will be PDF format and base64 encoded. See base64-data-samples document for sample.
Cci *string `json:"cci,omitempty"`
// Pkgplt Contains the generated Packge Pallet Labels (PKGPLT) documents. Labels will contain format requested by client and be base64 encoded. See base64-data-samples document for sample.
Pkgplt *[]string `json:"pkgplt,omitempty"`
// Plt Contains the generated Pallet Label (PLT) documents. Labels will contain format requested by client and be base64 encoded. See base64-data-samples document for sample.
Plt *[]string `json:"plt,omitempty"`
// contains filtered or unexported fields
}
DocumentResponse_Documents Contains the generated documents
func (DocumentResponse_Documents) AsDocumentResponseDocuments0 ¶
func (t DocumentResponse_Documents) AsDocumentResponseDocuments0() (DocumentResponseDocuments0, error)
AsDocumentResponseDocuments0 returns the union data inside the DocumentResponse_Documents as a DocumentResponseDocuments0
func (DocumentResponse_Documents) AsDocumentResponseDocuments1 ¶
func (t DocumentResponse_Documents) AsDocumentResponseDocuments1() (DocumentResponseDocuments1, error)
AsDocumentResponseDocuments1 returns the union data inside the DocumentResponse_Documents as a DocumentResponseDocuments1
func (DocumentResponse_Documents) AsDocumentResponseDocuments2 ¶
func (t DocumentResponse_Documents) AsDocumentResponseDocuments2() (DocumentResponseDocuments2, error)
AsDocumentResponseDocuments2 returns the union data inside the DocumentResponse_Documents as a DocumentResponseDocuments2
func (DocumentResponse_Documents) AsDocumentResponseDocuments3 ¶
func (t DocumentResponse_Documents) AsDocumentResponseDocuments3() (DocumentResponseDocuments3, error)
AsDocumentResponseDocuments3 returns the union data inside the DocumentResponse_Documents as a DocumentResponseDocuments3
func (DocumentResponse_Documents) AsDocumentResponseDocuments4 ¶
func (t DocumentResponse_Documents) AsDocumentResponseDocuments4() (DocumentResponseDocuments4, error)
AsDocumentResponseDocuments4 returns the union data inside the DocumentResponse_Documents as a DocumentResponseDocuments4
func (*DocumentResponse_Documents) FromDocumentResponseDocuments0 ¶
func (t *DocumentResponse_Documents) FromDocumentResponseDocuments0(v DocumentResponseDocuments0) error
FromDocumentResponseDocuments0 overwrites any union data inside the DocumentResponse_Documents as the provided DocumentResponseDocuments0
func (*DocumentResponse_Documents) FromDocumentResponseDocuments1 ¶
func (t *DocumentResponse_Documents) FromDocumentResponseDocuments1(v DocumentResponseDocuments1) error
FromDocumentResponseDocuments1 overwrites any union data inside the DocumentResponse_Documents as the provided DocumentResponseDocuments1
func (*DocumentResponse_Documents) FromDocumentResponseDocuments2 ¶
func (t *DocumentResponse_Documents) FromDocumentResponseDocuments2(v DocumentResponseDocuments2) error
FromDocumentResponseDocuments2 overwrites any union data inside the DocumentResponse_Documents as the provided DocumentResponseDocuments2
func (*DocumentResponse_Documents) FromDocumentResponseDocuments3 ¶
func (t *DocumentResponse_Documents) FromDocumentResponseDocuments3(v DocumentResponseDocuments3) error
FromDocumentResponseDocuments3 overwrites any union data inside the DocumentResponse_Documents as the provided DocumentResponseDocuments3
func (*DocumentResponse_Documents) FromDocumentResponseDocuments4 ¶
func (t *DocumentResponse_Documents) FromDocumentResponseDocuments4(v DocumentResponseDocuments4) error
FromDocumentResponseDocuments4 overwrites any union data inside the DocumentResponse_Documents as the provided DocumentResponseDocuments4
func (DocumentResponse_Documents) MarshalJSON ¶
func (t DocumentResponse_Documents) MarshalJSON() ([]byte, error)
func (*DocumentResponse_Documents) MergeDocumentResponseDocuments0 ¶
func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments0(v DocumentResponseDocuments0) error
MergeDocumentResponseDocuments0 performs a merge with any union data inside the DocumentResponse_Documents, using the provided DocumentResponseDocuments0
func (*DocumentResponse_Documents) MergeDocumentResponseDocuments1 ¶
func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments1(v DocumentResponseDocuments1) error
MergeDocumentResponseDocuments1 performs a merge with any union data inside the DocumentResponse_Documents, using the provided DocumentResponseDocuments1
func (*DocumentResponse_Documents) MergeDocumentResponseDocuments2 ¶
func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments2(v DocumentResponseDocuments2) error
MergeDocumentResponseDocuments2 performs a merge with any union data inside the DocumentResponse_Documents, using the provided DocumentResponseDocuments2
func (*DocumentResponse_Documents) MergeDocumentResponseDocuments3 ¶
func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments3(v DocumentResponseDocuments3) error
MergeDocumentResponseDocuments3 performs a merge with any union data inside the DocumentResponse_Documents, using the provided DocumentResponseDocuments3
func (*DocumentResponse_Documents) MergeDocumentResponseDocuments4 ¶
func (t *DocumentResponse_Documents) MergeDocumentResponseDocuments4(v DocumentResponseDocuments4) error
MergeDocumentResponseDocuments4 performs a merge with any union data inside the DocumentResponse_Documents, using the provided DocumentResponseDocuments4
func (*DocumentResponse_Documents) UnmarshalJSON ¶
func (t *DocumentResponse_Documents) UnmarshalJSON(b []byte) error
type Error ¶
type Error struct {
// Code The error code.
Code string `json:"code"`
// Message The error message.
Message string `json:"message"`
}
Error The error entity that contains the code and description of an error.
type ErrorResponse ¶
type ErrorResponse struct {
// Response errors container
Response struct {
// Errors error payload - array containing one or more Errors
Errors []Error `json:"errors"`
} `json:"response"`
}
ErrorResponse response container
type HandlingUnits ¶
type HandlingUnits struct {
// Dimensions Dimensions for the handling unit.
Dimensions Dimensions `json:"dimensions"`
// FreightClass Freight class of the handling unit.
// | Code | Description |
// | :--: | :--------------------------------------------------------------------------------------: |
// | 50 | over 50 lbs - Fits on standard shrink-wrapped 4X4 pallet, very durable |
// | 55 | 35-50 pounds - Bricks, cement, mortar, hardwood flooring |
// | 60 | 30-35 pounds - Car accessories & car parts |
// | 65 | 22.5-30 pounds - Car accessories & car parts, bottled beverages, books in boxes |
// | 70 | 15 to 22.5 pounds - Car accessories & car parts, food items, automobile engines |
// | 77.5 | 13.5 to 15 pounds - Tires, bathroom fixtures |
// | 85 | 12-13.5 pounds - Crated machinery, cast iron stoves |
// | 92.5 | 10.5-12 pounds - Computers, monitors, refrigerators |
// | 100 | 9-10.5 pounds - Boat covers, car covers, canvas, wine cases, caskets |
// | 110 | 8-9 pounds - Cabinets, framed artwork, table saw |
// | 125 | 7-8 pounds - Small Household appliances |
// | 150 | 6-7 pounds - Auto sheet metal parts, bookcases |
// | 175 | 5-6 pounds - Clothing, couches stuffed furniture |
// | 200 | 4-5 pounds - Auto sheet metal parts, aircraft parts, aluminum table, packaged mattresses |
// | 250 | 3-4 pounds - Bamboo furniture, mattress and box spring, plasma TV |
// | 300 | 2-3 pounds - Wood cabinets, tables, chairs setup, model boats |
// | 400 | 1-2 pounds - Deer antlers |
// | 500 | Less than 1 lbs - Bags of gold dust, ping pong balls |
FreightClass HandlingUnitsFreightClass `json:"freightClass"`
// PackageWeight Weight for the handling unit.
PackageWeight PackageWeight `json:"packageWeight"`
// TransportationService Specifies the transportation service options for the handling unit, including the number of packages for air and ground services.
TransportationService struct {
// AirService Number of packages for air service. If groundService is 0, this must be at least 1.
AirService int `json:"airService"`
// GroundService Number of packages for ground service. If airService is 0, this must be at least 1.
GroundService int `json:"groundService"`
} `json:"transportationService"`
// Type The type of handling unit, such as boxes, crates, or pallets, used to describe how the shipment is packaged and handled.
Type HandlingUnitsType `json:"type"`
}
HandlingUnits Used to provide information about the handling units in the package/ltl.
type HandlingUnitsFreightClass ¶
type HandlingUnitsFreightClass float32
HandlingUnitsFreightClass Freight class of the handling unit. | Code | Description | | :--: | :--------------------------------------------------------------------------------------: | | 50 | over 50 lbs - Fits on standard shrink-wrapped 4X4 pallet, very durable | | 55 | 35-50 pounds - Bricks, cement, mortar, hardwood flooring | | 60 | 30-35 pounds - Car accessories & car parts | | 65 | 22.5-30 pounds - Car accessories & car parts, bottled beverages, books in boxes | | 70 | 15 to 22.5 pounds - Car accessories & car parts, food items, automobile engines | | 77.5 | 13.5 to 15 pounds - Tires, bathroom fixtures | | 85 | 12-13.5 pounds - Crated machinery, cast iron stoves | | 92.5 | 10.5-12 pounds - Computers, monitors, refrigerators | | 100 | 9-10.5 pounds - Boat covers, car covers, canvas, wine cases, caskets | | 110 | 8-9 pounds - Cabinets, framed artwork, table saw | | 125 | 7-8 pounds - Small Household appliances | | 150 | 6-7 pounds - Auto sheet metal parts, bookcases | | 175 | 5-6 pounds - Clothing, couches stuffed furniture | | 200 | 4-5 pounds - Auto sheet metal parts, aircraft parts, aluminum table, packaged mattresses | | 250 | 3-4 pounds - Bamboo furniture, mattress and box spring, plasma TV | | 300 | 2-3 pounds - Wood cabinets, tables, chairs setup, model boats | | 400 | 1-2 pounds - Deer antlers | | 500 | Less than 1 lbs - Bags of gold dust, ping pong balls |
const ( N100 HandlingUnitsFreightClass = 100 N110 HandlingUnitsFreightClass = 110 N125 HandlingUnitsFreightClass = 125 N150 HandlingUnitsFreightClass = 150 N175 HandlingUnitsFreightClass = 175 N200 HandlingUnitsFreightClass = 200 N250 HandlingUnitsFreightClass = 250 N300 HandlingUnitsFreightClass = 300 N400 HandlingUnitsFreightClass = 400 N50 HandlingUnitsFreightClass = 50 N500 HandlingUnitsFreightClass = 500 N55 HandlingUnitsFreightClass = 55 N60 HandlingUnitsFreightClass = 60 N65 HandlingUnitsFreightClass = 65 N70 HandlingUnitsFreightClass = 70 N775 HandlingUnitsFreightClass = 77.5 N85 HandlingUnitsFreightClass = 85 N925 HandlingUnitsFreightClass = 92.5 )
Defines values for HandlingUnitsFreightClass.
type HandlingUnitsType ¶
type HandlingUnitsType string
HandlingUnitsType The type of handling unit, such as boxes, crates, or pallets, used to describe how the shipment is packaged and handled.
const ( BAGS HandlingUnitsType = "BAGS" BOXES HandlingUnitsType = "BOXES" CARTONS HandlingUnitsType = "CARTONS" CRATES HandlingUnitsType = "CRATES" DRUMS HandlingUnitsType = "DRUMS" PALLETSKIDS HandlingUnitsType = "PALLET_SKIDS" ROLLS HandlingUnitsType = "ROLLS" TUBES HandlingUnitsType = "TUBES" )
Defines values for HandlingUnitsType.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LabelDetails ¶
type LabelDetails struct {
// LblData The base64 encoded data of the generated label.
LblData string `json:"lblData"`
// LblNmbr The unique label number assigned to the generated label.
LblNmbr string `json:"lblNmbr"`
// OpTyp Image format type for the label requested by customer.
// | Code | Description |
// | :----: | :-----------: |
// | ZPL | ZPL format |
// | EPL | EPL format |
// | STARPL | STARPL format |
// | SPL | SPL format |
// | PNG | PNG format |
// | PDF | PDF format |
// | GIF | GIF format |
OpTyp LabelDetailsOpTyp `json:"opTyp"`
}
LabelDetails Contains the response details for a label generation request.
type LabelDetailsOpTyp ¶
type LabelDetailsOpTyp string
LabelDetailsOpTyp Image format type for the label requested by customer. | Code | Description | | :----: | :-----------: | | ZPL | ZPL format | | EPL | EPL format | | STARPL | STARPL format | | SPL | SPL format | | PNG | PNG format | | PDF | PDF format | | GIF | GIF format |
const ( LabelDetailsOpTypEPL LabelDetailsOpTyp = "EPL" LabelDetailsOpTypGIF LabelDetailsOpTyp = "GIF" LabelDetailsOpTypPDF LabelDetailsOpTyp = "PDF" LabelDetailsOpTypPNG LabelDetailsOpTyp = "PNG" LabelDetailsOpTypSPL LabelDetailsOpTyp = "SPL" LabelDetailsOpTypSTARPL LabelDetailsOpTyp = "STARPL" LabelDetailsOpTypZPL LabelDetailsOpTyp = "ZPL" )
Defines values for LabelDetailsOpTyp.
type LabelResponse ¶
type LabelResponse struct {
// Files A list of generated Label files.
Files *[]LabelDetails `json:"files,omitempty"`
// Warning A warning message that may be returned if the document is not generated successfully.
Warning *WarningMessage `json:"warning,omitempty"`
// contains filtered or unexported fields
}
LabelResponse Contains either a warning message or the label response files.
func (LabelResponse) AsLabelResponse0 ¶
func (t LabelResponse) AsLabelResponse0() (LabelResponse0, error)
AsLabelResponse0 returns the union data inside the LabelResponse as a LabelResponse0
func (LabelResponse) AsLabelResponse1 ¶
func (t LabelResponse) AsLabelResponse1() (LabelResponse1, error)
AsLabelResponse1 returns the union data inside the LabelResponse as a LabelResponse1
func (*LabelResponse) FromLabelResponse0 ¶
func (t *LabelResponse) FromLabelResponse0(v LabelResponse0) error
FromLabelResponse0 overwrites any union data inside the LabelResponse as the provided LabelResponse0
func (*LabelResponse) FromLabelResponse1 ¶
func (t *LabelResponse) FromLabelResponse1(v LabelResponse1) error
FromLabelResponse1 overwrites any union data inside the LabelResponse as the provided LabelResponse1
func (LabelResponse) MarshalJSON ¶
func (t LabelResponse) MarshalJSON() ([]byte, error)
func (*LabelResponse) MergeLabelResponse0 ¶
func (t *LabelResponse) MergeLabelResponse0(v LabelResponse0) error
MergeLabelResponse0 performs a merge with any union data inside the LabelResponse, using the provided LabelResponse0
func (*LabelResponse) MergeLabelResponse1 ¶
func (t *LabelResponse) MergeLabelResponse1(v LabelResponse1) error
MergeLabelResponse1 performs a merge with any union data inside the LabelResponse, using the provided LabelResponse1
func (*LabelResponse) UnmarshalJSON ¶
func (t *LabelResponse) UnmarshalJSON(b []byte) error
type Package ¶
type Package struct {
// HandlingUnits Used to provide information about the handling units in the package/ltl.
HandlingUnits HandlingUnits `json:"handlingUnits"`
// NumberOfIdenticalUnits Number of identical units in the package/ltl.
NumberOfIdenticalUnits int `json:"numberOfIdenticalUnits"`
}
Package defines model for Package.
type PackageWeight ¶
type PackageWeight struct {
// UnitOfMeasurement Unit of measurement of the weight.
// | Code | Description |
// | :--: | :-- |
// | KGS | Kilograms |
// | LBS | Pounds |
UnitOfMeasurement PackageWeightUnitOfMeasurement `json:"unitOfMeasurement"`
// Weight Weight of the package/ltl.
Weight float32 `json:"weight"`
}
PackageWeight Weight for the handling unit.
type PackageWeightUnitOfMeasurement ¶
type PackageWeightUnitOfMeasurement string
PackageWeightUnitOfMeasurement Unit of measurement of the weight. | Code | Description | | :--: | :-- | | KGS | Kilograms | | LBS | Pounds |
const ( KGS PackageWeightUnitOfMeasurement = "KGS" LBS PackageWeightUnitOfMeasurement = "LBS" )
Defines values for PackageWeightUnitOfMeasurement.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type WarningMessage ¶
type WarningMessage = string
WarningMessage A warning message that may be returned if the document is not generated successfully.