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
- func NewConfirmPickupOrderRequest(server string, params *ConfirmPickupOrderParams, ...) (*http.Request, error)
- func NewConfirmPickupOrderRequestWithBody(server string, params *ConfirmPickupOrderParams, contentType string, ...) (*http.Request, error)
- func NewGetInboundTrackingNumbersRequest(server string, params *GetInboundTrackingNumbersParams, ...) (*http.Request, error)
- func NewGetInboundTrackingNumbersRequestWithBody(server string, params *GetInboundTrackingNumbersParams, contentType string, ...) (*http.Request, error)
- func NewGetSiteDetailsByDateRangeRequest(server string, startdate string, enddate string, ...) (*http.Request, error)
- func NewGetSiteDetailsByDateRangeRequestWithBody(server string, startdate string, enddate string, ...) (*http.Request, error)
- func NewGetSiteDetailsByDateRangeStandardFetchRequest(server string, startdate string, enddate string, ...) (*http.Request, error)
- func NewGetSubscriptionDetailsRequest(server string, params *GetSubscriptionDetailsParams) (*http.Request, error)
- type Authorization
- type BadRequest
- type Client
- func (c *Client) ConfirmPickupOrder(ctx context.Context, params *ConfirmPickupOrderParams, ...) (*http.Response, error)
- func (c *Client) ConfirmPickupOrderWithBody(ctx context.Context, params *ConfirmPickupOrderParams, contentType string, ...) (*http.Response, error)
- func (c *Client) GetInboundTrackingNumbers(ctx context.Context, params *GetInboundTrackingNumbersParams, ...) (*http.Response, error)
- func (c *Client) GetInboundTrackingNumbersWithBody(ctx context.Context, params *GetInboundTrackingNumbersParams, ...) (*http.Response, error)
- func (c *Client) GetSiteDetailsByDateRange(ctx context.Context, startdate string, enddate string, ...) (*http.Response, error)
- func (c *Client) GetSiteDetailsByDateRangeStandardFetch(ctx context.Context, startdate string, enddate string, ...) (*http.Response, error)
- func (c *Client) GetSiteDetailsByDateRangeWithBody(ctx context.Context, startdate string, enddate string, ...) (*http.Response, error)
- func (c *Client) GetSubscriptionDetails(ctx context.Context, params *GetSubscriptionDetailsParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ConfirmPickupOrderWithBodyWithResponse(ctx context.Context, params *ConfirmPickupOrderParams, contentType string, ...) (*ConfirmPickupOrderResponse, error)
- func (c *ClientWithResponses) ConfirmPickupOrderWithResponse(ctx context.Context, params *ConfirmPickupOrderParams, ...) (*ConfirmPickupOrderResponse, error)
- func (c *ClientWithResponses) GetInboundTrackingNumbersWithBodyWithResponse(ctx context.Context, params *GetInboundTrackingNumbersParams, ...) (*GetInboundTrackingNumbersResponse, error)
- func (c *ClientWithResponses) GetInboundTrackingNumbersWithResponse(ctx context.Context, params *GetInboundTrackingNumbersParams, ...) (*GetInboundTrackingNumbersResponse, error)
- func (c *ClientWithResponses) GetSiteDetailsByDateRangeStandardFetchWithResponse(ctx context.Context, startdate string, enddate string, ...) (*GetSiteDetailsByDateRangeStandardFetchResponse, error)
- func (c *ClientWithResponses) GetSiteDetailsByDateRangeWithBodyWithResponse(ctx context.Context, startdate string, enddate string, ...) (*GetSiteDetailsByDateRangeResponse, error)
- func (c *ClientWithResponses) GetSiteDetailsByDateRangeWithResponse(ctx context.Context, startdate string, enddate string, ...) (*GetSiteDetailsByDateRangeResponse, error)
- func (c *ClientWithResponses) GetSubscriptionDetailsWithResponse(ctx context.Context, params *GetSubscriptionDetailsParams, ...) (*GetSubscriptionDetailsResponse, error)
- type ClientWithResponsesInterface
- type CommunicationMediaType
- type ConfirmPickupOrderJSONRequestBody
- type ConfirmPickupOrderParams
- type ConfirmPickupOrderResponse
- type Conflict
- type DaySpecificDetail
- type Error
- type ErrorResponse
- type Forbidden
- type GetInboundTrackingNumbersJSONRequestBody
- type GetInboundTrackingNumbersParams
- type GetInboundTrackingNumbersResponse
- type GetSiteDetailsByDateRangeJSONRequestBody
- type GetSiteDetailsByDateRangeParams
- type GetSiteDetailsByDateRangeResponse
- type GetSiteDetailsByDateRangeStandardFetchParams
- type GetSiteDetailsByDateRangeStandardFetchResponse
- type GetSubscriptionDetailsParams
- type GetSubscriptionDetailsResponse
- type HttpRequestDoer
- type InboundTrackingItem
- type InquiryResponseEnvelope
- type InternalServerError
- type MediaTypeValue
- type NotFound
- type OrderResponseEnvelope
- type PickupPoint
- type PickupPointAddress
- type PickupPointOrderRequest
- type PickupPointOrderRequestLocationIdentifierCategoryCode
- type PickupPointOrderResponse
- type RequestEditorFn
- type ResponseErrorsArr
- type SiteDetailsRequest
- type SiteDetailsRequestLocationIdentifierCategoryCode
- type SiteDetailsResponse
- type SubscriptionResponse
- type SubscriptionSitesResponse
- type TrackingRequest
- type TrackingResponse
- type TransactionRef
- type Unauthorized
Constants ¶
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 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 (*Client) GetInboundTrackingNumbers ¶
func (c *Client) GetInboundTrackingNumbers(ctx context.Context, params *GetInboundTrackingNumbersParams, body GetInboundTrackingNumbersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetInboundTrackingNumbersWithBody ¶
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 (*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 ¶
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) 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 (c *ClientWithResponses) ConfirmPickupOrderWithResponse(ctx context.Context, params *ConfirmPickupOrderParams, body ConfirmPickupOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmPickupOrderResponse, error)
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) GetInboundTrackingNumbersWithResponse ¶
func (c *ClientWithResponses) GetInboundTrackingNumbersWithResponse(ctx context.Context, params *GetInboundTrackingNumbersParams, body GetInboundTrackingNumbersJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInboundTrackingNumbersResponse, error)
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 ¶
func (r ConfirmPickupOrderResponse) Status() string
Status returns HTTPResponse.Status
func (ConfirmPickupOrderResponse) StatusCode ¶
func (r ConfirmPickupOrderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 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 ¶
func (r GetInboundTrackingNumbersResponse) Status() string
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 ¶
func (r GetSiteDetailsByDateRangeResponse) Status() string
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 ¶
func (r GetSiteDetailsByDateRangeStandardFetchResponse) Status() string
Status returns HTTPResponse.Status
func (GetSiteDetailsByDateRangeStandardFetchResponse) StatusCode ¶
func (r GetSiteDetailsByDateRangeStandardFetchResponse) StatusCode() int
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 ¶
func (r GetSubscriptionDetailsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSubscriptionDetailsResponse) StatusCode ¶
func (r GetSubscriptionDetailsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
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 ¶
MediaTypeValue A single contact value (e.g. email address or phone number) for a communication channel.
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 ¶
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