Documentation
¶
Overview ¶
Package locator provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.
Index ¶
- Constants
- func NewDeprecatedLocatorRequest(server string, deprecatedVersion string, reqOption string, ...) (*http.Request, error)
- func NewDeprecatedLocatorRequestWithBody(server string, deprecatedVersion string, reqOption string, ...) (*http.Request, error)
- func NewLocatorOpRequest(server string, version string, reqOption string, params *LocatorOpParams, ...) (*http.Request, error)
- func NewLocatorOpRequestWithBody(server string, version string, reqOption string, params *LocatorOpParams, ...) (*http.Request, error)
- type AccessPointInformationAccessPointStatus
- type AccessPointInformationAvailability
- type AccessPointInformationBusinessClassificationList
- type AccessPointInformationPrivateNetworkList
- type AccessPointSearchExcludeFromResult
- type AccessPointSearchIncludeCriteria
- type AdditionalCommentsCommentType
- type AvailabilityDCRAvailability
- type AvailabilityShippingAvailability
- type AvailableLocationAttributesOptionCode
- type AvailableLocationAttributesOptionCodeElement
- type AvailableLocationAttributesOptionCodeTransportationPickUpSchedule
- type AvailableLocationAttributesOptionType
- type AvailableLocationAttributesPickUpPickUpDetails
- type AvailableLocationAttributesTransportationPickUpSchedulePickUp
- type BusinessClassificationListBusinessClassification
- type Client
- func (c *Client) DeprecatedLocator(ctx context.Context, deprecatedVersion string, reqOption string, ...) (*http.Response, error)
- func (c *Client) DeprecatedLocatorWithBody(ctx context.Context, deprecatedVersion string, reqOption string, ...) (*http.Response, error)
- func (c *Client) LocatorOp(ctx context.Context, version string, reqOption string, params *LocatorOpParams, ...) (*http.Response, error)
- func (c *Client) LocatorOpWithBody(ctx context.Context, version string, reqOption string, params *LocatorOpParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeprecatedLocatorWithBodyWithResponse(ctx context.Context, deprecatedVersion string, reqOption string, ...) (*DeprecatedLocatorResponse, error)
- func (c *ClientWithResponses) DeprecatedLocatorWithResponse(ctx context.Context, deprecatedVersion string, reqOption string, ...) (*DeprecatedLocatorResponse, error)
- func (c *ClientWithResponses) LocatorOpWithBodyWithResponse(ctx context.Context, version string, reqOption string, params *LocatorOpParams, ...) (*LocatorOpResponse, error)
- func (c *ClientWithResponses) LocatorOpWithResponse(ctx context.Context, version string, reqOption string, params *LocatorOpParams, ...) (*LocatorOpResponse, error)
- type ClientWithResponsesInterface
- type CommonErrorResponse
- type DCRAvailabilityUnavailableReason
- type DeprecatedLocatorJSONRequestBody
- type DeprecatedLocatorParams
- type DeprecatedLocatorResponse
- type DistanceUnitOfMeasurement
- type DropLocationAccessPointInformation
- type DropLocationAdditionalComments
- type DropLocationAddressKeyFormat
- type DropLocationDistance
- type DropLocationGeocode
- type DropLocationIVR
- type DropLocationLocalizedInstruction
- type DropLocationLocationAttribute
- type DropLocationLocationImage
- type DropLocationOperatingHours
- type DropLocationPromotionInformation
- type DropLocationServiceOfferingList
- type DropLocationSortCode
- type DropLocationSpecialInstructions
- type ErrorErrorLocation
- type ErrorMessage
- type ErrorResponse
- type ExcludeFromResultPostalCodeList
- type FreightWillCallSearchFacilityAddress
- type GeocodeCandidateAddressKeyFormat
- type GeocodeCandidateGeocode
- type HttpRequestDoer
- type IncludeCriteriaMerchantAccountNumberList
- type IncludeCriteriaSearchFilter
- type IncludeCriteriaServiceOfferingList
- type LOCATORRequestWrapper
- type LOCATORResponseWrapper
- type LocationAttributeOptionCode
- type LocationAttributeOptionType
- type LocationSearchCriteriaAccessPointSearch
- type LocationSearchCriteriaFreightWillCallSearch
- type LocationSearchCriteriaOpenTimeCriteria
- type LocationSearchCriteriaSearchOption
- type LocationSearchCriteriaServiceSearch
- type LocatorOpJSONRequestBody
- type LocatorOpParams
- type LocatorOpResponse
- type LocatorRequest
- type LocatorRequestLocationSearchCriteria
- type LocatorRequestOriginAddress
- type LocatorRequestRequest
- type LocatorRequestServiceGeoUnit
- type LocatorRequestSortCriteria
- type LocatorRequestTranslate
- type LocatorRequestUnitOfMeasurement
- type LocatorResponse
- type LocatorResponseGeocode
- type LocatorResponseResponse
- type LocatorResponseSearchResults
- type OperatingHoursStandardHours
- type OptionCodeTransportationPickUpSchedule
- type OriginAddressAddressKeyFormat
- type OriginAddressGeocode
- type PickUpPickUpDetails
- type PostalCodeListPostalCode
- type PrivateNetworkListPrivateNetwork
- type RequestEditorFn
- type RequestTransactionReference
- type ResponseError
- type ResponseTransactionReference
- type SearchOptionOptionCode
- type SearchOptionOptionType
- type SearchOptionRelation
- type SearchResultsAvailableLocationAttributes
- type SearchResultsDropLocation
- type SearchResultsGeocodeCandidate
- type ServiceOfferingListServiceOffering
- type ServiceSearchServiceCode
- type ServiceSearchServiceOptionCode
- type ShippingAvailabilityUnavailableReason
- type StandardHoursDayOfWeek
- type TransportationPickUpSchedulePickUp
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeprecatedLocatorRequest ¶
func NewDeprecatedLocatorRequest(server string, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, body DeprecatedLocatorJSONRequestBody) (*http.Request, error)
NewDeprecatedLocatorRequest calls the generic DeprecatedLocator builder with application/json body
func NewDeprecatedLocatorRequestWithBody ¶
func NewDeprecatedLocatorRequestWithBody(server string, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, contentType string, body io.Reader) (*http.Request, error)
NewDeprecatedLocatorRequestWithBody generates requests for DeprecatedLocator with any type of body
func NewLocatorOpRequest ¶
func NewLocatorOpRequest(server string, version string, reqOption string, params *LocatorOpParams, body LocatorOpJSONRequestBody) (*http.Request, error)
NewLocatorOpRequest calls the generic LocatorOp builder with application/json body
Types ¶
type AccessPointInformationAccessPointStatus ¶
type AccessPointInformationAccessPointStatus struct {
// Code Valid status values are:
// 01-Active-available
// 06-Suspended
// 07-Active-unavailable
// 08-Terminated
Code string `json:"Code"`
// Description Description of status code.
Description string `json:"Description"`
}
AccessPointInformationAccessPointStatus Container for UPS AccessPoint status.
type AccessPointInformationAvailability ¶
type AccessPointInformationAvailability struct {
// DCRAvailability Holds status of DCR/DCO availability.
DCRAvailability *AvailabilityDCRAvailability `json:"DCRAvailability,omitempty"`
// ShippingAvailability Holds status of shipping availability.
ShippingAvailability *AvailabilityShippingAvailability `json:"ShippingAvailability,omitempty"`
}
AccessPointInformationAvailability Container to hold the status of shipping or DRC/DCO availability of a UPS Access Point.
type AccessPointInformationBusinessClassificationList ¶
type AccessPointInformationBusinessClassificationList struct {
// BusinessClassification Container to hold Business classification of UPS access point.
//
// **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.
BusinessClassification []BusinessClassificationListBusinessClassification `json:"BusinessClassification"`
}
AccessPointInformationBusinessClassificationList Container to hold list for business classification.
type AccessPointInformationPrivateNetworkList ¶
type AccessPointInformationPrivateNetworkList struct {
// PrivateNetwork Container to hold the private network details.
//
// **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.
PrivateNetwork []PrivateNetworkListPrivateNetwork `json:"PrivateNetwork"`
}
AccessPointInformationPrivateNetworkList Container to hold the list of private networks.
type AccessPointSearchExcludeFromResult ¶
type AccessPointSearchExcludeFromResult struct {
// BusinessClassificationCode This contains the business classification code to exclude from UPS Access Point Search by address or geocode. Multiple codes can are possible in separate elements. Please refer to Appendix D for detailed business codes.
BusinessClassificationCode *[]string `json:"BusinessClassificationCode,omitempty"`
// BusinessName This contains the business name to exclude from UPS Access Point Search by address or geocode. Partial names are accepted.
BusinessName *string `json:"BusinessName,omitempty"`
// PostalCodeList Container to hold a list of postal codes to exclude from the access point address or geocode search.
PostalCodeList *ExcludeFromResultPostalCodeList `json:"PostalCodeList,omitempty"`
// Radius Public Access points within Radius (in specified Unit of Measure) of any included private access points will be excluded from the results. Valid only if at least one IncludeCriteria/MerchantAccountNumber is provided.
Radius *string `json:"Radius,omitempty"`
}
AccessPointSearchExcludeFromResult This contains elements to exclude from UPS Access Point address or geocode search.
type AccessPointSearchIncludeCriteria ¶
type AccessPointSearchIncludeCriteria struct {
// MerchantAccountNumberList This contains the list of Merchant Account numbers to be used for finding private network access points.
MerchantAccountNumberList *IncludeCriteriaMerchantAccountNumberList `json:"MerchantAccountNumberList,omitempty"`
// SearchFilter Container to hold one or more search criteria for UPS Access Points that allow DCR, Shipping and ClickAndCollect access. Only applicable when the UPS access point candidate list is obtained in search by address or geocode search.
SearchFilter *IncludeCriteriaSearchFilter `json:"SearchFilter,omitempty"`
// ServiceOfferingList Container to hold end point service offering List for UPS Access point. Applicable only when a UPS Access Point candidate list is obtained in search by address or geocode search.
ServiceOfferingList *IncludeCriteriaServiceOfferingList `json:"ServiceOfferingList,omitempty"`
}
AccessPointSearchIncludeCriteria This contains elements to refine (include) UPS Access point address or geocode Search.
type AdditionalCommentsCommentType ¶
type AdditionalCommentsCommentType struct {
// Code Comment code is 01 for AccessPoint LCO pickup time comment.
Code string `json:"Code"`
// Text Access point LCO pickup time comment
Text string `json:"Text"`
}
AdditionalCommentsCommentType defines model for AdditionalComments_CommentType.
type AvailabilityDCRAvailability ¶
type AvailabilityDCRAvailability struct {
// AvailableIndicator Presence or absence indicator. Presence means the location is available for DCR/DCO.
AvailableIndicator *string `json:"AvailableIndicator,omitempty"`
UnavailableReason *DCRAvailabilityUnavailableReason `json:"UnavailableReason,omitempty"`
}
AvailabilityDCRAvailability Holds status of DCR/DCO availability.
type AvailabilityShippingAvailability ¶
type AvailabilityShippingAvailability struct {
// AvailableIndicator Presence or absence indicator. Presence means the location is available for shipping.
AvailableIndicator *string `json:"AvailableIndicator,omitempty"`
UnavailableReason *ShippingAvailabilityUnavailableReason `json:"UnavailableReason,omitempty"`
}
AvailabilityShippingAvailability Holds status of shipping availability.
type AvailableLocationAttributesOptionCode ¶
type AvailableLocationAttributesOptionCode = []AvailableLocationAttributesOptionCodeElement
AvailableLocationAttributesOptionCode **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.
type AvailableLocationAttributesOptionCodeElement ¶
type AvailableLocationAttributesOptionCodeElement struct {
// Category N/A
Category *string `json:"Category,omitempty"`
// Code The valid list of codes and description for Retail Locations or Additional Services or Pro-gram Types that are currently available in the database. This can be obtained by a separate type of request (Request Option 8, 16, 24, 32, 40, 48 and 56).
Code string `json:"Code"`
// Description Description is only applicable for Program types and Additional Services. It is not provided with Location detail. It is only provided when the request is for All available additional ser-vices or all available Program types. Text will be displayed in the locale requested.
Description string `json:"Description"`
// Name Name will indicate the name of Location/Retail Location or Additional Services or Program Types depending on the option code. Text will be displayed in the locale requested.
Name *string `json:"Name,omitempty"`
// TransportationPickUpSchedule Container to hold information regarding pickup details for each day of the week.
TransportationPickUpSchedule *AvailableLocationAttributesOptionCodeTransportationPickUpSchedule `json:"TransportationPickUpSchedule,omitempty"`
}
AvailableLocationAttributesOptionCodeElement Option code is a container that contains the information of a particular retail location type or additional service or program type that is available currently. One or more of this container will be returned to give all the available codes for Retail Type or Additional Services or Program Type.
type AvailableLocationAttributesOptionCodeTransportationPickUpSchedule ¶
type AvailableLocationAttributesOptionCodeTransportationPickUpSchedule struct {
// PickUp Container to hold information regarding pickup day of the week and details.
//
// **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.
PickUp []AvailableLocationAttributesTransportationPickUpSchedulePickUp `json:"PickUp"`
}
AvailableLocationAttributesOptionCodeTransportationPickUpSchedule Container to hold information regarding pickup details for each day of the week.
type AvailableLocationAttributesOptionType ¶
type AvailableLocationAttributesOptionType struct {
// Code Code for Option type.
Code string `json:"Code"`
// Description Description for Option type such as RetailLocation, AdditionalServices and ProgramType.
Description string `json:"Description"`
}
AvailableLocationAttributesOptionType OptionType is a container that indicates the type of the location attribute that are available. For example if the Option Type is RetailLocation the list of all available retail locations will be returned in 1 or many corresponding OptionCodes.
type AvailableLocationAttributesPickUpPickUpDetails ¶
type AvailableLocationAttributesPickUpPickUpDetails struct {
// NoPickUpIndicator Indicates whether or not there is a pickup time for the specified day of the week. Valid values:
// - True-there is a pickup time
// - False-there is not a pickup time.
NoPickUpIndicator string `json:"NoPickUpIndicator"`
// PickUpTime Time of pickup in military format (HHMM) e.g. 0930, 1700, 1845 etc. with exception for midnight. For midnight the time will be returned as 0.
PickUpTime *string `json:"PickUpTime,omitempty"`
}
AvailableLocationAttributesPickUpPickUpDetails Container to hold information regarding pickup time and pickup availability indicator.
type AvailableLocationAttributesTransportationPickUpSchedulePickUp ¶
type AvailableLocationAttributesTransportationPickUpSchedulePickUp struct {
// DayOfWeek Day of the week for scheduled pickup. Valid values are:
// - 1 - Sunday
// - 2 - Monday
// - 3 - Tuesday
// - 4 - Wednesday
// - 5 - Thursday
// - 6 - Friday
// - 7 - Saturday.
DayOfWeek string `json:"DayOfWeek"`
// PickUpDetails Container to hold information regarding pickup time and pickup availability indicator.
PickUpDetails AvailableLocationAttributesPickUpPickUpDetails `json:"PickUpDetails"`
}
AvailableLocationAttributesTransportationPickUpSchedulePickUp defines model for AvailableLocationAttributes_TransportationPickUpSchedule_PickUp.
type BusinessClassificationListBusinessClassification ¶
type BusinessClassificationListBusinessClassification struct {
// Code Business Classification code of UPS Access Point. Please refer to appendix D for a list of business classification.
Code string `json:"Code"`
// Description Description of business classification.
Description string `json:"Description"`
}
BusinessClassificationListBusinessClassification defines model for BusinessClassificationList_BusinessClassification.
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) DeprecatedLocator ¶
func (c *Client) DeprecatedLocator(ctx context.Context, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, body DeprecatedLocatorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeprecatedLocatorWithBody ¶
func (*Client) LocatorOp ¶
func (c *Client) LocatorOp(ctx context.Context, version string, reqOption string, params *LocatorOpParams, body LocatorOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LocatorOpWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// DeprecatedLocatorWithBody request with any body
DeprecatedLocatorWithBody(ctx context.Context, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeprecatedLocator(ctx context.Context, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, body DeprecatedLocatorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LocatorOpWithBody request with any body
LocatorOpWithBody(ctx context.Context, version string, reqOption string, params *LocatorOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LocatorOp(ctx context.Context, version string, reqOption string, params *LocatorOpParams, body LocatorOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeprecatedLocatorWithBodyWithResponse ¶
func (c *ClientWithResponses) DeprecatedLocatorWithBodyWithResponse(ctx context.Context, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedLocatorResponse, error)
DeprecatedLocatorWithBodyWithResponse request with arbitrary body returning *DeprecatedLocatorResponse
func (*ClientWithResponses) DeprecatedLocatorWithResponse ¶
func (c *ClientWithResponses) DeprecatedLocatorWithResponse(ctx context.Context, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, body DeprecatedLocatorJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedLocatorResponse, error)
func (*ClientWithResponses) LocatorOpWithBodyWithResponse ¶
func (c *ClientWithResponses) LocatorOpWithBodyWithResponse(ctx context.Context, version string, reqOption string, params *LocatorOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LocatorOpResponse, error)
LocatorOpWithBodyWithResponse request with arbitrary body returning *LocatorOpResponse
func (*ClientWithResponses) LocatorOpWithResponse ¶
func (c *ClientWithResponses) LocatorOpWithResponse(ctx context.Context, version string, reqOption string, params *LocatorOpParams, body LocatorOpJSONRequestBody, reqEditors ...RequestEditorFn) (*LocatorOpResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// DeprecatedLocatorWithBodyWithResponse request with any body
DeprecatedLocatorWithBodyWithResponse(ctx context.Context, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedLocatorResponse, error)
DeprecatedLocatorWithResponse(ctx context.Context, deprecatedVersion string, reqOption string, params *DeprecatedLocatorParams, body DeprecatedLocatorJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedLocatorResponse, error)
// LocatorOpWithBodyWithResponse request with any body
LocatorOpWithBodyWithResponse(ctx context.Context, version string, reqOption string, params *LocatorOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LocatorOpResponse, error)
LocatorOpWithResponse(ctx context.Context, version string, reqOption string, params *LocatorOpParams, body LocatorOpJSONRequestBody, reqEditors ...RequestEditorFn) (*LocatorOpResponse, 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 DCRAvailabilityUnavailableReason ¶
type DCRAvailabilityUnavailableReason struct {
// 01-Temporarily Unavailable
// 02-Location Full
// 03-Unavailable
// 04-Weather
Code string `json:"Code"`
Description string `json:"Description"`
}
DCRAvailabilityUnavailableReason Container to hold shipping unavailable reason.
type DeprecatedLocatorJSONRequestBody ¶
type DeprecatedLocatorJSONRequestBody = LOCATORRequestWrapper
DeprecatedLocatorJSONRequestBody defines body for DeprecatedLocator for application/json ContentType.
type DeprecatedLocatorParams ¶
type DeprecatedLocatorParams struct {
// Locale Locale of request
Locale *string `form:"Locale,omitempty" json:"Locale,omitempty"`
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
DeprecatedLocatorParams defines parameters for DeprecatedLocator.
type DeprecatedLocatorResponse ¶
type DeprecatedLocatorResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LOCATORResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseDeprecatedLocatorResponse ¶
func ParseDeprecatedLocatorResponse(rsp *http.Response) (*DeprecatedLocatorResponse, error)
ParseDeprecatedLocatorResponse parses an HTTP response from a DeprecatedLocatorWithResponse call
func (DeprecatedLocatorResponse) Status ¶
func (r DeprecatedLocatorResponse) Status() string
Status returns HTTPResponse.Status
func (DeprecatedLocatorResponse) StatusCode ¶
func (r DeprecatedLocatorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DistanceUnitOfMeasurement ¶
type DistanceUnitOfMeasurement struct {
// Code The distance unit of measurement code. The unit of measurement used in the search request is returned.
//
// Valid values: MI-Miles or KM-Kilometers
Code string `json:"Code"`
// Description May return the description of the unit of measure specified in the request.
Description *string `json:"Description,omitempty"`
}
DistanceUnitOfMeasurement The unit of measurement the user will see for the distance is based on the user input provided in the search request.
type DropLocationAccessPointInformation ¶
type DropLocationAccessPointInformation struct {
// AccessPointStatus Container for UPS AccessPoint status.
AccessPointStatus *AccessPointInformationAccessPointStatus `json:"AccessPointStatus,omitempty"`
// Availability Container to hold the status of shipping or DRC/DCO availability of a UPS Access Point.
Availability *AccessPointInformationAvailability `json:"Availability,omitempty"`
// BusinessClassificationList Container to hold list for business classification.
BusinessClassificationList *AccessPointInformationBusinessClassificationList `json:"BusinessClassificationList,omitempty"`
// FacilitySLIC Holds the value of facility SLIC of Access Point Location. Not implemented currently. For future use.
FacilitySLIC *string `json:"FacilitySLIC,omitempty"`
// ImageURL Image URL associated with UPS access point.
ImageURL *string `json:"ImageURL,omitempty"`
// PrivateNetworkList Container to hold the list of private networks.
PrivateNetworkList *AccessPointInformationPrivateNetworkList `json:"PrivateNetworkList,omitempty"`
// PublicAccessPointID The Public Access Point ID associated with UPS access point.
PublicAccessPointID *string `json:"PublicAccessPointID,omitempty"`
}
DropLocationAccessPointInformation Container for UPS Access Point specific parameters.
type DropLocationAdditionalComments ¶
type DropLocationAdditionalComments struct {
// CommentType Container for CommentType Code and Text.
//
// **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.
CommentType []AdditionalCommentsCommentType `json:"CommentType"`
}
DropLocationAdditionalComments Container for Additional Comments about Location.Text will be displayed in the Locale requested.
type DropLocationAddressKeyFormat ¶
type DropLocationAddressKeyFormat struct {
// AddressLine Address Line Information of the UPS location The address level or Intersection information. Only two address lines will be returned. The second line may contain such information as the building name, the suite, and room.
AddressLine string `json:"AddressLine"`
// ConsigneeName Name. (Also includes the building name)Return if available.
ConsigneeName *string `json:"ConsigneeName,omitempty"`
// CountryCode A country or territory code. Valid values to be returned are: US-United States (meaning US 50).
CountryCode string `json:"CountryCode"`
// PoliticalDivision1 State/Province.
PoliticalDivision1 string `json:"PoliticalDivision1"`
// PoliticalDivision2 City.
PoliticalDivision2 string `json:"PoliticalDivision2"`
// PoliticalDivision3 Subdivision within a City. e.g., a Barrio.
PoliticalDivision3 *string `json:"PoliticalDivision3,omitempty"`
// PostcodeExtendedLow 4 Digit postal code extension. Valid for US only.
PostcodeExtendedLow *string `json:"PostcodeExtendedLow,omitempty"`
// PostcodePrimaryLow Postal Code.
PostcodePrimaryLow string `json:"PostcodePrimaryLow"`
}
DropLocationAddressKeyFormat Contains all of the basic information about a location, Consignee Name, Building Name, Address Lines, City, State/Province, Postal Code and Country or Terriotry Code.
type DropLocationDistance ¶
type DropLocationDistance struct {
// UnitOfMeasurement The unit of measurement the user will see for the distance is based on the user input provided in the search request.
UnitOfMeasurement DistanceUnitOfMeasurement `json:"UnitOfMeasurement"`
// Value The straight line distance from the origin to the UPS location. Distance value may include one decimal and followed by one decimal place.
Value string `json:"Value"`
}
DropLocationDistance Container for the straight line distance from the origin to the UPS location.
type DropLocationGeocode ¶
type DropLocationGeocode struct {
// Latitude The latitude of the location address or the center point of the area code.
Latitude string `json:"Latitude"`
// Longitude The longitude of the location address or the center point of the area code.
Longitude string `json:"Longitude"`
}
DropLocationGeocode Geocode is the latitude and longitude of the location address. The Geocode for the location address will be returned when Location is requested in the Request Option.
type DropLocationIVR ¶
type DropLocationIVR struct {
// PhraseID Contains the name of the IVR file that relates to this drop location. The file is an audio recording of information related to the location.
// ONLY FOR IVR.
PhraseID string `json:"PhraseID"`
// TextToSpeechIndicator Indicates to the response recipient that the information has changed, and a new audio file should be produced.
// ONLY FOR IVR.
TextToSpeechIndicator *string `json:"TextToSpeechIndicator,omitempty"`
}
DropLocationIVR Integrated Voice Response information. ONLY FOR IVR.
type DropLocationLocalizedInstruction ¶
type DropLocationLocalizedInstruction struct {
// Last50ftInstruction Holds the additional instructions. Text will be displayed in English or the locale given in the request. The max length of the additional instruction text is 750 characters.
Last50ftInstruction string `json:"Last50ftInstruction"`
// Locale Locale
Locale string `json:"Locale"`
}
DropLocationLocalizedInstruction defines model for DropLocation_LocalizedInstruction.
type DropLocationLocationAttribute ¶
type DropLocationLocationAttribute struct {
// OptionCode Option code is a container that contains the information of a particular type of Location or retail location or additional service or program type that the drop location contains.
//
// If the OptionType is Location or Retail Location Type there will be one code since each location has only one location type or retail location type.
//
// If the Option type is additional services or program types there can be one or more option codes.
//
// **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.
OptionCode []LocationAttributeOptionCode `json:"OptionCode"`
OptionType LocationAttributeOptionType `json:"OptionType"`
}
DropLocationLocationAttribute LocationAttribute is a container that contains the information about the location's Location Type, Retail Location Type, Additional Services, or Program Type.
type DropLocationLocationImage ¶
type DropLocationLocationImage struct {
// NonSecureURL Non Secure URL for Location Image.
NonSecureURL *string `json:"NonSecureURL,omitempty"`
// SecureURL Secure URL for Location Image.
SecureURL *string `json:"SecureURL,omitempty"`
}
DropLocationLocationImage Location Image container.
type DropLocationOperatingHours ¶
type DropLocationOperatingHours struct {
// StandardHours StandardHours Container.
//
// **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.
StandardHours *[]OperatingHoursStandardHours `json:"StandardHours,omitempty"`
}
DropLocationOperatingHours Operating Hours.
type DropLocationPromotionInformation ¶
type DropLocationPromotionInformation struct {
// Locale Locale (language/ dialect) for the promotion code.
Locale string `json:"Locale"`
// Promotion Promotion text for the given location.
Promotion string `json:"Promotion"`
}
DropLocationPromotionInformation defines model for DropLocation_PromotionInformation.
type DropLocationServiceOfferingList ¶
type DropLocationServiceOfferingList struct {
// ServiceOffering Container for Service offering code.
//
// **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.
ServiceOffering []ServiceOfferingListServiceOffering `json:"ServiceOffering"`
}
DropLocationServiceOfferingList Container to hold the list of service offerings at the end point.
type DropLocationSortCode ¶
type DropLocationSortCode struct {
// FreightSortFacilityCode Holds the value of the facility location code.
FreightSortFacilityCode *string `json:"FreightSortFacilityCode,omitempty"`
// HubSortCode Holds the value of the hub sort code or airport code
HubSortCode *string `json:"HubSortCode,omitempty"`
}
DropLocationSortCode This container is only for Freight Will call Search.
type DropLocationSpecialInstructions ¶
type DropLocationSpecialInstructions struct {
// Segment Walking directions, last 50 feet. **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.
Segment []string `json:"Segment"`
}
DropLocationSpecialInstructions defines model for DropLocation_SpecialInstructions.
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 ExcludeFromResultPostalCodeList ¶
type ExcludeFromResultPostalCodeList struct {
PostalCode []PostalCodeListPostalCode `json:"PostalCode"`
}
ExcludeFromResultPostalCodeList Container to hold a list of postal codes to exclude from the access point address or geocode search.
type FreightWillCallSearchFacilityAddress ¶
type FreightWillCallSearchFacilityAddress struct {
// AddressLine Address line
AddressLine *[]string `json:"AddressLine,omitempty"`
// City City. Required for Freight Will call search if FreightWillCallRequestType is 3.
City *string `json:"City,omitempty"`
// CountryCode Country or territory code.
CountryCode string `json:"CountryCode"`
// PostalCodeExtendedLow 4 Digit postal code extension. Valid for US only.
PostalCodeExtendedLow *string `json:"PostalCodeExtendedLow,omitempty"`
// PostalCodePrimaryLow Postal code. Required for Freight Will call search if FreightWillCallRequestType is 1.
PostalCodePrimaryLow *string `json:"PostalCodePrimaryLow,omitempty"`
// SLIC Facility SLIC. Required for Freight Will call search if FreightWillCallRequestType is 2.
SLIC *string `json:"SLIC,omitempty"`
// State State. Required if FrieghtWillCallRequestType is 3 if State is available.
State *string `json:"State,omitempty"`
}
FreightWillCallSearchFacilityAddress Facility Address Container
type GeocodeCandidateAddressKeyFormat ¶
type GeocodeCandidateAddressKeyFormat struct {
// AddressLine Address Line Information. The address level or Intersection information must be returned if provided in the request. The AddressLine will be a combination of up to 3 separate address lines, each separated by a new line character.
AddressLine string `json:"AddressLine"`
// ConsigneeName Name. Not relevant for candidate list.
ConsigneeName *string `json:"ConsigneeName,omitempty"`
// CountryCode A country or territory code. Valid values for candidates to be returned are: US-United States (meaning US 50)
CountryCode string `json:"CountryCode"`
// PoliticalDivision1 State/Province.
PoliticalDivision1 string `json:"PoliticalDivision1"`
// PoliticalDivision2 City.
PoliticalDivision2 string `json:"PoliticalDivision2"`
// PoliticalDivision3 Subdivision within a City. e.g., a Barrio.
PoliticalDivision3 *string `json:"PoliticalDivision3,omitempty"`
// PostcodeExtendedLow 4 Digit postal code extension. Valid for US only.
PostcodeExtendedLow *string `json:"PostcodeExtendedLow,omitempty"`
// PostcodePrimaryLow Postal Code.
PostcodePrimaryLow string `json:"PostcodePrimaryLow"`
}
GeocodeCandidateAddressKeyFormat Contains all of the basic information about candidate address.
type GeocodeCandidateGeocode ¶
type GeocodeCandidateGeocode struct {
// Latitude The latitude of the origin address, center point of the exchange, center point of the postal code, or center point of the city.
Latitude string `json:"Latitude"`
// Longitude The longitude of the origin address, center point of the exchange, center point of the postal code, or center point of the city.
Longitude string `json:"Longitude"`
}
GeocodeCandidateGeocode Geocode is the latitude and longitude of the origin candidate.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IncludeCriteriaMerchantAccountNumberList ¶
type IncludeCriteriaMerchantAccountNumberList struct {
// MerchantAccountNumber Account number to be used for a private network access point search where a UPS access point candidate list is obtained in search by address or geocode search.
MerchantAccountNumber []string `json:"MerchantAccountNumber"`
}
IncludeCriteriaMerchantAccountNumberList This contains the list of Merchant Account numbers to be used for finding private network access points.
type IncludeCriteriaSearchFilter ¶
type IncludeCriteriaSearchFilter struct {
// ClickAndCollectSortWithDistance This contains the distance (in given UnitOfMeasurement) wherin to sort the click and collect access point locations above other access point locations when a UPS Access Point candidate list is obtained in search by address or geocode search.
ClickAndCollectSortWithDistance *string `json:"ClickAndCollectSortWithDistance,omitempty"`
// DCRIndicator DCR/DCO Availability indicator for UPS Access Point. Either this indicator is present or not present. Presence indicates a search for access points with DCR. Any data in the element is ignored.
DCRIndicator *string `json:"DCRIndicator,omitempty"`
// ShipperPreparationDelay Value for the number of days to check for shipping availability from the current day. When this value is present, ShippingAvailabilityIndicator is implied implicitly.
ShipperPreparationDelay *string `json:"ShipperPreparationDelay,omitempty"`
// ShippingAvailabilityIndicator Shipping Availability indicator for UPS Access Point. Either this indicator is present or not present. Presence indicates a search of access points with shipping availability. Any data in it is ignored.
ShippingAvailabilityIndicator *string `json:"ShippingAvailabilityIndicator,omitempty"`
}
IncludeCriteriaSearchFilter Container to hold one or more search criteria for UPS Access Points that allow DCR, Shipping and ClickAndCollect access. Only applicable when the UPS access point candidate list is obtained in search by address or geocode search.
type IncludeCriteriaServiceOfferingList ¶
type IncludeCriteriaServiceOfferingList struct {
ServiceOffering []ServiceOfferingListServiceOffering `json:"ServiceOffering"`
}
IncludeCriteriaServiceOfferingList Container to hold end point service offering List for UPS Access point. Applicable only when a UPS Access Point candidate list is obtained in search by address or geocode search.
type LOCATORRequestWrapper ¶
type LOCATORRequestWrapper struct {
// LocatorRequest N/A
LocatorRequest LocatorRequest `json:"LocatorRequest"`
}
LOCATORRequestWrapper N/A
type LOCATORResponseWrapper ¶
type LOCATORResponseWrapper struct {
// LocatorResponse Container for LocatorResponse.
LocatorResponse LocatorResponse `json:"LocatorResponse"`
}
LOCATORResponseWrapper N/A
type LocationAttributeOptionCode ¶
type LocationAttributeOptionCode struct {
// Category Only applicabe for OptionType = 03 (Additional Services). Valid values:
// - 06 - Non transportation
// - 07 - Transportation
Category *string `json:"Category,omitempty"`
// Code These codes vary by country or territory. It is strongly recommended that clients contact UPS to retrieve the primary search indicator and the valid Location Types and Service Level Options for each country. Refer to Location Search Option Codes in the Appendix for additional information.
Code string `json:"Code"`
// Description Description is only applicable for Location and Retail Location. The description for Program types and additional service is not provided with Location detail.
//
// It is only provided when the request is for 8, 24, 40, 56-All available additional services or 16, 24, 48, 56-all available Program types.
Description string `json:"Description"`
// Name Name will indicate the name of any Additional Services/ Program Types depending on the option code. Text will be displayed in the locale selected.
Name *string `json:"Name,omitempty"`
// TransportationPickUpSchedule TransportationPickUpSchedule container contains details of Latest Drop Off time/Pickup Time for the transportation services (Ground/Air/Standard/Express/International) of the location.
TransportationPickUpSchedule *OptionCodeTransportationPickUpSchedule `json:"TransportationPickUpSchedule,omitempty"`
}
LocationAttributeOptionCode defines model for LocationAttribute_OptionCode.
type LocationAttributeOptionType ¶
type LocationAttributeOptionType struct {
// Code Code for Option type. Valid values:
// - 01 - Location
// - 02 - Retail Location
// - 03 - Additional Services
// - 04 - Program Type
Code string `json:"Code"`
// Description Description for Option type such as Location, RetailLocation, AdditionalServices and ProgramType.
Description string `json:"Description"`
}
LocationAttributeOptionType defines model for LocationAttribute_OptionType.
type LocationSearchCriteriaAccessPointSearch ¶
type LocationSearchCriteriaAccessPointSearch struct {
// AccessPointStatus Status of UPS Access Point. Valid values are:
// 01-Active-available
// 07-Active-unavailable.
AccessPointStatus *string `json:"AccessPointStatus,omitempty"`
// AccountNumber The account number to use for UPS Access Point Search in the country or territory. Used to locate a private network for the account. Once this parameter is present any access point address or geocode search is ignored. It cannot be combined with PublicAccessPointID search parameter.
AccountNumber *string `json:"AccountNumber,omitempty"`
// ExactMatchIndicator Presence of this tag represents that "AccessPointSearchByAddress" service is requested. The value of this tag is ignored.
ExactMatchIndicator *string `json:"ExactMatchIndicator,omitempty"`
// ExcludeFromResult This contains elements to exclude from UPS Access Point address or geocode search.
ExcludeFromResult *AccessPointSearchExcludeFromResult `json:"ExcludeFromResult,omitempty"`
// ExistIndicator Presence of this tag represents that "AccessPointAvailability" service is requested. The value of this tag is ignored.
ExistIndicator *string `json:"ExistIndicator,omitempty"`
// IncludeCriteria This contains elements to refine (include) UPS Access point address or geocode Search.
IncludeCriteria *AccessPointSearchIncludeCriteria `json:"IncludeCriteria,omitempty"`
// PublicAccessPointID The Public Access Point ID to use for UPS Access Point Search. Once this parameter is present , address or geocode search is ignored. It cannot be combined with AccountNumber search parameter.
PublicAccessPointID *string `json:"PublicAccessPointID,omitempty"`
}
LocationSearchCriteriaAccessPointSearch Applicable for request option 64 only. This contains inclusion and exclusion criteria for address search. It also contains Account Number and Access Point Public ID search elements.
type LocationSearchCriteriaFreightWillCallSearch ¶
type LocationSearchCriteriaFreightWillCallSearch struct {
// DayOfWeekCode Day Of week Code. Valid Values are 1 to 7.
// 1-Sunday
// 2-Monday
// 3-Tuesday
// 4-Wednesday
// 5-Thursday
// 6-Friday
// 7-Saturday.
DayOfWeekCode *string `json:"DayOfWeekCode,omitempty"`
FacilityAddress []FreightWillCallSearchFacilityAddress `json:"FacilityAddress"`
// FormatPostalCode FormatPostalCode would be required in the request when FreightWillCallRequestType is 1. Valid values are:
// NFR-No format requested
// FR-format requested
// FS-format and search
// NVR-No validation requested.
FormatPostalCode string `json:"FormatPostalCode"`
// FreightWillCallRequestType Valid values are:
// 1 - Postal Code
// 2 - Delivery SLIC
// 3 - Delivery City/State.
// 1: Freight Will Call Search based on Postal Code, this search is valid for Postal code countries. 2: Freight Will Call Search based on SLIC. 3: Freight Will Call Search based on City and/or State. This Search is valid for non-postal code Countries
FreightWillCallRequestType string `json:"FreightWillCallRequestType"`
// OriginOrDestination OriginOrDestination is required for FreightWillCallRequestType 1 and type 3 . Valid values:
// 01-Origin facilities
// 02-Destination facilities.
OriginOrDestination string `json:"OriginOrDestination"`
}
LocationSearchCriteriaFreightWillCallSearch Freight Will Call Search Container. Required if SearchOption is '05-Freight Will Call Search'
type LocationSearchCriteriaOpenTimeCriteria ¶
type LocationSearchCriteriaOpenTimeCriteria struct {
// DayOfWeekCode Day Of week Code.
// Valid values:
// 1-Sunday
// 2-Monday
// 3-Tuesday
// 4-Wednesday
// 5-Thursday
// 6-Friday
// 7-Saturday
DayOfWeekCode *string `json:"DayOfWeekCode,omitempty"`
// FromTime From time. Time Format HHMM.
FromTime *string `json:"FromTime,omitempty"`
// ToTime To Time. Time Format HHMM
ToTime *string `json:"ToTime,omitempty"`
}
LocationSearchCriteriaOpenTimeCriteria Container to hold open times of the Location.
type LocationSearchCriteriaSearchOption ¶
type LocationSearchCriteriaSearchOption struct {
OptionCode []SearchOptionOptionCode `json:"OptionCode"`
// OptionType OptionType is a container that indicates the type of search for locations. There are 5 types of search. They are search by: Location, Retail Location, Additional Services, Program Type, and a Service Level Option.
// If search criteria by Location or Retail Location is not provided the default search of The UPS Store, UPS Center, UPS Drop Box, and Authorized Shipping Outlet location types will be performed.
OptionType SearchOptionOptionType `json:"OptionType"`
// Relation The relation container will contain the relation parameter (And/Or) that has to be used among multiple option codes in the location search.
//
// This is only applicable to option type Additional Services and Program Types. If this container is not present for Additional Services and Program Types, the default relation of And is used.
Relation *SearchOptionRelation `json:"Relation,omitempty"`
}
LocationSearchCriteriaSearchOption SearchOption contains the information that forms the basis of the location search, It contains the criteria for search by Locations, Retail Locations, Additional Services, or Program Types.
There should be one container for each type of search the user may wish to do. The user can specify either search by Locations or Retail Locations, but not both.
If this container is missing, the default search would be for The UPS Store, UPS Center, UPS Drop Box, and Authorized Shipping Outlet location types.
type LocationSearchCriteriaServiceSearch ¶
type LocationSearchCriteriaServiceSearch struct {
ServiceCode *[]ServiceSearchServiceCode `json:"ServiceCode,omitempty"`
ServiceOptionCode *[]ServiceSearchServiceOptionCode `json:"ServiceOptionCode,omitempty"`
// Time Scheduled Local Drop-off Time. Format: HHMM
Time *string `json:"Time,omitempty"`
}
LocationSearchCriteriaServiceSearch Allows for users to further define the search criteria. Refer to the rules specified in Service Search section.
type LocatorOpJSONRequestBody ¶
type LocatorOpJSONRequestBody = LOCATORRequestWrapper
LocatorOpJSONRequestBody defines body for LocatorOp for application/json ContentType.
type LocatorOpParams ¶
type LocatorOpParams struct {
// Locale Locale of request
Locale *string `form:"Locale,omitempty" json:"Locale,omitempty"`
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
LocatorOpParams defines parameters for LocatorOp.
type LocatorOpResponse ¶
type LocatorOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LOCATORResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseLocatorOpResponse ¶
func ParseLocatorOpResponse(rsp *http.Response) (*LocatorOpResponse, error)
ParseLocatorOpResponse parses an HTTP response from a LocatorOpWithResponse call
func (LocatorOpResponse) Status ¶
func (r LocatorOpResponse) Status() string
Status returns HTTPResponse.Status
func (LocatorOpResponse) StatusCode ¶
func (r LocatorOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LocatorRequest ¶
type LocatorRequest struct {
// AllowAllConfidenceLevels Indicator to allow confidence level in search.
AllowAllConfidenceLevels *string `json:"AllowAllConfidenceLevels,omitempty"`
// FreightIndicator FreightIndicator. Required for Freight Location Search.
FreightIndicator *string `json:"FreightIndicator,omitempty"`
// LocationID Location ID is the identification number of the UPS affiliated location.
LocationID *[]string `json:"LocationID,omitempty"`
// LocationSearchCriteria The Location search criteria container allows the user to further define the basis to which they wish to receive the UPS locations.
// Only relevant when the user requests a Location search (request option 1).
LocationSearchCriteria *LocatorRequestLocationSearchCriteria `json:"LocationSearchCriteria,omitempty"`
// OriginAddress Container for origin address information.
OriginAddress LocatorRequestOriginAddress `json:"OriginAddress"`
// Request N/A
Request LocatorRequestRequest `json:"Request"`
// SearchOptionCode Valid values:
// 01-Proximity Search Details
// 02-Address Search Details
// 03-Proximity Search Summary
// 04-Address Search Summary
// 05-Freight Will Call Search.
// Either OptionType 03 or 04 is required.
SearchOptionCode *string `json:"SearchOptionCode,omitempty"`
// ServiceGeoUnit ServiceGeoUnit Container. Required to search for the freight facility information
ServiceGeoUnit *LocatorRequestServiceGeoUnit `json:"ServiceGeoUnit,omitempty"`
// SortCriteria Container for Sort Criteria
SortCriteria *LocatorRequestSortCriteria `json:"SortCriteria,omitempty"`
// Translate Contains the locale information for the request.
Translate LocatorRequestTranslate `json:"Translate"`
// UnitOfMeasurement Distance unit of measurement. This is required for location requests (request option 1).
UnitOfMeasurement *LocatorRequestUnitOfMeasurement `json:"UnitOfMeasurement,omitempty"`
}
LocatorRequest N/A
type LocatorRequestLocationSearchCriteria ¶
type LocatorRequestLocationSearchCriteria struct {
// AccessPointSearch Applicable for request option 64 only. This contains inclusion and exclusion criteria for address search. It also contains Account Number and Access Point Public ID search elements.
AccessPointSearch *LocationSearchCriteriaAccessPointSearch `json:"AccessPointSearch,omitempty"`
// BrexitFilter Brexit Filter. Applicable for country code GB; Pass the PostalCode for the address in the location search if Brexit functionality is desired. UAPs with postal code starts with BT returned when brexit filter starts with BT, else UAPs returned with non BT postal code. Applicable for UAP and Proximal building search.
BrexitFilter *string `json:"BrexitFilter,omitempty"`
// FreightWillCallSearch Freight Will Call Search Container. Required if SearchOption is '05-Freight Will Call Search'
FreightWillCallSearch *LocationSearchCriteriaFreightWillCallSearch `json:"FreightWillCallSearch,omitempty"`
// MaximumListSize If present, indicates the maximum number of locations the client wishes to receive in response; ranges from 1 to 50 with a default value of 5.
MaximumListSize *string `json:"MaximumListSize,omitempty"`
// OpenTimeCriteria Container to hold open times of the Location.
OpenTimeCriteria *LocationSearchCriteriaOpenTimeCriteria `json:"OpenTimeCriteria,omitempty"`
SearchOption *[]LocationSearchCriteriaSearchOption `json:"SearchOption,omitempty"`
// SearchRadius Defines the maximum radius the user wishes to search for a UPS location. If the user does not specify, the default value is 100 miles. Whole numbers only.
//
// Valid values are:
// 5-100 for UnitOfMeasure MI
// 5-150 for UnitOfMesaure KM
SearchRadius *string `json:"SearchRadius,omitempty"`
// ServiceSearch Allows for users to further define the search criteria. Refer to the rules specified in Service Search section.
ServiceSearch *LocationSearchCriteriaServiceSearch `json:"ServiceSearch,omitempty"`
}
LocatorRequestLocationSearchCriteria The Location search criteria container allows the user to further define the basis to which they wish to receive the UPS locations. Only relevant when the user requests a Location search (request option 1).
type LocatorRequestOriginAddress ¶
type LocatorRequestOriginAddress struct {
// AddressKeyFormat Contains all of the basic information about the origin such as: Address Lines, City, State/Province, Postal Code and Country or Territory Code.
// The element CountryCode is required.
AddressKeyFormat OriginAddressAddressKeyFormat `json:"AddressKeyFormat"`
// Geocode Geocode is the latitude and longitude of the origin address.
Geocode *OriginAddressGeocode `json:"Geocode,omitempty"`
// MaximumListSize If present, indicates the maximum number of locations the client wishes to receive in an address candidate response where the provided origin information is insufficient to accurately establish location.
//
// Valid values: 1-50, default 10
MaximumListSize *string `json:"MaximumListSize,omitempty"`
}
LocatorRequestOriginAddress Container for origin address information.
type LocatorRequestRequest ¶
type LocatorRequestRequest struct {
// RequestAction Indicates the action to be taken by the XML service.
// The only valid value is 'Locator'.
RequestAction string `json:"RequestAction"`
// TransactionReference TransactionReference identifies transactions between client and server.
TransactionReference *RequestTransactionReference `json:"TransactionReference,omitempty"`
}
LocatorRequestRequest N/A
type LocatorRequestServiceGeoUnit ¶
type LocatorRequestServiceGeoUnit struct {
// GeoPoliticalUnit GeoPoliticalUnit. Required if ServiceGeoUnit container present.
// Valid value is '002' .
GeoPoliticalUnit string `json:"GeoPoliticalUnit"`
// ServiceCode Service Code. Required if ServiceGeoUnit Container present.
// Valid value is '096' .
ServiceCode string `json:"ServiceCode"`
}
LocatorRequestServiceGeoUnit ServiceGeoUnit Container. Required to search for the freight facility information
type LocatorRequestSortCriteria ¶
type LocatorRequestSortCriteria struct {
// SortType For different sort type. Valid values:
// 01-Closest Location
// 02-Deadline for Drop-off by Air/Express
// 03-Deadline for Drop-off by Ground/Standard
// 04-Latest Close Time
// 05-Earliest Open Time.
SortType *string `json:"SortType,omitempty"`
}
LocatorRequestSortCriteria Container for Sort Criteria
type LocatorRequestTranslate ¶
type LocatorRequestTranslate struct {
// Locale Locale is the 5 digit combination of 2 character language code and 2 character country or territory code separated by an underscore ('_') character. Will be used to determine what language the response will be sent in.
// Default value is: en_US.
// Examples are: fr_CA, es_MX.
Locale *string `json:"Locale,omitempty"`
}
LocatorRequestTranslate Contains the locale information for the request.
type LocatorRequestUnitOfMeasurement ¶
type LocatorRequestUnitOfMeasurement struct {
// Code Valid values are:
//
// - MI-Miles
// - KM-Kilometers
Code string `json:"Code"`
}
LocatorRequestUnitOfMeasurement Distance unit of measurement. This is required for location requests (request option 1).
type LocatorResponse ¶
type LocatorResponse struct {
// AllowAllConfidenceLevels Confidence level.
// Valid values: True or False
AllowAllConfidenceLevels string `json:"AllowAllConfidenceLevels"`
// Geocode Geocode is the latitude and longitude of the origin address. The Geocode is provided in the first successful response. Required to be returned when the origin address or phone number is submitted in the request.Will not be returned when the requestoption =64
Geocode *LocatorResponseGeocode `json:"Geocode,omitempty"`
// Response Container for Response.
Response LocatorResponseResponse `json:"Response"`
// SearchResults Container for search results.
SearchResults LocatorResponseSearchResults `json:"SearchResults"`
}
LocatorResponse Container for LocatorResponse.
type LocatorResponseGeocode ¶
type LocatorResponseGeocode struct {
// Latitude The latitude of the origin address, center point of the exchange, center point of the postal code, or center point of the city.
Latitude string `json:"Latitude"`
// Longitude The longitude of the origin address, center point of the exchange, center point of the postal code, or center point of the city.
Longitude string `json:"Longitude"`
}
LocatorResponseGeocode Geocode is the latitude and longitude of the origin address. The Geocode is provided in the first successful response. Required to be returned when the origin address or phone number is submitted in the request.Will not be returned when the requestoption =64
type LocatorResponseResponse ¶
type LocatorResponseResponse struct {
// Error If an error is encountered during the interchange, the Response contains an error. If the error is present, then the ErrorSeverity and ErrorCode are required.
Error *ResponseError `json:"Error,omitempty"`
// ResponseStatusCode Identifies the success or failure of the interchange.
// 1-Success
// 0-Failure
ResponseStatusCode string `json:"ResponseStatusCode"`
// ResponseStatusDescription Describes the Response Status Code.
ResponseStatusDescription *string `json:"ResponseStatusDescription,omitempty"`
// TransactionReference Container for customer provided data and the XPCI Version.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
LocatorResponseResponse Container for Response.
type LocatorResponseSearchResults ¶
type LocatorResponseSearchResults struct {
// ActiveAvailableAccessPointIndicator Indicates whether the country or territory has AccessPoints or not.
//
// This tag is populated in the Response only if tag "ExistIndicator" was present in the Locator request.
ActiveAvailableAccessPointIndicator *string `json:"ActiveAvailableAccessPointIndicator,omitempty"`
// AvailableLocationAttributes This container contains the information about the currently existing Retail Locations or Additional Services or Program types.
//
// **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.
AvailableLocationAttributes *[]SearchResultsAvailableLocationAttributes `json:"AvailableLocationAttributes,omitempty"`
// Disclaimer Disclaimer. In the event the user requested Ground and Air service types and the maximum UPS locations list size has not been met, the list of locations will continue with locations that provide either ground or air within the search radius.
//
// The disclaimer will note this deviation from the requested search criteria. The disclaimer is also the location where the user will receive information regarding a one-time pickup option if the first location is greater than 20 miles from the origin.
Disclaimer *string `json:"Disclaimer,omitempty"`
// DropLocation When a location request is submitted with a valid origin address, UPS locations will be returned.
//
// **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.
DropLocation *[]SearchResultsDropLocation `json:"DropLocation,omitempty"`
// GeocodeCandidate If the origin address provided in the location request document does not have a match, a list of candidate addresses, geocodes and optionally a landmark will be returned.
//
// **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.
GeocodeCandidate *[]SearchResultsGeocodeCandidate `json:"GeocodeCandidate,omitempty"`
}
LocatorResponseSearchResults Container for search results.
type OperatingHoursStandardHours ¶
type OperatingHoursStandardHours struct {
// DayOfWeek Container for the Day of Week.
//
// **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.
DayOfWeek []StandardHoursDayOfWeek `json:"DayOfWeek"`
// HoursType Hours Type.
//
// Valid values:
// 10-Regular Operating Hours
// 11-Will Call Hours
// 12-Same Day Will Call Hours
// 14-Customer PickUp
// 50-Drop Off Hours
// 51-Prep Hours
HoursType string `json:"HoursType"`
}
OperatingHoursStandardHours defines model for OperatingHours_StandardHours.
type OptionCodeTransportationPickUpSchedule ¶
type OptionCodeTransportationPickUpSchedule struct {
// PickUp PickUp container contains details of day of week and corresponding pickup times for that service.
//
// **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.
PickUp []TransportationPickUpSchedulePickUp `json:"PickUp"`
}
OptionCodeTransportationPickUpSchedule TransportationPickUpSchedule container contains details of Latest Drop Off time/Pickup Time for the transportation services (Ground/Air/Standard/Express/International) of the location.
type OriginAddressAddressKeyFormat ¶
type OriginAddressAddressKeyFormat struct {
// AddressLine Address Line Information. The user may submit street level address information or provide Intersection information.
AddressLine string `json:"AddressLine"`
// AddressLine2 Additional Address Line Information.
AddressLine2 *string `json:"AddressLine2,omitempty"`
// AddressLine3 Additional Address Line Information.
AddressLine3 *string `json:"AddressLine3,omitempty"`
// ConsigneeName Name. Not relevant for this tool
ConsigneeName *string `json:"ConsigneeName,omitempty"`
// CountryCode Two-character country or territory abbreviation
CountryCode string `json:"CountryCode"`
// PoliticalDivision1 State or province
PoliticalDivision1 string `json:"PoliticalDivision1"`
// PoliticalDivision2 City or Town.
PoliticalDivision2 string `json:"PoliticalDivision2"`
// PoliticalDivision3 Barrio or other sub-division of City
PoliticalDivision3 *string `json:"PoliticalDivision3,omitempty"`
// PostcodeExtendedLow 4 Digit postal code extension. Valid for US only.
PostcodeExtendedLow *string `json:"PostcodeExtendedLow,omitempty"`
// PostcodePrimaryLow Main postal code. Required if the user does not submit the City, State/Province address combination.
PostcodePrimaryLow string `json:"PostcodePrimaryLow"`
// SingleLineAddress Single line search information. Can contain values of origin address in a single line. Will override other origin address information.
//
// Conditionally Required for Non-Postal Code Countries. Applicable Country Ireland (IE)
//
// SingleLineAddress used for the lookup
//
// SingleLineAddress (Format - CSV) (\"Values:\" + postalCode + city + state + address + landmark + phoneNumber)
SingleLineAddress *string `json:"SingleLineAddress,omitempty"`
}
OriginAddressAddressKeyFormat Contains all of the basic information about the origin such as: Address Lines, City, State/Province, Postal Code and Country or Territory Code. The element CountryCode is required.
type OriginAddressGeocode ¶
type OriginAddressGeocode struct {
// Latitude The latitude of the origin address or the center point of the area code.
Latitude string `json:"Latitude"`
// Longitude The longitude of the origin address or the center point of the area code.
Longitude string `json:"Longitude"`
}
OriginAddressGeocode Geocode is the latitude and longitude of the origin address.
type PickUpPickUpDetails ¶
type PickUpPickUpDetails struct {
// NoPickUpIndicator Presence or Absence Indicator. If present, Indicates that there is no pickup time for the day.
NoPickUpIndicator string `json:"NoPickUpIndicator"`
// PickUpTime Pickup time of transportation service for a location in military format (HHMM) e.g. 0930, 1700, 1845 etc. with exception for midnight. For midnight the time will be returned as 0.
PickUpTime *string `json:"PickUpTime,omitempty"`
}
PickUpPickUpDetails PickUpDetails container contains either pickup time or NoPickupIndicator. Either PickUpTime or NoPickupIndicator
type PostalCodeListPostalCode ¶
type PostalCodeListPostalCode struct {
// PrimaryPostalCode Primary postal code.
PrimaryPostalCode string `json:"PrimaryPostalCode"`
// SecondaryPostalCode Secondary postal code.
SecondaryPostalCode *string `json:"SecondaryPostalCode,omitempty"`
}
PostalCodeListPostalCode Container to hold the postal code .
type PrivateNetworkListPrivateNetwork ¶
type PrivateNetworkListPrivateNetwork struct {
// NetworkDescription Description of the Network.
NetworkDescription string `json:"NetworkDescription"`
// NetworkID Value of networkID.
NetworkID string `json:"NetworkID"`
}
PrivateNetworkListPrivateNetwork defines model for PrivateNetworkList_PrivateNetwork.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestTransactionReference ¶
type RequestTransactionReference struct {
// CustomerContext The client uses CustomerContext to synchronize request/response pairs. The client establishes CustomerContext, which can contain any information client want, as long as it is valid XML; it is echoed back by the server
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.
// For additional information, refer to Locator Error Codes in the Appendix.
ErrorCode string `json:"ErrorCode"`
// 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,omitempty"`
// ErrorSeverity Describes the severity of the error.
// For additional information, refer to Locator Error Codes in the Appendix.
ErrorSeverity string `json:"ErrorSeverity"`
// 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 If an error is encountered during the interchange, the Response contains an error. If the error is present, then the ErrorSeverity and ErrorCode are required.
type ResponseTransactionReference ¶
type ResponseTransactionReference struct {
// CustomerContext Customer provided data. If this data is present in the request, it is echoed back to the customer.
CustomerContext *string `json:"CustomerContext,omitempty"`
// XpciVersion Identifies the version of the message.
// Current version is 1.0014
XpciVersion *string `json:"XpciVersion,omitempty"`
}
ResponseTransactionReference Container for customer provided data and the XPCI Version.
type SearchOptionOptionCode ¶
type SearchOptionOptionCode struct {
// Code These codes vary by country. It is strongly recommended that clients contact UPS to retrieve the primary search indicator and the valid Location Types and Service Level Options for each country or territory.
//
// Refer to Location Search Option Codes in the Appendix for additional information.
Code string `json:"Code"`
}
SearchOptionOptionCode Option code contains the information of a particular Location, Retail Location, Additional Service, Program Type or End Point Service Offering depending on the option type. The SearchOptions can contain one or more OptionCodes which forms the criteria for the location search.
type SearchOptionOptionType ¶
type SearchOptionOptionType struct {
// Code Code for Option type valid values are:
//
// - 01-Location
// - 02-Retail Location
// - 03-Additional Services
// - 04-Program Type
// - 05-Service Level Option.
// - 06-End Point Service Offering
Code string `json:"Code"`
}
SearchOptionOptionType OptionType is a container that indicates the type of search for locations. There are 5 types of search. They are search by: Location, Retail Location, Additional Services, Program Type, and a Service Level Option. If search criteria by Location or Retail Location is not provided the default search of The UPS Store, UPS Center, UPS Drop Box, and Authorized Shipping Outlet location types will be performed.
type SearchOptionRelation ¶
type SearchOptionRelation struct {
// Code Applicable for Additional Services and Program Types.
//
// Valid values:
//
// - 01 - And (Default)
// - 02 - Or
Code string `json:"Code"`
}
SearchOptionRelation The relation container will contain the relation parameter (And/Or) that has to be used among multiple option codes in the location search.
This is only applicable to option type Additional Services and Program Types. If this container is not present for Additional Services and Program Types, the default relation of And is used.
type SearchResultsAvailableLocationAttributes ¶
type SearchResultsAvailableLocationAttributes struct {
// OptionCode **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.
OptionCode AvailableLocationAttributesOptionCode `json:"OptionCode"`
// OptionType OptionType is a container that indicates the type of the location attribute that are available. For example if the Option Type is RetailLocation the list of all available retail locations will be returned in 1 or many corresponding OptionCodes.
OptionType AvailableLocationAttributesOptionType `json:"OptionType"`
}
SearchResultsAvailableLocationAttributes defines model for SearchResults_AvailableLocationAttributes.
type SearchResultsDropLocation ¶
type SearchResultsDropLocation struct {
// AccessPointInformation Container for UPS Access Point specific parameters.
AccessPointInformation *DropLocationAccessPointInformation `json:"AccessPointInformation,omitempty"`
// AdditionalChargeIndicator Presence or Absence Indicator. If present, Indicates if the UPS location would have an additional charge. ASO locations will require an additional charge.
AdditionalChargeIndicator *string `json:"AdditionalChargeIndicator,omitempty"`
// AdditionalComments Container for Additional Comments about Location.Text will be displayed in the Locale requested.
AdditionalComments *DropLocationAdditionalComments `json:"AdditionalComments,omitempty"`
// AddressKeyFormat Contains all of the basic information about a location, Consignee Name, Building Name, Address Lines, City, State/Province, Postal Code and Country or Terriotry Code.
AddressKeyFormat DropLocationAddressKeyFormat `json:"AddressKeyFormat"`
// Comments Comments returned about the location. Text will be displayed in English or the locale given in the request. If Country Code is FR, and locale passed in the request is "fr_FR" then text will be displayed in French language, else comment will be displayed in English language.
Comments *string `json:"Comments,omitempty"`
// Disclaimer Textual disclaimer about the drop location.
//
// **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.
Disclaimer *[]string `json:"Disclaimer,omitempty"`
// DisplayPhoneNumberIndicator Valid Values:
// 0-Do not display phone number
// 1-Display phone number.
// This indicator will be returned only for the contact type Telephone number. This indicator is used by the clients to determine whether to display the telephone number to the end user.
DisplayPhoneNumberIndicator *string `json:"DisplayPhoneNumberIndicator,omitempty"`
// Distance Container for the straight line distance from the origin to the UPS location.
Distance DropLocationDistance `json:"Distance"`
// EMailAddress Email address of the UPS location. Returned when available.
EMailAddress *string `json:"EMailAddress,omitempty"`
// FacilityType PKG/FRT.
FacilityType *string `json:"FacilityType,omitempty"`
// FaxNumber The UPS location's Fax number. A fax number of the location will be returned when available.
// 10 digits allowed for US, otherwise 1..15 digits allowed.
// The fax number will be returned as string.
FaxNumber *string `json:"FaxNumber,omitempty"`
// FeaturedRank Feature Ranking values:
// Null or blank - Location is not featured.
// 1 - Featured Location ranked number 1.
// 2 - Featured Location ranked number 2.
FeaturedRank *string `json:"FeaturedRank,omitempty"`
// Geocode Geocode is the latitude and longitude of the location address. The Geocode for the location address will be returned when Location is requested in the Request Option.
Geocode DropLocationGeocode `json:"Geocode"`
// HomePageURL The home page URL of the drop location if it is The UPS store.
HomePageURL *string `json:"HomePageURL,omitempty"`
// IVR Integrated Voice Response information.
// ONLY FOR IVR.
IVR DropLocationIVR `json:"IVR"`
// LatestAirDropOffTime The latest airtime the users can Drop-off the package at the location to be picked up. The time information is based on the time at the UPS location.
//
// When a user specifies a Drop-off Time and Air as the Service Type, the locations that have latest Drop-off times equal to or later than the specified Drop-off time and service type are returned.
//
// **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.
LatestAirDropOffTime *[]string `json:"LatestAirDropOffTime,omitempty"`
// LatestGroundDropOffTime The latest ground time the users can Drop-off the package at the location to be picked up. The time information is based on the time at the UPS location.
//
// When a user specifies a Drop-off Time and Ground as the Service Type, the locations that have latest Drop-off times equal to or later than the specified Drop-off time and service type are returned.
//
// **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.
LatestGroundDropOffTime *[]string `json:"LatestGroundDropOffTime,omitempty"`
// LocalizedInstruction LocalizedInstruction container. Applicable for SearchOptionCode 01, 02, 03.
//
// **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.
LocalizedInstruction *[]DropLocationLocalizedInstruction `json:"LocalizedInstruction,omitempty"`
// LocationAttribute OptionType is a container that indicates the type of the location attribute.
//
// There are 4 types of attributes.
//
// They are: Location, Retail Location, Additional Services and Program Type.
//
// **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.
LocationAttribute []DropLocationLocationAttribute `json:"LocationAttribute"`
// LocationID The location ID that corresponds to the UPS location. Do not expose the Location ID.
LocationID string `json:"LocationID"`
// LocationImage Location Image container.
LocationImage *DropLocationLocationImage `json:"LocationImage,omitempty"`
// LocationNewIndicator Indicator for new location.
LocationNewIndicator *string `json:"LocationNewIndicator,omitempty"`
// NonStandardHoursOfOperation The non-standard hours of operation of the drop location. The location's time may differ because of holidays, weekends, or other factors that are beyond the locations control. Seven days preceding a given holiday the Non Standard Hours Of Operation will be returned along with the standard hours of operation if available.
NonStandardHoursOfOperation *string `json:"NonStandardHoursOfOperation,omitempty"`
// Number The center number of the drop location if it is The UPS store.
Number *string `json:"Number,omitempty"`
// OperatingHours Operating Hours.
OperatingHours *DropLocationOperatingHours `json:"OperatingHours,omitempty"`
// OriginOrDestination OriginOrDestination will returned for FreightWillCallRequestType 1 Postal based and 3 City and/or State based search.
//
// OriginOrDestination will be 01 for origin facilities and 02 for Destination facilities
OriginOrDestination string `json:"OriginOrDestination"`
// PhoneNumber The UPS locations Phone number. A phone number of the location will be returned.
//
// 10 digits allowed for US, otherwise 1..15 digits allowed.
//
// The phone number will be returned as a string.
//
// **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.
PhoneNumber []string `json:"PhoneNumber"`
// PromotionInformation Container to hold any promotion text for the location. Text will be displayed in English or the locale given in the request.
//
// **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.
PromotionInformation *[]DropLocationPromotionInformation `json:"PromotionInformation,omitempty"`
// PromotionalLinkURL Promotional link URL for specific location.
PromotionalLinkURL *string `json:"PromotionalLinkURL,omitempty"`
// SLIC SLIC.
SLIC *string `json:"SLIC,omitempty"`
// ServiceOfferingList Container to hold the list of service offerings at the end point.
ServiceOfferingList *DropLocationServiceOfferingList `json:"ServiceOfferingList,omitempty"`
// SortCode This container is only for Freight Will call Search.
SortCode *DropLocationSortCode `json:"SortCode,omitempty"`
// SpecialInstructions Walking directions.
//
// **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.
SpecialInstructions *[]DropLocationSpecialInstructions `json:"SpecialInstructions,omitempty"`
// StandardHoursOfOperation The standard hours of operation of the drop location will be returned when available. The location's time may differ because of holidays.
StandardHoursOfOperation *string `json:"StandardHoursOfOperation,omitempty"`
// Timezone TimeZone.
Timezone string `json:"Timezone"`
// WillCallHoursOfOperation The will call hours of operation of the drop location will be returned when available. The location's time may differ because of holidays.
WillCallHoursOfOperation *string `json:"WillCallHoursOfOperation,omitempty"`
// WillCallLocationIndicator Will Call Location Indicator values:
// - Y – Signifies a Will Call location that serves the customers address.
// - N - Signifies it is not a Will Call location.
//
// Will Call locations are only returned with a \"Y\" indicator if the request included EnhancedSearchOption code 10.
WillCallLocationIndicator *string `json:"WillCallLocationIndicator,omitempty"`
}
SearchResultsDropLocation defines model for SearchResults_DropLocation.
type SearchResultsGeocodeCandidate ¶
type SearchResultsGeocodeCandidate struct {
// AddressKeyFormat Contains all of the basic information about candidate address.
AddressKeyFormat GeocodeCandidateAddressKeyFormat `json:"AddressKeyFormat"`
// Geocode Geocode is the latitude and longitude of the origin candidate.
Geocode GeocodeCandidateGeocode `json:"Geocode"`
// LandmarkName If a Landmark code was provided in the request, a candidate list of Landmark Names will be returned along with the corresponding address and Geocode.
LandmarkName *string `json:"LandmarkName,omitempty"`
}
SearchResultsGeocodeCandidate defines model for SearchResults_GeocodeCandidate.
type ServiceOfferingListServiceOffering ¶
type ServiceOfferingListServiceOffering struct {
// Code The valid values are:
// 001-Direct To Retail
// 002-Not In One ADL
// 003-Click and Collect
// 004-Retail to Retail
// 005-Pickup
// 006-Drop Off
// 007-PUDO
// 008-Early Pickup Delivery Time
// 009-Accept prepaid drop offs
// 010-DCO DCR intercept accepted
// 011-Accepts Payments
// 012-Pay At Store
// 013-Accepts Restricted Articles
Code string `json:"Code"`
// Description Description of the service offering. Text will be displayed in the locale requested.
Description string `json:"Description"`
}
ServiceOfferingListServiceOffering defines model for ServiceOfferingList_ServiceOffering.
type ServiceSearchServiceCode ¶
type ServiceSearchServiceCode struct {
// Code Code indicating the different services. Valid values are:
// 01-Ground.
// 02-Air.
// 03-Express
// 04-Standard
// 05-International (Only avialable July 17)
Code string `json:"Code"`
}
ServiceSearchServiceCode Container that contains the service information such as Ground/Air. Required if the customer provides ServiceSearch Time.
type ServiceSearchServiceOptionCode ¶
type ServiceSearchServiceOptionCode struct {
// Code Code that defines the optional service.
//
// Valid values:
// - 01 - Saturday pickup.
//
// Only valid for air service.
Code string `json:"Code"`
}
ServiceSearchServiceOptionCode Container for the optional service information such as Saturday Pick up.
type ShippingAvailabilityUnavailableReason ¶
type ShippingAvailabilityUnavailableReason struct {
//
// Valid values:
// - 01 - Temporarily Unavailable
// - 02 - Location Full
// - 03 - Unavailable
// - 04 - Weather
Code string `json:"Code"`
Description string `json:"Description"`
}
ShippingAvailabilityUnavailableReason Container to hold shipping unavailable reason.
type StandardHoursDayOfWeek ¶
type StandardHoursDayOfWeek struct {
// CloseHours Close time of a location in military format (HHMM) e.g. 930, 1700, 1845 etc. with exception for midnight. For midnight the time will be returned as 0.
CloseHours *string `json:"CloseHours,omitempty"`
// ClosedIndicator Presence absence Indicator. Indicator present means location is closed.
ClosedIndicator *string `json:"ClosedIndicator,omitempty"`
// Day Day of week.
// Valid values:
// 1-Sunday
// 2-Monday
// 3-Tuesday
// 4-Wednesday
// 5-Thursday
// 6-Friday
// 7-Saturday.
Day string `json:"Day"`
// LatestDropOffHours LatestDropOffHours for Hour Type 50. Latest Drop Off time of a location in military format (HHMM) e.g. 930, 1700, 1845 etc. with exception for midnight. For midnight the time will be returned as 0.
LatestDropOffHours *string `json:"LatestDropOffHours,omitempty"`
// Open24HoursIndicator Presence/ Absence Indicator. Presence denotes for the given day, if the location is open 24 hours. Absence denotes the location is not open for 24 hours on the given day.
Open24HoursIndicator *string `json:"Open24HoursIndicator,omitempty"`
// OpenHours Open time of a location in military format (HHMM) e.g. 930, 1700, 1845 etc. with exception for midnight. For midnight the time will be returned as 0.
OpenHours *string `json:"OpenHours,omitempty"`
// PrepHours PrepHours for Hour Type 51. Prep Hours of a location in military format (HHMM) e.g. 930, 1700, 1845 etc. with exception for midnight. For midnight the time will be returned as 0.
PrepHours *string `json:"PrepHours,omitempty"`
}
StandardHoursDayOfWeek defines model for StandardHours_DayOfWeek.
type TransportationPickUpSchedulePickUp ¶
type TransportationPickUpSchedulePickUp struct {
// DayOfWeek Day of week.
// - 1 - Sunday
// - 2 - Monday
// - 3 - Tuesday
// - 4 - Wednesday
// - 5 - Thursday
// - 6 - Friday
// - 7 - Saturday.
DayOfWeek string `json:"DayOfWeek"`
// PickUpDetails PickUpDetails container contains either pickup time or NoPickupIndicator. Either PickUpTime or NoPickupIndicator
PickUpDetails PickUpPickUpDetails `json:"PickUpDetails"`
}
TransportationPickUpSchedulePickUp defines model for TransportationPickUpSchedule_PickUp.