Documentation
¶
Overview ¶
Package pickup 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 NewDeprecatedPickupCancelRequest(server string, deprecatedVersion string, cancelBy string, ...) (*http.Request, error)
- func NewDeprecatedPickupCreationRequest(server string, deprecatedVersion string, ...) (*http.Request, error)
- func NewDeprecatedPickupCreationRequestWithBody(server string, deprecatedVersion string, ...) (*http.Request, error)
- func NewPickupCancelOpRequest(server string, version string, cancelBy string, params *PickupCancelOpParams) (*http.Request, error)
- func NewPickupCreationOpRequest(server string, version string, params *PickupCreationOpParams, ...) (*http.Request, error)
- func NewPickupCreationOpRequestWithBody(server string, version string, params *PickupCreationOpParams, ...) (*http.Request, error)
- func NewPickupGetPoliticalDivision1ListOpRequest(server string, version string, countrycode string, ...) (*http.Request, error)
- func NewPickupGetServiceCenterFacilitiesOpRequest(server string, version string, ...) (*http.Request, error)
- func NewPickupGetServiceCenterFacilitiesOpRequestWithBody(server string, version string, ...) (*http.Request, error)
- func NewPickupPendingStatusOpRequest(server string, version string, pickuptype string, ...) (*http.Request, error)
- func NewPickupRateOpRequest(server string, version string, pickuptype string, params *PickupRateOpParams, ...) (*http.Request, error)
- func NewPickupRateOpRequestWithBody(server string, version string, pickuptype string, params *PickupRateOpParams, ...) (*http.Request, error)
- type ChargeCardCardAddress
- type Client
- func (c *Client) DeprecatedPickupCancel(ctx context.Context, deprecatedVersion string, cancelBy string, ...) (*http.Response, error)
- func (c *Client) DeprecatedPickupCreation(ctx context.Context, deprecatedVersion string, ...) (*http.Response, error)
- func (c *Client) DeprecatedPickupCreationWithBody(ctx context.Context, deprecatedVersion string, ...) (*http.Response, error)
- func (c *Client) PickupCancelOp(ctx context.Context, version string, cancelBy string, ...) (*http.Response, error)
- func (c *Client) PickupCreationOp(ctx context.Context, version string, params *PickupCreationOpParams, ...) (*http.Response, error)
- func (c *Client) PickupCreationOpWithBody(ctx context.Context, version string, params *PickupCreationOpParams, ...) (*http.Response, error)
- func (c *Client) PickupGetPoliticalDivision1ListOp(ctx context.Context, version string, countrycode string, ...) (*http.Response, error)
- func (c *Client) PickupGetServiceCenterFacilitiesOp(ctx context.Context, version string, ...) (*http.Response, error)
- func (c *Client) PickupGetServiceCenterFacilitiesOpWithBody(ctx context.Context, version string, ...) (*http.Response, error)
- func (c *Client) PickupPendingStatusOp(ctx context.Context, version string, pickuptype string, ...) (*http.Response, error)
- func (c *Client) PickupRateOp(ctx context.Context, version string, pickuptype string, ...) (*http.Response, error)
- func (c *Client) PickupRateOpWithBody(ctx context.Context, version string, pickuptype string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeprecatedPickupCancelWithResponse(ctx context.Context, deprecatedVersion string, cancelBy string, ...) (*DeprecatedPickupCancelResponse, error)
- func (c *ClientWithResponses) DeprecatedPickupCreationWithBodyWithResponse(ctx context.Context, deprecatedVersion string, ...) (*DeprecatedPickupCreationResponse, error)
- func (c *ClientWithResponses) DeprecatedPickupCreationWithResponse(ctx context.Context, deprecatedVersion string, ...) (*DeprecatedPickupCreationResponse, error)
- func (c *ClientWithResponses) PickupCancelOpWithResponse(ctx context.Context, version string, cancelBy string, ...) (*PickupCancelOpResponse, error)
- func (c *ClientWithResponses) PickupCreationOpWithBodyWithResponse(ctx context.Context, version string, params *PickupCreationOpParams, ...) (*PickupCreationOpResponse, error)
- func (c *ClientWithResponses) PickupCreationOpWithResponse(ctx context.Context, version string, params *PickupCreationOpParams, ...) (*PickupCreationOpResponse, error)
- func (c *ClientWithResponses) PickupGetPoliticalDivision1ListOpWithResponse(ctx context.Context, version string, countrycode string, ...) (*PickupGetPoliticalDivision1ListOpResponse, error)
- func (c *ClientWithResponses) PickupGetServiceCenterFacilitiesOpWithBodyWithResponse(ctx context.Context, version string, ...) (*PickupGetServiceCenterFacilitiesOpResponse, error)
- func (c *ClientWithResponses) PickupGetServiceCenterFacilitiesOpWithResponse(ctx context.Context, version string, ...) (*PickupGetServiceCenterFacilitiesOpResponse, error)
- func (c *ClientWithResponses) PickupPendingStatusOpWithResponse(ctx context.Context, version string, pickuptype string, ...) (*PickupPendingStatusOpResponse, error)
- func (c *ClientWithResponses) PickupRateOpWithBodyWithResponse(ctx context.Context, version string, pickuptype string, ...) (*PickupRateOpResponse, error)
- func (c *ClientWithResponses) PickupRateOpWithResponse(ctx context.Context, version string, pickuptype string, ...) (*PickupRateOpResponse, error)
- type ClientWithResponsesInterface
- type CommonErrorResponse
- type DeprecatedPickupCancelParams
- type DeprecatedPickupCancelResponse
- type DeprecatedPickupCreationJSONRequestBody
- type DeprecatedPickupCreationParams
- type DeprecatedPickupCreationResponse
- type DimensionsUnitOfMeasurement
- type DropOffFacilitiesAddress
- type DropOffFacilitiesDistance
- type DropOffFacilitiesFacilityTime
- type DropOffFacilitiesLocalizedInstruction
- type ErrorMessage
- type ErrorResponse
- type FacilityTimeDayOfWeek
- type FreightOptionsDestinationAddress
- type FreightOptionsShipmentDetail
- type FreightOptionsShipmentServiceOptions
- type HttpRequestDoer
- type OriginAddressOriginSearchCriteria
- type PICKUPCancelResponseWrapper
- type PICKUPCreationRequestWrapper
- type PICKUPCreationResponseWrapper
- type PICKUPPendingResponseWrapper
- type PICKUPPolDivResponseWrapper
- type PICKUPRequestWrapper
- type PICKUPResponseWrapper
- type PICKUPServCenterRequestWrapper
- type PICKUPServCenterResponseWrapper
- type PICKUPTriggerGWNRequestWrapper
- type PICKUPTriggerGWNResponseWrapper
- type PalletInformationDimensions
- type PickupAddressPhone
- type PickupCancelOpParams
- type PickupCancelOpResponse
- type PickupCancelResponse
- type PickupCancelResponseGWNStatus
- type PickupCancelResponseResponse
- type PickupCreationOpJSONBody
- type PickupCreationOpJSONRequestBody
- type PickupCreationOpParams
- type PickupCreationOpResponse
- type PickupCreationRequest
- type PickupCreationRequestFreightOptions
- type PickupCreationRequestNotification
- type PickupCreationRequestPickupAddress
- type PickupCreationRequestPickupDateInfo
- type PickupCreationRequestPickupPiece
- type PickupCreationRequestRequest
- type PickupCreationRequestShipper
- type PickupCreationRequestTotalWeight
- type PickupCreationRequestTrackingData
- type PickupCreationRequestTrackingDataWithReferenceNumber
- type PickupCreationResponse
- type PickupCreationResponseRateResult
- type PickupCreationResponseRateStatus
- type PickupCreationResponseResponse
- type PickupCreationResponseWeekendServiceTerritory
- type PickupFacilitiesAddress
- type PickupFacilitiesFacilityTime
- type PickupFacilitiesFacilityTimeDayOfWeek
- type PickupGetPoliticalDivision1ListOpParams
- type PickupGetPoliticalDivision1ListOpResponse
- type PickupGetPoliticalDivision1ListResponse
- type PickupGetPoliticalDivision1ListResponseResponse
- type PickupGetServiceCenterFacilitiesOpJSONRequestBody
- type PickupGetServiceCenterFacilitiesOpParams
- type PickupGetServiceCenterFacilitiesOpResponse
- type PickupGetServiceCenterFacilitiesRequest
- type PickupGetServiceCenterFacilitiesRequestDestinationAddress
- type PickupGetServiceCenterFacilitiesRequestOriginAddress
- type PickupGetServiceCenterFacilitiesRequestPickupPiece
- type PickupGetServiceCenterFacilitiesRequestRequest
- type PickupGetServiceCenterFacilitiesResponse
- type PickupGetServiceCenterFacilitiesResponseResponse
- type PickupGetServiceCenterFacilitiesResponseServiceCenterLocation
- type PickupPendingStatusOpParams
- type PickupPendingStatusOpResponse
- type PickupPendingStatusResponse
- type PickupPendingStatusResponsePendingStatus
- type PickupPendingStatusResponseResponse
- type PickupRateOpJSONRequestBody
- type PickupRateOpParams
- type PickupRateOpResponse
- type PickupRateRequest
- type PickupRateRequestPickupAddress
- type PickupRateRequestPickupDateInfo
- type PickupRateRequestRequest
- type PickupRateRequestShipperAccount
- type PickupRateResponse
- type PickupRateResponseRateResult
- type PickupRateResponseResponse
- type PickupRateResponseWeekendServiceTerritory
- type PickupTriggerGWNRequest
- type PickupTriggerGWNResponse
- type PickupTriggerGWNResponseTriggerStatus
- type RateResultChargeDetail
- type RateResultDisclaimer
- type RateResultTaxCharges
- type RequestEditorFn
- type RequestTransactionReference
- type ResponseAlert
- type ResponseResponseStatus
- type ResponseTransactionReference
- type ServiceCenterLocationDropOffFacilities
- type ServiceCenterLocationPickupFacilities
- type ShipmentDetailPalletInformation
- type ShipperAccount
- type ShipperChargeCard
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeprecatedPickupCancelRequest ¶
func NewDeprecatedPickupCancelRequest(server string, deprecatedVersion string, cancelBy string, params *DeprecatedPickupCancelParams) (*http.Request, error)
NewDeprecatedPickupCancelRequest generates requests for DeprecatedPickupCancel
func NewDeprecatedPickupCreationRequest ¶
func NewDeprecatedPickupCreationRequest(server string, deprecatedVersion string, params *DeprecatedPickupCreationParams, body DeprecatedPickupCreationJSONRequestBody) (*http.Request, error)
NewDeprecatedPickupCreationRequest calls the generic DeprecatedPickupCreation builder with application/json body
func NewDeprecatedPickupCreationRequestWithBody ¶
func NewDeprecatedPickupCreationRequestWithBody(server string, deprecatedVersion string, params *DeprecatedPickupCreationParams, contentType string, body io.Reader) (*http.Request, error)
NewDeprecatedPickupCreationRequestWithBody generates requests for DeprecatedPickupCreation with any type of body
func NewPickupCancelOpRequest ¶
func NewPickupCancelOpRequest(server string, version string, cancelBy string, params *PickupCancelOpParams) (*http.Request, error)
NewPickupCancelOpRequest generates requests for PickupCancelOp
func NewPickupCreationOpRequest ¶
func NewPickupCreationOpRequest(server string, version string, params *PickupCreationOpParams, body PickupCreationOpJSONRequestBody) (*http.Request, error)
NewPickupCreationOpRequest calls the generic PickupCreationOp builder with application/json body
func NewPickupCreationOpRequestWithBody ¶
func NewPickupCreationOpRequestWithBody(server string, version string, params *PickupCreationOpParams, contentType string, body io.Reader) (*http.Request, error)
NewPickupCreationOpRequestWithBody generates requests for PickupCreationOp with any type of body
func NewPickupGetPoliticalDivision1ListOpRequest ¶
func NewPickupGetPoliticalDivision1ListOpRequest(server string, version string, countrycode string, params *PickupGetPoliticalDivision1ListOpParams) (*http.Request, error)
NewPickupGetPoliticalDivision1ListOpRequest generates requests for PickupGetPoliticalDivision1ListOp
func NewPickupGetServiceCenterFacilitiesOpRequest ¶
func NewPickupGetServiceCenterFacilitiesOpRequest(server string, version string, params *PickupGetServiceCenterFacilitiesOpParams, body PickupGetServiceCenterFacilitiesOpJSONRequestBody) (*http.Request, error)
NewPickupGetServiceCenterFacilitiesOpRequest calls the generic PickupGetServiceCenterFacilitiesOp builder with application/json body
func NewPickupGetServiceCenterFacilitiesOpRequestWithBody ¶
func NewPickupGetServiceCenterFacilitiesOpRequestWithBody(server string, version string, params *PickupGetServiceCenterFacilitiesOpParams, contentType string, body io.Reader) (*http.Request, error)
NewPickupGetServiceCenterFacilitiesOpRequestWithBody generates requests for PickupGetServiceCenterFacilitiesOp with any type of body
func NewPickupPendingStatusOpRequest ¶
func NewPickupPendingStatusOpRequest(server string, version string, pickuptype string, params *PickupPendingStatusOpParams) (*http.Request, error)
NewPickupPendingStatusOpRequest generates requests for PickupPendingStatusOp
func NewPickupRateOpRequest ¶
func NewPickupRateOpRequest(server string, version string, pickuptype string, params *PickupRateOpParams, body PickupRateOpJSONRequestBody) (*http.Request, error)
NewPickupRateOpRequest calls the generic PickupRateOp builder with application/json body
Types ¶
type ChargeCardCardAddress ¶
type ChargeCardCardAddress struct {
// AddressLine Address Lines of the credit card billing address. Max of three address lines can be provided.
AddressLine *[]string `json:"AddressLine,omitempty"`
// City Charge card billing city
City *string `json:"City,omitempty"`
// CountryCode Charge card billing address country or territory code defined by ISO-3166.
//
// Upper-case two letter string. For Discover card it should be US.
CountryCode string `json:"CountryCode"`
// PostalCode Charge card billing address postal code. This is a required field for postal countries.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvince Charge card billing State province code. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvince *string `json:"StateProvince,omitempty"`
}
ChargeCardCardAddress Container to hold the Charge card address.
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) DeprecatedPickupCancel ¶
func (c *Client) DeprecatedPickupCancel(ctx context.Context, deprecatedVersion string, cancelBy string, params *DeprecatedPickupCancelParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeprecatedPickupCreation ¶
func (c *Client) DeprecatedPickupCreation(ctx context.Context, deprecatedVersion string, params *DeprecatedPickupCreationParams, body DeprecatedPickupCreationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeprecatedPickupCreationWithBody ¶
func (*Client) PickupCancelOp ¶
func (c *Client) PickupCancelOp(ctx context.Context, version string, cancelBy string, params *PickupCancelOpParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PickupCreationOp ¶
func (c *Client) PickupCreationOp(ctx context.Context, version string, params *PickupCreationOpParams, body PickupCreationOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PickupCreationOpWithBody ¶
func (*Client) PickupGetPoliticalDivision1ListOp ¶
func (c *Client) PickupGetPoliticalDivision1ListOp(ctx context.Context, version string, countrycode string, params *PickupGetPoliticalDivision1ListOpParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PickupGetServiceCenterFacilitiesOp ¶
func (c *Client) PickupGetServiceCenterFacilitiesOp(ctx context.Context, version string, params *PickupGetServiceCenterFacilitiesOpParams, body PickupGetServiceCenterFacilitiesOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PickupGetServiceCenterFacilitiesOpWithBody ¶
func (*Client) PickupPendingStatusOp ¶
func (c *Client) PickupPendingStatusOp(ctx context.Context, version string, pickuptype string, params *PickupPendingStatusOpParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PickupRateOp ¶
func (c *Client) PickupRateOp(ctx context.Context, version string, pickuptype string, params *PickupRateOpParams, body PickupRateOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PickupRateOpWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// PickupGetPoliticalDivision1ListOp request
PickupGetPoliticalDivision1ListOp(ctx context.Context, version string, countrycode string, params *PickupGetPoliticalDivision1ListOpParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PickupGetServiceCenterFacilitiesOpWithBody request with any body
PickupGetServiceCenterFacilitiesOpWithBody(ctx context.Context, version string, params *PickupGetServiceCenterFacilitiesOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PickupGetServiceCenterFacilitiesOp(ctx context.Context, version string, params *PickupGetServiceCenterFacilitiesOpParams, body PickupGetServiceCenterFacilitiesOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeprecatedPickupCreationWithBody request with any body
DeprecatedPickupCreationWithBody(ctx context.Context, deprecatedVersion string, params *DeprecatedPickupCreationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeprecatedPickupCreation(ctx context.Context, deprecatedVersion string, params *DeprecatedPickupCreationParams, body DeprecatedPickupCreationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PickupCreationOpWithBody request with any body
PickupCreationOpWithBody(ctx context.Context, version string, params *PickupCreationOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PickupCreationOp(ctx context.Context, version string, params *PickupCreationOpParams, body PickupCreationOpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeprecatedPickupCancel request
DeprecatedPickupCancel(ctx context.Context, deprecatedVersion string, cancelBy string, params *DeprecatedPickupCancelParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PickupCancelOp request
PickupCancelOp(ctx context.Context, version string, cancelBy string, params *PickupCancelOpParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PickupPendingStatusOp request
PickupPendingStatusOp(ctx context.Context, version string, pickuptype string, params *PickupPendingStatusOpParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PickupRateOpWithBody request with any body
PickupRateOpWithBody(ctx context.Context, version string, pickuptype string, params *PickupRateOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PickupRateOp(ctx context.Context, version string, pickuptype string, params *PickupRateOpParams, body PickupRateOpJSONRequestBody, 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) DeprecatedPickupCancelWithResponse ¶
func (c *ClientWithResponses) DeprecatedPickupCancelWithResponse(ctx context.Context, deprecatedVersion string, cancelBy string, params *DeprecatedPickupCancelParams, reqEditors ...RequestEditorFn) (*DeprecatedPickupCancelResponse, error)
DeprecatedPickupCancelWithResponse request returning *DeprecatedPickupCancelResponse
func (*ClientWithResponses) DeprecatedPickupCreationWithBodyWithResponse ¶
func (c *ClientWithResponses) DeprecatedPickupCreationWithBodyWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedPickupCreationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedPickupCreationResponse, error)
DeprecatedPickupCreationWithBodyWithResponse request with arbitrary body returning *DeprecatedPickupCreationResponse
func (*ClientWithResponses) DeprecatedPickupCreationWithResponse ¶
func (c *ClientWithResponses) DeprecatedPickupCreationWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedPickupCreationParams, body DeprecatedPickupCreationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedPickupCreationResponse, error)
func (*ClientWithResponses) PickupCancelOpWithResponse ¶
func (c *ClientWithResponses) PickupCancelOpWithResponse(ctx context.Context, version string, cancelBy string, params *PickupCancelOpParams, reqEditors ...RequestEditorFn) (*PickupCancelOpResponse, error)
PickupCancelOpWithResponse request returning *PickupCancelOpResponse
func (*ClientWithResponses) PickupCreationOpWithBodyWithResponse ¶
func (c *ClientWithResponses) PickupCreationOpWithBodyWithResponse(ctx context.Context, version string, params *PickupCreationOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PickupCreationOpResponse, error)
PickupCreationOpWithBodyWithResponse request with arbitrary body returning *PickupCreationOpResponse
func (*ClientWithResponses) PickupCreationOpWithResponse ¶
func (c *ClientWithResponses) PickupCreationOpWithResponse(ctx context.Context, version string, params *PickupCreationOpParams, body PickupCreationOpJSONRequestBody, reqEditors ...RequestEditorFn) (*PickupCreationOpResponse, error)
func (*ClientWithResponses) PickupGetPoliticalDivision1ListOpWithResponse ¶
func (c *ClientWithResponses) PickupGetPoliticalDivision1ListOpWithResponse(ctx context.Context, version string, countrycode string, params *PickupGetPoliticalDivision1ListOpParams, reqEditors ...RequestEditorFn) (*PickupGetPoliticalDivision1ListOpResponse, error)
PickupGetPoliticalDivision1ListOpWithResponse request returning *PickupGetPoliticalDivision1ListOpResponse
func (*ClientWithResponses) PickupGetServiceCenterFacilitiesOpWithBodyWithResponse ¶
func (c *ClientWithResponses) PickupGetServiceCenterFacilitiesOpWithBodyWithResponse(ctx context.Context, version string, params *PickupGetServiceCenterFacilitiesOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PickupGetServiceCenterFacilitiesOpResponse, error)
PickupGetServiceCenterFacilitiesOpWithBodyWithResponse request with arbitrary body returning *PickupGetServiceCenterFacilitiesOpResponse
func (*ClientWithResponses) PickupGetServiceCenterFacilitiesOpWithResponse ¶
func (c *ClientWithResponses) PickupGetServiceCenterFacilitiesOpWithResponse(ctx context.Context, version string, params *PickupGetServiceCenterFacilitiesOpParams, body PickupGetServiceCenterFacilitiesOpJSONRequestBody, reqEditors ...RequestEditorFn) (*PickupGetServiceCenterFacilitiesOpResponse, error)
func (*ClientWithResponses) PickupPendingStatusOpWithResponse ¶
func (c *ClientWithResponses) PickupPendingStatusOpWithResponse(ctx context.Context, version string, pickuptype string, params *PickupPendingStatusOpParams, reqEditors ...RequestEditorFn) (*PickupPendingStatusOpResponse, error)
PickupPendingStatusOpWithResponse request returning *PickupPendingStatusOpResponse
func (*ClientWithResponses) PickupRateOpWithBodyWithResponse ¶
func (c *ClientWithResponses) PickupRateOpWithBodyWithResponse(ctx context.Context, version string, pickuptype string, params *PickupRateOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PickupRateOpResponse, error)
PickupRateOpWithBodyWithResponse request with arbitrary body returning *PickupRateOpResponse
func (*ClientWithResponses) PickupRateOpWithResponse ¶
func (c *ClientWithResponses) PickupRateOpWithResponse(ctx context.Context, version string, pickuptype string, params *PickupRateOpParams, body PickupRateOpJSONRequestBody, reqEditors ...RequestEditorFn) (*PickupRateOpResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// PickupGetPoliticalDivision1ListOpWithResponse request
PickupGetPoliticalDivision1ListOpWithResponse(ctx context.Context, version string, countrycode string, params *PickupGetPoliticalDivision1ListOpParams, reqEditors ...RequestEditorFn) (*PickupGetPoliticalDivision1ListOpResponse, error)
// PickupGetServiceCenterFacilitiesOpWithBodyWithResponse request with any body
PickupGetServiceCenterFacilitiesOpWithBodyWithResponse(ctx context.Context, version string, params *PickupGetServiceCenterFacilitiesOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PickupGetServiceCenterFacilitiesOpResponse, error)
PickupGetServiceCenterFacilitiesOpWithResponse(ctx context.Context, version string, params *PickupGetServiceCenterFacilitiesOpParams, body PickupGetServiceCenterFacilitiesOpJSONRequestBody, reqEditors ...RequestEditorFn) (*PickupGetServiceCenterFacilitiesOpResponse, error)
// DeprecatedPickupCreationWithBodyWithResponse request with any body
DeprecatedPickupCreationWithBodyWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedPickupCreationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeprecatedPickupCreationResponse, error)
DeprecatedPickupCreationWithResponse(ctx context.Context, deprecatedVersion string, params *DeprecatedPickupCreationParams, body DeprecatedPickupCreationJSONRequestBody, reqEditors ...RequestEditorFn) (*DeprecatedPickupCreationResponse, error)
// PickupCreationOpWithBodyWithResponse request with any body
PickupCreationOpWithBodyWithResponse(ctx context.Context, version string, params *PickupCreationOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PickupCreationOpResponse, error)
PickupCreationOpWithResponse(ctx context.Context, version string, params *PickupCreationOpParams, body PickupCreationOpJSONRequestBody, reqEditors ...RequestEditorFn) (*PickupCreationOpResponse, error)
// DeprecatedPickupCancelWithResponse request
DeprecatedPickupCancelWithResponse(ctx context.Context, deprecatedVersion string, cancelBy string, params *DeprecatedPickupCancelParams, reqEditors ...RequestEditorFn) (*DeprecatedPickupCancelResponse, error)
// PickupCancelOpWithResponse request
PickupCancelOpWithResponse(ctx context.Context, version string, cancelBy string, params *PickupCancelOpParams, reqEditors ...RequestEditorFn) (*PickupCancelOpResponse, error)
// PickupPendingStatusOpWithResponse request
PickupPendingStatusOpWithResponse(ctx context.Context, version string, pickuptype string, params *PickupPendingStatusOpParams, reqEditors ...RequestEditorFn) (*PickupPendingStatusOpResponse, error)
// PickupRateOpWithBodyWithResponse request with any body
PickupRateOpWithBodyWithResponse(ctx context.Context, version string, pickuptype string, params *PickupRateOpParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PickupRateOpResponse, error)
PickupRateOpWithResponse(ctx context.Context, version string, pickuptype string, params *PickupRateOpParams, body PickupRateOpJSONRequestBody, reqEditors ...RequestEditorFn) (*PickupRateOpResponse, 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 DeprecatedPickupCancelParams ¶
type DeprecatedPickupCancelParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
// Prn The pickup equest number (PRN) generated by
// UPS pickup system.
// Required if CancelBy = prn.Length 26
Prn *string `json:"Prn,omitempty"`
}
DeprecatedPickupCancelParams defines parameters for DeprecatedPickupCancel.
type DeprecatedPickupCancelResponse ¶
type DeprecatedPickupCancelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PICKUPCancelResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseDeprecatedPickupCancelResponse ¶
func ParseDeprecatedPickupCancelResponse(rsp *http.Response) (*DeprecatedPickupCancelResponse, error)
ParseDeprecatedPickupCancelResponse parses an HTTP response from a DeprecatedPickupCancelWithResponse call
func (DeprecatedPickupCancelResponse) Status ¶
func (r DeprecatedPickupCancelResponse) Status() string
Status returns HTTPResponse.Status
func (DeprecatedPickupCancelResponse) StatusCode ¶
func (r DeprecatedPickupCancelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeprecatedPickupCreationJSONRequestBody ¶
type DeprecatedPickupCreationJSONRequestBody = PICKUPCreationRequestWrapper
DeprecatedPickupCreationJSONRequestBody defines body for DeprecatedPickupCreation for application/json ContentType.
type DeprecatedPickupCreationParams ¶
type DeprecatedPickupCreationParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
DeprecatedPickupCreationParams defines parameters for DeprecatedPickupCreation.
type DeprecatedPickupCreationResponse ¶
type DeprecatedPickupCreationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PICKUPCreationResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParseDeprecatedPickupCreationResponse ¶
func ParseDeprecatedPickupCreationResponse(rsp *http.Response) (*DeprecatedPickupCreationResponse, error)
ParseDeprecatedPickupCreationResponse parses an HTTP response from a DeprecatedPickupCreationWithResponse call
func (DeprecatedPickupCreationResponse) Status ¶
func (r DeprecatedPickupCreationResponse) Status() string
Status returns HTTPResponse.Status
func (DeprecatedPickupCreationResponse) StatusCode ¶
func (r DeprecatedPickupCreationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DimensionsUnitOfMeasurement ¶
type DimensionsUnitOfMeasurement struct {
// Code - IN = Inches
// - CM = Centimeters
Code string `json:"Code"`
// Description See Code above.
Description *string `json:"Description,omitempty"`
}
DimensionsUnitOfMeasurement The code representing the unit of measurement associated with the package.
type DropOffFacilitiesAddress ¶
type DropOffFacilitiesAddress struct {
// AddressLine Address Line of the Facility.
AddressLine string `json:"AddressLine"`
// City Facilities City.
City string `json:"City"`
// CountryCode UPS Drop Off facility country or territory code.
CountryCode string `json:"CountryCode"`
// PostalCode Facility Postal Code.
PostalCode string `json:"PostalCode"`
// ResidentialIndicator Indicates if the pickup address is a residential place or not.
// Valid Values:
// Y = Residential address
// N = Non-residential (Commercial) address (default)
ResidentialIndicator string `json:"ResidentialIndicator"`
// StateProvince Facility state or province code.
StateProvince string `json:"StateProvince"`
}
DropOffFacilitiesAddress Address of the facility.
type DropOffFacilitiesDistance ¶
type DropOffFacilitiesDistance struct {
// UnitOfMeasurement Unit Of Measure.
// Example: MI or KM
UnitOfMeasurement *string `json:"UnitOfMeasurement,omitempty"`
// Value Distance from origin address. Distance based on distance UOM in request.
//
// Numeric value up to 200 and .2 decimal positions. Distance will be retuned for drop off location search by proximity order.
Value *string `json:"Value,omitempty"`
}
DropOffFacilitiesDistance Distance from origin Distance will be retuned for drop off location search by proximity order.
type DropOffFacilitiesFacilityTime ¶
type DropOffFacilitiesFacilityTime struct {
DayOfWeek []FacilityTimeDayOfWeek `json:"DayOfWeek"`
}
DropOffFacilitiesFacilityTime Facility Time Container
type DropOffFacilitiesLocalizedInstruction ¶
type DropOffFacilitiesLocalizedInstruction struct {
// Last50ftInstruction Last 50ft instructions that relates to an available facility and depend on the locale passing in request.
// Last 50 feet instruction in the language asked in request or the English for that country.
Last50ftInstruction *string `json:"Last50ftInstruction,omitempty"`
// Locale Locale. Example: en_US
Locale *string `json:"Locale,omitempty"`
}
DropOffFacilitiesLocalizedInstruction Localized Instruction Container. Localized Instructions will be returned for drop off location search by proximity order.
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 FacilityTimeDayOfWeek ¶
type FacilityTimeDayOfWeek struct {
// CloseHours Facility Close Hours. The latest local close time. Format: HHmm
// - Hour: 0-23
// - Minute: 0-59
CloseHours string `json:"CloseHours"`
// Day Day of the week. Mon-Sun
Day string `json:"Day"`
// EarliestDropOfforPickup Earliest time that a customer can drop-off a package.
EarliestDropOfforPickup *string `json:"EarliestDropOfforPickup,omitempty"`
// LastDrop Cut-off time for drop off that day.
LastDrop *string `json:"LastDrop,omitempty"`
// LatestDropOfforPickup Latest time that a customer can drop-off a package.
LatestDropOfforPickup *string `json:"LatestDropOfforPickup,omitempty"`
// OpenHours Facility Open Hours. The latest local open time. Format: HHmm
// - Hour: 0-23
// - Minute: 0-59
OpenHours string `json:"OpenHours"`
// PrepTime Time required by the facility to prepare your shipment for movement
PrepTime *string `json:"PrepTime,omitempty"`
}
FacilityTimeDayOfWeek Facility Hours of Operation Container
type FreightOptionsDestinationAddress ¶
type FreightOptionsDestinationAddress struct {
// City The city of pickup address if available. It is required for non-postal country Ireland (IE).
City *string `json:"City,omitempty"`
// CountryCode The pickup country or territory code as defined by ISO-3166.
// Refer to Country or Territory Codes in the Appendix for valid values. Upper-case two-letter string.
CountryCode string `json:"CountryCode"`
// PostalCode Postal Code for postal countries. It does not apply to non-postal countries such as IE and HK
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvince 1. It means district code for Hong Kong (HK)
// 2. It means county for Ireland (IE)
// 3. It means state or province for all the postal countries It is required for non-postal countries including HK and IE.
StateProvince *string `json:"StateProvince,omitempty"`
}
FreightOptionsDestinationAddress Destination Address Container.
type FreightOptionsShipmentDetail ¶
type FreightOptionsShipmentDetail struct {
// HazmatIndicator Indicates hazardous materials
HazmatIndicator *string `json:"HazmatIndicator,omitempty"`
// PalletInformation Pallet Details.
PalletInformation *ShipmentDetailPalletInformation `json:"PalletInformation,omitempty"`
}
FreightOptionsShipmentDetail Refers to the ShipmentDetail Container under Freight Options
type FreightOptionsShipmentServiceOptions ¶
type FreightOptionsShipmentServiceOptions struct {
// DropoffAtUPSFacilityIndicator Identifies service center location information for Origin List of UPS Facilities.
DropoffAtUPSFacilityIndicator *string `json:"DropoffAtUPSFacilityIndicator,omitempty"`
// HoldForPickupIndicator Identifies service center location information for Destination of UPS Facilities.
HoldForPickupIndicator *string `json:"HoldForPickupIndicator,omitempty"`
// OriginLiftGateIndicator Presence indicates OriginLiftGateRequiredIndicator is present. Conditionally requirements. Must not be present if DropOffAtUPSFacilityIndicator is true
OriginLiftGateIndicator *string `json:"OriginLiftGateIndicator,omitempty"`
}
FreightOptionsShipmentServiceOptions Supports various optional indicators
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type OriginAddressOriginSearchCriteria ¶
type OriginAddressOriginSearchCriteria struct {
// DistanceUnitOfMeasure Unit of Measure Required if ProximitySearchIndicator is present. Example: MI or KM
DistanceUnitOfMeasure string `json:"DistanceUnitOfMeasure"`
// MaximumLocation Maximum Number of locations. Valied values:
// - 1 to 100
//
// Default: 100
MaximumLocation *string `json:"MaximumLocation,omitempty"`
// SearchRadius Search Request range. Valied values:
// - 1 to 200
//
// Default: 200
SearchRadius *string `json:"SearchRadius,omitempty"`
}
OriginAddressOriginSearchCriteria Origin Search Criteria Container Required if Proximity SearchIndicator is present.
type PICKUPCancelResponseWrapper ¶
type PICKUPCancelResponseWrapper struct {
// PickupCancelResponse The response for cancelling pickup(s)
PickupCancelResponse PickupCancelResponse `json:"PickupCancelResponse"`
}
PICKUPCancelResponseWrapper N/A
type PICKUPCreationRequestWrapper ¶
type PICKUPCreationRequestWrapper struct {
// PickupCreationRequest This request is for scheduling an on-call pickup
PickupCreationRequest PickupCreationRequest `json:"PickupCreationRequest"`
}
PICKUPCreationRequestWrapper N/A
type PICKUPCreationResponseWrapper ¶
type PICKUPCreationResponseWrapper struct {
// PickupCreationResponse The response for scheduling an on-callpickup.
PickupCreationResponse PickupCreationResponse `json:"PickupCreationResponse"`
}
PICKUPCreationResponseWrapper N/A
type PICKUPPendingResponseWrapper ¶
type PICKUPPendingResponseWrapper struct {
// PickupPendingStatusResponse The response of the pending status for on-callpickup.
PickupPendingStatusResponse PickupPendingStatusResponse `json:"PickupPendingStatusResponse"`
}
PICKUPPendingResponseWrapper N/A
type PICKUPPolDivResponseWrapper ¶
type PICKUPPolDivResponseWrapper struct {
// PickupGetPoliticalDivision1ListResponse The response for getting a list of valid Political Division 1 or State field in the specified country or territory.
PickupGetPoliticalDivision1ListResponse PickupGetPoliticalDivision1ListResponse `json:"PickupGetPoliticalDivision1ListResponse"`
}
PICKUPPolDivResponseWrapper N/A
type PICKUPRequestWrapper ¶
type PICKUPRequestWrapper struct {
// PickupRateRequest This request is used to rate an on-callpickup.
PickupRateRequest PickupRateRequest `json:"PickupRateRequest"`
}
PICKUPRequestWrapper N/A
type PICKUPResponseWrapper ¶
type PICKUPResponseWrapper struct {
// PickupRateResponse The response of rating on-callpickup.
PickupRateResponse PickupRateResponse `json:"PickupRateResponse"`
}
PICKUPResponseWrapper N/A
type PICKUPServCenterRequestWrapper ¶
type PICKUPServCenterRequestWrapper struct {
// PickupGetServiceCenterFacilitiesRequest This request is to retrieve UPS Facility location information including location address, phone number, SLIC, and hours of operation for pick-up and drop-off requests
PickupGetServiceCenterFacilitiesRequest PickupGetServiceCenterFacilitiesRequest `json:"PickupGetServiceCenterFacilitiesRequest"`
}
PICKUPServCenterRequestWrapper N/A
type PICKUPServCenterResponseWrapper ¶
type PICKUPServCenterResponseWrapper struct {
// PickupGetServiceCenterFacilitiesResponse Returns service center location information for Origin UPS Facilities and Destination Facilities
PickupGetServiceCenterFacilitiesResponse PickupGetServiceCenterFacilitiesResponse `json:"PickupGetServiceCenterFacilitiesResponse"`
}
PICKUPServCenterResponseWrapper N/A
type PICKUPTriggerGWNRequestWrapper ¶
type PICKUPTriggerGWNRequestWrapper struct {
// PickupTriggerGWNRequest Request to trigger a Smart Pickup (GWN - Green When Needed). This flow applies to accounts enabled for Smart Pickup and supports same-day or future-day pickup requests. Unlike regular Pickup Creation, Smart Pickup does not require a separate Shipper object - it uses the pickup address pre-configured on the UPS account.
PickupTriggerGWNRequest PickupTriggerGWNRequest `json:"PickupTriggerGWNRequest"`
}
PICKUPTriggerGWNRequestWrapper defines model for PICKUPTriggerGWNRequestWrapper.
type PICKUPTriggerGWNResponseWrapper ¶
type PICKUPTriggerGWNResponseWrapper struct {
// PickupTriggerGWNResponse Response from Smart Pickup trigger request.
PickupTriggerGWNResponse PickupTriggerGWNResponse `json:"PickupTriggerGWNResponse"`
}
PICKUPTriggerGWNResponseWrapper defines model for PICKUPTriggerGWNResponseWrapper.
type PalletInformationDimensions ¶
type PalletInformationDimensions struct {
// Height Dimension height of pallet.
Height string `json:"Height"`
// Length Dimension length of pallet.
Length string `json:"Length"`
// UnitOfMeasurement The code representing the unit of measurement associated with the package.
UnitOfMeasurement DimensionsUnitOfMeasurement `json:"UnitOfMeasurement"`
// Width Dimension width of pallet.
Width string `json:"Width"`
}
PalletInformationDimensions Dimensions of largest pallet
type PickupAddressPhone ¶
type PickupAddressPhone struct {
// Extension Phone extension
Extension *string `json:"Extension,omitempty"`
// Number Phone number
Number string `json:"Number"`
}
PickupAddressPhone Contact telephone number.
type PickupCancelOpParams ¶
type PickupCancelOpParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
// Prn The pickup equest number (PRN) generated by
// UPS pickup system.
// Required if CancelBy = prn.Length 26
Prn *string `json:"Prn,omitempty"`
}
PickupCancelOpParams defines parameters for PickupCancelOp.
type PickupCancelOpResponse ¶
type PickupCancelOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PICKUPCancelResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParsePickupCancelOpResponse ¶
func ParsePickupCancelOpResponse(rsp *http.Response) (*PickupCancelOpResponse, error)
ParsePickupCancelOpResponse parses an HTTP response from a PickupCancelOpWithResponse call
func (PickupCancelOpResponse) Status ¶
func (r PickupCancelOpResponse) Status() string
Status returns HTTPResponse.Status
func (PickupCancelOpResponse) StatusCode ¶
func (r PickupCancelOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PickupCancelResponse ¶
type PickupCancelResponse struct {
// GWNStatus The status of Smart Pickup that has been cancelled.
GWNStatus *PickupCancelResponseGWNStatus `json:"GWNStatus,omitempty"`
// PickupType The type of pickup that has been cancelled.
// - 01 = On-Call Pickup
PickupType string `json:"PickupType"`
// Response Response Container
Response PickupCancelResponseResponse `json:"Response"`
}
PickupCancelResponse The response for cancelling pickup(s)
type PickupCancelResponseGWNStatus ¶
type PickupCancelResponseGWNStatus struct {
// Code The status code defined by operation system.
// - 001 = User Triggered
// - 002 = User Cancelled
// - 003 = Completed
// - 004 = Missed
// - 005 = Not In
// - 006 = Not Ready
// - 007 = Closed
// - 008 = Cancelled By Driver
// - 999 = Unknown
Code string `json:"Code"`
// Description Please refer to /PickupPendingStatusResponse/PendingStatus/PickupStatusMessage
Description *string `json:"Description,omitempty"`
}
PickupCancelResponseGWNStatus The status of Smart Pickup that has been cancelled.
type PickupCancelResponseResponse ¶
type PickupCancelResponseResponse struct {
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response Status Container.
ResponseStatus ResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
PickupCancelResponseResponse Response Container
type PickupCreationOpJSONBody ¶
type PickupCreationOpJSONBody struct {
// contains filtered or unexported fields
}
PickupCreationOpJSONBody defines parameters for PickupCreationOp.
type PickupCreationOpJSONRequestBody ¶
type PickupCreationOpJSONRequestBody PickupCreationOpJSONBody
PickupCreationOpJSONRequestBody defines body for PickupCreationOp for application/json ContentType.
type PickupCreationOpParams ¶
type PickupCreationOpParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
PickupCreationOpParams defines parameters for PickupCreationOp.
type PickupCreationOpResponse ¶
type PickupCreationOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParsePickupCreationOpResponse ¶
func ParsePickupCreationOpResponse(rsp *http.Response) (*PickupCreationOpResponse, error)
ParsePickupCreationOpResponse parses an HTTP response from a PickupCreationOpWithResponse call
func (PickupCreationOpResponse) Status ¶
func (r PickupCreationOpResponse) Status() string
Status returns HTTPResponse.Status
func (PickupCreationOpResponse) StatusCode ¶
func (r PickupCreationOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PickupCreationRequest ¶
type PickupCreationRequest struct {
// AlternateAddressIndicator Indicates if pickup address is a different address than that specified in a customer's profile.
// Valid values:
// Y = Alternate address
// N = Original pickup address (default)
AlternateAddressIndicator string `json:"AlternateAddressIndicator"`
// CashType Describes the type of cash funds that the driver will collect.
// Applicable to the following countries:
// BE,FR,DE,IT,MX,NL,PL,ES,GB
// Valid values:
// 01 - Pickup only (default)
// 02 - Transportation only
// 03 - Pickup and Transportation
CashType *string `json:"CashType,omitempty"`
// FreightOptions Container will be used to indicate Service options, add optional Original service center, destination address and shipment details related to the UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday.
FreightOptions *PickupCreationRequestFreightOptions `json:"FreightOptions,omitempty"`
// Notification Container for pickup notification
Notification *PickupCreationRequestNotification `json:"Notification,omitempty"`
// OverweightIndicator Indicates if at least any package is over 70 lbs or 32 kgs.
// Valid values:
// Y = Over weight
// N = Not over weight (default) Not required for WWEF service.
OverweightIndicator *string `json:"OverweightIndicator,omitempty"`
// PaymentMethod The payment method to pay for this on call pickup.
// 00 = No payment needed
// 01 = Pay by shipper account
// 03 = Pay by charge card
// 04 = Pay by 1Z tracking number
// 05 = Pay by check or money order
// 06 = Cash(applicable only for these countries - BE,FR,DE,IT,MX,NL,PL,ES,GB,CZ,HU,FI,NO)
// 07=Pay by PayPal
// Refer to Appendix # for valid payment methods for CZ, HU, FI and NO
// For countries and (or) zip codes where pickup is free of charge, please submit 00, means no payment needed as payment method.
// - If 01 is the payment method, then ShipperAccountNumber and ShipperAccount CountryCode must be provided.
// - If 03 is selected, then CreditCard information should be provided.
// - If 04 is selected, then the shipper agreed to pay for the pickup packages.
// - If 05 is selected, then the shipper will pay for the pickup packages with a check or money order.
PaymentMethod string `json:"PaymentMethod"`
// PickupAddress The container of pickup address.
PickupAddress PickupCreationRequestPickupAddress `json:"PickupAddress"`
// PickupDateInfo The container of desired pickup date
PickupDateInfo PickupCreationRequestPickupDateInfo `json:"PickupDateInfo"`
PickupPiece []PickupCreationRequestPickupPiece `json:"PickupPiece"`
// PremierIndicator Indicates that the pickup includes one or more Premier service package.
// Accepted values:
// - Y = Includes Premier-eligible packages
// - N = Does not include Premier-eligible packages (default)
PremierIndicator *string `json:"PremierIndicator,omitempty"`
// RateChartType Rate Type with which pickup is rated. Possible RateChart values for different regions will be:
//
// US 48 origin:
// - 1 – Daily Rates
// - 3 – Standard List Rates
// - 4 – Retail Rates.
//
// Alaska/Hawaii origin:
// - 1 – Daily Rates
// - 3 – Standard List Rates
// - 4 – Retail Rates.
//
// All Other origins:
// - 1 – Rates
// - 5 - Regional Rates
// - 6 - General List Rates.
//
// 3 and 4 do not apply
RateChartType *string `json:"RateChartType,omitempty"`
// RatePickupIndicator Indicates whether to rate the on-callpickup or not.
// Valid values:
// Y = Rate this pickup
// N = Do not rate this pickup (default)
RatePickupIndicator string `json:"RatePickupIndicator"`
// ReferenceNumber Information entered by a customer for Privileged reference
ReferenceNumber *string `json:"ReferenceNumber,omitempty"`
// Request Common element for all services
Request PickupCreationRequestRequest `json:"Request"`
// ServiceCategory Service Category.
// Applicable to the following countries:
// BE, FR, DE, IT, MX, NL, PL, ES, GB
// Valid values:
// 01 - domestic (default)
// 02 - international
// 03 - transborder
ServiceCategory *string `json:"ServiceCategory,omitempty"`
// Shipper On-call pickup shipper or requestor information. Must provide when choose to pay the pickup by shipper account number, BillThirdParty account number, or BillReceiver account number.
// It is optional if the shipper chooses any other payment method. However, it is highly recommended to provide if available.
Shipper *PickupCreationRequestShipper `json:"Shipper,omitempty"`
// ShippingLabelsAvailable This element should be set to "Y" in the request to indicate that user has pre-printed shipping labels for all the packages, otherwise this will be treated as false.
ShippingLabelsAvailable *string `json:"ShippingLabelsAvailable,omitempty"`
// SpecialInstruction Special handling instruction from the customer
SpecialInstruction *string `json:"SpecialInstruction,omitempty"`
// TaxInformationIndicator Indicates whether to return detailed taxes for the on-callpickups.
// Valid values:
// Y = Rate this pickup with taxes
// N = Do not rate this pickup with taxes (default)
TaxInformationIndicator *string `json:"TaxInformationIndicator,omitempty"`
// TotalWeight Container for the total weight of all the items.
TotalWeight *PickupCreationRequestTotalWeight `json:"TotalWeight,omitempty"`
TrackingData *[]PickupCreationRequestTrackingData `json:"TrackingData,omitempty"`
// TrackingDataWithReferenceNumber Container for Tracking Number with its associated reference numbers. This container should be populated to provide visibility into shipment tied to pickup being scheduled. TrackingDataWithReferenceNumber and TrackingData container cannot be present at the same time.
TrackingDataWithReferenceNumber *PickupCreationRequestTrackingDataWithReferenceNumber `json:"TrackingDataWithReferenceNumber,omitempty"`
// UserLevelDiscountIndicator Indicates whether to return user level promo discount for the on-callpickups.
// Valid values:
// Y = Rate this pickup with user level promo discount
// N = Do not rate this pickup with user level promo discount(default)
UserLevelDiscountIndicator *string `json:"UserLevelDiscountIndicator,omitempty"`
}
PickupCreationRequest This request is for scheduling an on-call pickup
type PickupCreationRequestFreightOptions ¶
type PickupCreationRequestFreightOptions struct {
// DestinationAddress Destination Address Container.
DestinationAddress *FreightOptionsDestinationAddress `json:"DestinationAddress,omitempty"`
// OriginServiceCenterCode Origin SLIC. This will be obtained from submitting a pickup service center request. See PickupGetFacilitiesServiceCenterRequest.
OriginServiceCenterCode *string `json:"OriginServiceCenterCode,omitempty"`
// OriginServiceCountryCode Country or territory of Service Center SLIC chosen to drop off.
OriginServiceCountryCode *string `json:"OriginServiceCountryCode,omitempty"`
// ShipmentDetail Refers to the ShipmentDetail Container under Freight Options
ShipmentDetail FreightOptionsShipmentDetail `json:"ShipmentDetail"`
// ShipmentServiceOptions Supports various optional indicators
ShipmentServiceOptions *FreightOptionsShipmentServiceOptions `json:"ShipmentServiceOptions,omitempty"`
}
PickupCreationRequestFreightOptions Container will be used to indicate Service options, add optional Original service center, destination address and shipment details related to the UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday.
type PickupCreationRequestNotification ¶
type PickupCreationRequestNotification struct {
// ConfirmationEmailAddress Email address where the pickup notification is sent.
ConfirmationEmailAddress *string `json:"ConfirmationEmailAddress,omitempty"`
// UndeliverableEmailAddress Email address for used exceptions.
UndeliverableEmailAddress *string `json:"UndeliverableEmailAddress,omitempty"`
}
PickupCreationRequestNotification Container for pickup notification
type PickupCreationRequestPickupAddress ¶
type PickupCreationRequestPickupAddress struct {
// AddressLine Detailed street address. For Jan. 2010 release, only one AddressLine is allowed
AddressLine []string `json:"AddressLine"`
// City City or equivalent
City string `json:"City"`
// CompanyName Company name
CompanyName string `json:"CompanyName"`
// ContactName Name of contact person
ContactName string `json:"ContactName"`
// CountryCode The pickup country or territory code as defined by ISO-3166.
// Refer to Country or Territory Codes in the Appendix for valid values.
CountryCode string `json:"CountryCode"`
// Floor Floor number
Floor *string `json:"Floor,omitempty"`
// Phone Contact telephone number.
Phone PickupAddressPhone `json:"Phone"`
// PickupPoint The specific spot to pickup at the address.
PickupPoint *string `json:"PickupPoint,omitempty"`
// PostalCode Postal code or equivalent for postal countries
PostalCode *string `json:"PostalCode,omitempty"`
// ResidentialIndicator Indicates if the pickup address is commercial or residential.
// Valid values:
// Y = Residential address
// N = Non-residential (Commercial) address (default)
ResidentialIndicator string `json:"ResidentialIndicator"`
// Room Room number
Room *string `json:"Room,omitempty"`
// StateProvince State or province for postal countries; county for Ireland (IE) and district code for Hong Kong (HK). Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
StateProvince *string `json:"StateProvince,omitempty"`
// Urbanization - Barrio for Mexico (MX)
// - Urbanization for Puerto Rico (PR)
// - Shire for United Kingdom (UK)
Urbanization *string `json:"Urbanization,omitempty"`
}
PickupCreationRequestPickupAddress The container of pickup address.
type PickupCreationRequestPickupDateInfo ¶
type PickupCreationRequestPickupDateInfo struct {
// CloseTime Pickup location's local close time.
// - User provided Close Time must be later than the Earliest Allowed Customer Close Time.
// - Earliest Allowed Customer Close Time is defined by UPS pickup operation system.
// - CloseTime minus ReadyTime must be greater than the LeadTime.
// - LeadTime is determined by UPS pickup operation system. LeadTime is the minimum amount of time UPS requires between customer's request for a pickup and driver arriving at the location for the pickup.
//
// Format: HHmm
// - Hour: 0-23
// - Minute: 0-59
CloseTime string `json:"CloseTime"`
// PickupDate Local pickup date of the location. Format: yyyyMMdd
// - yyyy = Year Appliable
// - MM = 01–12
// - dd = 01–31
PickupDate string `json:"PickupDate"`
// ReadyTime Pickup location's local ready time.
// ReadyTime means the time when your shipment(s) can be ready for UPS to pick up.
// - User provided ReadyTime must be earlier than CallByTime.
// - CallByTime is determined by UPS pickup operation system. CallByTime is the Latest time a Customer can call UPS or self-serve on UPS.com and complete a Pickup Request and UPS can still make the Pickup service request.
// - If ReadyTime is earlier than current local time, UPS uses the current local time as the ReadyTime. Format: HHmm
// Hour: 0-23
// Minute: 0-59
ReadyTime string `json:"ReadyTime"`
}
PickupCreationRequestPickupDateInfo The container of desired pickup date
type PickupCreationRequestPickupPiece ¶
type PickupCreationRequestPickupPiece struct {
// ContainerCode Container type. Valid values:
// - 01 = PACKAGE
// - 02 = UPS LETTER
// - 03 = PALLET
//
// Note: 03 is used for only WWEF services
ContainerCode string `json:"ContainerCode"`
// DestinationCountryCode The destination country code as defined by ISO-3166.
// Refer to Country or Territory Codes in the Appendix for valid values.
DestinationCountryCode string `json:"DestinationCountryCode"`
// Quantity Number of pieces to be picked up.
// Max per service: 999
Quantity string `json:"Quantity"`
// ServiceCode Refer to Service Codes in the Appendix for valid values.
ServiceCode string `json:"ServiceCode"`
}
PickupCreationRequestPickupPiece The container providing the information about how many items should be picked up. The total number of return and forwarding packages cannot exceed 9,999.
type PickupCreationRequestRequest ¶
type PickupCreationRequestRequest struct {
// SubVersion When UPS introduces new elements in the response that are not associated with new request elements, Subversion is used. This ensures backward compatibility.
//
// To get such elements you need to have the right Subversion. The value of the subversion is explained in the Response element Description. Supported values: 1607, 1707,2007
//
// Example: Itemized Charges are returned only when the Subversion element is present and greater than or equal to '1601'.
//
// Format: YYMM = Year and month of the release.
// Example: 1601 = 2016 January
SubVersion *string `json:"SubVersion,omitempty"`
// TransactionReference Transaction Reference Container
TransactionReference *RequestTransactionReference `json:"TransactionReference,omitempty"`
}
PickupCreationRequestRequest Common element for all services
type PickupCreationRequestShipper ¶
type PickupCreationRequestShipper struct {
// Account Shipper account information.
// Must provide when choose to pay the pickup by shipper account number
Account *ShipperAccount `json:"Account,omitempty"`
// ChargeCard Container for Charge Card payment method Required if Payment method is 03. Credit/Charge card payment is valid for US, CA, PR and GB origin pickups.
ChargeCard *ShipperChargeCard `json:"ChargeCard,omitempty"`
}
PickupCreationRequestShipper On-call pickup shipper or requestor information. Must provide when choose to pay the pickup by shipper account number, BillThirdParty account number, or BillReceiver account number. It is optional if the shipper chooses any other payment method. However, it is highly recommended to provide if available.
type PickupCreationRequestTotalWeight ¶
type PickupCreationRequestTotalWeight struct {
// UnitOfMeasurement The code representing the unit of measurement associated with the package.
// LBS = Pounds
// KGS = Kilograms
UnitOfMeasurement string `json:"UnitOfMeasurement"`
// Weight The weight of the package.
// One decimal digit is allowed. Example: 10.9
Weight string `json:"Weight"`
}
PickupCreationRequestTotalWeight Container for the total weight of all the items.
type PickupCreationRequestTrackingData ¶
type PickupCreationRequestTrackingData struct {
// TrackingNumber Tracking number for return shipment or forward shipment packages. Tracking number(s) that have been previously used to pay for on-call pickup cannot be used again.
TrackingNumber *string `json:"TrackingNumber,omitempty"`
}
PickupCreationRequestTrackingData Container for Return Service and Forward Tracking Numbers. Accept no more than 30 TrackingData.
TrackingDataWithReferenceNumber and TrackingData container cannot be present at the same time.
type PickupCreationRequestTrackingDataWithReferenceNumber ¶
type PickupCreationRequestTrackingDataWithReferenceNumber struct {
// ReferenceNumber The reference number associated with the tracking number.
ReferenceNumber *[]string `json:"ReferenceNumber,omitempty"`
// TrackingNumber Tracking number for shipment packages.
TrackingNumber string `json:"TrackingNumber"`
}
PickupCreationRequestTrackingDataWithReferenceNumber Container for Tracking Number with its associated reference numbers. This container should be populated to provide visibility into shipment tied to pickup being scheduled. TrackingDataWithReferenceNumber and TrackingData container cannot be present at the same time.
type PickupCreationResponse ¶
type PickupCreationResponse struct {
// PRN Pickup Request Number generated by UPS pickup system when a successful pickup is scheduled.Same PRN will be returned if a pickup request already exists for a pickup address/ point.
PRN *string `json:"PRN,omitempty"`
// RateResult The result of rating on-callpickup. It correlates to rate status code 01
RateResult *PickupCreationResponseRateResult `json:"RateResult,omitempty"`
// RateStatus The rating result of on-callpickup
RateStatus PickupCreationResponseRateStatus `json:"RateStatus"`
// Response Response Container.
Response PickupCreationResponseResponse `json:"Response"`
// WeekendServiceTerritory WeekendServiceTerritory Container.Returned if the subversion greater or equal to 2007.
WeekendServiceTerritory *PickupCreationResponseWeekendServiceTerritory `json:"WeekendServiceTerritory,omitempty"`
// WeekendServiceTerritoryIndicator Indicates if the pickup address qualifies for WST (Weekend Service Territory). Returned if the pickup date is Saturday and subversion greater or equal to 1607. Valid Values:
// - Y = WST
// - N = Non-WST
WeekendServiceTerritoryIndicator *string `json:"WeekendServiceTerritoryIndicator,omitempty"`
}
PickupCreationResponse The response for scheduling an on-callpickup.
type PickupCreationResponseRateResult ¶
type PickupCreationResponseRateResult struct {
// ChargeDetail Container to hold taxes when, detailed taxes are request via RateTaxIndicator.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
ChargeDetail *[]RateResultChargeDetail `json:"ChargeDetail,omitempty"`
// CurrencyCode IATA currency codes for the pickup charge. Such as USD
CurrencyCode *string `json:"CurrencyCode,omitempty"`
// Disclaimer Container to hold Disclaimer message applicable to taxes and charges. Available only when tax information is requested.
Disclaimer *RateResultDisclaimer `json:"Disclaimer,omitempty"`
// GrandTotalOfAllCharge The grand total of each charge and applied tax.
GrandTotalOfAllCharge string `json:"GrandTotalOfAllCharge"`
// GrandTotalOfAllIncentedCharge The grand total of each incented charge and applied tax. Only present if 1. UserLevelDiscountIndicator = Y and User Level Promotion is applied to the pickup or 2 .if any incentive rate is applied to the pickup and SubVersion on the request is greater than or equal to 1707.
GrandTotalOfAllIncentedCharge *string `json:"GrandTotalOfAllIncentedCharge,omitempty"`
// PreTaxTotalCharge Total of charges before taxes. Only present when tax details requested in input.
PreTaxTotalCharge *string `json:"PreTaxTotalCharge,omitempty"`
// PreTaxTotalIncentedCharge Total of incented charges before taxes. Only present if 1. UserLevelDiscountIndicator = Y and User Level Promotion is applied to the pickup or 2 .if any incentive rate is applied to the pickup and SubVersion on the request is greater than or equal to 1707.
PreTaxTotalIncentedCharge *string `json:"PreTaxTotalIncentedCharge,omitempty"`
// RateType Indicates this pickup is rated as same-day or future-day pickup.
// - SD = Same-day Pickup
// - FD = Future-day Pickup
RateType *string `json:"RateType,omitempty"`
// TaxCharges Container to hold taxes when, detailed taxes are request via RateTaxIndicator.
//
// **NOTE:** For versions >= v2403, this element will always be returned as an array. For requests using versions < v2403, this element will be returned as an array if there is more than one object and a single object if there is only 1.
TaxCharges *[]RateResultTaxCharges `json:"TaxCharges,omitempty"`
// TotalTax The sum of all taxes.
TotalTax *string `json:"TotalTax,omitempty"`
}
PickupCreationResponseRateResult The result of rating on-callpickup. It correlates to rate status code 01
type PickupCreationResponseRateStatus ¶
type PickupCreationResponseRateStatus struct {
// Code The rating status.
// - 01 = Rate available
// - 02 = Rate not available
// - 03 = Rate not apply
// - 04 = Rate not requested
//
// - If 01 is returned, then OnCallPickupRateResult will also be returned with rate details.
// - If 02 is returned, then OnCallPickupRateResult will not be returned.
// - If 03 is returned, then OnCallPickupRateResult will not be returned. The rate option is not appliable to this return pickup. The requester will not be charged.
// - If 04 is returned, then OnCallPickupRateResult will not be returned. The requester did not ask for rating this on-callpickup.
Code string `json:"Code"`
// Description The matching description of rating status code (see above).
Description *string `json:"Description,omitempty"`
}
PickupCreationResponseRateStatus The rating result of on-callpickup
type PickupCreationResponseResponse ¶
type PickupCreationResponseResponse struct {
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response Status Container.
ResponseStatus ResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
PickupCreationResponseResponse Response Container.
type PickupCreationResponseWeekendServiceTerritory ¶
type PickupCreationResponseWeekendServiceTerritory struct {
// SatWST Indicates if the pickup address qualifies for WST (Weekend Service Territory). Returned if the pickup date is Saturday and subversion greater or equal to 2007. Valid Values:
// - Y = Saturday WST
// - N = Non-Saturday WST
SatWST string `json:"SatWST"`
// SunWST Indicates if the pickup address qualifies for WST (Weekend Service Territory). Returned if the pickup date is Sunday and subversion greater or equal to 2007. Valid Values: - Y = Sunday WST - N = Non-Sunday WST
SunWST string `json:"SunWST"`
}
PickupCreationResponseWeekendServiceTerritory WeekendServiceTerritory Container.Returned if the subversion greater or equal to 2007.
type PickupFacilitiesAddress ¶
type PickupFacilitiesAddress struct {
// AddressLine Address Line of the Facility.
AddressLine string `json:"AddressLine"`
// City Facilities City.
City string `json:"City"`
// CountryCode UPS Pickup facility country or territory code.
CountryCode string `json:"CountryCode"`
// PostalCode Facility Postal Code.
PostalCode string `json:"PostalCode"`
// ResidentialIndicator Indicates if the pickup location is commerical or residential.
// Valid values:
// Y = Residential address
// N = Non-residential (Commercial) address (default)
ResidentialIndicator string `json:"ResidentialIndicator"`
// StateProvince Facility state or province code.
StateProvince string `json:"StateProvince"`
}
PickupFacilitiesAddress Address of the facility
type PickupFacilitiesFacilityTime ¶
type PickupFacilitiesFacilityTime struct {
DayOfWeek []PickupFacilitiesFacilityTimeDayOfWeek `json:"DayOfWeek"`
}
PickupFacilitiesFacilityTime Facility Time Container
type PickupFacilitiesFacilityTimeDayOfWeek ¶
type PickupFacilitiesFacilityTimeDayOfWeek struct {
// CloseHours Facility Close Hours. The latest local close time. Format: HHmm
// - Hour: 0-23
// - Minute: 0-59
CloseHours string `json:"CloseHours"`
// Day Day of the week. Mon-Sun
Day string `json:"Day"`
// EarliestDropOfforPickup Earliest time that a customer can pick up a package.
EarliestDropOfforPickup *string `json:"EarliestDropOfforPickup,omitempty"`
// LastDrop Latest time a package, requiring preparation can be dropped off (Close time - Prep time).
LastDrop *string `json:"LastDrop,omitempty"`
// LatestDropOfforPickup Latest time that a customer can pick up a package.
LatestDropOfforPickup *string `json:"LatestDropOfforPickup,omitempty"`
// OpenHours Facility Open Hours. The latest local open time. Format: HHmm
// - Hour: 0-23
// - Minute: 0-59
OpenHours string `json:"OpenHours"`
// PrepTime Preparation time for hold for pickup Conditionally required if request is for hold for pickup.
PrepTime *string `json:"PrepTime,omitempty"`
}
PickupFacilitiesFacilityTimeDayOfWeek Facility Hours of Operation Container
type PickupGetPoliticalDivision1ListOpParams ¶
type PickupGetPoliticalDivision1ListOpParams struct {
// TransId An identifier unique to the request. Length 32
TransId string `json:"transId"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc string `json:"transactionSrc"`
}
PickupGetPoliticalDivision1ListOpParams defines parameters for PickupGetPoliticalDivision1ListOp.
type PickupGetPoliticalDivision1ListOpResponse ¶
type PickupGetPoliticalDivision1ListOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PICKUPPolDivResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParsePickupGetPoliticalDivision1ListOpResponse ¶
func ParsePickupGetPoliticalDivision1ListOpResponse(rsp *http.Response) (*PickupGetPoliticalDivision1ListOpResponse, error)
ParsePickupGetPoliticalDivision1ListOpResponse parses an HTTP response from a PickupGetPoliticalDivision1ListOpWithResponse call
func (PickupGetPoliticalDivision1ListOpResponse) Status ¶
func (r PickupGetPoliticalDivision1ListOpResponse) Status() string
Status returns HTTPResponse.Status
func (PickupGetPoliticalDivision1ListOpResponse) StatusCode ¶
func (r PickupGetPoliticalDivision1ListOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PickupGetPoliticalDivision1ListResponse ¶
type PickupGetPoliticalDivision1ListResponse struct {
// PoliticalDivision1 The Political Division 1/State Field.
PoliticalDivision1 *[]string `json:"PoliticalDivision1,omitempty"`
// Response Response Container.
Response PickupGetPoliticalDivision1ListResponseResponse `json:"Response"`
}
PickupGetPoliticalDivision1ListResponse The response for getting a list of valid Political Division 1 or State field in the specified country or territory.
type PickupGetPoliticalDivision1ListResponseResponse ¶
type PickupGetPoliticalDivision1ListResponseResponse struct {
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response Status Container.
ResponseStatus ResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
PickupGetPoliticalDivision1ListResponseResponse Response Container.
type PickupGetServiceCenterFacilitiesOpJSONRequestBody ¶
type PickupGetServiceCenterFacilitiesOpJSONRequestBody = PICKUPServCenterRequestWrapper
PickupGetServiceCenterFacilitiesOpJSONRequestBody defines body for PickupGetServiceCenterFacilitiesOp for application/json ContentType.
type PickupGetServiceCenterFacilitiesOpParams ¶
type PickupGetServiceCenterFacilitiesOpParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
PickupGetServiceCenterFacilitiesOpParams defines parameters for PickupGetServiceCenterFacilitiesOp.
type PickupGetServiceCenterFacilitiesOpResponse ¶
type PickupGetServiceCenterFacilitiesOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PICKUPServCenterResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParsePickupGetServiceCenterFacilitiesOpResponse ¶
func ParsePickupGetServiceCenterFacilitiesOpResponse(rsp *http.Response) (*PickupGetServiceCenterFacilitiesOpResponse, error)
ParsePickupGetServiceCenterFacilitiesOpResponse parses an HTTP response from a PickupGetServiceCenterFacilitiesOpWithResponse call
func (PickupGetServiceCenterFacilitiesOpResponse) Status ¶
func (r PickupGetServiceCenterFacilitiesOpResponse) Status() string
Status returns HTTPResponse.Status
func (PickupGetServiceCenterFacilitiesOpResponse) StatusCode ¶
func (r PickupGetServiceCenterFacilitiesOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PickupGetServiceCenterFacilitiesRequest ¶
type PickupGetServiceCenterFacilitiesRequest struct {
// DestinationAddress DestinationAddress container. Conditionally required for pickup location search.
DestinationAddress *PickupGetServiceCenterFacilitiesRequestDestinationAddress `json:"DestinationAddress,omitempty"`
// Locale Origin Country or Territory Locale. Locale should be Origin Country. Example: en_US.
// The Last 50 instruction will be send based on this locale. Locale is required if PoximityIndicator is present for Drop Off facilities.
Locale string `json:"Locale"`
// OriginAddress Indicates the address of the shipper to allow for the nearest Drop off facility Search. Conditionally required for drop off location search.
OriginAddress *PickupGetServiceCenterFacilitiesRequestOriginAddress `json:"OriginAddress,omitempty"`
PickupPiece interface{} `json:"PickupPiece"`
// ProximitySearchIndicator Proximity Indicator. Indicates the user requested the proximity search for UPS Worldwide Express Freight and UPS Worldwide Express Freight Midday locations for the origin address and/or the airport code, and the sort code for destination address.
ProximitySearchIndicator *string `json:"ProximitySearchIndicator,omitempty"`
// Request Container for the Request.
Request PickupGetServiceCenterFacilitiesRequestRequest `json:"Request"`
}
PickupGetServiceCenterFacilitiesRequest This request is to retrieve UPS Facility location information including location address, phone number, SLIC, and hours of operation for pick-up and drop-off requests
type PickupGetServiceCenterFacilitiesRequestDestinationAddress ¶
type PickupGetServiceCenterFacilitiesRequestDestinationAddress struct {
// City Indicates the address of the consignee to allow for the nearest Pickup facility Search. Required for non-postal country Ireland (IE).
City *string `json:"City,omitempty"`
// CountryCode The pickup country or territory code as defined by ISO-3166. Please check check separate pickup country or territory list to find out all the pickup eligible countries.
CountryCode string `json:"CountryCode"`
// PostalCode Indicates the address of the consignee to allow for the nearest Pickup facility Search It does not apply to non-postal countries. Example: IE and HK.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvince Indicates the address of the consignee to allow for the nearest Pickup facility Search.
// 1 = District code for Hong Kong (HK)
// 2 = County for Ireland (IE)
// 3 = State or province for all the postal countries Required for non-postal countries including HK and IE.
//
// Required for US, Canada, and Vietnam (VN).
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
StateProvince *string `json:"StateProvince,omitempty"`
}
PickupGetServiceCenterFacilitiesRequestDestinationAddress DestinationAddress container. Conditionally required for pickup location search.
type PickupGetServiceCenterFacilitiesRequestOriginAddress ¶
type PickupGetServiceCenterFacilitiesRequestOriginAddress struct {
// City Indicates the address of the shipper to allow for the nearest Drop off facility Search Conditionally required if proximitySearchIndicator is present.
City *string `json:"City,omitempty"`
// CountryCode Indicates the address of the shipper to allow for the nearest Drop off facility Search
CountryCode string `json:"CountryCode"`
// OriginSearchCriteria Origin Search Criteria Container Required if Proximity SearchIndicator is present.
OriginSearchCriteria *OriginAddressOriginSearchCriteria `json:"OriginSearchCriteria,omitempty"`
// PostalCode Indicates the address of the shipper to allow for the nearest Drop off facility Search Conditionally required if proximitySearchIndicator is present and if country or territory has postal code.It does not apply to non-postal countries such as IE and HK.
PostalCode *string `json:"PostalCode,omitempty"`
// StateProvince Indicates the address of the shipper to allow for the nearest Drop off facility Search. Conditionally required if proximitySearchIndicator is present and if country or territory is US/CA/IE/HK.
//
// Required for Vietnam (VN).
// For Vietnam (VN), the value must be a valid province code (for example, VN-44).
StateProvince *string `json:"StateProvince,omitempty"`
// StreetAddress Indicates the address of the shipper to allow for the nearest Drop off facility Search. Conditionally required if proximitySearchIndicator is present.
StreetAddress *string `json:"StreetAddress,omitempty"`
}
PickupGetServiceCenterFacilitiesRequestOriginAddress Indicates the address of the shipper to allow for the nearest Drop off facility Search. Conditionally required for drop off location search.
type PickupGetServiceCenterFacilitiesRequestPickupPiece ¶
type PickupGetServiceCenterFacilitiesRequestPickupPiece struct {
// ContainerCode The container type
// 03 = PALLET Required for WWEF shipments.
ContainerCode string `json:"ContainerCode"`
// ServiceCode The service code.
// 96 = WWEF Required for WWEF shipments.
ServiceCode string `json:"ServiceCode"`
}
PickupGetServiceCenterFacilitiesRequestPickupPiece Pickup Piece Container.
type PickupGetServiceCenterFacilitiesRequestRequest ¶
type PickupGetServiceCenterFacilitiesRequestRequest struct {
// TransactionReference Transaction Reference Container
TransactionReference *RequestTransactionReference `json:"TransactionReference,omitempty"`
}
PickupGetServiceCenterFacilitiesRequestRequest Container for the Request.
type PickupGetServiceCenterFacilitiesResponse ¶
type PickupGetServiceCenterFacilitiesResponse struct {
// Response Container for response.
Response PickupGetServiceCenterFacilitiesResponseResponse `json:"Response"`
// ServiceCenterLocation Locations of the nearest Service Center for Dropoff and Pickup
ServiceCenterLocation PickupGetServiceCenterFacilitiesResponseServiceCenterLocation `json:"ServiceCenterLocation"`
}
PickupGetServiceCenterFacilitiesResponse Returns service center location information for Origin UPS Facilities and Destination Facilities
type PickupGetServiceCenterFacilitiesResponseResponse ¶
type PickupGetServiceCenterFacilitiesResponseResponse struct {
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response Status Container.
ResponseStatus ResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
PickupGetServiceCenterFacilitiesResponseResponse Container for response.
type PickupGetServiceCenterFacilitiesResponseServiceCenterLocation ¶
type PickupGetServiceCenterFacilitiesResponseServiceCenterLocation struct {
DropOffFacilities *[]ServiceCenterLocationDropOffFacilities `json:"DropOffFacilities,omitempty"`
// PickupFacilities Returns information for Pickup Facilities. This includes name of facility, address, and business hours.
PickupFacilities *ServiceCenterLocationPickupFacilities `json:"PickupFacilities,omitempty"`
}
PickupGetServiceCenterFacilitiesResponseServiceCenterLocation Locations of the nearest Service Center for Dropoff and Pickup
type PickupPendingStatusOpParams ¶
type PickupPendingStatusOpParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
// AccountNumber The specific account number that belongs to the
// shipper.Length 6 or 10
AccountNumber string `json:"AccountNumber"`
}
PickupPendingStatusOpParams defines parameters for PickupPendingStatusOp.
type PickupPendingStatusOpResponse ¶
type PickupPendingStatusOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PICKUPPendingResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParsePickupPendingStatusOpResponse ¶
func ParsePickupPendingStatusOpResponse(rsp *http.Response) (*PickupPendingStatusOpResponse, error)
ParsePickupPendingStatusOpResponse parses an HTTP response from a PickupPendingStatusOpWithResponse call
func (PickupPendingStatusOpResponse) Status ¶
func (r PickupPendingStatusOpResponse) Status() string
Status returns HTTPResponse.Status
func (PickupPendingStatusOpResponse) StatusCode ¶
func (r PickupPendingStatusOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PickupPendingStatusResponse ¶
type PickupPendingStatusResponse struct {
PendingStatus []PickupPendingStatusResponsePendingStatus `json:"PendingStatus"`
// Response Response Container.
Response PickupPendingStatusResponseResponse `json:"Response"`
}
PickupPendingStatusResponse The response of the pending status for on-callpickup.
type PickupPendingStatusResponsePendingStatus ¶
type PickupPendingStatusResponsePendingStatus struct {
// BillingCode Pickup billing classification for on call
// - 01 = Regular
// - 02 = Return
// - 03 = Alternate Address (Not supported for now)
BillingCode *string `json:"BillingCode,omitempty"`
// ContactName on-callpickup contact name
ContactName *string `json:"ContactName,omitempty"`
// GWNStatusCode Status code for Smart Pickup.
GWNStatusCode *string `json:"GWNStatusCode,omitempty"`
// OnCallStatusCode A unique string identifier to identify a success pre-notification processing. Only available if end result is success.
OnCallStatusCode *string `json:"OnCallStatusCode,omitempty"`
// PRN Returned PRN
PRN string `json:"PRN"`
// PickupStatusMessage The status for on-callpickup.
//
// PickupPendingStatusResponse will only display incomplete status for today and tomorrow only.
// - 002 and 012 are the most common responses.
// - 001 = Received at dispatch
// - 002 = Dispatched to driver
// - 003 = Order successfully completed
// - 004 = Order unsuccessfully completed
// - 005 = Missed commit – Updated ETA supplied by driver
// - 007 = Cancelled
// - 008 = Order has invalid order status
// - 012 = Your pickup request is being processed
PickupStatusMessage string `json:"PickupStatusMessage"`
// PickupType Specify the type of pending pickup.
// - 01 = on-callPickup
PickupType string `json:"PickupType"`
// ReferenceNumber Customer provided reference number for on-call pickup
ReferenceNumber *string `json:"ReferenceNumber,omitempty"`
// ServiceDate Local service date. Format: yyyyMMdd
// - yyyy = Year applicable
// - MM = 01-12
// - dd = 01-31
ServiceDate string `json:"ServiceDate"`
}
PickupPendingStatusResponsePendingStatus The result of retrieving pending pickups.
type PickupPendingStatusResponseResponse ¶
type PickupPendingStatusResponseResponse struct {
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response Status Container.
ResponseStatus ResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
PickupPendingStatusResponseResponse Response Container.
type PickupRateOpJSONRequestBody ¶
type PickupRateOpJSONRequestBody = PICKUPRequestWrapper
PickupRateOpJSONRequestBody defines body for PickupRateOp for application/json ContentType.
type PickupRateOpParams ¶
type PickupRateOpParams struct {
// TransId An identifier unique to the request. Length 32
TransId *string `json:"transId,omitempty"`
// TransactionSrc An identifier of the client/source application that is making the request.Length 512
TransactionSrc *string `json:"transactionSrc,omitempty"`
}
PickupRateOpParams defines parameters for PickupRateOp.
type PickupRateOpResponse ¶
type PickupRateOpResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PICKUPResponseWrapper
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON429 *ErrorResponse
}
func ParsePickupRateOpResponse ¶
func ParsePickupRateOpResponse(rsp *http.Response) (*PickupRateOpResponse, error)
ParsePickupRateOpResponse parses an HTTP response from a PickupRateOpWithResponse call
func (PickupRateOpResponse) Status ¶
func (r PickupRateOpResponse) Status() string
Status returns HTTPResponse.Status
func (PickupRateOpResponse) StatusCode ¶
func (r PickupRateOpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PickupRateRequest ¶
type PickupRateRequest struct {
// AlternateAddressIndicator Indicates if the pickup address is different than the address specified in the customer's profile.
// Valid values:
// Y = Alternate address
// N = Original pickup address (default)
AlternateAddressIndicator string `json:"AlternateAddressIndicator"`
// PickupAddress The address to pickup the packages
PickupAddress PickupRateRequestPickupAddress `json:"PickupAddress"`
// PickupDateInfo Required if the ServiceDateOption is:
// 03 A Specific-Day Pickup
PickupDateInfo *PickupRateRequestPickupDateInfo `json:"PickupDateInfo,omitempty"`
// RateChartType Rate Type with which pickup is rated. Possible RateChart values for different regions will be:
//
// US 48 origin:
// 1 – Daily Rates
// 3 – Standard List Rates
// 4 – Retail Rates.
//
// Alaska/Hawaii origin:
// 1 – Daily Rates
// 3 – Standard List Rates
// 4 – Retail Rates.
//
// All Other origins:
// 1 – Rates
// 5 - Regional Rates
// 6 - General List Rates.
//
// 3 and 4 do not apply
RateChartType *string `json:"RateChartType,omitempty"`
// Request Common element for all services
Request PickupRateRequestRequest `json:"Request"`
// ServiceDateOption Indicates the pickup timeframe.
// - 01 = Same-Day Pickup
// - 02 = Future-Day Pickup
// - 03 = A Specific-Day Pickup
//
// If 03 is selected, then PickupDate, EarliestReadyTime, and LatestClosetime must be specified.
ServiceDateOption string `json:"ServiceDateOption"`
// ShipperAccount Shipper account information.
ShipperAccount *PickupRateRequestShipperAccount `json:"ShipperAccount,omitempty"`
// TaxInformationIndicator Indicates whether to return detailed taxes for on-callpickups.
// Valid values:
// - Y = Rate this pickup with taxes
// - N = Do not rate this pickup with taxes (default)
TaxInformationIndicator *string `json:"TaxInformationIndicator,omitempty"`
// UserLevelDiscountIndicator Indicates whether to return user level promo discount for the on-callpickups.
// Valid values:
// Y = Rate this pickup with user level promo discount
// N = Do not rate this pickup with user level promo discount(default)
UserLevelDiscountIndicator *string `json:"UserLevelDiscountIndicator,omitempty"`
}
PickupRateRequest This request is used to rate an on-callpickup.
type PickupRateRequestPickupAddress ¶
type PickupRateRequestPickupAddress struct {
// AddressLine Detailed street address.
// For Jan. 2010 release, only one AddressLine is allowed.
AddressLine *string `json:"AddressLine,omitempty"`
// City City or equivalent
City string `json:"City"`
// CountryCode Upper-case two-char long country code as defined by ISO-3166.
// Refer to Country or Territory Codes in the Appendix for valid values.
CountryCode string `json:"CountryCode"`
// PostalCode Postal code for countries with postal codes.
PostalCode string `json:"PostalCode"`
// ResidentialIndicator Indicates if the pickup address is commerical or residential.
// Valid values:
// Y = Residential address
// N = Non-residential (Commercial) address (default)
ResidentialIndicator string `json:"ResidentialIndicator"`
// StateProvince State province code or equivalent. Required for US, Canada, and Vietnam (VN).
//
// - For US or Canada, the value must be a valid US state or Canadian province code.
// - For Vietnam (VN), the value must be a valid province code (for example, VN-44).
// - If the country or territory is Ireland, the StateProvinceCode must contain the county.
StateProvince *string `json:"StateProvince,omitempty"`
}
PickupRateRequestPickupAddress The address to pickup the packages
type PickupRateRequestPickupDateInfo ¶
type PickupRateRequestPickupDateInfo struct {
// CloseTime The latest local close time. Format: HHmm
// - Hour: 0-23
// - Minute: 0-59
CloseTime string `json:"CloseTime"`
// PickupDate The specific local pickup date. Format: yyyyMMdd
// - yyyy = Year Applicable
// - MM = 01-12
// - dd = 01-31
PickupDate string `json:"PickupDate"`
// ReadyTime The earliest local ready Time. Format: HHmm
// - Hour: 0-23
// - Minute: 0-59
ReadyTime string `json:"ReadyTime"`
}
PickupRateRequestPickupDateInfo Required if the ServiceDateOption is: 03 A Specific-Day Pickup
type PickupRateRequestRequest ¶
type PickupRateRequestRequest struct {
// RequestOption Not used by pick up
RequestOption *string `json:"RequestOption,omitempty"`
// SubVersion When UPS introduces new elements in the response that are not associated with new request elements, Subversion is used. This ensures backward compatibility.
//
// To get such elements you need to have the right Subversion. The value of the subversion is explained in the Response element Description. Supported values: 1607, 1707,2007
//
// Example: Itemized Charges are returned only when the Subversion element is present and greater than or equal to '1601'.
//
// Format: YYMM = Year and month of the release.
// Example: 1601 = 2016 January
SubVersion *string `json:"SubVersion,omitempty"`
// TransactionReference Transaction Reference Container
TransactionReference *RequestTransactionReference `json:"TransactionReference,omitempty"`
}
PickupRateRequestRequest Common element for all services
type PickupRateRequestShipperAccount ¶
type PickupRateRequestShipperAccount struct {
// AccountCountryCode Country code as defined by ISO-3166.
// Refer to Country or Territory Codes in the Appendix for valid values.
AccountCountryCode string `json:"AccountCountryCode"`
// AccountNumber UPS account number. Shipper's (requester of the pickup) UPS account number
AccountNumber string `json:"AccountNumber"`
}
PickupRateRequestShipperAccount Shipper account information.
type PickupRateResponse ¶
type PickupRateResponse struct {
// RateResult The result of rating an on-callpickup.
RateResult PickupRateResponseRateResult `json:"RateResult"`
// Response Response Container.
Response PickupRateResponseResponse `json:"Response"`
// WeekendServiceTerritory WeekendServiceTerritory Container.Returned if the subversion greater or equal to 2007.
WeekendServiceTerritory *PickupRateResponseWeekendServiceTerritory `json:"WeekendServiceTerritory,omitempty"`
// WeekendServiceTerritoryIndicator Indicates if the pickup address qualifies for WST (Weekend Service Territory). Returned if the pickup date is Saturday and subversion greater or equal to 1607. Valid Values:
// - Y = WST
// - N = Non-WST
WeekendServiceTerritoryIndicator *string `json:"WeekendServiceTerritoryIndicator,omitempty"`
}
PickupRateResponse The response of rating on-callpickup.
type PickupRateResponseRateResult ¶
type PickupRateResponseRateResult struct {
ChargeDetail *[]RateResultChargeDetail `json:"ChargeDetail,omitempty"`
// CurrencyCode IATA currency codes for the pickup charge. Such as USD
CurrencyCode string `json:"CurrencyCode"`
// Disclaimer Container to hold Disclaimer message applicable to taxes and charges. Available only when tax information is requested.
Disclaimer *RateResultDisclaimer `json:"Disclaimer,omitempty"`
// GrandTotalOfAllCharge The grand total of each charge and applied tax.
GrandTotalOfAllCharge *string `json:"GrandTotalOfAllCharge,omitempty"`
// GrandTotalOfAllIncentedCharge The grand total of each incented charge and applied tax. Only present if 1. UserLevelDiscountIndicator = Y and User Level Promotion is applied to the pickup or 2 .if any incentive rate is applied to the pickup and SubVersion on the request is greater than or equal to 1707.
GrandTotalOfAllIncentedCharge *string `json:"GrandTotalOfAllIncentedCharge,omitempty"`
// PreTaxTotalCharge Total of charges before taxes. Only present when tax details requested in input.
PreTaxTotalCharge *string `json:"PreTaxTotalCharge,omitempty"`
// PreTaxTotalIncentedCharge Total of incented charges before taxes. Only present if 1. UserLevelDiscountIndicator = Y and User Level Promotion is applied to the pickup or 2 .if any incentive rate is applied to the pickup and SubVersion on the request is greater than or equal to 1707.
PreTaxTotalIncentedCharge *string `json:"PreTaxTotalIncentedCharge,omitempty"`
// RateType Indicates the pickup is rated as same-day or future-day pickup.
// - SD = Same-day Pickup
// - FD = Future-day Pickup
RateType *string `json:"RateType,omitempty"`
TaxCharges *[]RateResultTaxCharges `json:"TaxCharges,omitempty"`
// TotalTax The sum of all taxes.
TotalTax *string `json:"TotalTax,omitempty"`
}
PickupRateResponseRateResult The result of rating an on-callpickup.
type PickupRateResponseResponse ¶
type PickupRateResponseResponse struct {
Alert *[]ResponseAlert `json:"Alert,omitempty"`
// ResponseStatus Response Status Container.
ResponseStatus ResponseResponseStatus `json:"ResponseStatus"`
// TransactionReference Transaction Reference Container.
TransactionReference *ResponseTransactionReference `json:"TransactionReference,omitempty"`
}
PickupRateResponseResponse Response Container.
type PickupRateResponseWeekendServiceTerritory ¶
type PickupRateResponseWeekendServiceTerritory struct {
// SatWST Indicates if the pickup address qualifies for WST (Weekend Service Territory). Returned if the pickup date is Saturday and subversion greater or equal to 2007. Valid Values:
// - Y = Saturday WST
// - N = Non-Saturday WST
SatWST string `json:"SatWST"`
// SunWST Indicates if the pickup address qualifies for WST (Weekend Service Territory). Returned if the pickup date is Sunday and subversion greater or equal to 2007. Valid Values:
// - Y = Sunday WST
// - N = Non-Sunday WST
SunWST string `json:"SunWST"`
}
PickupRateResponseWeekendServiceTerritory WeekendServiceTerritory Container.Returned if the subversion greater or equal to 2007.
type PickupTriggerGWNRequest ¶
type PickupTriggerGWNRequest struct {
// AccountNumber The UPS account number configured for Smart Pickup. Must be a valid 6-character alphanumeric UPS account number associated with the authenticated user. The pickup address and notification preferences are retrieved from this account.
AccountNumber string `json:"AccountNumber"`
// Request Common element for all services
Request PickupCreationRequestRequest `json:"Request"`
// ServiceDateOption Specifies when the pickup should be scheduled.
// - 01 -- Same Day - Request pickup for today
// - 02 -- Future Day - Request pickup for next available business day
//
// If same-day is requested but cutoff time has passed,the pickup will be automatically scheduled for the next business day.
ServiceDateOption string `json:"ServiceDateOption"`
}
PickupTriggerGWNRequest Request to trigger a Smart Pickup (GWN - Green When Needed). This flow applies to accounts enabled for Smart Pickup and supports same-day or future-day pickup requests. Unlike regular Pickup Creation, Smart Pickup does not require a separate Shipper object - it uses the pickup address pre-configured on the UPS account.
type PickupTriggerGWNResponse ¶
type PickupTriggerGWNResponse struct {
// NextBusinessDayIndicator Indicates if the pickup was scheduled for the next business day instead
// of the requested same-day pickup. Present only when same-day cutoff time has passed.
// - Y -- Pickup scheduled for next business day.
NextBusinessDayIndicator *string `json:"NextBusinessDayIndicator,omitempty"`
// PRN Pickup Reference Number - unique identifier for the scheduled pickup. Use this number to track or cancel the pickup.
PRN *string `json:"PRN,omitempty"`
// Response Response Container.
Response *PickupCreationResponseResponse `json:"Response,omitempty"`
// ServiceDate The scheduled pickup date.
ServiceDate *string `json:"ServiceDate,omitempty"`
// TriggerStatus Status of the Smart Pickup trigger operation
TriggerStatus *PickupTriggerGWNResponseTriggerStatus `json:"TriggerStatus,omitempty"`
}
PickupTriggerGWNResponse Response from Smart Pickup trigger request.
type PickupTriggerGWNResponseTriggerStatus ¶
type PickupTriggerGWNResponseTriggerStatus struct {
// Code Status code indicating the result.
// - 01 -- NEW - New pickup scheduled
// - 02 -- EXISTING - Pickup already exists for this date
Code *string `json:"Code,omitempty"`
// Description Human readable description of the trigger status.
Description *string `json:"Description,omitempty"`
}
PickupTriggerGWNResponseTriggerStatus Status of the Smart Pickup trigger operation
type RateResultChargeDetail ¶
type RateResultChargeDetail struct {
// ChargeAmount Monetary value of the charge.
ChargeAmount string `json:"ChargeAmount"`
// ChargeCode Indicates the general charge type
// - A = ACCESSORIAL TYPE
// - B = BASE CHARGE TYPE
// - S = SURCHARGE TYPE
ChargeCode string `json:"ChargeCode"`
// ChargeDescription Description of each charge.The possible descriptions are:
// - BASE CHARGE
// - EXTENDED AREA SURCHARGE
// - FUEL SURCHARGE
// - REMOTE AREA SURCHARGE
// - RESIDENTIAL SURCHARGE
// - SATURDAY ON-CALL STOP CHARGE
ChargeDescription *string `json:"ChargeDescription,omitempty"`
// IncentedAmount Monetary value of the incented charge. Only present if 1. UserLevelDiscountIndicator = Y and User Level Promotion is applied to the pickup or 2 .if any incentive rate is applied to the pickup and SubVersion on the request is greater than or equal to 1707.
IncentedAmount *string `json:"IncentedAmount,omitempty"`
// TaxAmount Monetary value of the tax if apply.
TaxAmount *string `json:"TaxAmount,omitempty"`
}
RateResultChargeDetail Detailed charges.
type RateResultDisclaimer ¶
type RateResultDisclaimer struct {
// Code Disclaimer code. Valid values:
// - 01 = Taxes are included in the shipping cost and apply to the transportation charges but additional duties/taxes may apply and are not reflected in the total amount due.
// - 02 = Additional duties/taxes may apply and are not reflected in the total amount due.
// - 03 = Additional duties/taxes may apply and are not reflected in the total amount due.
// - 04 = Taxes were unable to be determined and may apply to the shipment.
// - 05 = Rate excludes VAT. Rate includes a fuel surcharge, but excludes taxes, duties and other charges that may apply to the shipment.
Code string `json:"Code"`
// Description Description of Disclaimer.
Description string `json:"Description"`
}
RateResultDisclaimer Container to hold Disclaimer message applicable to taxes and charges. Available only when tax information is requested.
type RateResultTaxCharges ¶
type RateResultTaxCharges struct {
// MonetaryValue Monetary value of the tax.
MonetaryValue string `json:"MonetaryValue"`
// Type Type of Tax code.
// Valid values: ALV, BTW, DDS, DDV, DPH, FPA, GST, IVA, IVA1, IVA2, IVA3, KM, MOMS, MWST, PDV, PST, PVM, PVN, QST, TVA, VAT, VSK.
Type string `json:"Type"`
}
RateResultTaxCharges Container to hold taxes when, detailed taxes are request via RateTaxIndicator.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestTransactionReference ¶
type RequestTransactionReference struct {
// CustomerContext The CustomerContext information that is echoed back during response.
CustomerContext *string `json:"CustomerContext,omitempty"`
}
RequestTransactionReference Transaction Reference Container
type ResponseAlert ¶
type ResponseAlert struct {
// Code Warning code returned by the system.
Code string `json:"Code"`
// Description Warning messages returned by the system.
Description string `json:"Description"`
}
ResponseAlert Alert Container. There can be zero to many alert containers with code and description.
type ResponseResponseStatus ¶
type ResponseResponseStatus struct {
// Code Identifies the success of the transaction.
// - 1=Success
// - 0=failed
Code string `json:"Code"`
// Description Describes Response Status Code.
Description string `json:"Description"`
}
ResponseResponseStatus Response Status Container.
type ResponseTransactionReference ¶
type ResponseTransactionReference struct {
// CustomerContext The CustomerContext information that is echoed back during response.
CustomerContext *string `json:"CustomerContext,omitempty"`
}
ResponseTransactionReference Transaction Reference Container.
type ServiceCenterLocationDropOffFacilities ¶
type ServiceCenterLocationDropOffFacilities struct {
// Address Address of the facility.
Address DropOffFacilitiesAddress `json:"Address"`
// Distance Distance from origin Distance will be retuned for drop off location search by proximity order.
Distance *DropOffFacilitiesDistance `json:"Distance,omitempty"`
// FacilityTime Facility Time Container
FacilityTime *DropOffFacilitiesFacilityTime `json:"FacilityTime,omitempty"`
// Fax Drop off Facilities Fax Number
Fax string `json:"Fax"`
LocalizedInstruction *[]DropOffFacilitiesLocalizedInstruction `json:"LocalizedInstruction,omitempty"`
// Name Name of the Facility.
Name string `json:"Name"`
// OriginOrDestination Type of Facility.
OriginOrDestination string `json:"OriginOrDestination"`
// Phone Phone Number of the Drop off Facility
Phone string `json:"Phone"`
// SLIC SLIC code for the UPS Drop off facility.
SLIC string `json:"SLIC"`
// Timezone Facility's Timezone. Format:
// - America/New_York
// - Asia/Hong_Kong
// - Europe/London
Timezone string `json:"Timezone"`
// Type FRT for Freight or PKG for Package
Type string `json:"Type"`
}
ServiceCenterLocationDropOffFacilities Returns information for DropOff Facilities. This includes name of facility, address, business hours, and SLIC.
type ServiceCenterLocationPickupFacilities ¶
type ServiceCenterLocationPickupFacilities struct {
// Address Address of the facility
Address PickupFacilitiesAddress `json:"Address"`
// AirportCode AirPort Code for destination/pickup facility.
// Example: ATL (Atlanta)
// If Airport code is not present "---" will be returned.
AirportCode *string `json:"AirportCode,omitempty"`
// FacilityTime Facility Time Container
FacilityTime *PickupFacilitiesFacilityTime `json:"FacilityTime,omitempty"`
// Fax Pickup Facilities Fax Number
Fax string `json:"Fax"`
// Name Name of the facility
Name string `json:"Name"`
// Phone Phone Number of the Pickup Facility
Phone string `json:"Phone"`
// SLIC SLIC code for the UPS Pickup facility
SLIC string `json:"SLIC"`
// SortCode Sort Code for destination/pickup facility.
// Example: V1
SortCode *string `json:"SortCode,omitempty"`
// Timezone Facility's Timezone. Format:
// - America/New_York
// - Asia/Hong_Kong
// - Europe/London
Timezone string `json:"Timezone"`
// Type Freight or Package.
Type string `json:"Type"`
}
ServiceCenterLocationPickupFacilities Returns information for Pickup Facilities. This includes name of facility, address, and business hours.
type ShipmentDetailPalletInformation ¶
type ShipmentDetailPalletInformation struct {
// Dimensions Dimensions of largest pallet
Dimensions *PalletInformationDimensions `json:"Dimensions,omitempty"`
}
ShipmentDetailPalletInformation Pallet Details.
type ShipperAccount ¶
type ShipperAccount struct {
// AccountCountryCode Country or territory code as defined by ISO-3166.
// Refer to Country or Terriotry Codes in the Appendix for valid values.
AccountCountryCode string `json:"AccountCountryCode"`
// AccountNumber UPS account number. Shipper's (requester of the pickup) UPS account number
AccountNumber string `json:"AccountNumber"`
}
ShipperAccount Shipper account information. Must provide when choose to pay the pickup by shipper account number
type ShipperChargeCard ¶
type ShipperChargeCard struct {
// CardAddress Container to hold the Charge card address.
CardAddress ChargeCardCardAddress `json:"CardAddress"`
// CardHolderName Charge card holder name. If the name is not provided, defaults to "No Name Provided".
CardHolderName *string `json:"CardHolderName,omitempty"`
// CardNumber Charge card number. For Privileged clients, this element must be tokenized card number.
CardNumber string `json:"CardNumber"`
// CardType Charge card type. Valid values:
// - 01 = American Express
// - 03 = Discover
// - 04 = Mastercard
// - 06 = VISA Discover card Pickup country US only.
CardType string `json:"CardType"`
// ExpirationDate Credit card expiration date.
// Format: yyyyMM
// yyyy = 4 digit year, valid value current year - 10 years.
// MM = 2 digit month, valid values 01-12
ExpirationDate string `json:"ExpirationDate"`
// SecurityCode Three or four digits that can be found either on top of credit card number or on the back of credit card.
// Number of digits varies for different type of credit card. Valid values are 3 or 4 digits.
// Security code is required if credit card information is provided.
SecurityCode string `json:"SecurityCode"`
}
ShipperChargeCard Container for Charge Card payment method Required if Payment method is 03. Credit/Charge card payment is valid for US, CA, PR and GB origin pickups.