Documentation
¶
Overview ¶
Package prenotification 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 NewDeprecatedPreNotificationRequest(server string, deprecatedVersion string, ...) (*http.Request, error)
- func NewDeprecatedPreNotificationRequestWithBody(server string, deprecatedVersion string, ...) (*http.Request, error)
- func NewPreNotificationOpRequest(server string, version string, params *PreNotificationOpParams, ...) (*http.Request, error)
- func NewPreNotificationOpRequestWithBody(server string, version string, params *PreNotificationOpParams, ...) (*http.Request, error)
- type Client
- func (c *Client) DeprecatedPreNotification(ctx context.Context, deprecatedVersion string, ...) (*http.Response, error)
- func (c *Client) DeprecatedPreNotificationWithBody(ctx context.Context, deprecatedVersion string, ...) (*http.Response, error)
- func (c *Client) PreNotificationOp(ctx context.Context, version string, params *PreNotificationOpParams, ...) (*http.Response, error)
- func (c *Client) PreNotificationOpWithBody(ctx context.Context, version string, params *PreNotificationOpParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeprecatedPreNotificationWithBodyWithResponse(ctx context.Context, deprecatedVersion string, ...) (*DeprecatedPreNotificationResponse, error)
- func (c *ClientWithResponses) DeprecatedPreNotificationWithResponse(ctx context.Context, deprecatedVersion string, ...) (*DeprecatedPreNotificationResponse, error)
- func (c *ClientWithResponses) PreNotificationOpWithBodyWithResponse(ctx context.Context, version string, params *PreNotificationOpParams, ...) (*PreNotificationOpResponse, error)
- func (c *ClientWithResponses) PreNotificationOpWithResponse(ctx context.Context, version string, params *PreNotificationOpParams, ...) (*PreNotificationOpResponse, error)
- type ClientWithResponsesInterface
- type CommonErrorResponse
- type DeprecatedPreNotificationJSONRequestBody
- type DeprecatedPreNotificationParams
- type DeprecatedPreNotificationResponse
- type ErrorMessage
- type ErrorResponse
- type HttpRequestDoer
- type PRENOTIFICATIONRequestWrapper
- type PRENOTIFICATIONResponseWrapper
- type PackageChemicalRecord
- type PackagePackageWeight
- type PackageWeightUnitOfMeasurement
- type PreNotificationOpJSONRequestBody
- type PreNotificationOpParams
- type PreNotificationOpResponse
- type PreNotificationRequest
- type PreNotificationRequestRequest
- type PreNotificationRequestShipment
- type PreNotificationResponse
- type PreNotificationResponseResponse
- type RequestEditorFn
- type RequestTransactionReference
- type ResponseAlert
- type ResponseResponseStatus
- type ResponseTransactionReference
- type ShipmentPackage
- type ShipmentService
- type ShipmentShipFromAddress
- type ShipmentShipToAddress
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeprecatedPreNotificationRequest ¶
func NewDeprecatedPreNotificationRequest(server string, deprecatedVersion string, params *DeprecatedPreNotificationParams, body DeprecatedPreNotificationJSONRequestBody) (*http.Request, error)
NewDeprecatedPreNotificationRequest calls the generic DeprecatedPreNotification builder with application/json body
func NewDeprecatedPreNotificationRequestWithBody ¶
func NewDeprecatedPreNotificationRequestWithBody(server string, deprecatedVersion string, params *DeprecatedPreNotificationParams, contentType string, body io.Reader) (*http.Request, error)
NewDeprecatedPreNotificationRequestWithBody generates requests for DeprecatedPreNotification with any type of body
func NewPreNotificationOpRequest ¶
func NewPreNotificationOpRequest(server string, version string, params *PreNotificationOpParams, body PreNotificationOpJSONRequestBody) (*http.Request, error)
NewPreNotificationOpRequest calls the generic PreNotificationOp builder with application/json body
func NewPreNotificationOpRequestWithBody ¶
func NewPreNotificationOpRequestWithBody(server string, version string, params *PreNotificationOpParams, contentType string, body io.Reader) (*http.Request, error)
NewPreNotificationOpRequestWithBody generates requests for PreNotificationOp 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) DeprecatedPreNotification ¶
func (c *Client) DeprecatedPreNotification(ctx context.Context, deprecatedVersion string, params *DeprecatedPreNotificationParams, body DeprecatedPreNotificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeprecatedPreNotificationWithBody ¶
func (*Client) PreNotificationOp ¶
func (c *Client) PreNotificationOp(ctx context.Context, version string, params *PreNotificationOpParams, body PreNotificationOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PreNotificationOpWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// DeprecatedPreNotificationWithBody request with any body
DeprecatedPreNotificationWithBody(ctx context.Context, deprecatedVersion string, params *DeprecatedPreNotificationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeprecatedPreNotification(ctx context.Context, deprecatedVersion string, params *DeprecatedPreNotificationParams, body DeprecatedPreNotificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PreNotificationOpWithBody request with any body
PreNotificationOpWithBody(ctx context.Context, version string, params *PreNotificationOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PreNotificationOp(ctx context.Context, version string, params *PreNotificationOpParams, body PreNotificationOpJSONRequestBody, 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) DeprecatedPreNotificationWithBodyWithResponse ¶
func (c *ClientWithResponses) DeprecatedPreNotificationWithBodyWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedPreNotificationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedPreNotificationResponse, error)
DeprecatedPreNotificationWithBodyWithResponse request with arbitrary body returning *DeprecatedPreNotificationResponse
func (*ClientWithResponses) DeprecatedPreNotificationWithResponse ¶
func (c *ClientWithResponses) DeprecatedPreNotificationWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedPreNotificationParams, body DeprecatedPreNotificationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedPreNotificationResponse, error)
func (*ClientWithResponses) PreNotificationOpWithBodyWithResponse ¶
func (c *ClientWithResponses) PreNotificationOpWithBodyWithResponse(ctx context.Context, version string, params *PreNotificationOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreNotificationOpResponse, error)
PreNotificationOpWithBodyWithResponse request with arbitrary body returning *PreNotificationOpResponse
func (*ClientWithResponses) PreNotificationOpWithResponse ¶
func (c *ClientWithResponses) PreNotificationOpWithResponse(ctx context.Context, version string, params *PreNotificationOpParams, body PreNotificationOpJSONRequestBody, reqEditors ...RequestEditorFn) (*PreNotificationOpResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// DeprecatedPreNotificationWithBodyWithResponse request with any body
DeprecatedPreNotificationWithBodyWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedPreNotificationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedPreNotificationResponse, error)
DeprecatedPreNotificationWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedPreNotificationParams, body DeprecatedPreNotificationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedPreNotificationResponse, error)
// PreNotificationOpWithBodyWithResponse request with any body
PreNotificationOpWithBodyWithResponse(ctx context.Context, version string, params *PreNotificationOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PreNotificationOpResponse, error)
PreNotificationOpWithResponse(ctx context.Context, version string, params *PreNotificationOpParams, body PreNotificationOpJSONRequestBody, reqEditors ...RequestEditorFn) (*PreNotificationOpResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CommonErrorResponse ¶
type CommonErrorResponse struct {
// Errors The error array containing any errors that occurred.
Errors *[]ErrorMessage `json:"errors,omitempty"`
}
CommonErrorResponse The error response containing any errors that occurred.
type DeprecatedPreNotificationJSONRequestBody ¶
type DeprecatedPreNotificationJSONRequestBody = PRENOTIFICATIONRequestWrapper
DeprecatedPreNotificationJSONRequestBody defines body for DeprecatedPreNotification for application/json ContentType.
type DeprecatedPreNotificationParams ¶
type DeprecatedPreNotificationParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
DeprecatedPreNotificationParams defines parameters for DeprecatedPreNotification.
type DeprecatedPreNotificationResponse ¶
type DeprecatedPreNotificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PRENOTIFICATIONResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseDeprecatedPreNotificationResponse ¶
func ParseDeprecatedPreNotificationResponse(rsp *http.Response) (*DeprecatedPreNotificationResponse, error)
ParseDeprecatedPreNotificationResponse parses an HTTP response from a DeprecatedPreNotificationWithResponse call
func (DeprecatedPreNotificationResponse) Status ¶
func (r DeprecatedPreNotificationResponse) Status() string
Status returns HTTPResponse.Status
func (DeprecatedPreNotificationResponse) StatusCode ¶
func (r DeprecatedPreNotificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorMessage ¶
type ErrorMessage struct {
// Code The error code.
Code *string `json:"code,omitempty"`
// Message The error message.
Message *string `json:"message,omitempty"`
}
ErrorMessage The error response containing any errors that occurred.
type ErrorResponse ¶
type ErrorResponse struct {
// Response The error response containing any errors that occurred.
Response *CommonErrorResponse `json:"response,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type PRENOTIFICATIONRequestWrapper ¶
type PRENOTIFICATIONRequestWrapper struct {
// PreNotificationRequest Pre-Notification Request.
PreNotificationRequest PreNotificationRequest `json:"PreNotificationRequest"`
}
PRENOTIFICATIONRequestWrapper N/A
type PRENOTIFICATIONResponseWrapper ¶
type PRENOTIFICATIONResponseWrapper struct {
// PreNotificationResponse Pre-Notification Response container.
PreNotificationResponse PreNotificationResponse `json:"PreNotificationResponse"`
}
PRENOTIFICATIONResponseWrapper N/A
type PackageChemicalRecord ¶
type PackageChemicalRecord struct {
// AdditionalDescription Additional remarks or special provision information.
AdditionalDescription *string `json:"AdditionalDescription,omitempty"`
// AllPackedInOneIndicator Presence/Absence Indicator. Any value is ignored. Presence indicates if multiple, different hazmat/chemicals are contained within one box in a package
AllPackedInOneIndicator *string `json:"AllPackedInOneIndicator,omitempty"`
// ClassDivisionNumber This is the hazard class associated to the specified commodity. Required if CommodityRegulatedLevelCode is 'LQ' or 'FR'
ClassDivisionNumber *string `json:"ClassDivisionNumber,omitempty"`
// CommodityRegulatedLevelCode Indicates the type of commodity, Fully Regulated (FR), Limited Quantity (LQ), Lightly Regulated (LR) Valid values are LR, FR and LQ.
CommodityRegulatedLevelCode string `json:"CommodityRegulatedLevelCode"`
// EmergencyContact The emergency information, contact name and/or contract number, required to be communicated when a call is placed to the EmergencyPhoneNumber.
EmergencyContact *string `json:"EmergencyContact,omitempty"`
// EmergencyPhone 24 Hour Emergency Phone Number of the shipper.
//
// Valid values for this field are (0) through (9) with trailing blanks.
//
// For numbers within the U.S., the layout is 1, area code, 7-digit number. For all other countries the layout is country code, area code, number. The following are restricted in the phone number
// period ".", dash "-", plus sign "+" and conventional parentheses "(" and ")", "EXT" or "OPT" The following are restricted in the phone number
// period ".", dash "-", plus sign "+" and conventional parentheses "(" and ")", "EXT" or "OPT"
EmergencyPhone *string `json:"EmergencyPhone,omitempty"`
// HazardLabelRequired Defines the type of label that is required on the package for the commodity.
HazardLabelRequired *string `json:"HazardLabelRequired,omitempty"`
// IDNumber This is the ID number (UN/NA/ID) for the specified commodity. UN/NA/ID Identification Number assigned to the specified regulated good. (Include the UN/NA/ID as part of the entry).
IDNumber *string `json:"IDNumber,omitempty"`
// OverPackedIndicator Presence/Absence Indicator. Any value is ignored. Presence indicates that shipment is overpack.
OverPackedIndicator *string `json:"OverPackedIndicator,omitempty"`
// PackagingGroupType This is the packing group category associated to the specified commodity. Must be shown in Roman Numerals. Valid values are:
// - I
// - II
// - III
// - blank
PackagingGroupType *string `json:"PackagingGroupType,omitempty"`
// PackagingInstructionCode The packing instructions related to the chemical record.
PackagingInstructionCode *string `json:"PackagingInstructionCode,omitempty"`
// PackagingType The type of package used to contain the regulated good. (Ex: Fiberboard Box).
PackagingType *string `json:"PackagingType,omitempty"`
// PackagingTypeQuantity The number of pieces of the specific commodity. Required if CommodityRegulatedLevelCode = LQ or FR. Valid values are 1 to 999.
PackagingTypeQuantity *string `json:"PackagingTypeQuantity,omitempty"`
// ProperShippingName The Proper Shipping Name assigned by ADR, CFR or IATA. Required if CommodityRegulatedLevelCode = LQ or FR.
ProperShippingName *string `json:"ProperShippingName,omitempty"`
// QValue When a HazMat shipment specifies AllPackedInOneIndicator and the regulation set for that shipment is IATA, Q-Value specifies exactly one of the following values: 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7; 0.8; 0.9; 1.0 Valid values are : 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7; 0.8; 0.9; 1.0
QValue *string `json:"QValue,omitempty"`
// Quantity Required if CommodityRegulatedLevelCode = LQ or FR. The numerical value of the mass capacity of the regulated good.
Quantity *string `json:"Quantity,omitempty"`
// ReportableQuantity Indicates whether or not a material being transported meets the definition of a hazardous material and meets or exceeds a reportable quantity threshold. If reportable quantity is met, "RQ" should be entered. Any other value will be interpreted as "Non Reportable" quantity.
ReportableQuantity *string `json:"ReportableQuantity,omitempty"`
// SubRiskClass Secondary hazardous characteristics of a package. (There can be more than one – separate each with a comma.)
SubRiskClass *string `json:"SubRiskClass,omitempty"`
// TechnicalName The technical name (when required) for the specified commodity.
TechnicalName *string `json:"TechnicalName,omitempty"`
// TransportCategory Transport Category. Valid values are 0 to 4.
TransportCategory *string `json:"TransportCategory,omitempty"`
// TunnelRestrictionCode Defines what is restricted to pass through a tunnel.
TunnelRestrictionCode *string `json:"TunnelRestrictionCode,omitempty"`
// UOM Required if CommodityRegulatedLevelCode = LQ or FR. The unit of measure used for the mass capacity of the regulated good.
UOM *string `json:"UOM,omitempty"`
}
PackageChemicalRecord Dangerous Goods Accessorial Commodity Container
type PackagePackageWeight ¶
type PackagePackageWeight struct {
// UnitOfMeasurement Container to hold UnitOfMeasurement information for package weight.
UnitOfMeasurement PackageWeightUnitOfMeasurement `json:"UnitOfMeasurement"`
// Weight Packages weight.
Weight string `json:"Weight"`
}
PackagePackageWeight Container to hold package weight information.
type PackageWeightUnitOfMeasurement ¶
type PackageWeightUnitOfMeasurement struct {
// Code Package weight unit of measurement code.
// Codes are:
// LBS = Pounds
// KGS = Kilograms
Code string `json:"Code"`
// Description Description of the unit of measurement for package weight.
Description *string `json:"Description,omitempty"`
}
PackageWeightUnitOfMeasurement Container to hold UnitOfMeasurement information for package weight.
type PreNotificationOpJSONRequestBody ¶
type PreNotificationOpJSONRequestBody = PRENOTIFICATIONRequestWrapper
PreNotificationOpJSONRequestBody defines body for PreNotificationOp for application/json ContentType.
type PreNotificationOpParams ¶
type PreNotificationOpParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
PreNotificationOpParams defines parameters for PreNotificationOp.
type PreNotificationOpResponse ¶
type PreNotificationOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PRENOTIFICATIONResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParsePreNotificationOpResponse ¶
func ParsePreNotificationOpResponse(rsp *http.Response) (*PreNotificationOpResponse, error)
ParsePreNotificationOpResponse parses an HTTP response from a PreNotificationOpWithResponse call
func (PreNotificationOpResponse) Status ¶
func (r PreNotificationOpResponse) Status() string
Status returns HTTPResponse.Status
func (PreNotificationOpResponse) StatusCode ¶
func (r PreNotificationOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PreNotificationRequest ¶
type PreNotificationRequest struct {
// Request Request Container
Request PreNotificationRequestRequest `json:"Request"`
// Shipment Shipment Container
Shipment PreNotificationRequestShipment `json:"Shipment"`
}
PreNotificationRequest Pre-Notification Request.
type PreNotificationRequestRequest ¶
type PreNotificationRequestRequest struct {
// TransactionReference TransactionReference identifies transactions between client and server.
TransactionReference *RequestTransactionReference `json:"TransactionReference,omitempty"`
}
PreNotificationRequestRequest Request Container
type PreNotificationRequestShipment ¶
type PreNotificationRequestShipment struct {
Package []ShipmentPackage `json:"Package"`
// PickupDate Date of the On Call Air Pickup. Format is YYYYMMDD
PickupDate string `json:"PickupDate"`
// RegulationSet The Regulatory set associated with every regulated shipment. It must be same across the shipment. Valid values are:
// - ADR – European Agreement concerning the International Carriage of Dangerous Goods by Road.
// - 49CFR – Title 49 of the United States Code of Federal Regulations.
// - IATA – International Air Transport Association (IATA) Dangerous Goods Regulations.
RegulationSet string `json:"RegulationSet"`
// Service UPS service type.
Service ShipmentService `json:"Service"`
// ShipFromAddress Ship From address container.
ShipFromAddress ShipmentShipFromAddress `json:"ShipFromAddress"`
// ShipToAddress Ship To address container.
ShipToAddress ShipmentShipToAddress `json:"ShipToAddress"`
// ShipmentIdentificationNumber 1Z Number of the first package in the shipment.
ShipmentIdentificationNumber string `json:"ShipmentIdentificationNumber"`
// ShipperNumber Shipper's six digit account number.
ShipperNumber string `json:"ShipperNumber"`
}
PreNotificationRequestShipment Shipment Container
type PreNotificationResponse ¶
type PreNotificationResponse struct {
// Response Contains Pre-Notification response components.
Response PreNotificationResponseResponse `json:"Response"`
}
PreNotificationResponse Pre-Notification Response container.
type PreNotificationResponseResponse ¶
type PreNotificationResponseResponse struct {
// Alert Alert Container. There can be zero to many alert containers with code and description.
//
// **NOTE:** For versions >= v2, this element will always be returned as an array. For requests using version = v1, this element will be returned as an array if there is more than one object and a single object if there is only 1.
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response status container.
ResponseStatus ResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
PreNotificationResponseResponse Contains Pre-Notification response components.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestTransactionReference ¶
type RequestTransactionReference struct {
// CustomerContext The CustomerContext information which will be echoed during response.
CustomerContext *string `json:"CustomerContext,omitempty"`
}
RequestTransactionReference TransactionReference identifies transactions between client and server.
type ResponseAlert ¶
type ResponseAlert struct {
// Code Warning code returned by the system.
Code string `json:"Code"`
// Description Warning messages returned by the system.
Description string `json:"Description"`
}
ResponseAlert Alert Container. There can be zero to many alert containers with code and description.
type ResponseResponseStatus ¶
type ResponseResponseStatus struct {
// Code Identifies the success or failure of the transaction. Valid values 1 = Successful.
Code string `json:"Code"`
// Description Describes Response Status Code. Returns text of Success.
Description string `json:"Description"`
}
ResponseResponseStatus Response status container.
type ResponseTransactionReference ¶
type ResponseTransactionReference struct {
// CustomerContext The CustomerContext information which will be echoed during response.
CustomerContext *string `json:"CustomerContext,omitempty"`
}
ResponseTransactionReference Transaction Reference Container.
type ShipmentPackage ¶
type ShipmentPackage struct {
ChemicalRecord []PackageChemicalRecord `json:"ChemicalRecord"`
// PackagePoints Regulated Commodity Transport Package Score Quantity
PackagePoints *string `json:"PackagePoints,omitempty"`
// PackageWeight Container to hold package weight information.
PackageWeight PackagePackageWeight `json:"PackageWeight"`
// TrackingNumber The packages tracking number.
TrackingNumber string `json:"TrackingNumber"`
// TransportationMode Declares that a package was prepared according to ground, passenger aircraft, or cargo aircraft only. Only required when the CommodityRegulatedLevelCode is FR or LQ. Valid entries include: GND, CAO, PAX.
TransportationMode *string `json:"TransportationMode,omitempty"`
// VoidIndicator Indicator to specify that a Dangerous Goods package is voided. True if VoidIndicator tag exists; false otherwise.
VoidIndicator *string `json:"VoidIndicator,omitempty"`
}
ShipmentPackage Package Information container.
type ShipmentService ¶
type ShipmentService struct {
// Code UPS service type code.
Code string `json:"Code"`
// Description Description of the service code. Examples are Next Day Air, Worldwide Express, and Ground.
Description *string `json:"Description,omitempty"`
}
ShipmentService UPS service type.
type ShipmentShipFromAddress ¶
type ShipmentShipFromAddress struct {
// AddressLine The Ship From street address including name and number (when applicable).
AddressLine []string `json:"AddressLine"`
// City The Ship From city.
City *string `json:"City,omitempty"`
// CountryCode The Ship From location's country or territory code.
CountryCode string `json:"CountryCode"`
// PostalCode The Ship From location's postal code. 9 characters are accepted.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode The Ship From location's state or province code. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
ShipmentShipFromAddress Ship From address container.
type ShipmentShipToAddress ¶
type ShipmentShipToAddress struct {
// AddressLine The Ship To street address including name and number (when applicable).
AddressLine []string `json:"AddressLine"`
// City The Ship To city.
City *string `json:"City,omitempty"`
// CountryCode The Ship To location's country or territory code.
CountryCode string `json:"CountryCode"`
// PostalCode The Ship To location's postal code. 9 characters are accepted.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvinceCode The Ship To location's state or province code. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}
ShipmentShipToAddress Ship To address container.