timeintransit

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 timeintransit 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 NewTimeInTransitOpRequest

func NewTimeInTransitOpRequest(server string, version string, params *TimeInTransitOpParams, body TimeInTransitOpJSONRequestBody) (*http.Request, error)

NewTimeInTransitOpRequest calls the generic TimeInTransitOp builder with application/json body

func NewTimeInTransitOpRequestWithBody

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

NewTimeInTransitOpRequestWithBody generates requests for TimeInTransitOp with any type of body

Types

type CandidateAddress

type CandidateAddress struct {
	// City Present on response when candidate value has a political division 2 value available.
	City *string `json:"city,omitempty"`

	// CountryCode Country code, follows ISO-defined country codes.
	CountryCode *string `json:"countryCode,omitempty"`

	// CountryName Spelled out country name.
	CountryName string `json:"countryName"`

	// PostalCode Present on response when candidate has a postal code value available
	PostalCode *string `json:"postalCode,omitempty"`

	// PostalCodeHigh Present on response when candidate value has a postal code range value available. This is the postal range high value.
	PostalCodeHigh *string `json:"postalCodeHigh,omitempty"`

	// PostalCodeLow Present on response when candidate value has a postal code range value available. This is the postal range low value.
	PostalCodeLow *string `json:"postalCodeLow,omitempty"`

	// StateProvince Present on response when candidate value has a political division 1 value available.
	StateProvince *string `json:"stateProvince,omitempty"`

	// Town Present on response when candidate value has a political division 3 value available.
	Town *string `json:"town,omitempty"`
}

CandidateAddress defines model for candidateAddress.

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) TimeInTransitOp

func (c *Client) TimeInTransitOp(ctx context.Context, version string, params *TimeInTransitOpParams, body TimeInTransitOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TimeInTransitOpWithBody

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

type ClientInterface

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

	TimeInTransitOp(ctx context.Context, version string, params *TimeInTransitOpParams, body TimeInTransitOpJSONRequestBody, 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) TimeInTransitOpWithBodyWithResponse

func (c *ClientWithResponses) TimeInTransitOpWithBodyWithResponse(ctx context.Context, version string, params *TimeInTransitOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TimeInTransitOpResponse, error)

TimeInTransitOpWithBodyWithResponse request with arbitrary body returning *TimeInTransitOpResponse

func (*ClientWithResponses) TimeInTransitOpWithResponse

func (c *ClientWithResponses) TimeInTransitOpWithResponse(ctx context.Context, version string, params *TimeInTransitOpParams, body TimeInTransitOpJSONRequestBody, reqEditors ...RequestEditorFn) (*TimeInTransitOpResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// TimeInTransitOpWithBodyWithResponse request with any body
	TimeInTransitOpWithBodyWithResponse(ctx context.Context, version string, params *TimeInTransitOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TimeInTransitOpResponse, error)

	TimeInTransitOpWithResponse(ctx context.Context, version string, params *TimeInTransitOpParams, body TimeInTransitOpJSONRequestBody, reqEditors ...RequestEditorFn) (*TimeInTransitOpResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type DestinationPickList

type DestinationPickList = []CandidateAddress

DestinationPickList defines model for destinationPickList.

type EmsResponse

type EmsResponse struct {
	// BillType Represents the shipment type.
	//
	//  Valid values: "02","03","04","07"
	//  02 - Document
	//  03 - Non-Document
	//  04 - WWEF
	//  07 - Pallet
	BillType string `json:"billType"`

	// DestinationCityName The shipment destination city.
	//
	//  Required for International requests for those countries that do not utilize postal codes.
	DestinationCityName *string `json:"destinationCityName,omitempty"`

	// DestinationCountryCode Destination country code, conforms to ISO-defined country codes.
	DestinationCountryCode string `json:"destinationCountryCode"`

	// DestinationCountryName Destination country name value
	DestinationCountryName string `json:"destinationCountryName"`

	// DestinationPostalCode The shipment destination postal code.  Required for US domestic requests.
	//
	//  Either 5, or 9-digit US zip codes must be used for U.S. addresses.  For non-US addresses, this is recommended for all countries that utilize postal codes.
	DestinationPostalCode *string `json:"destinationPostalCode,omitempty"`

	// DestinationPostalCodeHigh The shipment destination postal code high range.  Value may or may not differ from destinationPostalCode.
	//
	//  Either 5, or 9-digit US zip codes must be used for U.S. addresses.  For non-US addresses, this is recommended for all countries that utilize postal codes.
	DestinationPostalCodeHigh *string `json:"destinationPostalCodeHigh,omitempty"`

	// DestinationPostalCodeLow The shipment destination postal code low range.  Value may or may not differ from destinationPostalCode.
	//
	//  Either 5, or 9-digit US zip codes must be used for U.S. addresses.  For non-US addresses, this is recommended for all countries that utilize postal codes.
	DestinationPostalCodeLow *string `json:"destinationPostalCodeLow,omitempty"`

	// DestinationStateProvince The shipment destination state or province.
	//
	//  For U.S. addresses, the value will be a valid 2-Character value (per U.S. Mail Standards).
	//
	//  For non-U.S. addresses the full State or Province name will be returned.
	DestinationStateProvince *string `json:"destinationStateProvince,omitempty"`

	// DutyType Populated with valid duty types for international transactions only.
	//
	//  Valid Duty Types: "01","02","03","04","05","06","07","08","09"
	//  01 - Dutiable
	//  02 - Non Dutiable
	//  03 - Low Value
	//  04 - Courier Remission
	//  05 - Gift
	//  06 - Military
	//  07 - Exception
	//  08 - Line Release
	//  09 - Low Value
	DutyType *string `json:"dutyType,omitempty"`

	// GuaranteeSuspended Returns TRUE if the shipment dates fall within a defined peak date range. When the guarantee is suspended, it is suspended for all services in the response.
	//
	//   The logic for determining if guarantees are suspended applies per origin country.
	//
	//  The following will be used to determine if a shipment falls within a defined peak date range: shipDate (from the response), deliveryDate (from the response), server Date.
	//
	//  Defined peak date range (range for when guarantees are suspended) is inclusive of start and end dates.
	GuaranteeSuspended bool `json:"guaranteeSuspended"`

	// NumberOfServices Number of services being returned in the services array.
	NumberOfServices int `json:"numberOfServices"`

	// OriginCityName The shipment origin city.
	//
	//  Required for International requests for those countries that do not utilize postal codes.
	OriginCityName *string `json:"originCityName,omitempty"`

	// OriginCountryCode Origin country code, conforms to ISO-defined country codes.
	OriginCountryCode string `json:"originCountryCode"`

	// OriginCountryName Origin country name value
	OriginCountryName string `json:"originCountryName"`

	// OriginPostalCode The shipment origin postal code.  Required for US domestic requests.
	//
	//  Either 5, or 9-digit US zip codes must be used for U.S. addresses.  For non-US addresses, this is recommended for all countries that utilize postal codes.
	OriginPostalCode *string `json:"originPostalCode,omitempty"`

	// OriginPostalCodeHigh The shipment origin postal code high range.  Value may or may not differ from destinationPostalCode.
	//
	//  Either 5, or 9-digit US zip codes must be used for U.S. addresses.  For non-US addresses, this is recommended for all countries that utilize postal codes.
	OriginPostalCodeHigh *string `json:"originPostalCodeHigh,omitempty"`

	// OriginPostalCodeLow The shipment origin postal code low range.  Value may or may not differ from destinationPostalCode.
	//
	//  Either 5, or 9-digit US zip codes must be used for U.S. addresses.  For non-US addresses, this is recommended for all countries that utilize postal codes.
	OriginPostalCodeLow *string `json:"originPostalCodeLow,omitempty"`

	// OriginStateProvince The shipment origin state or province.
	//
	//  For U.S. addresses, the value will be a valid 2-Character value (per U.S. Mail Standards).
	//
	//  For non-U.S. addresses the full State or Province name will be returned.
	OriginStateProvince *string `json:"originStateProvince,omitempty"`

	// ResidentialIndicator residential Indicator that was sent in on the request.
	//
	//  Valid values: "01","02"
	//
	//  01 - Residential
	//  02 - Commercial
	ResidentialIndicator string `json:"residentialIndicator"`

	// ServiceLevel Service Levels being returned.
	//
	//  A = all service levels.
	//
	//  Blank is the default for all Service Level values.
	ServiceLevel string      `json:"serviceLevel"`
	Services     *[]Services `json:"services,omitempty"`

	// ShipDate The date the shipment is tendered to UPS for shipping (can be dropped off at UPS or picked up by UPS).  This date may or may not be the UPS business date.
	//
	//  Valid Format: YYYY-MM-DD
	ShipDate string `json:"shipDate"`

	// ShipTime The time the shipment is tendered to UPS for shipping (can be dropped off at UPS or picked up by UPS).
	//
	//  Valid Format: HH:MM:SS
	ShipTime string `json:"shipTime"`

	// ShipmentContentsCurrencyCode Returned on response when shipmentContentsValue was present on the request.
	ShipmentContentsCurrencyCode *string `json:"shipmentContentsCurrencyCode,omitempty"`

	// ShipmentContentsValue Shipment contents value. Value is only required for international shipment.
	//
	//  Defaults to 0.0
	ShipmentContentsValue *string `json:"shipmentContentsValue,omitempty"`

	// Weight Shipment weight.  Value is only required for international shipment.
	//
	//  Defaults to 0.0
	Weight *string `json:"weight,omitempty"`

	// WeightUnitOfMeasure Returned on response when weight was present on the request.
	WeightUnitOfMeasure *string `json:"weightUnitOfMeasure,omitempty"`
}

EmsResponse defines model for emsResponse.

type ErrorResponse

type ErrorResponse struct {
	Errors *[]Errors `json:"errors,omitempty"`
}

ErrorResponse defines model for errorResponse.

type Errors

type Errors struct {
	// Code Error code
	Code *string `json:"code,omitempty"`

	// Message Error message
	Message *string `json:"message,omitempty"`
}

Errors defines model for errors.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type OriginPickList

type OriginPickList = []CandidateAddress

OriginPickList defines model for originPickList.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type Services

type Services struct {
	// BusinessTransitDays Returns the number of UPS business days from origin location to destination location.
	BusinessTransitDays int `json:"businessTransitDays"`

	// CommitTime Scheduled commit time.
	//
	//  For international shipments the value always come back from SE (OPSYS data) but for domestic, value may be used from NRF commit time.
	//
	//  Valid format: HH:MM:SS
	CommitTime string `json:"commitTime"`

	// CstccutoffTime Latest time a customer can contact UPS CST to be notified for requesting a pickup. This data is available only for international transactions. If customer does not notify UPS for a pickup before this time, the services will not meet the guarantee commitment.
	CstccutoffTime string `json:"cstccutoffTime"`

	// DelayCount Returns the number of delay needed for customs encounter at the origin or destination location.  This data is available only for international transactions.
	//
	//  Defaults to 0.
	DelayCount int `json:"delayCount"`

	// DeliveryDate Scheduled delivery date.
	//
	//  Valid format: YYYY-MM-DD
	DeliveryDate string `json:"deliveryDate"`

	// DeliveryDayOfWeek Three character scheduled delivery day of week.
	//
	//  Valid values: "MON","TUE","WED","THU","FRI", "SAT"
	DeliveryDayOfWeek string `json:"deliveryDayOfWeek"`

	// DeliveryTime Scheduled Delivery Time, value may be later then commit time.
	//
	//  Valid format: HH:MM:SS
	DeliveryTime string `json:"deliveryTime"`

	// GuaranteeIndicator Return "1" Guaranteed, or "0" Not Guaranteed based on below conditions:
	//
	//  If the ship date, delivery date, and system date are not within a defined peak date range, and a value for service guarantee is available in SE (OPSYS data) that will be returned.
	//
	//  If the ship date or delivery date or system date are within a defined peak date range and the service is within the list of services to remove guarantees for, "0" wil be returned.
	GuaranteeIndicator string `json:"guaranteeIndicator"`

	// HolidayCount Returns the number of holidays encountered at the origin and destination location, if it effects the time and transit.  This data is available only for international transactions.
	//
	//  Defaults to 0.
	HolidayCount int `json:"holidayCount"`

	// NextDayPickupIndicator Returns a "1" if the requested shipped on date was changed. This data is available only for international transactions.
	//
	//  When this flag is set, WWDTDisclaimer.getNextDayDisclaimer method could be called to return the next day disclaimer message.
	NextDayPickupIndicator string `json:"nextDayPickupIndicator"`

	// PickupDate Planned pickup date.
	//
	//  Note: This value may not equal the shipped on value requested.  This could happen when the requested shipped on date is a holiday or for locations needing 24 hour notice before a pickup could be made.
	PickupDate string `json:"pickupDate"`

	// PickupTime Latest possible pickup time. This data is available only for international transactions. If the package was not actually picked by UPS before this time, the services will not meet the guarantee commitment.
	PickupTime string `json:"pickupTime"`

	// Poddate Returns the date proof of delivery information would be available.  This data is available only for international transactions.
	Poddate *string `json:"poddate,omitempty"`

	// Poddays Returns the number of days proof of delivery information will be available.  This data is available only for international transactions.
	Poddays *int `json:"poddays,omitempty"`

	// RestDaysCount Returns the number of rest days encountered at the origin location.  this data is available only for international transactions.
	//
	//  Defaults to 0.
	RestDaysCount int `json:"restDaysCount"`

	// SaturdayDeliveryDate Delivery date of Saturday Delivery
	//
	//  Valid Format: YYYY-MM-DD
	SaturdayDeliveryDate *string `json:"saturdayDeliveryDate,omitempty"`

	// SaturdayDeliveryTime Delivery time of Saturday deliver
	//
	//  Valid format: HH:MM:SS
	SaturdayDeliveryTime *string `json:"saturdayDeliveryTime,omitempty"`

	// SaturdayPickupIndicator Returns "1" if Saturday Pickup is available for an extra charge otherwise it will return "0".
	//
	//  When this flag is set, WWDTDisclaimer.getSaturdayPickupDisclaimer method could be called to return the Saturday pickup extra charge message
	SaturdayPickupIndicator string `json:"saturdayPickupIndicator"`

	// ServiceLevel Service level code
	//
	//  Valid domestic service codes: "1DMS","1DAS","1DM","1DA","1DP","2DM","2DA","3DS","GND".
	//
	//   Valid International service codes (not a complete list) ,"01","02","03","05","08","09","10","11","18","19","20","21","22","23","24","25","26","28","29","33","68".
	ServiceLevel string `json:"serviceLevel"`

	// ServiceLevelDescription Service name. Examples are: UPS Next Day Air, UPS Ground, UPS Expedited, UPS Worldwide Express Freight
	ServiceLevelDescription string `json:"serviceLevelDescription"`

	// ServiceRemarksText Service remarks text. The contents of this field will represent text that the back end application/function needs to display to clarify the time in transit calculation.
	ServiceRemarksText *string `json:"serviceRemarksText,omitempty"`

	// ShipDate The date the shipment is tendered to UPS for shipping (can be dropped off at UPS or picked up by UPS).  This date may or may not be the UPS business date.
	//
	//  Valid Format: YYYY-MM-DD
	ShipDate string `json:"shipDate"`

	// TotalTransitDays Available for International requests. Number of calendar days from origin location to destination location.  TotalTransitDays = BusinessTransitDays + RestDaysCount + HolidayCount.
	//
	//  Defaults to 0.
	TotalTransitDays int `json:"totalTransitDays"`
}

Services defines model for services.

type TimeInTransitOpJSONRequestBody

type TimeInTransitOpJSONRequestBody = TimeInTransitRequest

TimeInTransitOpJSONRequestBody defines body for TimeInTransitOp for application/json ContentType.

type TimeInTransitOpParams

type TimeInTransitOpParams struct {
	// TransId An identifier unique to the request. Length 32
	TransId string `json:"transId"`

	// TransactionSrc Identifies the clients/source application that is calling.  Length 512
	TransactionSrc string `json:"transactionSrc"`
}

TimeInTransitOpParams defines parameters for TimeInTransitOp.

type TimeInTransitOpResponse

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

func ParseTimeInTransitOpResponse

func ParseTimeInTransitOpResponse(rsp *http.Response) (*TimeInTransitOpResponse, error)

ParseTimeInTransitOpResponse parses an HTTP response from a TimeInTransitOpWithResponse call

func (TimeInTransitOpResponse) Status

func (r TimeInTransitOpResponse) Status() string

Status returns HTTPResponse.Status

func (TimeInTransitOpResponse) StatusCode

func (r TimeInTransitOpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TimeInTransitRequest

type TimeInTransitRequest struct {
	// AvvFlag Used to bypass address validation when the address has already been validated by the calling application.
	//
	//  Valid values: true, false
	//
	//  Defaults to true
	//  Note: not to be exposed to external customers.
	AvvFlag *bool `json:"avvFlag,omitempty"`

	// BillType Required for International Requests.
	//  Valid values: "02","03","04"
	//  02 - Document
	//  03 - Non Document
	//  04 - WWEF (Pallet)
	BillType *string `json:"billType,omitempty"`

	// DestinationCityName The shipment destination city. Required for International Requests for those countries that do not utilize postal codes.
	DestinationCityName *string `json:"destinationCityName,omitempty"`

	// DestinationCountryCode The country code of the destination.
	//  Valid values:
	//  Must conform to ISO-defined country codes.
	DestinationCountryCode *string `json:"destinationCountryCode,omitempty"`

	// DestinationPostalCode The shipment destination postal code.
	//  Required for Domestic requests. Either 5, or 9-digit U.S. zip codes must be used for U.S. addresses.  For non-U.S. addresses, this is recommended for all countries that utilize postal codes.
	DestinationPostalCode *string `json:"destinationPostalCode,omitempty"`

	// DestinationStateProvince The shipment destination state or province.  For U.S. addresses, the value must be a valid 2-character value (per U.S. Mail standards).
	//  For non-U.S. addresses the full State or Province name should be provided.
	DestinationStateProvince *string `json:"destinationStateProvince,omitempty"`

	// DestinationTownName The shipment destination town.  Town is a subdivision of city.
	DestinationTownName *string `json:"destinationTownName,omitempty"`

	// DropOffAtFacilityIndicator Sets the indicator for an international Freight Pallet shipment that is going to be dropped off by shipper to a UPS facility.  The indicator is used when the Bill Type is "04".
	//
	//  Valid values: "0", "1".
	//
	//  0 = WWDTProcessIF.PICKUP_BY_UPS
	//  1 = WWDTProcessIf.DROPOFF_BY_SHIPPER
	//
	//  The default value is "0"
	DropOffAtFacilityIndicator *int `json:"dropOffAtFacilityIndicator,omitempty"`

	// HoldForPickupIndicator Sets the indicator for an international Freight Pallet shipment that is going to be pick-up by consignee in a destination facility.  The indicator is used when the Bill Type is "04".
	//
	//  Valid values: "0", "1".
	//
	//  0 = WWDTProcessIF.DELIVERY_BY_UPS
	//  1 = WWDTProcessIf.PICKUP_BY_CONSIGNEE
	//
	//  The default value is "0"
	HoldForPickupIndicator *int `json:"holdForPickupIndicator,omitempty"`

	// MaxList Sets the limit for the number of candidates returned in candidate list.
	//
	//  Default value is 200.
	MaxList *int `json:"maxList,omitempty"`

	// NumberOfPackages Sets the number of packages in shipment.  Default value is 1.
	NumberOfPackages *int `json:"numberOfPackages,omitempty"`

	// OriginCityName The shipment origin city. Required for International requests for those countries that do not utilize postal codes.
	OriginCityName *string `json:"originCityName,omitempty"`

	// OriginCountryCode The country code of the origin shipment.
	// Valid Values:
	// Must conform to the ISO-defined, two-letter country or territory codes.  Refer to Country or Territory Codes in the Appendix above for valid values.
	OriginCountryCode string `json:"originCountryCode"`

	// OriginPostalCode Required for Domestic requests.  The shipment origin postal code.
	// Either the 5, or 9-digit US zip codes must be used for U.S. addresses.  For non-U.S. addresses, this is recommended for all countries that utilize postal codes.
	OriginPostalCode *string `json:"originPostalCode,omitempty"`

	// OriginStateProvince The shipment origin state or province.  For U.S. addresses, the value must be a valid 2-character value (per U.S. Mail standards)
	//  For non-U.S. addresses the full State or Province name should be provided.
	OriginStateProvince *string `json:"originStateProvince,omitempty"`

	// OriginTownName The shipment origin town. Town is a subdivision of city.
	OriginTownName *string `json:"originTownName,omitempty"`

	// PremierIndicator Sets the indicator for premier time in transit when the shipment contains a premier package.
	//
	//  Valid values: “00”, “01”.
	//
	//  00 = Non-premier time in transit.
	//
	//  01 = Premier time in transit.
	//
	//  The default value is “00”.
	PremierIndicator *string `json:"premierIndicator,omitempty"`

	// ResidentialIndicator Indicates if address is residential or commercial. Required for Domestic requests.
	//
	//  Valid values: "01", "02"
	//
	//  01 = Residential
	//  02 = Commercial
	//
	//  Defaults to commercial for International Requests.
	ResidentialIndicator *string `json:"residentialIndicator,omitempty"`

	// ReturnUnfilterdServices Used to get back a full list of services - bypassing current WWDT business rules to remove services from the list being returned to clients for US domestic that are slower than UPS Ground.
	//
	//  Default value is false.
	ReturnUnfilterdServices *bool `json:"returnUnfilterdServices,omitempty"`

	// ShipDate The date the shipment is tendered to UPS for shipping (can be dropped off at UPS or picked up by UPS).  Allowed range is up to 60 days in future and 35 days in past. This date may or may not be the UPS business date.
	//
	// Format is YYYY-MM-DD.
	//
	// YYYY = 4 digit year;
	//
	// MM = 2 digit month, valid values 01-12;
	//
	// DD = 2 digit day of month, valid values 01-31
	//  If no value is provided, defaults to current system date.
	ShipDate *string `json:"shipDate,omitempty"`

	// ShipTime The time the shipment is tendered to UPS for shipping (can be dropped off at UPS or picked up by UPS).
	//  Format is HH:MM:SS
	//
	//  Defaults to current time if not provided.
	ShipTime *string `json:"shipTime,omitempty"`

	// ShipmentContentsCurrencyCode The unit of currency used for values. Required if ShipmentContentsValue is populated.
	//  Valid value: must conform to ISO standards.
	ShipmentContentsCurrencyCode *string `json:"shipmentContentsCurrencyCode,omitempty"`

	// ShipmentContentsValue The monetary value of shipment contents.
	//
	//  Required when origin country does not equal destination country and BillType is 03 (non-documented) or 04 (WWEF)
	//
	//  Required when origin country does not equal destination country, and destination country = CA, and BillType = 02 (document).
	//
	//  Note: If decimal values are used, valid values will be rounded to the tenths.
	ShipmentContentsValue *float32 `json:"shipmentContentsValue,omitempty"`

	// Weight The weight of the shipment. Required for International requests.
	//
	//  Note: If decimal values are used, valid values will be rounded to the tenths.
	//
	//  Note: Maximum value is 70 kilograms or 150 pounds.
	Weight *float32 `json:"weight,omitempty"`

	// WeightUnitOfMeasure Required for International requests and when weight value is provided.
	//
	//  Valid Values: "LBS", "KGS"
	WeightUnitOfMeasure *string `json:"weightUnitOfMeasure,omitempty"`
}

TimeInTransitRequest N/A

type TimeInTransitResponse

type TimeInTransitResponse struct {
	DestinationPickList *DestinationPickList `json:"destinationPickList,omitempty"`
	EmsResponse         *EmsResponse         `json:"emsResponse,omitempty"`
	OriginPickList      *OriginPickList      `json:"originPickList,omitempty"`
	ValidationList      *ValidationList      `json:"validationList,omitempty"`
}

TimeInTransitResponse N/A

type ValidationList

type ValidationList struct {
	// DestinationAmbiguous Returned as true when destination address has a candidate list
	DestinationAmbiguous  *bool     `json:"destinationAmbiguous,omitempty"`
	InvalidFieldList      *[]string `json:"invalidFieldList,omitempty"`
	InvalidFieldListCodes *[]string `json:"invalidFieldListCodes,omitempty"`

	// OriginAmbiguous Returned as true when original address has a candidate list.
	OriginAmbiguous *bool `json:"originAmbiguous,omitempty"`
}

ValidationList defines model for validationList.

Jump to

Keyboard shortcuts

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