pickupnotification

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 11 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 pickupnotification 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 (
	JWTAuthScopes = "JWTAuth.Scopes"
	OAuth2Scopes  = "OAuth2.Scopes"
)

Variables

This section is empty.

Functions

func NewAddAccountPickupPrefRequest

func NewAddAccountPickupPrefRequest(server string, params *AddAccountPickupPrefParams, body AddAccountPickupPrefJSONRequestBody) (*http.Request, error)

NewAddAccountPickupPrefRequest calls the generic AddAccountPickupPref builder with application/json body

func NewAddAccountPickupPrefRequestWithBody

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

NewAddAccountPickupPrefRequestWithBody generates requests for AddAccountPickupPref with any type of body

func NewGetUserAccountPickupRequest

func NewGetUserAccountPickupRequest(server string, params *GetUserAccountPickupParams) (*http.Request, error)

NewGetUserAccountPickupRequest generates requests for GetUserAccountPickup

Types

type AccountNumber

type AccountNumber = string

AccountNumber UPS shipper account number

type AccountPickupGetResponse

type AccountPickupGetResponse struct {
	// Payload Response payload - object containing the list of account pickup preferences
	Payload *[]struct {
		// AccountNumber UPS shipper account number
		AccountNumber *AccountNumber `json:"accountNumber,omitempty"`

		// Emails Emails associated with the account pickup preferences.
		Emails *[]openapi_types.Email `json:"emails,omitempty"`

		// Locale Preferred locale for account pickup. Format follows <a href="https://www.iso.org/iso-639-language-code.html" target="_blank">ISO 639M</a> language code and region code combination.
		Locale string `json:"locale"`

		// NotificationIndicators Notification indicators container. Notifications can be sent in email or/and SMS.
		NotificationIndicators NotificationIndicators `json:"notificationIndicators"`

		// VersionNumber System generated id that represents the version of the document.
		VersionNumber *int `json:"versionNumber,omitempty"`
	} `json:"payload,omitempty"`

	// StatusMessage Status message, will contain a count of elements in payload in case of success when no warnings
	StatusMessage string `json:"statusMessage"`

	// TimeStamp Response time stamp
	TimeStamp time.Time `json:"timeStamp"`
}

AccountPickupGetResponse defines model for AccountPickupGetResponse.

type AccountPickupModifyResponse

type AccountPickupModifyResponse struct {
	// Payload Response payload - object containing the list of account pickup preferences
	Payload *struct {
		// AccountNumber UPS shipper account number
		AccountNumber *AccountNumber `json:"accountNumber,omitempty"`

		// Emails Emails associated with the account pickup preferences.
		Emails *[]openapi_types.Email `json:"emails,omitempty"`

		// Locale Preferred locale for account pickup. Format follows <a href="https://www.iso.org/iso-639-language-code.html" target="_blank">ISO 639M</a> language code and region code combination.
		Locale string `json:"locale"`

		// NotificationIndicators Notification indicators container. Notifications can be sent in email or/and SMS.
		NotificationIndicators NotificationIndicators `json:"notificationIndicators"`

		// VersionNumber System generated id that represents the version of the document.
		VersionNumber *int `json:"versionNumber,omitempty"`
	} `json:"payload,omitempty"`

	// StatusMessage Status message, will contain a count of elements in payload in case of success when no warnings
	StatusMessage string `json:"statusMessage"`

	// TimeStamp Response time stamp
	TimeStamp time.Time `json:"timeStamp"`
}

AccountPickupModifyResponse defines model for AccountPickupModifyResponse.

type AccountPickupPreference

type AccountPickupPreference struct {
	// Emails Emails associated with the account pickup preferences.
	Emails *[]openapi_types.Email `json:"emails,omitempty"`

	// Locale Preferred locale for account pickup. Format follows <a href="https://www.iso.org/iso-639-language-code.html" target="_blank">ISO 639M</a> language code and region code combination.
	Locale string `json:"locale"`

	// NotificationIndicators Notification indicators container. Notifications can be sent in email or/and SMS.
	NotificationIndicators NotificationIndicators `json:"notificationIndicators"`
}

AccountPickupPreference Account Pickup preference entity

type AddAccountPickupPrefJSONRequestBody

type AddAccountPickupPrefJSONRequestBody = AccountPickupPreference

AddAccountPickupPrefJSONRequestBody defines body for AddAccountPickupPref for application/json ContentType.

type AddAccountPickupPrefParams

type AddAccountPickupPrefParams struct {
	// AccountNumber The account_number parameter is required to specify the account for which the pickup preferences are being set.
	AccountNumber AccountNumber `form:"account_number" json:"account_number"`

	// UUID User's UUID for preferences to be updated, needed for JWT, not required for OAuth2
	UUID *Uuid `json:"UUID,omitempty"`
}

AddAccountPickupPrefParams defines parameters for AddAccountPickupPref.

type AddAccountPickupPrefResponse

type AddAccountPickupPrefResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AccountPickupModifyResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseAddAccountPickupPrefResponse

func ParseAddAccountPickupPrefResponse(rsp *http.Response) (*AddAccountPickupPrefResponse, error)

ParseAddAccountPickupPrefResponse parses an HTTP response from a AddAccountPickupPrefWithResponse call

func (AddAccountPickupPrefResponse) Status

Status returns HTTPResponse.Status

func (AddAccountPickupPrefResponse) StatusCode

func (r AddAccountPickupPrefResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BackendErrorResponseHeaders

type BackendErrorResponseHeaders struct {
	// Apierrorcode The API error code.
	Apierrorcode string `json:"apierrorcode"`

	// Apierrormsg The API error message.
	Apierrormsg string `json:"apierrormsg"`

	// Bkndtransid The backend transaction id.
	Bkndtransid string `json:"bkndtransid"`
}

BackendErrorResponseHeaders The headers that are returned from the backend and gateway

type BaseResponse

type BaseResponse struct {
	// StatusMessage Status message, will contain a count of elements in payload in case of success when no warnings
	StatusMessage string `json:"statusMessage"`

	// TimeStamp Response time stamp
	TimeStamp time.Time `json:"timeStamp"`
}

BaseResponse Base Response object

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

func (c *Client) AddAccountPickupPref(ctx context.Context, params *AddAccountPickupPrefParams, body AddAccountPickupPrefJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddAccountPickupPrefWithBody

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

func (*Client) GetUserAccountPickup

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

type ClientInterface

type ClientInterface interface {
	// GetUserAccountPickup request
	GetUserAccountPickup(ctx context.Context, params *GetUserAccountPickupParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	AddAccountPickupPref(ctx context.Context, params *AddAccountPickupPrefParams, body AddAccountPickupPrefJSONRequestBody, 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) AddAccountPickupPrefWithBodyWithResponse

func (c *ClientWithResponses) AddAccountPickupPrefWithBodyWithResponse(ctx context.Context, params *AddAccountPickupPrefParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddAccountPickupPrefResponse, error)

AddAccountPickupPrefWithBodyWithResponse request with arbitrary body returning *AddAccountPickupPrefResponse

func (*ClientWithResponses) AddAccountPickupPrefWithResponse

func (*ClientWithResponses) GetUserAccountPickupWithResponse

func (c *ClientWithResponses) GetUserAccountPickupWithResponse(ctx context.Context, params *GetUserAccountPickupParams, reqEditors ...RequestEditorFn) (*GetUserAccountPickupResponse, error)

GetUserAccountPickupWithResponse request returning *GetUserAccountPickupResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetUserAccountPickupWithResponse request
	GetUserAccountPickupWithResponse(ctx context.Context, params *GetUserAccountPickupParams, reqEditors ...RequestEditorFn) (*GetUserAccountPickupResponse, error)

	// AddAccountPickupPrefWithBodyWithResponse request with any body
	AddAccountPickupPrefWithBodyWithResponse(ctx context.Context, params *AddAccountPickupPrefParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddAccountPickupPrefResponse, error)

	AddAccountPickupPrefWithResponse(ctx context.Context, params *AddAccountPickupPrefParams, body AddAccountPickupPrefJSONRequestBody, reqEditors ...RequestEditorFn) (*AddAccountPickupPrefResponse, error)
}

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

type CommonNotificationIndicators

type CommonNotificationIndicators struct {
	// DayBeforePickupInd Indicates whether to send notifications on the day before pickup.
	DayBeforePickupInd bool `json:"dayBeforePickupInd"`

	// DayOfPickupInd Indicates whether to send notifications on the day of pickup.
	DayOfPickupInd bool `json:"dayOfPickupInd"`

	// EnrollmentConfirmationInd Indicates enrollment confirmation
	EnrollmentConfirmationInd bool `json:"enrollmentConfirmationInd"`

	// PickupCancellationInd Indicates whether to send notifications on pickup cancellation.
	PickupCancellationInd bool `json:"pickupCancellationInd"`

	// PickupCompleteInd Indicates whether to send notifications on pickup completion.
	PickupCompleteInd bool `json:"pickupCompleteInd"`

	// PickupDelayedInd Indicates delayed pickup
	PickupDelayedInd bool `json:"pickupDelayedInd"`

	// PickupIncompleteNotificationInd Indicates incomplete pickup notification
	PickupIncompleteNotificationInd bool `json:"pickupIncompleteNotificationInd"`

	// PickupUpdateInd Indicates whether to send notifications on pickup schedule update.
	PickupUpdateInd bool `json:"pickupUpdateInd"`

	// PreArrivalInd Indicates whether to send notifications before arrival.
	PreArrivalInd bool `json:"preArrivalInd"`

	// SmartPickupCutOffNotificationTimeInd Indicates the Smart pickup cut off notification time
	SmartPickupCutOffNotificationTimeInd bool `json:"smartPickupCutOffNotificationTimeInd"`

	// SmartPickupTriggerCancellationInd Indicates Smart pickup trigger cancellation
	SmartPickupTriggerCancellationInd bool `json:"smartPickupTriggerCancellationInd"`

	// SmartPickupTriggerNotificationInd Indicates Smart pickup trigger notification
	SmartPickupTriggerNotificationInd bool `json:"smartPickupTriggerNotificationInd"`

	// SmartPickupTriggerWarningInd Indicates the Smart pickup trigger warning
	SmartPickupTriggerWarningInd bool `json:"smartPickupTriggerWarningInd"`
}

CommonNotificationIndicators Common notification indicators container.

type CustomerRegistrationNumber

type CustomerRegistrationNumber = string

CustomerRegistrationNumber System generated id for the User

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 GetUserAccountPickupParams

type GetUserAccountPickupParams struct {
	// AccountNumber The account_number is required to retrieve pickup preferences for a specific shipper account associated with the user.
	AccountNumber AccountNumber `form:"account_number" json:"account_number"`

	// UUID User's UUID for preferences to be updated, needed for JWT, not required for OAuth2
	UUID *Uuid `json:"UUID,omitempty"`
}

GetUserAccountPickupParams defines parameters for GetUserAccountPickup.

type GetUserAccountPickupResponse

type GetUserAccountPickupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AccountPickupGetResponse
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON404      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetUserAccountPickupResponse

func ParseGetUserAccountPickupResponse(rsp *http.Response) (*GetUserAccountPickupResponse, error)

ParseGetUserAccountPickupResponse parses an HTTP response from a GetUserAccountPickupWithResponse call

func (GetUserAccountPickupResponse) Status

Status returns HTTPResponse.Status

func (GetUserAccountPickupResponse) StatusCode

func (r GetUserAccountPickupResponse) 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 NotificationIndicators

type NotificationIndicators struct {
	// Email Common notification indicators container.
	Email *CommonNotificationIndicators `json:"email,omitempty"`

	// Sms Common notification indicators container.
	Sms *CommonNotificationIndicators `json:"sms,omitempty"`
}

NotificationIndicators Notification indicators container. Notifications can be sent in email or/and SMS.

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 SuccessResponseHeaders

type SuccessResponseHeaders struct {
	// Bkndtransid The backend transaction id.
	Bkndtransid string `json:"bkndtransid"`
}

SuccessResponseHeaders The headers that are returned for all error responses.

type Uuid

Uuid System generated id for the User

type VersionNumber

type VersionNumber struct {
	// VersionNumber System generated id that represents the version of the document.
	VersionNumber *int `json:"versionNumber,omitempty"`
}

VersionNumber Document version number

Jump to

Keyboard shortcuts

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