quantumview

package
v1.0.1 Latest Latest
Warning

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

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

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

Documentation

Overview

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

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

Index

Constants

View Source
const (
	OAuth2Scopes = "OAuth2.Scopes"
)

Variables

This section is empty.

Functions

func NewDeprecatedQuantumViewRequest

func NewDeprecatedQuantumViewRequest(server string, deprecatedVersion string, body DeprecatedQuantumViewJSONRequestBody) (*http.Request, error)

NewDeprecatedQuantumViewRequest calls the generic DeprecatedQuantumView builder with application/json body

func NewDeprecatedQuantumViewRequestWithBody

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

NewDeprecatedQuantumViewRequestWithBody generates requests for DeprecatedQuantumView with any type of body

func NewQuantumViewOpRequest

func NewQuantumViewOpRequest(server string, version string, body QuantumViewOpJSONRequestBody) (*http.Request, error)

NewQuantumViewOpRequest calls the generic QuantumViewOp builder with application/json body

func NewQuantumViewOpRequestWithBody

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

NewQuantumViewOpRequestWithBody generates requests for QuantumViewOp with any type of body

Types

type ActivityLocationAddressArtifactFormat

type ActivityLocationAddressArtifactFormat struct {
	// CountryCode Country or Territory code of an activity occurred during a package shipment. Valid values: CA, MX, PR, US, AT, BE, DE, DK, ES, FI, FR, GB, IE, IT, NL, PT, SE, MC, and VA
	CountryCode *string `json:"CountryCode,omitempty"`

	// PoliticalDivision1 State or province code of an activity occurred during a package shipment. Must be valid US state. If the country or territory is US or CA a two character code is required, otherwise, the StateProvinceCode is optional.
	PoliticalDivision1 *string `json:"PoliticalDivision1,omitempty"`

	// PoliticalDivision2 City of an activity occurred during a package shipment.
	PoliticalDivision2 *string `json:"PoliticalDivision2,omitempty"`
}

ActivityLocationAddressArtifactFormat Information that specifies a physical location where package delivery activity occurs.

type AddressArtifactFormatAddressExtendedInformation

type AddressArtifactFormatAddressExtendedInformation struct {
	// High The high number associated with an extended address.
	High *string `json:"High,omitempty"`

	// Low The low number associated with an extended address.
	Low *string `json:"Low,omitempty"`

	// Type Allows for secondary address information such as a suite or apartment.
	Type *string `json:"Type,omitempty"`
}

AddressArtifactFormatAddressExtendedInformation defines model for AddressArtifactFormat_AddressExtendedInformation.

type CODCODAmount

type CODCODAmount struct {
	// CurrencyCode The IATA currency code associated with the COD amount for the package.
	//
	// Required if the value for COD amount exists in MonetaryValue tag.
	//
	// Must match one of the IATA currency codes.
	//
	// For addition information, refer to the Currency Codes table in the Appendix.
	CurrencyCode *string `json:"CurrencyCode,omitempty"`

	// MonetaryValue The COD value for the package. Required if CODCode is 1.Absolute maximum value is 21474836.47 (limited by the maximum value of a 32-bit integer).
	MonetaryValue *string `json:"MonetaryValue,omitempty"`
}

CODCODAmount The amount of the COD that is to be collected for the shipment.

type Client

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

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

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

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

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

Creates a new Client, with reasonable defaults

func (*Client) DeprecatedQuantumView

func (c *Client) DeprecatedQuantumView(ctx context.Context, deprecatedVersion string, body DeprecatedQuantumViewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeprecatedQuantumViewWithBody

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

func (*Client) QuantumViewOp

func (c *Client) QuantumViewOp(ctx context.Context, version string, body QuantumViewOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) QuantumViewOpWithBody

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

type ClientInterface

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

	DeprecatedQuantumView(ctx context.Context, deprecatedVersion string, body DeprecatedQuantumViewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QuantumViewOpWithBody request with any body
	QuantumViewOpWithBody(ctx context.Context, version string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	QuantumViewOp(ctx context.Context, version string, body QuantumViewOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) DeprecatedQuantumViewWithBodyWithResponse

func (c *ClientWithResponses) DeprecatedQuantumViewWithBodyWithResponse(ctx context.Context, deprecatedVersion string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedQuantumViewResponse, error)

DeprecatedQuantumViewWithBodyWithResponse request with arbitrary body returning *DeprecatedQuantumViewResponse

func (*ClientWithResponses) DeprecatedQuantumViewWithResponse

func (c *ClientWithResponses) DeprecatedQuantumViewWithResponse(ctx context.Context, deprecatedVersion string, body DeprecatedQuantumViewJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedQuantumViewResponse, error)

func (*ClientWithResponses) QuantumViewOpWithBodyWithResponse

func (c *ClientWithResponses) QuantumViewOpWithBodyWithResponse(ctx context.Context, version string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QuantumViewOpResponse, error)

QuantumViewOpWithBodyWithResponse request with arbitrary body returning *QuantumViewOpResponse

func (*ClientWithResponses) QuantumViewOpWithResponse

func (c *ClientWithResponses) QuantumViewOpWithResponse(ctx context.Context, version string, body QuantumViewOpJSONRequestBody, reqEditors ...RequestEditorFn) (*QuantumViewOpResponse, error)

type ClientWithResponsesInterface

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

	DeprecatedQuantumViewWithResponse(ctx context.Context, deprecatedVersion string, body DeprecatedQuantumViewJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedQuantumViewResponse, error)

	// QuantumViewOpWithBodyWithResponse request with any body
	QuantumViewOpWithBodyWithResponse(ctx context.Context, version string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QuantumViewOpResponse, error)

	QuantumViewOpWithResponse(ctx context.Context, version string, body QuantumViewOpJSONRequestBody, reqEditors ...RequestEditorFn) (*QuantumViewOpResponse, 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 DeliveryActivityLocation

type DeliveryActivityLocation struct {
	// AddressArtifactFormat Information that specifies a physical location where package delivery activity occurs.
	AddressArtifactFormat ActivityLocationAddressArtifactFormat `json:"AddressArtifactFormat"`
}

DeliveryActivityLocation Geographic location where an activity occurred during a movement of a package or shipment. (ActivityLocation in Delivery is identical to the one in Manifest. But all elements in Delivery/ActivityLocation/AddressArtifactFormat are populated in this release. Refer to Manifest for remaining unpopulated elements.)

type DeliveryBillToAccount

type DeliveryBillToAccount struct {
	// Number The UPS Account number to which the shipping charges were billed.
	Number string `json:"Number"`

	// Option Indicates how shipping charges for the package were billed. Valid Values:
	// - 01 - Shipper
	// - 02 - Consignee Billing
	// - 03 - Third Party
	// - 04 - Freight Collect
	Option string `json:"Option"`
}

DeliveryBillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.

type DeliveryCOD

type DeliveryCOD struct {
	// CODAmount The amount of the COD that is to be collected for the shipment.
	CODAmount *CODCODAmount `json:"CODAmount,omitempty"`
}

DeliveryCOD Container for cash on delivery (COD) information.

type DeliveryDeliveryLocation

type DeliveryDeliveryLocation struct {
	// AddressArtifactFormat Information that specifies a physical location where package is delivered.
	AddressArtifactFormat DeliveryLocationAddressArtifactFormat `json:"AddressArtifactFormat"`

	// Code Location Code for delivered package.
	Code *string `json:"Code,omitempty"`

	// Description Description of the location where package is delivered.
	Description *string `json:"Description,omitempty"`

	// SignedForByName The person who signed for the package.
	SignedForByName *string `json:"SignedForByName,omitempty"`
}

DeliveryDeliveryLocation Information about the location where package is delivered.

type DeliveryLocationAddressArtifactFormat

type DeliveryLocationAddressArtifactFormat struct {
	// AddressExtendedInformation Container tag for additional address information where package is delivered.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	AddressExtendedInformation *[]AddressArtifactFormatAddressExtendedInformation `json:"AddressExtendedInformation,omitempty"`

	// BuildingName Building name where package is delivered.
	BuildingName *string `json:"BuildingName,omitempty"`

	// ConsigneeName Consignee's name at the location where package is delivered.
	ConsigneeName *string `json:"ConsigneeName,omitempty"`

	// CountryCode Abbreviated country or territory name where package is delivered.
	CountryCode *string `json:"CountryCode,omitempty"`

	// PoliticalDivision1 Abbreviated state or province name where package is delivered.
	PoliticalDivision1 *string `json:"PoliticalDivision1,omitempty"`

	// PoliticalDivision2 City name where package is delivered.
	PoliticalDivision2 *string `json:"PoliticalDivision2,omitempty"`

	// PoliticalDivision3 The neighborhood, town, barrio etc.
	PoliticalDivision3 *string `json:"PoliticalDivision3,omitempty"`

	// PostcodeExtendedLow 4 Digit postal code extension where package is delivered. Valid for US only.
	PostcodeExtendedLow *string `json:"PostcodeExtendedLow,omitempty"`

	// PostcodePrimaryLow Postal Code where package is delivered. Required if the user does not submit the City, Alphanumeric State/Province address combination.
	PostcodePrimaryLow *string `json:"PostcodePrimaryLow,omitempty"`

	// ResidentialAddressIndicator Residential address indicator for the location where package is delivered. The presence indicates residential address, the absence indicates a business address.
	ResidentialAddressIndicator *string `json:"ResidentialAddressIndicator,omitempty"`

	// StreetName Street name where package is delivered.
	StreetName *string `json:"StreetName,omitempty"`

	// StreetNumberLow Street number where package is delivered.
	StreetNumberLow *string `json:"StreetNumberLow,omitempty"`

	// StreetPrefix Street prefix where package is delivered, e.g. N, SE.
	StreetPrefix *string `json:"StreetPrefix,omitempty"`

	// StreetSuffix Street suffix where package is delivered, e.g. N, SE.
	StreetSuffix *string `json:"StreetSuffix,omitempty"`

	// StreetType Street type where package is delivered.
	StreetType *string `json:"StreetType,omitempty"`
}

DeliveryLocationAddressArtifactFormat Information that specifies a physical location where package is delivered.

type DeliveryPackageReferenceNumber

type DeliveryPackageReferenceNumber struct {
	// BarCodeIndicator Not used.
	BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`

	// Code Reflects what will go on the label as the name of the reference.
	//
	// For additional information, refer to the Reference Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

DeliveryPackageReferenceNumber defines model for Delivery_PackageReferenceNumber.

type DeliveryShipmentReferenceNumber

type DeliveryShipmentReferenceNumber struct {
	// BarCodeIndicator Not used.
	BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`

	// Code Reflects what will go on the label as the name of the reference.
	//
	// For additional information, refer to the Reference Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

DeliveryShipmentReferenceNumber defines model for Delivery_ShipmentReferenceNumber.

type DeprecatedQuantumViewJSONRequestBody

type DeprecatedQuantumViewJSONRequestBody = QUANTUMVIEWRequestWrapper

DeprecatedQuantumViewJSONRequestBody defines body for DeprecatedQuantumView for application/json ContentType.

type DeprecatedQuantumViewResponse

type DeprecatedQuantumViewResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *QUANTUMVIEWResponseWrapper
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseDeprecatedQuantumViewResponse

func ParseDeprecatedQuantumViewResponse(rsp *http.Response) (*DeprecatedQuantumViewResponse, error)

ParseDeprecatedQuantumViewResponse parses an HTTP response from a DeprecatedQuantumViewWithResponse call

func (DeprecatedQuantumViewResponse) Status

Status returns HTTPResponse.Status

func (DeprecatedQuantumViewResponse) StatusCode

func (r DeprecatedQuantumViewResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DimensionalWeightUnitOfMeasurement

type DimensionalWeightUnitOfMeasurement struct {
	// Code The code representing the unit of measure associated with the shipment's dimensional weight.
	// Valid values:
	// LBS - Pounds (default)
	// KGS - Kilograms
	// Defaults Unit of Measurement used in the shipper's country or territory.
	Code string `json:"Code"`

	// Description A text description of the code representing the unit of measure associated with the package weight.
	Description *string `json:"Description,omitempty"`
}

DimensionalWeightUnitOfMeasurement Container tag for package dimensional weight measurement units.

type ErrorErrorLocation

type ErrorErrorLocation struct {
	// ErrorLocationAttributeName The name of the attribute in error. This is the name of the attribute contained by the Error Location element.
	ErrorLocationAttributeName *string `json:"ErrorLocationAttributeName,omitempty"`

	// ErrorLocationElementName The Xpath name of the element in error. This is a valid Xpath pointing to an element in the request document.
	ErrorLocationElementName *string `json:"ErrorLocationElementName,omitempty"`
}

ErrorErrorLocation defines model for Error_ErrorLocation.

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 ExceptionActivityLocation

type ExceptionActivityLocation struct {
	// AddressArtifactFormat Information that specifies a physical location where package delivery activity occurs.
	AddressArtifactFormat ActivityLocationAddressArtifactFormat `json:"AddressArtifactFormat"`
}

ExceptionActivityLocation Geographic location where an activity occurred during a movement of a package or shipment.(ActivityLocation in Exception is identical to the one in Manifest. But three of all elements in Exception/ActivityLocation/AddressArtifactFormat are populated in this release. Refer to Manifest for remaining unpopulated elements.)

type ExceptionBillToAccount

type ExceptionBillToAccount struct {
	// Number The UPS Account number to which the shipping charges were billed.
	Number string `json:"Number"`

	// Option Indicates how shipping charges for the package were billed. Valid Values:
	// - 01 - Shipper
	// - 02 - Consignee Billing
	// - 03 - Third Party
	// - 04 - Freight Collect
	Option string `json:"Option"`
}

ExceptionBillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.

type ExceptionPackageReferenceNumber

type ExceptionPackageReferenceNumber struct {
	// BarCodeIndicator Not used.
	BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`

	// Code Reflects what will go on the label as the name of the reference.
	//
	// For additional information, refer to the Reference Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

ExceptionPackageReferenceNumber defines model for Exception_PackageReferenceNumber.

type ExceptionResolution

type ExceptionResolution struct {
	// Code Type of resolution for updating shipping address issue.
	Code string `json:"Code"`

	// Description Description of resolution type for updating shipping address.
	Description *string `json:"Description,omitempty"`
}

ExceptionResolution Resolution for updating shipping address issue.

type ExceptionShipmentReferenceNumber

type ExceptionShipmentReferenceNumber struct {
	// BarCodeIndicator Not used.
	BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`

	// Code Reflects what will go on the label as the name of the reference.
	//
	// For additional information, refer to the Reference Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

ExceptionShipmentReferenceNumber defines model for Exception_ShipmentReferenceNumber.

type ExceptionUpdatedAddress

type ExceptionUpdatedAddress struct {
	// AddressExtendedInformation Container for information about updated shipping address. It will be returned if there is any update due to exception.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	AddressExtendedInformation *[]UpdatedAddressAddressExtendedInformation `json:"AddressExtendedInformation,omitempty"`

	// ConsigneeName Consignee's name for package shipping address. It will be returned if there is any update due to exception.
	ConsigneeName *string `json:"ConsigneeName,omitempty"`

	// CountryCode Abbreviated country or territory name of updated shipping address. It will be returned if there is any update due to exception.
	CountryCode *string `json:"CountryCode,omitempty"`

	// PoliticalDivision1 Abbreviated state or province name of updated shipping address. It will be returned if there is any update due to exception.
	PoliticalDivision1 *string `json:"PoliticalDivision1,omitempty"`

	// PoliticalDivision2 City name of updated shipping address. It will be returned if there is any update due to exception.
	PoliticalDivision2 *string `json:"PoliticalDivision2,omitempty"`

	// PoliticalDivision3 The neighborhood, town, barrio etc. It will be returned if there is any update due to exception.
	PoliticalDivision3 *string `json:"PoliticalDivision3,omitempty"`

	// PostcodePrimaryLow Postal Code of updated shipping address. It will be returned if there is any update due to exception.
	PostcodePrimaryLow *string `json:"PostcodePrimaryLow,omitempty"`

	// StreetName Street name of updated shipping address. It will be returned if there is any update due to exception.
	StreetName *string `json:"StreetName,omitempty"`

	// StreetNumberLow Street number of updated shipping address. It will be returned if there is any update due to exception.
	StreetNumberLow *string `json:"StreetNumberLow,omitempty"`

	// StreetPrefix Street prefix of updated shipping address, e.g. N, SE. It will be returned if there is any update due to exception.
	StreetPrefix *string `json:"StreetPrefix,omitempty"`

	// StreetSuffix Street suffix of updated shipping address, e.g. N, SE. It will be returned if there is any update due to exception.
	StreetSuffix *string `json:"StreetSuffix,omitempty"`

	// StreetType Street type of updated shipping address, e.g. ST. It will be returned if there is any update due to exception.
	StreetType *string `json:"StreetType,omitempty"`
}

ExceptionUpdatedAddress Contains information about updated shipping address.

type FailureNotificationFailureNotificationCode

type FailureNotificationFailureNotificationCode struct {
	// Code Code representing type of failure email notification. Valid values:
	// - 01 – Package is ready to pickup at UPS Access Point - Original
	// - 02 – Package is ready to pickup at UPS Access Point - Reminder
	// - 03 – Package is delivery to alternate delivery location
	// - 04 – Package is returned to Sender from UPS Access Point Location
	Code *string `json:"Code,omitempty"`

	// Description Not used.
	Description *string `json:"Description,omitempty"`
}

FailureNotificationFailureNotificationCode Failure notification code information describing code.

type GenericActivity

type GenericActivity struct {
	// Date Date of package activity (i.e. YYYYMMDD). If generic record ActivityType is TC then event date is the date of first USPS scan.
	Date *string `json:"Date,omitempty"`

	// Time Time of package activity(i.e. HHMMSS). If generic record ActivityType is TC then event time is the time of first USPS scan.
	Time *string `json:"Time,omitempty"`
}

GenericActivity Information about package activity.

type GenericBillToAccount

type GenericBillToAccount struct {
	// Number The UPS Account number to which the shipping charges were billed.
	Number string `json:"Number"`

	// Option Indicates how shipping charges for the package were billed.
	// Valid Values: 01, 02, 03, 04, 99
	// Value Definitions:
	// 01 Shipper
	// 02 Consignee Billing
	// 03 Third Party
	// 04 Freight Collect
	// 99 International Bill Option
	Option string `json:"Option"`
}

GenericBillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.

type GenericFailureNotification

type GenericFailureNotification struct {
	// FailedEmailAddress Email address that failed when an attempt was made to send email to the customer
	FailedEmailAddress *string `json:"FailedEmailAddress,omitempty"`

	// FailureNotificationCode Failure notification code information describing code.
	FailureNotificationCode *FailureNotificationFailureNotificationCode `json:"FailureNotificationCode,omitempty"`
}

GenericFailureNotification Failure notification information containing email address and Notification code

type GenericPackageReferenceNumber

type GenericPackageReferenceNumber struct {
	// BarCodeIndicator Not used.
	BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`

	// Code Reflects what will go on the label as the name of the reference.
	// For addition information, refer to the Service Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

GenericPackageReferenceNumber defines model for Generic_PackageReferenceNumber.

type GenericService

type GenericService struct {
	// Code For addition information, refer to the Service Codes table in the Appendix.
	Code string `json:"Code"`

	// Description Not used.
	Description *string `json:"Description,omitempty"`
}

GenericService Container for service code and description.

type GenericShipTo

type GenericShipTo struct {
	// Bookmark Bookmark of the package is shifted to.
	Bookmark *string `json:"Bookmark,omitempty"`

	// LocationID Location name that the package is shipped to.
	LocationID *string `json:"LocationID,omitempty"`

	// ReceivingAddressName Alias of the location where the package is received.
	ReceivingAddressName *string `json:"ReceivingAddressName,omitempty"`
}

GenericShipTo Address and contact information describing the location where a return is to be delivered.

type GenericShipmentReferenceNumber

type GenericShipmentReferenceNumber struct {
	// BarCodeIndicator Not used.
	BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`

	// Code Reflects what will go on the label as the name of the reference.
	// For addition information, refer to the Service Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

GenericShipmentReferenceNumber defines model for Generic_ShipmentReferenceNumber.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ManifestBillToAccount

type ManifestBillToAccount struct {
	// Number The UPS Account number to which the shipping charges were billed.
	Number string `json:"Number"`

	// Option Indicates how shipping charges for the package were billed. Valid values:
	// - 01 - Shipper
	// - 02 - Consignee Billing
	// - 03 - Third Party
	// - 04 - Freight Collect
	Option string `json:"Option"`
}

ManifestBillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.

type ManifestCustomsValue

type ManifestCustomsValue struct {
	// MonetaryValue The shipment's customs value amount.
	MonetaryValue string `json:"MonetaryValue"`
}

ManifestCustomsValue Information about shipment's customs value.

type ManifestPackage

type ManifestPackage struct {
	// Activity Information about package delivery activity.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	Activity *[]PackageActivity `json:"Activity,omitempty"`

	// Description Description of package merchandise.
	Description *string `json:"Description,omitempty"`

	// DimensionalWeight Container tag for package dimensional weight.
	DimensionalWeight *PackageDimensionalWeight `json:"DimensionalWeight,omitempty"`

	// Dimensions Container tag for package dimension information.
	// Length + 2 * (Width + Height) must be less than or equal to 130 IN or 330 CM.
	Dimensions *PackageDimensions `json:"Dimensions,omitempty"`

	// LargePackage Values for LargePackage are:
	// - 1 - Oversize 1
	// - 2 - Oversize 2
	// - 4 - Large package
	LargePackage *string `json:"LargePackage,omitempty"`

	// PackageServiceOptions Defines service options used for the package(s).
	PackageServiceOptions *PackagePackageServiceOptions `json:"PackageServiceOptions,omitempty"`

	// PackageWeight Container tag for package weight. Required when the package type is not UPS Letter.
	PackageWeight *PackagePackageWeight `json:"PackageWeight,omitempty"`

	// ReferenceNumber Container tag for information about the package-level reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	ReferenceNumber *[]PackageReferenceNumber `json:"ReferenceNumber,omitempty"`

	// TrackingNumber Package's tracking number.
	TrackingNumber *string `json:"TrackingNumber,omitempty"`

	// UPSPremiumCareIndicator Presence of the tag indicates UPSPremiumCare applies to this package
	UPSPremiumCareIndicator *string `json:"UPSPremiumCareIndicator,omitempty"`
}

ManifestPackage defines model for Manifest_Package.

type ManifestReferenceNumber

type ManifestReferenceNumber struct {
	// Code Reflects what will go on the label as the name of the reference. For additional information, refer to the Reference Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

ManifestReferenceNumber defines model for Manifest_ReferenceNumber.

type ManifestService

type ManifestService struct {
	// Code For addition information, refer to the Service Codes table in the Appendix.
	Code string `json:"Code"`

	// Description Description of the service code. Examples are Next Day Air, Worldwide Express, and Ground.
	Description *string `json:"Description,omitempty"`
}

ManifestService Container for service code and description.

type ManifestShipTo

type ManifestShipTo struct {
	// Address Information that specifies a physical location.
	Address *ShipToAddress `json:"Address,omitempty"`

	// AttentionName Contact name at the consignee's location.
	AttentionName *string `json:"AttentionName,omitempty"`

	// CompanyName Consignee's company name.
	CompanyName *string `json:"CompanyName,omitempty"`

	// EMailAddress Consignee's email address.
	EMailAddress *string `json:"EMailAddress,omitempty"`

	// FaxNumber Consignee's Fax Number. US Fax numbers must be 10 digits. No formatting is allowed. Required if origin and destination countries or territories are different.
	FaxNumber *string `json:"FaxNumber,omitempty"`

	// LocationID Location name that the package is shipped to.
	LocationID *string `json:"LocationID,omitempty"`

	// PhoneNumber Consignee's Phone Number. US Phone numbers must be 10 digits. No formatting is allowed. Required if origin and destination countries or territories are different.
	PhoneNumber *string `json:"PhoneNumber,omitempty"`

	// ReceivingAddressName Name of the location where the package is received.
	ReceivingAddressName *string `json:"ReceivingAddressName,omitempty"`

	// ShipperAssignedIdentificationNumber An identification number specified by shipper.
	ShipperAssignedIdentificationNumber *string `json:"ShipperAssignedIdentificationNumber,omitempty"`

	// TaxIdentificationNumber Consignee's Tax Identification Number.
	TaxIdentificationNumber *string `json:"TaxIdentificationNumber,omitempty"`
}

ManifestShipTo Address and contact information describing the location where a return is to be delivered.

type ManifestShipmentServiceOptions

type ManifestShipmentServiceOptions struct {
	// CallTagARS Container for Call Tag service.
	CallTagARS *ShipmentServiceOptionsCallTagARS `json:"CallTagARS,omitempty"`

	// SaturdayDelivery A flag indicating if the shipment requires a Saturday Delivery. True if tag exists, false otherwise.
	SaturdayDelivery string `json:"SaturdayDelivery"`

	// SaturdayPickup A flag indicating if the shipment requires a Saturday pickup. True if tag exists, false otherwise.
	SaturdayPickup string `json:"SaturdayPickup"`
}

ManifestShipmentServiceOptions Container tag for optional UPS services related to a shipment.

type ManifestShipper

type ManifestShipper struct {
	// Address Information that specifies a physical location.
	Address *ShipperAddress `json:"Address,omitempty"`

	// AttentionName Shipper's Attention Name.
	AttentionName *string `json:"AttentionName,omitempty"`

	// EMailAddress Shipper's designated contact eMail address.
	EMailAddress *string `json:"EMailAddress,omitempty"`

	// FaxNumber Shipper's Fax Number. US Fax numbers must be 10 digits. No formatting is allowed. Required if origin and destination countries or territories are different.
	FaxNumber *string `json:"FaxNumber,omitempty"`

	// Name Shipper's company name.
	Name string `json:"Name"`

	// PhoneNumber Shipper's Phone Number. US Phone numbers must be 10 digits. No formatting is allowed. Required if origin and destination countries or territories are different.
	PhoneNumber *string `json:"PhoneNumber,omitempty"`

	// ShipperNumber Shipper's six digit alphanumeric account number.
	ShipperNumber *string `json:"ShipperNumber,omitempty"`

	// TaxIdentificationNumber Shipper's Tax Identification Number.
	TaxIdentificationNumber *string `json:"TaxIdentificationNumber,omitempty"`
}

ManifestShipper Shipper's record for a shipment.

type ManifestUAPAddress

type ManifestUAPAddress struct {
	// Address Information that specifies a physical location.
	Address *UAPAddressAddress `json:"Address,omitempty"`

	// AttentionName The "Attention To" field for the person/company to whom package is shipped.
	AttentionName *string `json:"AttentionName,omitempty"`

	// CompanyName The name of person or company to whom package was shipped.
	CompanyName *string `json:"CompanyName,omitempty"`

	// PhoneNumber UPS Access Point's Phone Number. US Phone numbers must be 10 digits. No formatting is allowed. Required if origin and destination countries or territories are different.
	PhoneNumber *string `json:"PhoneNumber,omitempty"`
}

ManifestUAPAddress Information about Hold for Pickup UPS Access Point Address

type OriginActivityLocation

type OriginActivityLocation struct {
	// AddressArtifactFormat Information that specifies a physical location where package delivery activity occurs.
	AddressArtifactFormat ActivityLocationAddressArtifactFormat `json:"AddressArtifactFormat"`
}

OriginActivityLocation Geographic location where an activity occurred during a movement of a package or shipment. (ActivityLocation in Origin is identical to the one in Manifest. But three of all elements in Origin/ActivityLocation/AddressArtifactFormat are populated in this release. Refer to Manifest for remaining unpopulated elements.)

type OriginBillToAccount

type OriginBillToAccount struct {
	// Number The UPS Account number to which the shipping charges were billed.
	Number string `json:"Number"`

	// Option Indicates how shipping charges for the package were billed. Valid Values:
	// - 01 - Shipper
	// - 02 - Consignee Billing
	// - 03 - Third Party
	// - 04 - Freight Collect
	Option string `json:"Option"`
}

OriginBillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.

type OriginPackageReferenceNumber

type OriginPackageReferenceNumber struct {
	// BarCodeIndicator Not used.
	BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`

	// Code Reflects what will go on the label as the name of the reference.
	//
	// For additional information, refer to the Reference Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

OriginPackageReferenceNumber defines model for Origin_PackageReferenceNumber.

type OriginShipmentReferenceNumber

type OriginShipmentReferenceNumber struct {
	// BarCodeIndicator Not used.
	BarCodeIndicator *string `json:"BarCodeIndicator,omitempty"`

	// Code Reflects what will go on the label as the name of the reference.
	//
	// For additional information, refer to the Reference Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number. Reference numbers are defined by the shipper and can contain any character string.
	Value string `json:"Value"`
}

OriginShipmentReferenceNumber defines model for Origin_ShipmentReferenceNumber.

type PackageActivity

type PackageActivity struct {
	// Date Date of package delivery activity. Date format: YYYYMMDD.
	Date *string `json:"Date,omitempty"`

	// Time Time of package delivery activity. Time format: HHMMSS
	Time *string `json:"Time,omitempty"`
}

PackageActivity defines model for Package_Activity.

type PackageDimensionalWeight

type PackageDimensionalWeight struct {
	// UnitOfMeasurement Container tag for package dimensional weight measurement units.
	UnitOfMeasurement DimensionalWeightUnitOfMeasurement `json:"UnitOfMeasurement"`

	// Weight The value of package dimensional weight. A value of zero should be used for letters.
	Weight string `json:"Weight"`
}

PackageDimensionalWeight Container tag for package dimensional weight.

type PackageDimensions

type PackageDimensions struct {
	// Height Package height.
	Height string `json:"Height"`

	// Length Package length.
	// Valid values: 0 to 108 IN and 0 to 270 CM
	Length string `json:"Length"`

	// Width Package width.
	Width string `json:"Width"`
}

PackageDimensions Container tag for package dimension information. Length + 2 * (Width + Height) must be less than or equal to 130 IN or 330 CM.

type PackagePackageServiceOptions

type PackagePackageServiceOptions struct {
	// AddShippingChargesToCODIndicator An indicator flag that represents a Collect on Delivery (COD) package.
	AddShippingChargesToCODIndicator *string `json:"AddShippingChargesToCODIndicator,omitempty"`

	// COD Container for cash on delivery (COD) information.
	COD *PackageServiceOptionsCOD `json:"COD,omitempty"`

	// EarliestDeliveryTime Earliest delivery time. Time format is HHMMSS.
	EarliestDeliveryTime *string `json:"EarliestDeliveryTime,omitempty"`

	// HazardousMaterialsCode Indicates if the package contains hazardous materials. Valid values:
	// - 1 - Hazardous Material
	// - 2 - Electronically billed hazardous material.
	//
	// If present, only one package may exist in the shipment.
	HazardousMaterialsCode *string `json:"HazardousMaterialsCode,omitempty"`

	// HoldForPickup A flag indicating if a package should be held for pickup. True if tag exists, false otherwise.
	HoldForPickup string `json:"HoldForPickup"`

	// InsuredValue Container tag for insured value amount for the package.
	InsuredValue *PackageServiceOptionsInsuredValue `json:"InsuredValue,omitempty"`
}

PackagePackageServiceOptions Defines service options used for the package(s).

type PackagePackageWeight

type PackagePackageWeight struct {
	// Weight Package weight. Set to 0 for package type of letters or envelops.
	Weight string `json:"Weight"`
}

PackagePackageWeight Container tag for package weight. Required when the package type is not UPS Letter.

type PackageReferenceNumber

type PackageReferenceNumber struct {
	// Code Reference number type code for entire shipment, two-character alphanumeric.
	// The code specifies the Reference name.
	// Valid if the origin/destination pair is US/US or PR/PR.
	// For additional information, refer to the Reference Codes table in the Appendix.
	Code *string `json:"Code,omitempty"`

	// Number Number tag.
	Number *string `json:"Number,omitempty"`

	// Value Customer supplied reference number, defined by the shipper and can contain any character string. Valid if the origin/destination pair is US/US or PR/PR.
	Value string `json:"Value"`
}

PackageReferenceNumber defines model for Package_ReferenceNumber.

type PackageServiceOptionsCOD

type PackageServiceOptionsCOD struct {
	// CODAmount The amount of the COD that is to be collected for the shipment.
	CODAmount *CODCODAmount `json:"CODAmount,omitempty"`

	// CODCode The code associated with the type of COD. Valid values:
	// 1 - Regular COD
	// 2 - Express COD
	// 3 - Tagless COD
	CODCode *string `json:"CODCode,omitempty"`
}

PackageServiceOptionsCOD Container for cash on delivery (COD) information.

type PackageServiceOptionsInsuredValue

type PackageServiceOptionsInsuredValue struct {
	// CurrencyCode Not populated in this release.
	CurrencyCode *string `json:"CurrencyCode,omitempty"`

	// MonetaryValue The monetary value for the insured value amount associated with the package. Max value of 5,000 USD for Local and 50,000 USD for Remote.
	MonetaryValue string `json:"MonetaryValue"`
}

PackageServiceOptionsInsuredValue Container tag for insured value amount for the package.

type QUANTUMVIEWRequestWrapper

type QUANTUMVIEWRequestWrapper struct {
	// QuantumViewRequest Container for QuantumView request information.
	QuantumViewRequest QuantumViewRequest `json:"QuantumViewRequest"`
}

QUANTUMVIEWRequestWrapper N/A

type QUANTUMVIEWResponseWrapper

type QUANTUMVIEWResponseWrapper struct {
	// QuantumViewResponse Container for QuantumView response information.
	QuantumViewResponse QuantumViewResponse `json:"QuantumViewResponse"`
}

QUANTUMVIEWResponseWrapper N/A

type QuantumViewEventsSubscriptionEvents

type QuantumViewEventsSubscriptionEvents struct {
	// DateRange The range of date time of subscription requested by user, as one type of request criteria, valid up to but not exceeding 7 days into the past, starting from current day.
	DateRange *SubscriptionEventsDateRange `json:"DateRange,omitempty"`

	// Name A name uniquely defined associated to the Subscription ID, for each subscription. Required if the SubscriptionEvents container is present.
	Name *string `json:"Name,omitempty"`

	// Number A number uniquely defined associated to the Subscriber ID, for each subscription. Required if the SubscriptionEvents container is present.
	Number *string `json:"Number,omitempty"`

	// SubscriptionFile Container holds all of the unread files associated with the subscription.
	//
	// **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.
	SubscriptionFile *[]SubscriptionEventsSubscriptionFile `json:"SubscriptionFile,omitempty"`

	// SubscriptionStatus Container for whether the subscription is active or not.
	SubscriptionStatus SubscriptionEventsSubscriptionStatus `json:"SubscriptionStatus"`
}

QuantumViewEventsSubscriptionEvents defines model for QuantumViewEvents_SubscriptionEvents.

type QuantumViewOpJSONRequestBody

type QuantumViewOpJSONRequestBody = QUANTUMVIEWRequestWrapper

QuantumViewOpJSONRequestBody defines body for QuantumViewOp for application/json ContentType.

type QuantumViewOpResponse

type QuantumViewOpResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *QUANTUMVIEWResponseWrapper
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON429      *ErrorResponse
}

func ParseQuantumViewOpResponse

func ParseQuantumViewOpResponse(rsp *http.Response) (*QuantumViewOpResponse, error)

ParseQuantumViewOpResponse parses an HTTP response from a QuantumViewOpWithResponse call

func (QuantumViewOpResponse) Status

func (r QuantumViewOpResponse) Status() string

Status returns HTTPResponse.Status

func (QuantumViewOpResponse) StatusCode

func (r QuantumViewOpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type QuantumViewRequest

type QuantumViewRequest struct {
	// Bookmark Bookmarks the file for next retrieval. It is a base64Encoded String.
	// It contains the combination of SubscriberID + SubscriptionName + File Name if the request is for all data.
	// It contains SubscriberID  if the request is for unread data. When a response comes back with a bookmark it indicates that there is more data. To fetch the remaining data, the requester should come back with the bookmark added to the original request.
	Bookmark *string `json:"Bookmark,omitempty"`

	// Request Contains QuantumView request criteria components.
	Request             QuantumViewRequestRequest                `json:"Request"`
	SubscriptionRequest *[]QuantumViewRequestSubscriptionRequest `json:"SubscriptionRequest,omitempty"`
}

QuantumViewRequest Container for QuantumView request information.

type QuantumViewRequestRequest

type QuantumViewRequestRequest struct {
	// RequestAction Indicates the action to be taken by the XML service. The only valid value is  'QVEvents'
	RequestAction string `json:"RequestAction"`

	// TransactionReference TransactionReference identifies transactions between client and server.
	TransactionReference *RequestTransactionReference `json:"TransactionReference,omitempty"`
}

QuantumViewRequestRequest Contains QuantumView request criteria components.

type QuantumViewRequestSubscriptionRequest

type QuantumViewRequestSubscriptionRequest struct {
	// DateTimeRange The range of date time of subscription requested by user, as one type of request criteria, valid up to but not exceeding 7 days into the past, starting from current day.
	DateTimeRange *SubscriptionRequestDateTimeRange `json:"DateTimeRange,omitempty"`

	// FileName File name of specific subscription requested by user. Format: YYMMDD_HHmmssnnn. (nnn - sequence number: usually = 001)
	FileName *[]string `json:"FileName,omitempty"`

	// Name Name of subscription requested by user, as one type of request criteria. Required when the customer wants to request data for a specific subscription name. Subscription name consists of up to 21 alphanumerics.
	Name *string `json:"Name,omitempty"`
}

QuantumViewRequestSubscriptionRequest Subscription requested by user to retrieve Inbound or/and Outbound XML formed subscription information.

type QuantumViewResponse

type QuantumViewResponse struct {
	// Bookmark Bookmarks the file for next retrieval, It is a base64Encoded String. It contains the combination of SubscriberID + SubscriptionName + File Name if the request is for all data. It contains SubscriberID if the request is for unread data. When a response comes back with a bookmark it indicates that there is more data. To fetch the remaining data, the requester should come back with the bookmark added to the original request.
	Bookmark *string `json:"Bookmark,omitempty"`

	// QuantumViewEvents The event that a user receives echoing Subscriber ID and information for subscription event, which is a subset of Tracking information specific to either packages coming or packages going, after subscription request is made, if the user requests for XML format.
	QuantumViewEvents QuantumViewResponseQuantumViewEvents `json:"QuantumViewEvents"`

	// Response Contains Errors information tags along with the success/fail status of the QuantumView request.
	Response QuantumViewResponseResponse `json:"Response"`
}

QuantumViewResponse Container for QuantumView response information.

type QuantumViewResponseQuantumViewEvents

type QuantumViewResponseQuantumViewEvents struct {
	// SubscriberID QV XOLT subscribers ID. It is the same as the User ID.
	SubscriberID string `json:"SubscriberID"`

	// SubscriptionEvents The event that a user receives a subset of Tracking information specific to either packages coming or packages going, after subscription request is made.
	//
	// **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.
	SubscriptionEvents []QuantumViewEventsSubscriptionEvents `json:"SubscriptionEvents"`
}

QuantumViewResponseQuantumViewEvents The event that a user receives echoing Subscriber ID and information for subscription event, which is a subset of Tracking information specific to either packages coming or packages going, after subscription request is made, if the user requests for XML format.

type QuantumViewResponseResponse

type QuantumViewResponseResponse struct {
	// Error If an error is encountered during the interchange, the Response contains an error. If the error is present, then the ErrorSeverity and ErrorCodes are required.
	//
	// **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.
	Error *[]ResponseError `json:"Error,omitempty"`

	// ResponseStatusCode Identifies the success or failure of the interchange.
	// 1 = Success, 0 = Failure
	ResponseStatusCode string `json:"ResponseStatusCode"`

	// ResponseStatusDescription 'Success' or 'Failure'
	ResponseStatusDescription *string `json:"ResponseStatusDescription,omitempty"`

	// TransactionReference Container for customer provided data and the XPCI Version.
	TransactionReference ResponseTransactionReference `json:"TransactionReference"`
}

QuantumViewResponseResponse Contains Errors information tags along with the success/fail status of the QuantumView request.

type RequestEditorFn

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

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 ResponseError

type ResponseError struct {
	// ErrorCode A numeric value that describes the error. Each tool defines a range of error codes. Required if the error is present.
	ErrorCode *string `json:"ErrorCode,omitempty"`

	// ErrorDescription Describes the error code.
	ErrorDescription *string `json:"ErrorDescription,omitempty"`

	// ErrorDigest The contents of the element in error.
	//
	// **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.
	ErrorDigest *[]string `json:"ErrorDigest,omitempty"`

	// ErrorLocation Identifies the element in error.
	//
	// **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.
	ErrorLocation []ErrorErrorLocation `json:"ErrorLocation"`

	// ErrorSeverity Describes the severity of the error. Required if the error is present.
	ErrorSeverity *string `json:"ErrorSeverity,omitempty"`

	// MinimumRetrySeconds Number of seconds to wait until retry. This field is populated on special conditions of the Transient Error only, as defined by the service. A number between 1 and 86400 (24 hours)
	MinimumRetrySeconds *string `json:"MinimumRetrySeconds,omitempty"`
}

ResponseError defines model for Response_Error.

type ResponseTransactionReference

type ResponseTransactionReference struct {
	// CustomerContext The CustomerContext Information which will be echoed during response.
	CustomerContext *string `json:"CustomerContext,omitempty"`

	// ToolVersion Current tool version.
	// Valid value: 1.0
	ToolVersion *string `json:"ToolVersion,omitempty"`

	// XpciVersion XPCI version. Current version: 1.0007
	XpciVersion *string `json:"XpciVersion,omitempty"`
}

ResponseTransactionReference Container for customer provided data and the XPCI Version.

type ShipToAddress

type ShipToAddress struct {
	// AddressLine1 Address Line 1 of the Consignee.
	AddressLine1 *string `json:"AddressLine1,omitempty"`

	// AddressLine2 Address Line 2 of the Consignee.
	AddressLine2 *string `json:"AddressLine2,omitempty"`

	// AddressLine3 Address Line 3 of the Consignee.
	AddressLine3 *string `json:"AddressLine3,omitempty"`

	// City Consignee's City.
	City *string `json:"City,omitempty"`

	// ConsigneeName Consignee's name.
	ConsigneeName *string `json:"ConsigneeName,omitempty"`

	// CountryCode Consignee's country or territory  code.
	//
	// Valid values: CA,MX, PR, US, AT, BE, DE, DK, ES, FI, FR, GB, IE, IT, NL, PT, SE, MC and VA
	CountryCode *string `json:"CountryCode,omitempty"`

	// PostalCode Consignee's postal code. If the address is US then 5 or 9 digits are required. CA addresses must provide a 6 character postal code that has the format of A#A#A#, where A is a alphabetic character and # is numeric digit. Otherwise, 1 to 9 alphanumeric characters are allowed.
	PostalCode *string `json:"PostalCode,omitempty"`

	// StateProvinceCode Consignee's state or province code. Must be valid US state. If the consignee's country or territory  is US or CA a two character code is required. Otherwise, the StateProvinceCode is optional.
	StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}

ShipToAddress Information that specifies a physical location.

type ShipmentServiceOptionsCallTagARS

type ShipmentServiceOptionsCallTagARS struct {
	// Code The type of Call Tag service.
	// Valid values:
	// 00 - No return service
	// 01 - UPS Call Tag Service
	// 02 - UPS Print and Mail
	// 03 - 1 UPS Pickup Attempt
	// 04 - UPS Print Return Label
	// 05 - Online Call Tag (3 UPS Pickup Attempts)
	// 06 - UPS Electronic Return Label
	// 08 - UPS Returns on the Web
	Code *string `json:"Code,omitempty"`

	// Number A reference number associated with the Call Tag service. Required if CallTagARS/Code is 1.
	Number *string `json:"Number,omitempty"`
}

ShipmentServiceOptionsCallTagARS Container for Call Tag service.

type ShipperAddress

type ShipperAddress struct {
	// AddressLine1 Address Line 1 of the Shipper.
	AddressLine1 *string `json:"AddressLine1,omitempty"`

	// AddressLine2 Address Line 2 of the Shipper. Usually room/floor information.
	AddressLine2 *string `json:"AddressLine2,omitempty"`

	// AddressLine3 Address Line 3 of the shipper. Usually department information.
	AddressLine3 *string `json:"AddressLine3,omitempty"`

	// City Shipper's City.
	City *string `json:"City,omitempty"`

	// CountryCode Shipper's country or territory code.
	//
	// Valid values: CA,MX, PR, US, AT, BE, DE, DK, ES, FI, FR, GB, IE, IT, NL, PT, SE, MC and VA
	CountryCode *string `json:"CountryCode,omitempty"`

	// PostalCode Shipper's postal code. If the address is US then 5 or 9 digits are required. CA addresses must provide a 6 character postal code that has the format of A#A#A#, where A is a alphabetic character and # is numeric digit. Otherwise, 1 to 9 alphanumeric characters are allowed.
	PostalCode *string `json:"PostalCode,omitempty"`

	// ResidentialAddressIndicator If tag is present, then the address is residential address. Pickup location residential address indicator. The presence indicates residential address, the absence indicates a business address.
	ResidentialAddressIndicator *string `json:"ResidentialAddressIndicator,omitempty"`

	// StateProvinceCode Shipper's state or province code. Must be valid US state. If the Shipper's country or territory is US or CA a two character code is required, otherwise the StateProvinceCode is optional.
	StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}

ShipperAddress Information that specifies a physical location.

type SubscriptionEventsDateRange

type SubscriptionEventsDateRange struct {
	// BeginDate Beginning date time of subscription requested by user.
	// Format: MM-DD-YYYY-HH-MM
	BeginDate string `json:"BeginDate"`

	// EndDate Ending date time of subscription requested by user.
	// Format: MM-DD-YYYY-HH-MM
	EndDate *string `json:"EndDate,omitempty"`
}

SubscriptionEventsDateRange The range of date time of subscription requested by user, as one type of request criteria, valid up to but not exceeding 7 days into the past, starting from current day.

type SubscriptionEventsSubscriptionFile

type SubscriptionEventsSubscriptionFile struct {
	// Delivery Container for delivery information.
	//
	// **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.
	Delivery *[]SubscriptionFileDelivery `json:"Delivery,omitempty"`

	// Exception Shipment exception data.
	//
	// **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.
	Exception *[]SubscriptionFileException `json:"Exception,omitempty"`

	// FileName File name belonging to specific subscription requested by user.
	// Format: YYMMDD_HHmmssnnn
	FileName string `json:"FileName"`

	// Generic Container for generic record information.
	//
	// **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.
	Generic *[]SubscriptionFileGeneric `json:"Generic,omitempty"`

	// Manifest Container represents all data that is relevant for the shipment, such as origin, destination, shipper, payment method etc. It will be returned when available.
	//
	// **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.
	Manifest *[]SubscriptionFileManifest `json:"Manifest,omitempty"`

	// Origin Information about shipment's origin.
	//
	// **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.
	Origin *[]SubscriptionFileOrigin `json:"Origin,omitempty"`

	// StatusType Container that displays whether the file is read or unread.
	StatusType SubscriptionFileStatusType `json:"StatusType"`
}

SubscriptionEventsSubscriptionFile defines model for SubscriptionEvents_SubscriptionFile.

type SubscriptionEventsSubscriptionStatus

type SubscriptionEventsSubscriptionStatus struct {
	// Code Status types of subscription. Valid values:
	// - UN – Unknown
	// - AT – Activate
	// - P – Pending
	// - A –Active
	// - I – Inactive
	// - S - Suspended
	Code string `json:"Code"`

	// Description Description of a subscription.
	// Valid values:
	// - Unknown (Unknown subscription status)
	// - Activate (Ready for the user to activate the subscription)
	// - Pending (In the process of waiting for privilege requests authorization)
	// - Active (The subscription is in good standing and is active.)
	// - Inactive (The subscriber puts the subscription on hold.)
	// - Suspended (UPS disables the subscription.)
	Description *string `json:"Description,omitempty"`
}

SubscriptionEventsSubscriptionStatus Container for whether the subscription is active or not.

type SubscriptionFileDelivery

type SubscriptionFileDelivery struct {
	// AccessPointLocationID UPS Access Point Location ID.
	AccessPointLocationID *string `json:"AccessPointLocationID,omitempty"`

	// ActivityLocation Geographic location where an activity occurred during a movement of a package or shipment. (ActivityLocation in Delivery is identical to the one in Manifest. But all elements in Delivery/ActivityLocation/AddressArtifactFormat are populated in this release. Refer to Manifest for remaining unpopulated elements.)
	ActivityLocation *DeliveryActivityLocation `json:"ActivityLocation,omitempty"`

	// BillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.
	BillToAccount *DeliveryBillToAccount `json:"BillToAccount,omitempty"`

	// COD Container for cash on delivery (COD) information.
	COD *DeliveryCOD `json:"COD,omitempty"`

	// Date Date that the package is delivered. Date format is YYYYMMDD.
	Date string `json:"Date"`

	// DeliveryLocation Information about the location where package is delivered.
	DeliveryLocation *DeliveryDeliveryLocation `json:"DeliveryLocation,omitempty"`

	// DriverRelease Information about driver release note / signature.
	DriverRelease *string `json:"DriverRelease,omitempty"`

	// LastPickupDate Last pickup by Date from the UPS Access Point Location.
	LastPickupDate *string `json:"LastPickupDate,omitempty"`

	// PackageReferenceNumber Package-level reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	PackageReferenceNumber *[]DeliveryPackageReferenceNumber `json:"PackageReferenceNumber,omitempty"`

	// ShipmentReferenceNumber Container tag for shipment reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	ShipmentReferenceNumber *[]DeliveryShipmentReferenceNumber `json:"ShipmentReferenceNumber,omitempty"`

	// ShipperNumber Shipper's six digit alphanumeric account number.
	ShipperNumber string `json:"ShipperNumber"`

	// Time Time that the package is delivered. Time format is HHMMSS
	Time string `json:"Time"`

	// TrackingNumber Package's 1Z tracking number.
	TrackingNumber string `json:"TrackingNumber"`
}

SubscriptionFileDelivery defines model for SubscriptionFile_Delivery.

type SubscriptionFileException

type SubscriptionFileException struct {
	// AccessPointLocationID The UPS Access Point Location ID.
	AccessPointLocationID *string `json:"AccessPointLocationID,omitempty"`

	// ActivityLocation Geographic location where an activity occurred during a movement of a package or shipment.(ActivityLocation in Exception is identical to the one in Manifest. But three of all elements in Exception/ActivityLocation/AddressArtifactFormat are populated in this release. Refer to Manifest for remaining unpopulated elements.)
	ActivityLocation *ExceptionActivityLocation `json:"ActivityLocation,omitempty"`

	// BillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.
	BillToAccount *ExceptionBillToAccount `json:"BillToAccount,omitempty"`

	// Date Date that the package is delivered. Date format is YYYYMMDD.
	Date string `json:"Date"`

	// PackageReferenceNumber Package-level reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	PackageReferenceNumber *[]ExceptionPackageReferenceNumber `json:"PackageReferenceNumber,omitempty"`

	// ReasonCode Code for reason of updating shipping address issue.
	ReasonCode *string `json:"ReasonCode,omitempty"`

	// ReasonDescription Description for reason of updating shipping address issue.
	ReasonDescription *string `json:"ReasonDescription,omitempty"`

	// RescheduledDeliveryDate Rescheduled delivery date for updated shipping address. Date format is YYYYMMDD.
	RescheduledDeliveryDate *string `json:"RescheduledDeliveryDate,omitempty"`

	// RescheduledDeliveryTime Rescheduled delivery time for updated shipping address. Time format is HHMMSS
	RescheduledDeliveryTime *string `json:"RescheduledDeliveryTime,omitempty"`

	// Resolution Resolution for updating shipping address issue.
	Resolution *ExceptionResolution `json:"Resolution,omitempty"`

	// ShipmentReferenceNumber Container tag for shipment reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	ShipmentReferenceNumber *[]ExceptionShipmentReferenceNumber `json:"ShipmentReferenceNumber,omitempty"`

	// ShipperNumber Shipper's six digit alphanumeric account number.
	ShipperNumber string `json:"ShipperNumber"`

	// StatusCode Code for status of updating shipping address issue.
	StatusCode *string `json:"StatusCode,omitempty"`

	// StatusDescription Description for status of updating shipping address issue.
	StatusDescription *string `json:"StatusDescription,omitempty"`

	// Time Time that the package is delivered. Time format is HHMMSS
	Time string `json:"Time"`

	// TrackingNumber Package's 1Z tracking number.
	TrackingNumber string `json:"TrackingNumber"`

	// UpdatedAddress Contains information about updated shipping address.
	UpdatedAddress *ExceptionUpdatedAddress `json:"UpdatedAddress,omitempty"`
}

SubscriptionFileException defines model for SubscriptionFile_Exception.

type SubscriptionFileGeneric

type SubscriptionFileGeneric struct {
	// Activity Information about package activity.
	Activity *GenericActivity `json:"Activity,omitempty"`

	// ActivityType Unique identifier that defines the type of activity.
	// - VM = Void for Manifest
	// - UR = Undeliverable Returns
	// - IR = Invoice Removal Successful
	// - TC = Transport Company USPS scan PS = 'Postal Service Possession Scan'
	// - FN = UPS Access Point/Alternate Delivery Location Email Notification Failure
	// - DS = Destination Scan
	// - AG = Package is in transit to a UPS facility
	// - RE = UPS Returns Exchange
	// - RP = Retail Pickup
	// - UD = Updated delivery date
	// - OD = Out for Delivery
	// - SD = Scheduled for Delivery
	// - FM = Tendered to FMP
	// - PT = UPS Courier Handoff (Package Tendered) DIALS -VX
	// - PC = UPS Courier Confirmation – XPLD -VX
	// - OT = Out For Delivery Today scan
	// - AD = At Delivery Site scan
	// - RO = Roadie Out for Delivery
	ActivityType string `json:"ActivityType"`

	// BillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.
	BillToAccount *GenericBillToAccount `json:"BillToAccount,omitempty"`

	// FailureNotification Failure notification information containing email address and Notification code
	FailureNotification *GenericFailureNotification `json:"FailureNotification,omitempty"`

	// PackageReferenceNumber Package-level reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	PackageReferenceNumber *[]GenericPackageReferenceNumber `json:"PackageReferenceNumber,omitempty"`

	// RescheduledDeliveryDate If Activity Type is "DS" or "UD", this element will contain Rescheduled Delivery Date. Format will be YYYYMMDD.
	//
	// If Activity Type is "OD", this element will contain Rescheduled Delivery Date. Format will be YYYYMMDD.
	//
	// If Activity Type is "SD", this element will contain agreed upon date with Customer for delivery Date. Format will be YYYYMMDD.
	RescheduledDeliveryDate *string `json:"RescheduledDeliveryDate,omitempty"`

	// Service Container for service code and description.
	Service *GenericService `json:"Service,omitempty"`

	// ShipTo Address and contact information describing the location where a return is to be delivered.
	ShipTo *GenericShipTo `json:"ShipTo,omitempty"`

	// ShipmentReferenceNumber Container tag for shipment reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	ShipmentReferenceNumber *[]GenericShipmentReferenceNumber `json:"ShipmentReferenceNumber,omitempty"`

	// ShipperNumber Shipper's alphanumeric account number.
	ShipperNumber *string `json:"ShipperNumber,omitempty"`

	// TrackingNumber Package's tracking number.
	TrackingNumber string `json:"TrackingNumber"`
}

SubscriptionFileGeneric defines model for SubscriptionFile_Generic.

type SubscriptionFileManifest

type SubscriptionFileManifest struct {
	// BillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.
	BillToAccount *ManifestBillToAccount `json:"BillToAccount,omitempty"`

	// CategoryAHazardousIndicator An accessorial Indicator flag: Y = Category A Hazardous materials accessorial provided in Manifest. Spaces = Category A Hazardous materials accessorial not provided in Manifest.
	CategoryAHazardousIndicator *string `json:"CategoryAHazardousIndicator,omitempty"`

	// ClinicalTrialIndicationNumber An unique Clinical Trial associated with the shipment provided in Manifest.
	ClinicalTrialIndicationNumber *string `json:"ClinicalTrialIndicationNumber,omitempty"`

	// ClinicalTrialIndicator An accessorial Indicator flag: Y = Clinical Trial accessorial provided in Manifest. Spaces = Clinical Trial accessorial not provided in Manifest.
	ClinicalTrialIndicator *string `json:"ClinicalTrialIndicator,omitempty"`

	// CollectBillIndicator Indicates whether or not to collect bill at time of delivery.
	CollectBillIndicator string `json:"CollectBillIndicator"`

	// CommercialInvoiceRemoval Commercial Invoice Removal (CIR) is an accessorial or indication that will allow a shipper to dictate that UPS remove the Commercial Invoice from the user's shipment before the shipment is delivered to the ultimate consignee. If shipment is CIR then this element will have value. For no CIR this element will not be appear
	CommercialInvoiceRemoval *string `json:"CommercialInvoiceRemoval,omitempty"`

	// ConsigneeBillIndicator Indicates if consignee will be billed the shipment.
	ConsigneeBillIndicator string `json:"ConsigneeBillIndicator"`

	// CustomsValue Information about shipment's customs value.
	CustomsValue *ManifestCustomsValue `json:"CustomsValue,omitempty"`

	// DeliverToAddresseeOnlyIndicator "Y" Indicates Shipment is Deliver to Addressee.
	DeliverToAddresseeOnlyIndicator *string `json:"DeliverToAddresseeOnlyIndicator,omitempty"`

	// DeliveryPreference Delivery Preference - This element will appear only when Hold for pick up was requested for UPS World Wide Express Freight Shipments. If no Hold for pick up was requested, this element will not appear.
	DeliveryPreference *string `json:"DeliveryPreference,omitempty"`

	// DirectDeliveryIndicator An accessorial Indicator flag: Y = Direct Delivery accessorisal provided in Manifest. Spaces = Direct Delivery accessorial not provided in Manifest.
	DirectDeliveryIndicator *string `json:"DirectDeliveryIndicator,omitempty"`

	// DocumentsOnly If the tag is present then the shipment is a document, otherwise the shipment is a non-document. Valid values:
	// - 1 = Letter
	// - 2 = Document (Non-Letter Document)
	// - 3 = Non-Document
	// - 4 = Pallet
	DocumentsOnly *string `json:"DocumentsOnly,omitempty"`

	// HarmonizedCode Harmonized code of the package.
	HarmonizedCode *string `json:"HarmonizedCode,omitempty"`

	// HoldForPickupAtUPSAccessPoint "Y" Indicates Shipment is Direct to Retail.
	HoldForPickupAtUPSAccessPoint *string `json:"HoldForPickupAtUPSAccessPoint,omitempty"`

	// ImportControl Import Control Indication is used to designate that the shipment is an Import Control shipment. If the shipment is an import control shipment then this element will have value. For no import shipment this will not be appear
	ImportControl *string `json:"ImportControl,omitempty"`

	// InstallationDeliveryIndicator "Y" indicates that a Heavy Goods Installation Delivery Accessorial is provided.
	InstallationDeliveryIndicator *string `json:"InstallationDeliveryIndicator,omitempty"`

	// ItemDisposalIndicator "Y" indicates that a Heavy Goods Item Disposal Accessorial is provided.
	ItemDisposalIndicator *string `json:"ItemDisposalIndicator,omitempty"`

	// LabelDeliveryMethod Indicates Label Delivery Method, Values are: LDE Electronic Label. LDO One Attempt. LDP Print Label. LDT Three Attempt. LPM Print and Mail Label.
	LabelDeliveryMethod *string `json:"LabelDeliveryMethod,omitempty"`

	// LeadShipmentTrackingNumber Lead Tracking Number in shipment
	LeadShipmentTrackingNumber *string `json:"LeadShipmentTrackingNumber,omitempty"`

	// LiftGateOnDelivery Lift Gate On Delivery - This element will appear only when Lift Gate For Delivery was requested for UPS World Wide Express Freight Shipments. If no Lift Gate for Delivery was requested, this element will not appear.
	LiftGateOnDelivery *string `json:"LiftGateOnDelivery,omitempty"`

	// LiftGateOnPickUp Lift Gate On PickUp - This element will appear only when Lift Gate For PickUp was requested for UPS World Wide Express Freight Shipments. If no Lift Gate for PickUp was requested, this element will not appear.
	LiftGateOnPickUp *string `json:"LiftGateOnPickUp,omitempty"`

	// LocationAssured Indicates Location Assured Values: Y - Location Assured accessorial requested
	LocationAssured *string `json:"LocationAssured,omitempty"`

	// ManufactureCountry Country or Territory  of Manufacture of the contents of the package.
	ManufactureCountry *string `json:"ManufactureCountry,omitempty"`

	// Package Defines a package.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	Package *[]ManifestPackage `json:"Package,omitempty"`

	// PackageReleaseCodeIndicator "Y" indicates Shipment has PackageReleaseCode Accessorial.
	PackageReleaseCodeIndicator *string `json:"PackageReleaseCodeIndicator,omitempty"`

	// PickupDate Should be set equal to the date on while the packages were picked up (may be prior days date if the transmission occurs after midnight). Formatted as YYYYMMDD.
	PickupDate *string `json:"PickupDate,omitempty"`

	// PickupPreference Pickup Preference -This element will appear only when Dropoff At UPS Facility was requested for UPS World Wide Express Freight Shipments. If no Dropoff At UPS Facility was requested, this element will not appear.
	PickupPreference *string `json:"PickupPreference,omitempty"`

	// PostalServiceTrackingID Postal Service Tracking ID transport company tracking number.
	PostalServiceTrackingID *string `json:"PostalServiceTrackingID,omitempty"`

	// ProactiveResponseIndicator "Y" indicates that a UPS Proactive Response Accessorial is provided.
	ProactiveResponseIndicator *string `json:"ProactiveResponseIndicator,omitempty"`

	// Product This element will have value "PAC" for CAR shipments. For no CAR shipments this element will not be appeared.
	Product *string `json:"Product,omitempty"`

	// ReferenceNumber Shipment-level reference numbers.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	ReferenceNumber *[]ManifestReferenceNumber `json:"ReferenceNumber,omitempty"`

	// ReturnsFlexibleAccess (RFA) UPS returns flexible access. This element will appear with value only when returns flexible access uploaded. For no returns flexible access this element will not be appear
	ReturnsFlexibleAccess *string `json:"ReturnsFlexibleAccess,omitempty"`

	// RoomOfChoiceIndicator "Y" indicates that a Heavy Goods Room of Choice Accessorial is provided.
	RoomOfChoiceIndicator *string `json:"RoomOfChoiceIndicator,omitempty"`

	// SaturdayNonPremiumCommercialDeliveryIndicator "Y"  indicates that a SaturdayNonPremiumCommercialDeliveryIndicator is provided.
	SaturdayNonPremiumCommercialDeliveryIndicator *string `json:"SaturdayNonPremiumCommercialDeliveryIndicator,omitempty"`

	// ScheduledDeliveryDate The date the shipment originally was scheduled for delivery. Formatted as YYYYMMDD.
	ScheduledDeliveryDate *string `json:"ScheduledDeliveryDate,omitempty"`

	// ScheduledDeliveryTime Schedule delivery time. Time format is HHMMSS
	ScheduledDeliveryTime *string `json:"ScheduledDeliveryTime,omitempty"`

	// Service Container for service code and description.
	Service *ManifestService `json:"Service,omitempty"`

	// ShipTo Address and contact information describing the location where a return is to be delivered.
	ShipTo ManifestShipTo `json:"ShipTo"`

	// ShipmentChargeType Shipment charge type.
	// Valid values:
	// C/F - Cost and Freight
	// C/B - Consignee Billed Package
	// F/C - Freight Collect
	// DDP - Delivered Duty Paid
	// VAT Unpaid
	// FOB - Free On Board
	// P/P - Prepaid
	// F/D - Free Domicile
	// T/P - Third Party Billing
	ShipmentChargeType *string `json:"ShipmentChargeType,omitempty"`

	// ShipmentServiceOptions Container tag for optional UPS services related to a shipment.
	ShipmentServiceOptions *ManifestShipmentServiceOptions `json:"ShipmentServiceOptions,omitempty"`

	// Shipper Shipper's record for a shipment.
	Shipper ManifestShipper `json:"Shipper"`

	// SpecialInstructions User-defined special instructions for delivery.
	SpecialInstructions *string `json:"SpecialInstructions,omitempty"`

	// SundayNonPremiumCommercialDeliveryIndicator "Y"  indicates that a SundayNonPremiumCommercialDeliveryIndicator is provided.
	SundayNonPremiumCommercialDeliveryIndicator *string `json:"SundayNonPremiumCommercialDeliveryIndicator,omitempty"`

	// UAPAddress Information about Hold for Pickup UPS Access Point Address
	UAPAddress *ManifestUAPAddress `json:"UAPAddress,omitempty"`

	// UPSAccessPointCODIndicator "Y" Indicates Shipment is Cash on Delivery in Direct to Retail
	UPSAccessPointCODIndicator *string `json:"UPSAccessPointCODIndicator,omitempty"`

	// UPSPremierAccessorialIndicator "Y" indicates that the UPS Premier accessorial is provided.
	UPSPremierAccessorialIndicator *string `json:"UPSPremierAccessorialIndicator,omitempty"`

	// UPSPremierCategoryCode Indicates the UPS Premier category applied to the package Valid values:
	// - 'PRS' – UPS Premier Silver
	// - 'PRG' – UPS Premier Gold
	// - 'PRP' - UPS Premier Platinum
	UPSPremierCategoryCode *string `json:"UPSPremierCategoryCode,omitempty"`

	// UPSReturnsExchange UPS Return and Exchange – This element will appear with value Y only when UPS Return and Exchange was requested. For no UPS Returns and Exchange then this element will not appear
	UPSReturnsExchange *string `json:"UPSReturnsExchange,omitempty"`

	// UPScarbonneutral UPS carbon neutral is a term used to reflect a generic term for the tagging to be included on any document, label, e-mail, etc. used to identify that the UPS carbon neutral fee is applied. This element will appear only when shipment is UPS carbon neutral with value. For non UPS carbon neutral shipping this element appear.
	UPScarbonneutral *string `json:"UPScarbonneutral,omitempty"`

	// WhiteGloveDeliveryIndicator "Y" indicates that a Heavy Goods White Glove Delivery Accessorial is provided.
	WhiteGloveDeliveryIndicator *string `json:"WhiteGloveDeliveryIndicator,omitempty"`
}

SubscriptionFileManifest defines model for SubscriptionFile_Manifest.

type SubscriptionFileOrigin

type SubscriptionFileOrigin struct {
	// ActivityLocation Geographic location where an activity occurred during a movement of a package or shipment. (ActivityLocation in Origin is identical to the one in Manifest. But three of all elements in Origin/ActivityLocation/AddressArtifactFormat are populated in this release. Refer to Manifest for remaining unpopulated elements.)
	ActivityLocation *OriginActivityLocation `json:"ActivityLocation,omitempty"`

	// BillToAccount The information provided within this container identifies the shipper number and billing option the user specified to view during the subscription process.
	BillToAccount *OriginBillToAccount `json:"BillToAccount,omitempty"`

	// Date Date that the package is picked up at the origin. Date format is YYYYMMDD.
	Date string `json:"Date"`

	// PackageReferenceNumber Package-level reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	PackageReferenceNumber *[]OriginPackageReferenceNumber `json:"PackageReferenceNumber,omitempty"`

	// ScheduledDeliveryDate Scheduled delivery date for destination address. Date format is YYYYMMDD.
	ScheduledDeliveryDate *string `json:"ScheduledDeliveryDate,omitempty"`

	// ScheduledDeliveryTime Scheduled delivery time for destination address. Time format is HHMMSS.
	ScheduledDeliveryTime *string `json:"ScheduledDeliveryTime,omitempty"`

	// ShipmentReferenceNumber Container tag for shipment reference number.
	//
	// **NOTE:** For versions >= v3, this element will always be returned as an array. For requests using version = v1 and v2, this element will be returned as an array if there is more than one object and a single object if there is only 1.
	ShipmentReferenceNumber *[]OriginShipmentReferenceNumber `json:"ShipmentReferenceNumber,omitempty"`

	// ShipperNumber Shipper's six digit alphanumeric account number.
	ShipperNumber string `json:"ShipperNumber"`

	// Time Time that the package is picked up at the origin. Time format is HHMMSS.
	Time string `json:"Time"`

	// TrackingNumber Package's 1Z tracking number.
	TrackingNumber string `json:"TrackingNumber"`
}

SubscriptionFileOrigin defines model for SubscriptionFile_Origin.

type SubscriptionFileStatusType

type SubscriptionFileStatusType struct {
	// Code Status types of subscription file. Valid values:
	// - R – Read
	// - U - Unread
	Code string `json:"Code"`

	// Description Description of a subscription file.
	Description string `json:"Description"`
}

SubscriptionFileStatusType Container that displays whether the file is read or unread.

type SubscriptionRequestDateTimeRange

type SubscriptionRequestDateTimeRange struct {
	// BeginDateTime Beginning date time for the retrieval criteria of the subscriptions. It is required for date time request criteria. Format: YYYYMMDDHHmmss.
	BeginDateTime *string `json:"BeginDateTime,omitempty"`

	// EndDateTime Ending date time for the retrieval criteria of the subscriptions. Format: YYYYMMDDHHmmss.  When a null or empty EndDateTime is passed in the request, it is defaulted to 7 days from the given begin date.
	EndDateTime *string `json:"EndDateTime,omitempty"`
}

SubscriptionRequestDateTimeRange The range of date time of subscription requested by user, as one type of request criteria, valid up to but not exceeding 7 days into the past, starting from current day.

type UAPAddressAddress

type UAPAddressAddress struct {
	// AddressLine1 Address Line 1 of the UPS Access Point.
	AddressLine1 *string `json:"AddressLine1,omitempty"`

	// AddressLine2 Address Line 2 of the UPS Access Point. Usually room/floor information.
	AddressLine2 *string `json:"AddressLine2,omitempty"`

	// AddressLine3 Address Line 3 of the UPS Access Point. Usually department information.
	AddressLine3 *string `json:"AddressLine3,omitempty"`

	// City UPS Access Point City.
	City *string `json:"City,omitempty"`

	// CountryCode UPS Access Point's country or territory code. Valid values: CA,MX, PR, US, AT, BE, DE, DK, ES, FI, FR, GB, IE, IT, NL, PT, SE, MC, and VA
	CountryCode *string `json:"CountryCode,omitempty"`

	// PostalCode UPS Access Point's postal code. If the address is US then 5 or 9 digits are required. CA addresses must provide a 6 character postal code that has the format of A#A#A#, where A is an alphabetic character and # is numeric digit. Otherwise, 1 to 16 alphanumeric characters are allowed.
	PostalCode *string `json:"PostalCode,omitempty"`

	// StateProvinceCode UPS Access Point's state or province code. Must be valid US state. If the UPS Access Point country or territory is US or CA a two character code is required, otherwise, the StateProvinceCode is optional.
	StateProvinceCode *string `json:"StateProvinceCode,omitempty"`
}

UAPAddressAddress Information that specifies a physical location.

type UpdatedAddressAddressExtendedInformation

type UpdatedAddressAddressExtendedInformation struct {
	// High The higher limit associated with the extended address type. It will be returned if there is any update due to exception.
	High *string `json:"High,omitempty"`

	// Low The lower limit associated with the extended address type. It will be returned if there is any update due to exception.
	Low *string `json:"Low,omitempty"`

	// Type Allows for secondary address information such as s suite or apartment. It will be returned if there is any update due to exception.
	Type *string `json:"Type,omitempty"`
}

UpdatedAddressAddressExtendedInformation defines model for UpdatedAddress_AddressExtendedInformation.

Jump to

Keyboard shortcuts

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