pickuppoints

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

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

Documentation

Overview

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

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

Index

Constants

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

Variables

This section is empty.

Functions

func NewConfirmPickupOrderRequest

func NewConfirmPickupOrderRequest(server string, params *ConfirmPickupOrderParams, body ConfirmPickupOrderJSONRequestBody) (*http.Request, error)

NewConfirmPickupOrderRequest calls the generic ConfirmPickupOrder builder with application/json body

func NewConfirmPickupOrderRequestWithBody

func NewConfirmPickupOrderRequestWithBody(server string, params *ConfirmPickupOrderParams, contentType string, body io.Reader) (*http.Request, error)

NewConfirmPickupOrderRequestWithBody generates requests for ConfirmPickupOrder with any type of body

func NewGetInboundTrackingNumbersRequest

func NewGetInboundTrackingNumbersRequest(server string, params *GetInboundTrackingNumbersParams, body GetInboundTrackingNumbersJSONRequestBody) (*http.Request, error)

NewGetInboundTrackingNumbersRequest calls the generic GetInboundTrackingNumbers builder with application/json body

func NewGetInboundTrackingNumbersRequestWithBody

func NewGetInboundTrackingNumbersRequestWithBody(server string, params *GetInboundTrackingNumbersParams, contentType string, body io.Reader) (*http.Request, error)

NewGetInboundTrackingNumbersRequestWithBody generates requests for GetInboundTrackingNumbers with any type of body

func NewGetSiteDetailsByDateRangeRequest

func NewGetSiteDetailsByDateRangeRequest(server string, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, body GetSiteDetailsByDateRangeJSONRequestBody) (*http.Request, error)

NewGetSiteDetailsByDateRangeRequest calls the generic GetSiteDetailsByDateRange builder with application/json body

func NewGetSiteDetailsByDateRangeRequestWithBody

func NewGetSiteDetailsByDateRangeRequestWithBody(server string, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, contentType string, body io.Reader) (*http.Request, error)

NewGetSiteDetailsByDateRangeRequestWithBody generates requests for GetSiteDetailsByDateRange with any type of body

func NewGetSiteDetailsByDateRangeStandardFetchRequest

func NewGetSiteDetailsByDateRangeStandardFetchRequest(server string, startdate string, enddate string, params *GetSiteDetailsByDateRangeStandardFetchParams) (*http.Request, error)

NewGetSiteDetailsByDateRangeStandardFetchRequest generates requests for GetSiteDetailsByDateRangeStandardFetch

func NewGetSubscriptionDetailsRequest

func NewGetSubscriptionDetailsRequest(server string, params *GetSubscriptionDetailsParams) (*http.Request, error)

NewGetSubscriptionDetailsRequest generates requests for GetSubscriptionDetails

Types

type Authorization

type Authorization = string

Authorization defines model for Authorization.

type BadRequest

type BadRequest = ErrorResponse

BadRequest Response object for error condition

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

func (c *Client) ConfirmPickupOrder(ctx context.Context, params *ConfirmPickupOrderParams, body ConfirmPickupOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ConfirmPickupOrderWithBody

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

func (*Client) GetInboundTrackingNumbers

func (c *Client) GetInboundTrackingNumbers(ctx context.Context, params *GetInboundTrackingNumbersParams, body GetInboundTrackingNumbersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInboundTrackingNumbersWithBody

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

func (*Client) GetSiteDetailsByDateRange

func (c *Client) GetSiteDetailsByDateRange(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, body GetSiteDetailsByDateRangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSiteDetailsByDateRangeStandardFetch

func (c *Client) GetSiteDetailsByDateRangeStandardFetch(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeStandardFetchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSiteDetailsByDateRangeWithBody

func (c *Client) GetSiteDetailsByDateRangeWithBody(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSubscriptionDetails

func (c *Client) GetSubscriptionDetails(ctx context.Context, params *GetSubscriptionDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

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

	GetInboundTrackingNumbers(ctx context.Context, params *GetInboundTrackingNumbersParams, body GetInboundTrackingNumbersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ConfirmPickupOrder(ctx context.Context, params *ConfirmPickupOrderParams, body ConfirmPickupOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSiteDetailsByDateRangeStandardFetch request
	GetSiteDetailsByDateRangeStandardFetch(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeStandardFetchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSiteDetailsByDateRangeWithBody request with any body
	GetSiteDetailsByDateRangeWithBody(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetSiteDetailsByDateRange(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, body GetSiteDetailsByDateRangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSubscriptionDetails request
	GetSubscriptionDetails(ctx context.Context, params *GetSubscriptionDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) ConfirmPickupOrderWithBodyWithResponse

func (c *ClientWithResponses) ConfirmPickupOrderWithBodyWithResponse(ctx context.Context, params *ConfirmPickupOrderParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmPickupOrderResponse, error)

ConfirmPickupOrderWithBodyWithResponse request with arbitrary body returning *ConfirmPickupOrderResponse

func (*ClientWithResponses) ConfirmPickupOrderWithResponse

func (*ClientWithResponses) GetInboundTrackingNumbersWithBodyWithResponse

func (c *ClientWithResponses) GetInboundTrackingNumbersWithBodyWithResponse(ctx context.Context, params *GetInboundTrackingNumbersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInboundTrackingNumbersResponse, error)

GetInboundTrackingNumbersWithBodyWithResponse request with arbitrary body returning *GetInboundTrackingNumbersResponse

func (*ClientWithResponses) GetSiteDetailsByDateRangeStandardFetchWithResponse

func (c *ClientWithResponses) GetSiteDetailsByDateRangeStandardFetchWithResponse(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeStandardFetchParams, reqEditors ...RequestEditorFn) (*GetSiteDetailsByDateRangeStandardFetchResponse, error)

GetSiteDetailsByDateRangeStandardFetchWithResponse request returning *GetSiteDetailsByDateRangeStandardFetchResponse

func (*ClientWithResponses) GetSiteDetailsByDateRangeWithBodyWithResponse

func (c *ClientWithResponses) GetSiteDetailsByDateRangeWithBodyWithResponse(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetSiteDetailsByDateRangeResponse, error)

GetSiteDetailsByDateRangeWithBodyWithResponse request with arbitrary body returning *GetSiteDetailsByDateRangeResponse

func (*ClientWithResponses) GetSiteDetailsByDateRangeWithResponse

func (c *ClientWithResponses) GetSiteDetailsByDateRangeWithResponse(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, body GetSiteDetailsByDateRangeJSONRequestBody, reqEditors ...RequestEditorFn) (*GetSiteDetailsByDateRangeResponse, error)

func (*ClientWithResponses) GetSubscriptionDetailsWithResponse

func (c *ClientWithResponses) GetSubscriptionDetailsWithResponse(ctx context.Context, params *GetSubscriptionDetailsParams, reqEditors ...RequestEditorFn) (*GetSubscriptionDetailsResponse, error)

GetSubscriptionDetailsWithResponse request returning *GetSubscriptionDetailsResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetInboundTrackingNumbersWithBodyWithResponse request with any body
	GetInboundTrackingNumbersWithBodyWithResponse(ctx context.Context, params *GetInboundTrackingNumbersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInboundTrackingNumbersResponse, error)

	GetInboundTrackingNumbersWithResponse(ctx context.Context, params *GetInboundTrackingNumbersParams, body GetInboundTrackingNumbersJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInboundTrackingNumbersResponse, error)

	// ConfirmPickupOrderWithBodyWithResponse request with any body
	ConfirmPickupOrderWithBodyWithResponse(ctx context.Context, params *ConfirmPickupOrderParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmPickupOrderResponse, error)

	ConfirmPickupOrderWithResponse(ctx context.Context, params *ConfirmPickupOrderParams, body ConfirmPickupOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmPickupOrderResponse, error)

	// GetSiteDetailsByDateRangeStandardFetchWithResponse request
	GetSiteDetailsByDateRangeStandardFetchWithResponse(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeStandardFetchParams, reqEditors ...RequestEditorFn) (*GetSiteDetailsByDateRangeStandardFetchResponse, error)

	// GetSiteDetailsByDateRangeWithBodyWithResponse request with any body
	GetSiteDetailsByDateRangeWithBodyWithResponse(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetSiteDetailsByDateRangeResponse, error)

	GetSiteDetailsByDateRangeWithResponse(ctx context.Context, startdate string, enddate string, params *GetSiteDetailsByDateRangeParams, body GetSiteDetailsByDateRangeJSONRequestBody, reqEditors ...RequestEditorFn) (*GetSiteDetailsByDateRangeResponse, error)

	// GetSubscriptionDetailsWithResponse request
	GetSubscriptionDetailsWithResponse(ctx context.Context, params *GetSubscriptionDetailsParams, reqEditors ...RequestEditorFn) (*GetSubscriptionDetailsResponse, error)
}

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

type CommunicationMediaType

type CommunicationMediaType struct {
	MediaTypeValue []MediaTypeValue `json:"mediaTypeValue"`
	Type           string           `json:"type"`
}

CommunicationMediaType A communication channel (e.g. EMAIL, SMS) and its associated contact values for a pickup point.

type ConfirmPickupOrderJSONRequestBody

type ConfirmPickupOrderJSONRequestBody = PickupPointOrderRequest

ConfirmPickupOrderJSONRequestBody defines body for ConfirmPickupOrder for application/json ContentType.

type ConfirmPickupOrderParams

type ConfirmPickupOrderParams struct {
	// Authorization Bearer JWT token used to authorize requests.
	Authorization Authorization `json:"Authorization"`
}

ConfirmPickupOrderParams defines parameters for ConfirmPickupOrder.

type ConfirmPickupOrderResponse

type ConfirmPickupOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *PickupPointOrderResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON409      *Conflict
	JSON500      *InternalServerError
}

func ParseConfirmPickupOrderResponse

func ParseConfirmPickupOrderResponse(rsp *http.Response) (*ConfirmPickupOrderResponse, error)

ParseConfirmPickupOrderResponse parses an HTTP response from a ConfirmPickupOrderWithResponse call

func (ConfirmPickupOrderResponse) Status

Status returns HTTPResponse.Status

func (ConfirmPickupOrderResponse) StatusCode

func (r ConfirmPickupOrderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Conflict

type Conflict = ErrorResponse

Conflict Response object for error condition

type DaySpecificDetail

type DaySpecificDetail struct {
	CloseHour                *string             `json:"closeHour,omitempty"`
	Date                     *openapi_types.Date `json:"date,omitempty"`
	DayOfWeek                *string             `json:"dayOfWeek,omitempty"`
	HowServicedDisplayCode   *string             `json:"howServicedDisplayCode,omitempty"`
	HowServicedDisplayText   *string             `json:"howServicedDisplayText,omitempty"`
	PickupOption             *string             `json:"pickupOption,omitempty"`
	PickupRequestOrderAction *string             `json:"pickupRequestOrderAction,omitempty"`
	PickupRequestOrderType   *string             `json:"pickupRequestOrderType,omitempty"`
	PickupRequestStatus      *string             `json:"pickupRequestStatus,omitempty"`
	PickupStatusDisplayCode  *string             `json:"pickupStatusDisplayCode,omitempty"`
	PickupStatusDisplayText  *string             `json:"pickupStatusDisplayText,omitempty"`
	ScheduledPickupTime      *string             `json:"scheduledPickupTime,omitempty"`
	TimeZoneNameFull         *string             `json:"timeZoneNameFull,omitempty"`
	TimeZoneNameShort        *string             `json:"timeZoneNameShort,omitempty"`
}

DaySpecificDetail Day-specific pickup scheduling details for a pickup point, including status and timing.

type Error

type Error struct {
	// Code Error code
	Code string `json:"code"`

	// Message Error message
	Message string `json:"message"`
}

Error Error entity

type ErrorResponse

type ErrorResponse struct {
	// Response Error response entity
	Response *ResponseErrorsArr `json:"response,omitempty"`
}

ErrorResponse Response object for error condition

type Forbidden

type Forbidden = ErrorResponse

Forbidden Response object for error condition

type GetInboundTrackingNumbersJSONRequestBody

type GetInboundTrackingNumbersJSONRequestBody = TrackingRequest

GetInboundTrackingNumbersJSONRequestBody defines body for GetInboundTrackingNumbers for application/json ContentType.

type GetInboundTrackingNumbersParams

type GetInboundTrackingNumbersParams struct {
	// Authorization Bearer JWT token used to authorize requests.
	Authorization Authorization `json:"Authorization"`
}

GetInboundTrackingNumbersParams defines parameters for GetInboundTrackingNumbers.

type GetInboundTrackingNumbersResponse

type GetInboundTrackingNumbersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TrackingResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON409      *Conflict
	JSON500      *InternalServerError
}

func ParseGetInboundTrackingNumbersResponse

func ParseGetInboundTrackingNumbersResponse(rsp *http.Response) (*GetInboundTrackingNumbersResponse, error)

ParseGetInboundTrackingNumbersResponse parses an HTTP response from a GetInboundTrackingNumbersWithResponse call

func (GetInboundTrackingNumbersResponse) Status

Status returns HTTPResponse.Status

func (GetInboundTrackingNumbersResponse) StatusCode

func (r GetInboundTrackingNumbersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSiteDetailsByDateRangeJSONRequestBody

type GetSiteDetailsByDateRangeJSONRequestBody = SiteDetailsRequest

GetSiteDetailsByDateRangeJSONRequestBody defines body for GetSiteDetailsByDateRange for application/json ContentType.

type GetSiteDetailsByDateRangeParams

type GetSiteDetailsByDateRangeParams struct {
	// Authorization Bearer JWT token used to authorize requests.
	Authorization Authorization `json:"Authorization"`
}

GetSiteDetailsByDateRangeParams defines parameters for GetSiteDetailsByDateRange.

type GetSiteDetailsByDateRangeResponse

type GetSiteDetailsByDateRangeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SiteDetailsResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON409      *Conflict
	JSON500      *InternalServerError
}

func ParseGetSiteDetailsByDateRangeResponse

func ParseGetSiteDetailsByDateRangeResponse(rsp *http.Response) (*GetSiteDetailsByDateRangeResponse, error)

ParseGetSiteDetailsByDateRangeResponse parses an HTTP response from a GetSiteDetailsByDateRangeWithResponse call

func (GetSiteDetailsByDateRangeResponse) Status

Status returns HTTPResponse.Status

func (GetSiteDetailsByDateRangeResponse) StatusCode

func (r GetSiteDetailsByDateRangeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSiteDetailsByDateRangeStandardFetchParams

type GetSiteDetailsByDateRangeStandardFetchParams struct {
	// Authorization Bearer JWT token used to authorize requests.
	Authorization Authorization `json:"Authorization"`
}

GetSiteDetailsByDateRangeStandardFetchParams defines parameters for GetSiteDetailsByDateRangeStandardFetch.

type GetSiteDetailsByDateRangeStandardFetchResponse

type GetSiteDetailsByDateRangeStandardFetchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SiteDetailsResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON409      *Conflict
	JSON500      *InternalServerError
}

func ParseGetSiteDetailsByDateRangeStandardFetchResponse

func ParseGetSiteDetailsByDateRangeStandardFetchResponse(rsp *http.Response) (*GetSiteDetailsByDateRangeStandardFetchResponse, error)

ParseGetSiteDetailsByDateRangeStandardFetchResponse parses an HTTP response from a GetSiteDetailsByDateRangeStandardFetchWithResponse call

func (GetSiteDetailsByDateRangeStandardFetchResponse) Status

Status returns HTTPResponse.Status

func (GetSiteDetailsByDateRangeStandardFetchResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetSubscriptionDetailsParams

type GetSubscriptionDetailsParams struct {
	// Authorization Bearer JWT token used to authorize requests.
	Authorization Authorization `json:"Authorization"`
}

GetSubscriptionDetailsParams defines parameters for GetSubscriptionDetails.

type GetSubscriptionDetailsResponse

type GetSubscriptionDetailsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SubscriptionSitesResponse
	JSON400      *BadRequest
	JSON401      *Unauthorized
	JSON403      *Forbidden
	JSON404      *NotFound
	JSON409      *Conflict
	JSON500      *InternalServerError
}

func ParseGetSubscriptionDetailsResponse

func ParseGetSubscriptionDetailsResponse(rsp *http.Response) (*GetSubscriptionDetailsResponse, error)

ParseGetSubscriptionDetailsResponse parses an HTTP response from a GetSubscriptionDetailsWithResponse call

func (GetSubscriptionDetailsResponse) Status

Status returns HTTPResponse.Status

func (GetSubscriptionDetailsResponse) StatusCode

func (r GetSubscriptionDetailsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InboundTrackingItem

type InboundTrackingItem struct {
	InboundToken        string   `json:"inboundToken"`
	TrackingNumbersList []string `json:"trackingNumbersList"`
}

InboundTrackingItem A mapping of an inbound token to its associated list of UPS tracking numbers.

type InquiryResponseEnvelope

type InquiryResponseEnvelope struct {
	Offset         string `json:"offset"`
	RecordsPerPage string `json:"recordsPerPage"`
	TotalRecords   string `json:"totalRecords"`

	// Transactionref Transaction reference details used to correlate API requests and responses.
	Transactionref TransactionRef `json:"transactionref"`
}

InquiryResponseEnvelope Paginated response envelope containing transaction reference and pagination metadata.

type InternalServerError

type InternalServerError = ErrorResponse

InternalServerError Response object for error condition

type MediaTypeValue

type MediaTypeValue struct {
	Prefix *string `json:"prefix,omitempty"`
	Value  string  `json:"value"`
}

MediaTypeValue A single contact value (e.g. email address or phone number) for a communication channel.

type NotFound

type NotFound = ErrorResponse

NotFound Response object for error condition

type OrderResponseEnvelope

type OrderResponseEnvelope struct {
	// Transactionref Transaction reference details used to correlate API requests and responses.
	Transactionref TransactionRef `json:"transactionref"`
}

OrderResponseEnvelope Standard response envelope containing transaction reference information.

type PickupPoint

type PickupPoint struct {
	CommunicationMediaTypeList     *[]CommunicationMediaType `json:"communicationMediaTypeList,omitempty"`
	DaySpecificDetails             []DaySpecificDetail       `json:"daySpecificDetails"`
	DaylightSavingsTimeIndicator   *string                   `json:"daylightSavingsTimeIndicator,omitempty"`
	GmtOffset                      *float64                  `json:"gmtOffset,omitempty"`
	LocationIdentifier             string                    `json:"locationIdentifier"`
	LocationIdentifierCategoryCode string                    `json:"locationIdentifierCategoryCode"`
	NumberOfTrackingIds            *int                      `json:"numberOfTrackingIds,omitempty"`

	// PickupPointAddress Physical address details for a UPS pickup point location.
	PickupPointAddress            PickupPointAddress `json:"pickupPointAddress"`
	PickupPointClassificationCode *string            `json:"pickupPointClassificationCode,omitempty"`
	PickupPointStatus             *string            `json:"pickupPointStatus,omitempty"`
	PickupPointType               *string            `json:"pickupPointType,omitempty"`
	SubscriptionType              *string            `json:"subscriptionType,omitempty"`
	TimeZoneLong                  *string            `json:"timeZoneLong,omitempty"`
	TimeZoneShort                 *string            `json:"timeZoneShort,omitempty"`
}

PickupPoint Details of a UPS pickup point location including address, schedule, and status.

type PickupPointAddress

type PickupPointAddress struct {
	City            string `json:"city"`
	Country         string `json:"country"`
	PickupPointName string `json:"pickupPointName"`
	PostalCode      string `json:"postalCode"`
	State           string `json:"state"`
	StreetAddress   string `json:"streetAddress"`
}

PickupPointAddress Physical address details for a UPS pickup point location.

type PickupPointOrderRequest

type PickupPointOrderRequest struct {
	CloseTime                      string                                                `json:"closeTime"`
	GeoPoliticalUnit               string                                                `json:"geoPoliticalUnit"`
	LocationIdentifier             string                                                `json:"locationIdentifier"`
	LocationIdentifierCategoryCode PickupPointOrderRequestLocationIdentifierCategoryCode `json:"locationIdentifierCategoryCode"`

	// PickupDate Pickup date in yyyyMMdd format.
	PickupDate string `json:"pickupDate"`

	// PickupPointAddress Physical address details for a UPS pickup point location.
	PickupPointAddress       PickupPointAddress `json:"pickupPointAddress"`
	PickupRequestOrderAction string             `json:"pickupRequestOrderAction"`
	ReadyTime                string             `json:"readyTime"`
	ServiceCode              string             `json:"serviceCode"`
}

PickupPointOrderRequest Request payload for confirming a new pickup point order.

type PickupPointOrderRequestLocationIdentifierCategoryCode

type PickupPointOrderRequestLocationIdentifierCategoryCode string

PickupPointOrderRequestLocationIdentifierCategoryCode defines model for PickupPointOrderRequest.LocationIdentifierCategoryCode.

const (
	PickupPointOrderRequestLocationIdentifierCategoryCodeN01 PickupPointOrderRequestLocationIdentifierCategoryCode = "01"
	PickupPointOrderRequestLocationIdentifierCategoryCodeN02 PickupPointOrderRequestLocationIdentifierCategoryCode = "02"
)

Defines values for PickupPointOrderRequestLocationIdentifierCategoryCode.

type PickupPointOrderResponse

type PickupPointOrderResponse struct {
	// PickupPoint Details of a UPS pickup point location including address, schedule, and status.
	PickupPoint PickupPoint `json:"pickupPoint"`
	Prn         string      `json:"prn"`

	// Response Standard response envelope containing transaction reference information.
	Response OrderResponseEnvelope `json:"response"`
}

PickupPointOrderResponse Response payload returned after a pickup point order is successfully confirmed.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseErrorsArr

type ResponseErrorsArr struct {
	// Errors Error payload array containing one or more errors
	Errors []Error `json:"errors"`
}

ResponseErrorsArr Error response entity

type SiteDetailsRequest

type SiteDetailsRequest struct {
	InboundToken                   []string                                         `json:"inboundToken"`
	LocationIdentifierCategoryCode SiteDetailsRequestLocationIdentifierCategoryCode `json:"locationIdentifierCategoryCode"`
}

SiteDetailsRequest Request payload for retrieving site details filtered by location identifier category.

type SiteDetailsRequestLocationIdentifierCategoryCode

type SiteDetailsRequestLocationIdentifierCategoryCode string

SiteDetailsRequestLocationIdentifierCategoryCode defines model for SiteDetailsRequest.LocationIdentifierCategoryCode.

const (
	SiteDetailsRequestLocationIdentifierCategoryCodeN01 SiteDetailsRequestLocationIdentifierCategoryCode = "01"
	SiteDetailsRequestLocationIdentifierCategoryCodeN02 SiteDetailsRequestLocationIdentifierCategoryCode = "02"
)

Defines values for SiteDetailsRequestLocationIdentifierCategoryCode.

type SiteDetailsResponse

type SiteDetailsResponse struct {
	// InquiryResponse Paginated response envelope containing transaction reference and pagination metadata.
	InquiryResponse InquiryResponseEnvelope `json:"inquiryResponse"`
	PickupPointList []PickupPoint           `json:"pickupPointList"`
}

SiteDetailsResponse Response payload containing paginated site details for pickup point locations.

type SubscriptionResponse

type SubscriptionResponse struct {
	EmailID                   *openapi_types.Email `json:"emailID,omitempty"`
	EmailSubscribedPlacardIDs *[]string            `json:"emailSubscribedPlacardIDs,omitempty"`
	IsEmailSubscribed         bool                 `json:"isEmailSubscribed"`
	IsSMSSubscribed           bool                 `json:"isSMSSubscribed"`
	Locale                    string               `json:"locale"`
	SmsPhone                  *string              `json:"smsPhone,omitempty"`
	SmsPhonePrefix            *string              `json:"smsPhonePrefix,omitempty"`
	SmsSubscribedPlacardIDs   *[]string            `json:"smsSubscribedPlacardIDs,omitempty"`
	SubscriptionType          string               `json:"subscriptionType"`
}

SubscriptionResponse Subscription preferences including notification channels and subscribed pickup point identifiers.

type SubscriptionSitesResponse

type SubscriptionSitesResponse struct {
	// Response Standard response envelope containing transaction reference information.
	Response OrderResponseEnvelope `json:"response"`

	// SubscriptionResponse Subscription preferences including notification channels and subscribed pickup point identifiers.
	SubscriptionResponse SubscriptionResponse `json:"subscriptionResponse"`
}

SubscriptionSitesResponse Response payload containing subscription details for the authenticated user's pickup point sites.

type TrackingRequest

type TrackingRequest struct {
	// EndDate End date in yyyyMMdd format.
	EndDate            string   `json:"endDate"`
	InboundToken       []string `json:"inboundToken"`
	LocationIdentifier string   `json:"locationIdentifier"`

	// StartDate Start date in yyyyMMdd format.
	StartDate string `json:"startDate"`
}

TrackingRequest Request payload for retrieving inbound tracking numbers for a pickup point location.

type TrackingResponse

type TrackingResponse struct {
	InboundTrackingList []InboundTrackingItem `json:"inboundTrackingList"`
	LocationIdentifier  string                `json:"locationIdentifier"`

	// Response Standard response envelope containing transaction reference information.
	Response OrderResponseEnvelope `json:"response"`
}

TrackingResponse Response payload containing inbound tracking numbers grouped by inbound token.

type TransactionRef

type TransactionRef struct {
	Client                string             `json:"client"`
	InformationSourceCode string             `json:"informationSourceCode"`
	Locale                string             `json:"locale"`
	SessionID             openapi_types.UUID `json:"sessionID"`
	TransactionID         openapi_types.UUID `json:"transactionID"`
}

TransactionRef Transaction reference details used to correlate API requests and responses.

type Unauthorized

type Unauthorized = ErrorResponse

Unauthorized Response object for error condition

Jump to

Keyboard shortcuts

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