locations

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: 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 locations 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 (
	OAuthScopes      = "OAuth.Scopes"
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewGenerateLocationSignedURLRequest

func NewGenerateLocationSignedURLRequest(server string, fileID string) (*http.Request, error)

NewGenerateLocationSignedURLRequest generates requests for GenerateLocationSignedURL

func NewGetDropoffLocationRequest

func NewGetDropoffLocationRequest(server string, params *GetDropoffLocationParams) (*http.Request, error)

NewGetDropoffLocationRequest generates requests for GetDropoffLocation

func NewGetLocationFilesRequest

func NewGetLocationFilesRequest(server string) (*http.Request, error)

NewGetLocationFilesRequest generates requests for GetLocationFiles

func NewGetParcelLockerLocationRequest

func NewGetParcelLockerLocationRequest(server string, params *GetParcelLockerLocationParams) (*http.Request, error)

NewGetParcelLockerLocationRequest generates requests for GetParcelLockerLocation

func NewGetPostOfficeLocationRequest

func NewGetPostOfficeLocationRequest(server string, params *GetPostOfficeLocationParams) (*http.Request, error)

NewGetPostOfficeLocationRequest generates requests for GetPostOfficeLocation

Types

type AcceptedPackageTypes

type AcceptedPackageTypes struct {
	// MailClass The mail class accepted at the facility
	MailClass *AcceptedPackageTypesMailClass `json:"mailClass,omitempty"`

	// Palletized Designates whether the facility accepts palletized, non-palletized, or both.
	Palletized *AcceptedPackageTypesPalletized `json:"palletized,omitempty"`

	// ProcessingCategory Designates what shape the facility accepts for packages. For more information on package shapes see the [Physical Standards for Parcels](https://pe.usps.com/text/dmm300/201.htm#ep1097220).
	//
	//  Note:
	//  - `IRREGULAR` is unsupported as of 2/1/2025 and will no longer return.
	//  - `NON_MACHINABLE` is unsupported as of 2/1/2025 and will no longer return.
	ProcessingCategory *AcceptedPackageTypesProcessingCategory `json:"processingCategory,omitempty"`
}

AcceptedPackageTypes Accepted Package Types at USPS® Destination Entry Drop Shipment Location.

type AcceptedPackageTypesMailClass

type AcceptedPackageTypesMailClass string

AcceptedPackageTypesMailClass The mail class accepted at the facility

const (
	AcceptedPackageTypesMailClassBOUNDPRINTEDMATTER      AcceptedPackageTypesMailClass = "BOUND_PRINTED_MATTER"
	AcceptedPackageTypesMailClassLIBRARYMAIL             AcceptedPackageTypesMailClass = "LIBRARY_MAIL"
	AcceptedPackageTypesMailClassMEDIAMAIL               AcceptedPackageTypesMailClass = "MEDIA_MAIL"
	AcceptedPackageTypesMailClassPARCELSELECT            AcceptedPackageTypesMailClass = "PARCEL_SELECT"
	AcceptedPackageTypesMailClassPARCELSELECTLIGHTWEIGHT AcceptedPackageTypesMailClass = "PARCEL_SELECT_LIGHTWEIGHT"
	AcceptedPackageTypesMailClassUSPSCONNECTLOCAL        AcceptedPackageTypesMailClass = "USPS_CONNECT_LOCAL"
	AcceptedPackageTypesMailClassUSPSCONNECTMAIL         AcceptedPackageTypesMailClass = "USPS_CONNECT_MAIL"
	AcceptedPackageTypesMailClassUSPSCONNECTREGIONAL     AcceptedPackageTypesMailClass = "USPS_CONNECT_REGIONAL"
)

Defines values for AcceptedPackageTypesMailClass.

type AcceptedPackageTypesPalletized

type AcceptedPackageTypesPalletized string

AcceptedPackageTypesPalletized Designates whether the facility accepts palletized, non-palletized, or both.

const (
	AcceptedPackageTypesPalletizedBOTH          AcceptedPackageTypesPalletized = "BOTH"
	AcceptedPackageTypesPalletizedNONPALLETIZED AcceptedPackageTypesPalletized = "NON_PALLETIZED"
	AcceptedPackageTypesPalletizedPALLETIZED    AcceptedPackageTypesPalletized = "PALLETIZED"
)

Defines values for AcceptedPackageTypesPalletized.

type AcceptedPackageTypesProcessingCategory

type AcceptedPackageTypesProcessingCategory string

AcceptedPackageTypesProcessingCategory Designates what shape the facility accepts for packages. For more information on package shapes see the [Physical Standards for Parcels](https://pe.usps.com/text/dmm300/201.htm#ep1097220).

Note:
- `IRREGULAR` is unsupported as of 2/1/2025 and will no longer return.
- `NON_MACHINABLE` is unsupported as of 2/1/2025 and will no longer return.
const (
	AcceptedPackageTypesProcessingCategoryFLATS         AcceptedPackageTypesProcessingCategory = "FLATS"
	AcceptedPackageTypesProcessingCategoryIRREGULAR     AcceptedPackageTypesProcessingCategory = "IRREGULAR"
	AcceptedPackageTypesProcessingCategoryMACHINABLE    AcceptedPackageTypesProcessingCategory = "MACHINABLE"
	AcceptedPackageTypesProcessingCategoryNONMACHINABLE AcceptedPackageTypesProcessingCategory = "NON_MACHINABLE"
	AcceptedPackageTypesProcessingCategoryNONSTANDARD   AcceptedPackageTypesProcessingCategory = "NONSTANDARD"
)

Defines values for AcceptedPackageTypesProcessingCategory.

type Address

type Address struct {
	// CityAbbreviation This is the abbreviation of city name for the address.
	CityAbbreviation *string `json:"cityAbbreviation,omitempty"`

	// SecondaryAddress The secondary unit designator, such as apartment(APT) or suite(STE) number, defining the exact location of the address within a building.  For more information please see [Postal Explorer](https://pe.usps.com/text/pub28/28c2_003.htm).
	SecondaryAddress *string `json:"secondaryAddress,omitempty"`

	// StreetAddress The number of a building along with the name of the road or street on which it is located.
	StreetAddress *string `json:"streetAddress,omitempty"`

	// StreetAddressAbbreviation This is the abbreviation of street address line for the address.
	StreetAddressAbbreviation *string                `json:"streetAddressAbbreviation,omitempty"`
	AdditionalProperties      map[string]interface{} `json:"-"`
}

Address Address fields standard to all locations.

func (Address) Get

func (a Address) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Address. Returns the specified element and whether it was found

func (Address) MarshalJSON

func (a Address) MarshalJSON() ([]byte, error)

Override default JSON handling for Address to handle AdditionalProperties

func (*Address) Set

func (a *Address) Set(fieldName string, value interface{})

Setter for additional properties for Address

func (*Address) UnmarshalJSON

func (a *Address) UnmarshalJSON(b []byte) error

Override default JSON handling for Address to handle AdditionalProperties

type BusinessService

type BusinessService = []string

BusinessService defines model for BusinessService.

type City

type City = string

City defines model for City.

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

func (c *Client) GenerateLocationSignedURL(ctx context.Context, fileID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDropoffLocation

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

func (*Client) GetLocationFiles

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

func (*Client) GetParcelLockerLocation

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

func (*Client) GetPostOfficeLocation

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

type ClientInterface

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

	// GetLocationFiles request
	GetLocationFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateLocationSignedURL request
	GenerateLocationSignedURL(ctx context.Context, fileID string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetParcelLockerLocation request
	GetParcelLockerLocation(ctx context.Context, params *GetParcelLockerLocationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPostOfficeLocation request
	GetPostOfficeLocation(ctx context.Context, params *GetPostOfficeLocationParams, 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) GenerateLocationSignedURLWithResponse

func (c *ClientWithResponses) GenerateLocationSignedURLWithResponse(ctx context.Context, fileID string, reqEditors ...RequestEditorFn) (*GenerateLocationSignedURLResponse, error)

GenerateLocationSignedURLWithResponse request returning *GenerateLocationSignedURLResponse

func (*ClientWithResponses) GetDropoffLocationWithResponse

func (c *ClientWithResponses) GetDropoffLocationWithResponse(ctx context.Context, params *GetDropoffLocationParams, reqEditors ...RequestEditorFn) (*GetDropoffLocationResponse, error)

GetDropoffLocationWithResponse request returning *GetDropoffLocationResponse

func (*ClientWithResponses) GetLocationFilesWithResponse

func (c *ClientWithResponses) GetLocationFilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLocationFilesResponse, error)

GetLocationFilesWithResponse request returning *GetLocationFilesResponse

func (*ClientWithResponses) GetParcelLockerLocationWithResponse

func (c *ClientWithResponses) GetParcelLockerLocationWithResponse(ctx context.Context, params *GetParcelLockerLocationParams, reqEditors ...RequestEditorFn) (*GetParcelLockerLocationResponse, error)

GetParcelLockerLocationWithResponse request returning *GetParcelLockerLocationResponse

func (*ClientWithResponses) GetPostOfficeLocationWithResponse

func (c *ClientWithResponses) GetPostOfficeLocationWithResponse(ctx context.Context, params *GetPostOfficeLocationParams, reqEditors ...RequestEditorFn) (*GetPostOfficeLocationResponse, error)

GetPostOfficeLocationWithResponse request returning *GetPostOfficeLocationResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetDropoffLocationWithResponse request
	GetDropoffLocationWithResponse(ctx context.Context, params *GetDropoffLocationParams, reqEditors ...RequestEditorFn) (*GetDropoffLocationResponse, error)

	// GetLocationFilesWithResponse request
	GetLocationFilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLocationFilesResponse, error)

	// GenerateLocationSignedURLWithResponse request
	GenerateLocationSignedURLWithResponse(ctx context.Context, fileID string, reqEditors ...RequestEditorFn) (*GenerateLocationSignedURLResponse, error)

	// GetParcelLockerLocationWithResponse request
	GetParcelLockerLocationWithResponse(ctx context.Context, params *GetParcelLockerLocationParams, reqEditors ...RequestEditorFn) (*GetParcelLockerLocationResponse, error)

	// GetPostOfficeLocationWithResponse request
	GetPostOfficeLocationWithResponse(ctx context.Context, params *GetPostOfficeLocationParams, reqEditors ...RequestEditorFn) (*GetPostOfficeLocationResponse, error)
}

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

type CutOffTimesDropOff

type CutOffTimesDropOff struct {
	// CutOffTime The cut off time represented in military time.
	CutOffTime *string `json:"cutOffTime,omitempty"`

	// DayOfWeek The day of the week for the cut off time.
	DayOfWeek *CutOffTimesDropOffDayOfWeek `json:"dayOfWeek,omitempty"`
}

CutOffTimesDropOff The latest supported drop off times to receive Connect Local® Same/Next Day service.

type CutOffTimesDropOffDayOfWeek

type CutOffTimesDropOffDayOfWeek string

CutOffTimesDropOffDayOfWeek The day of the week for the cut off time.

const (
	CutOffTimesDropOffDayOfWeekFRIDAY    CutOffTimesDropOffDayOfWeek = "FRIDAY"
	CutOffTimesDropOffDayOfWeekHOLIDAY   CutOffTimesDropOffDayOfWeek = "HOLIDAY"
	CutOffTimesDropOffDayOfWeekMONDAY    CutOffTimesDropOffDayOfWeek = "MONDAY"
	CutOffTimesDropOffDayOfWeekSATURDAY  CutOffTimesDropOffDayOfWeek = "SATURDAY"
	CutOffTimesDropOffDayOfWeekSUNDAY    CutOffTimesDropOffDayOfWeek = "SUNDAY"
	CutOffTimesDropOffDayOfWeekTHURSDAY  CutOffTimesDropOffDayOfWeek = "THURSDAY"
	CutOffTimesDropOffDayOfWeekTUESDAY   CutOffTimesDropOffDayOfWeek = "TUESDAY"
	CutOffTimesDropOffDayOfWeekWEDNESDAY CutOffTimesDropOffDayOfWeek = "WEDNESDAY"
)

Defines values for CutOffTimesDropOffDayOfWeek.

type CutOffTimesPickup

type CutOffTimesPickup struct {
	// CutOffTime The cut off time represented in military time.
	CutOffTime *string `json:"cutOffTime,omitempty"`

	// DayOfWeek The day of the week for the cut off time.
	DayOfWeek *CutOffTimesPickupDayOfWeek `json:"dayOfWeek,omitempty"`
}

CutOffTimesPickup The latest supported carrier pickup time to receive Connect Local® Same Day service.

type CutOffTimesPickupDayOfWeek

type CutOffTimesPickupDayOfWeek string

CutOffTimesPickupDayOfWeek The day of the week for the cut off time.

const (
	CutOffTimesPickupDayOfWeekFRIDAY    CutOffTimesPickupDayOfWeek = "FRIDAY"
	CutOffTimesPickupDayOfWeekHOLIDAY   CutOffTimesPickupDayOfWeek = "HOLIDAY"
	CutOffTimesPickupDayOfWeekMONDAY    CutOffTimesPickupDayOfWeek = "MONDAY"
	CutOffTimesPickupDayOfWeekSATURDAY  CutOffTimesPickupDayOfWeek = "SATURDAY"
	CutOffTimesPickupDayOfWeekSUNDAY    CutOffTimesPickupDayOfWeek = "SUNDAY"
	CutOffTimesPickupDayOfWeekTHURSDAY  CutOffTimesPickupDayOfWeek = "THURSDAY"
	CutOffTimesPickupDayOfWeekTUESDAY   CutOffTimesPickupDayOfWeek = "TUESDAY"
	CutOffTimesPickupDayOfWeekWEDNESDAY CutOffTimesPickupDayOfWeek = "WEDNESDAY"
)

Defines values for CutOffTimesPickupDayOfWeek.

type DestinationEntryFacilityType

type DestinationEntryFacilityType string

DestinationEntryFacilityType defines model for DestinationEntryFacilityType.

const (
	DestinationEntryFacilityTypeDESTINATIONDELIVERYUNIT                         DestinationEntryFacilityType = "DESTINATION_DELIVERY_UNIT"
	DestinationEntryFacilityTypeDESTINATIONNETWORKDISTRIBUTIONCENTER            DestinationEntryFacilityType = "DESTINATION_NETWORK_DISTRIBUTION_CENTER"
	DestinationEntryFacilityTypeDESTINATIONREGIONALPROCESSINGDISTRIBUTIONCENTER DestinationEntryFacilityType = "DESTINATION_REGIONAL_PROCESSING_DISTRIBUTION_CENTER"
	DestinationEntryFacilityTypeDESTINATIONSECTIONALCENTERFACILITY              DestinationEntryFacilityType = "DESTINATION_SECTIONAL_CENTER_FACILITY"
	DestinationEntryFacilityTypeDESTINATIONSERVICEHUB                           DestinationEntryFacilityType = "DESTINATION_SERVICE_HUB"
)

Defines values for DestinationEntryFacilityType.

type DestinationZIPCode

type DestinationZIPCode = string

DestinationZIPCode defines model for DestinationZIPCode.

type DestinationZIPPlus4

type DestinationZIPPlus4 = string

DestinationZIPPlus4 defines model for DestinationZIPPlus4.

type DomesticAddress

type DomesticAddress struct {
	// ZIPCode This is the 5-digit ZIP code.
	ZIPCode *string `json:"ZIPCode,omitempty"`

	// ZIPPlus4 This is the ZIP+4 extension.
	ZIPPlus4 *string `json:"ZIPPlus4,omitempty"`

	// City This is the city name of the address.
	City *string `json:"city,omitempty"`

	// CityAbbreviation This is the abbreviation of city name for the address.
	CityAbbreviation *string `json:"cityAbbreviation,omitempty"`

	// SecondaryAddress The secondary unit designator, such as apartment(APT) or suite(STE) number, defining the exact location of the address within a building.  For more information please see [Postal Explorer](https://pe.usps.com/text/pub28/28c2_003.htm).
	SecondaryAddress *string `json:"secondaryAddress,omitempty"`

	// State This is two-character state code of the address.
	State *string `json:"state,omitempty"`

	// StreetAddress The number of a building along with the name of the road or street on which it is located.
	StreetAddress *string `json:"streetAddress,omitempty"`

	// StreetAddressAbbreviation This is the abbreviation of street address line for the address.
	StreetAddressAbbreviation *string `json:"streetAddressAbbreviation,omitempty"`

	// Urbanization An area, sector, or residential development within a geographic area (typically used for addresses in Puerto Rico)
	Urbanization         *string                `json:"urbanization,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

DomesticAddress defines model for DomesticAddress.

func (DomesticAddress) Get

func (a DomesticAddress) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for DomesticAddress. Returns the specified element and whether it was found

func (DomesticAddress) MarshalJSON

func (a DomesticAddress) MarshalJSON() ([]byte, error)

Override default JSON handling for DomesticAddress to handle AdditionalProperties

func (*DomesticAddress) Set

func (a *DomesticAddress) Set(fieldName string, value interface{})

Setter for additional properties for DomesticAddress

func (*DomesticAddress) UnmarshalJSON

func (a *DomesticAddress) UnmarshalJSON(b []byte) error

Override default JSON handling for DomesticAddress to handle AdditionalProperties

type DropShipmentLocation

type DropShipmentLocation struct {
	// DSTObserved Indicator for whether Daylight Savings Time is observed for a given facility.
	DSTObserved *bool `json:"DSTObserved,omitempty"`

	// USPSConnectDetails Provides details on USPS Connect® services offered at the facility.
	USPSConnectDetails *USPSConnect `json:"USPSConnectDetails,omitempty"`

	// AcceptedPackageTypes Accepted Package Types at USPS® Destination Entry Drop Shipment Location.
	AcceptedPackageTypes *[]AcceptedPackageTypes `json:"acceptedPackageTypes,omitempty"`

	// DestinationEntryFacilityType The destination entry service accepted at the facility.
	//
	// Note:
	// * Effective 01/18/2026: `DESTINATION_NETWORK_DISTRIBUTION_CENTER` with `PARCEL_SELECT` is no longer eligible.
	// * Effective 01/18/2026: (NSA Only) `DESTINATION_REGIONAL_PROCESSING_DISTRIBUTION_CENTER` with `PARCEL_SELECT` is available as an option.
	DestinationEntryFacilityType *DropShipmentLocationDestinationEntryFacilityType `json:"destinationEntryFacilityType,omitempty"`

	// ZIPCodeValue 5-digit ZIP code.
	ZIPCodeValue *ZIPCodeValue `json:"destinationZIPCode,omitempty"`

	// DropShipAcceptanceTimes The available acceptance times and days for drop shipments.
	DropShipAcceptanceTimes *[]HoursOfOperation `json:"dropShipAcceptanceTimes,omitempty"`

	// DropShipmentFacilityDetails Information about the drop-off location facility.
	DropShipmentFacilityDetails *FacilityDetails `json:"dropShipmentFacilityDetails,omitempty"`

	// DropShipmentKey the unique identifier for the facility.
	DropShipmentKey *string `json:"dropShipmentKey,omitempty"`

	// DropSitePhoneNumber The phone number for the facility.
	DropSitePhoneNumber *string `json:"dropSitePhoneNumber,omitempty"`
	FacilityAddress     *struct {
		// Address Address fields for US locations
		Address *DomesticAddress `json:"address,omitempty"`
	} `json:"facilityAddress,omitempty"`

	// FacilityName The name of the facility.
	FacilityName *string `json:"facilityName,omitempty"`

	// TimeZone The time zone returned for a given facility.
	TimeZone *string `json:"timeZone,omitempty"`
}

DropShipmentLocation USPS® Destination Entry Drop Shipment Location

type DropShipmentLocationDestinationEntryFacilityType

type DropShipmentLocationDestinationEntryFacilityType string

DropShipmentLocationDestinationEntryFacilityType The destination entry service accepted at the facility.

Note: * Effective 01/18/2026: `DESTINATION_NETWORK_DISTRIBUTION_CENTER` with `PARCEL_SELECT` is no longer eligible. * Effective 01/18/2026: (NSA Only) `DESTINATION_REGIONAL_PROCESSING_DISTRIBUTION_CENTER` with `PARCEL_SELECT` is available as an option.

const (
	DropShipmentLocationDestinationEntryFacilityTypeDESTINATIONDELIVERYUNIT                         DropShipmentLocationDestinationEntryFacilityType = "DESTINATION_DELIVERY_UNIT"
	DropShipmentLocationDestinationEntryFacilityTypeDESTINATIONNETWORKDISTRIBUTIONCENTER            DropShipmentLocationDestinationEntryFacilityType = "DESTINATION_NETWORK_DISTRIBUTION_CENTER"
	DropShipmentLocationDestinationEntryFacilityTypeDESTINATIONREGIONALPROCESSINGDISTRIBUTIONCENTER DropShipmentLocationDestinationEntryFacilityType = "DESTINATION_REGIONAL_PROCESSING_DISTRIBUTION_CENTER"
	DropShipmentLocationDestinationEntryFacilityTypeDESTINATIONSECTIONALCENTERFACILITY              DropShipmentLocationDestinationEntryFacilityType = "DESTINATION_SECTIONAL_CENTER_FACILITY"
	DropShipmentLocationDestinationEntryFacilityTypeDESTINATIONSERVICEHUB                           DropShipmentLocationDestinationEntryFacilityType = "DESTINATION_SERVICE_HUB"
)

Defines values for DropShipmentLocationDestinationEntryFacilityType.

type ErrorMessage

type ErrorMessage struct {
	// ApiVersion The version of the API that was used and that raised the error.
	ApiVersion *string `json:"apiVersion,omitempty"`

	// Error The high-level error that has occurred as indicated by the status code.
	Error                *ErrorMessage_Error    `json:"error,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ErrorMessage Standard error message response.

func (ErrorMessage) Get

func (a ErrorMessage) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ErrorMessage. Returns the specified element and whether it was found

func (ErrorMessage) MarshalJSON

func (a ErrorMessage) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorMessage to handle AdditionalProperties

func (*ErrorMessage) Set

func (a *ErrorMessage) Set(fieldName string, value interface{})

Setter for additional properties for ErrorMessage

func (*ErrorMessage) UnmarshalJSON

func (a *ErrorMessage) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorMessage to handle AdditionalProperties

type ErrorMessage_Error

type ErrorMessage_Error struct {
	// Code The error status code that has been returned in response to the request.
	Code   *string                           `json:"code,omitempty"`
	Errors *[]ErrorMessage_Error_Errors_Item `json:"errors,omitempty"`

	// Message A human-readable message describing the error.
	Message              *string                `json:"message,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ErrorMessage_Error The high-level error that has occurred as indicated by the status code.

func (ErrorMessage_Error) Get

func (a ErrorMessage_Error) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ErrorMessage_Error. Returns the specified element and whether it was found

func (ErrorMessage_Error) MarshalJSON

func (a ErrorMessage_Error) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorMessage_Error to handle AdditionalProperties

func (*ErrorMessage_Error) Set

func (a *ErrorMessage_Error) Set(fieldName string, value interface{})

Setter for additional properties for ErrorMessage_Error

func (*ErrorMessage_Error) UnmarshalJSON

func (a *ErrorMessage_Error) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorMessage_Error to handle AdditionalProperties

type ErrorMessage_Error_Errors_Item

type ErrorMessage_Error_Errors_Item struct {
	// Code An internal subordinate code used for error diagnosis.
	Code *string `json:"code,omitempty"`

	// Detail A human-readable description of the error that occurred.
	Detail *string `json:"detail,omitempty"`

	// Source The element that is suspected of originating the error.  Helps to pinpoint the problem.
	Source *ErrorMessage_Error_Errors_Source `json:"source,omitempty"`

	// Status The status code response returned to the client.
	Status *string `json:"status,omitempty"`

	// Title A human-readable title that identifies the error.
	Title                *string                `json:"title,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ErrorMessage_Error_Errors_Item defines model for ErrorMessage.Error.Errors.Item.

func (ErrorMessage_Error_Errors_Item) Get

func (a ErrorMessage_Error_Errors_Item) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ErrorMessage_Error_Errors_Item. Returns the specified element and whether it was found

func (ErrorMessage_Error_Errors_Item) MarshalJSON

func (a ErrorMessage_Error_Errors_Item) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorMessage_Error_Errors_Item to handle AdditionalProperties

func (*ErrorMessage_Error_Errors_Item) Set

func (a *ErrorMessage_Error_Errors_Item) Set(fieldName string, value interface{})

Setter for additional properties for ErrorMessage_Error_Errors_Item

func (*ErrorMessage_Error_Errors_Item) UnmarshalJSON

func (a *ErrorMessage_Error_Errors_Item) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorMessage_Error_Errors_Item to handle AdditionalProperties

type ErrorMessage_Error_Errors_Source

type ErrorMessage_Error_Errors_Source struct {
	// Example An example of a valid value for the input parameter.
	Example *string `json:"example,omitempty"`

	// Parameter The input in the request which caused an error.
	Parameter            *string                `json:"parameter,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ErrorMessage_Error_Errors_Source The element that is suspected of originating the error. Helps to pinpoint the problem.

func (ErrorMessage_Error_Errors_Source) Get

func (a ErrorMessage_Error_Errors_Source) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ErrorMessage_Error_Errors_Source. Returns the specified element and whether it was found

func (ErrorMessage_Error_Errors_Source) MarshalJSON

func (a ErrorMessage_Error_Errors_Source) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorMessage_Error_Errors_Source to handle AdditionalProperties

func (*ErrorMessage_Error_Errors_Source) Set

func (a *ErrorMessage_Error_Errors_Source) Set(fieldName string, value interface{})

Setter for additional properties for ErrorMessage_Error_Errors_Source

func (*ErrorMessage_Error_Errors_Source) UnmarshalJSON

func (a *ErrorMessage_Error_Errors_Source) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorMessage_Error_Errors_Source to handle AdditionalProperties

type FacilityDetails

type FacilityDetails struct {
	// CanopyClearance Clearance between the yard surface and the underside of the loading / unloading area canopy or overhang (in feet).
	CanopyClearance *int `json:"canopyClearance,omitempty"`
	Dock            *struct {
		// Depth The depth of the dock, or distance from the dock doors to the wall which separates the dock from the other sections of the facility (in feet).
		Depth *int `json:"depth,omitempty"`

		// Height The loading dock height, or distance from the yard surface to the dock surface level (in inches).
		Height *int `json:"height,omitempty"`

		// Width The width of the dock from one end to the other  (in feet).
		Width *int `json:"width,omitempty"`
	} `json:"dock,omitempty"`

	// DoorDetails Information regarding the dock door size and yard surface distance to the loading dock door.
	DoorDetails *struct {
		// Height The height of the tallest dock door (in feet).
		Height *int `json:"height,omitempty"`

		// NumberOfSteps The number of steps between the yard surface and the loading dock door.
		NumberOfSteps *int `json:"numberOfSteps,omitempty"`

		// Width The width of the largest dock door (in feet).
		Width *int `json:"width,omitempty"`
	} `json:"doorDetails,omitempty"`

	// Levelers The amount of levelers, by leveler type, available at a facility.
	Levelers *struct {
		// HydraulicLevelers The number of hydraulic levelers available at the facility.
		HydraulicLevelers *int `json:"hydraulicLevelers,omitempty"`

		// ManualLevelers The number of manual levelers available at the facility.
		ManualLevelers *int `json:"manualLevelers,omitempty"`

		// ScissorLevelers The number of scissor levelers available at the facility.
		ScissorLevelers *int `json:"scissorLevelers,omitempty"`
	} `json:"levelers,omitempty"`

	// LiftTypes Types of lifts available at the facility.
	LiftTypes *struct {
		// CageStackerLift Indicates whether a cage stacker lift is available at the facility.
		CageStackerLift *bool `json:"cageStackerLift,omitempty"`

		// ElectricGasLift Indicates whether a electric or gas lift is available at the facility.
		ElectricGasLift *bool `json:"electricGasLift,omitempty"`

		// ManualLift Indicates whether a manual lift is available at the facility.
		ManualLift *bool `json:"manualLift,omitempty"`

		// RollerTableExtenderLift Indicates whether a roller table or extender lift is available at the facility.
		RollerTableExtenderLift *bool `json:"rollerTableExtenderLift,omitempty"`
	} `json:"liftTypes,omitempty"`

	// OverpassDetails The number of overpasses and the lowest overpass height between the facility and the highway exit.
	OverpassDetails *struct {
		// LowestOverpass The lowest overpass height between the facility and highway exit (in feet).
		LowestOverpass *int `json:"lowestOverpass,omitempty"`

		// NumberOfOverpasses the number of overpasses between the facility and the highway exit.
		NumberOfOverpasses *int `json:"numberOfOverpasses,omitempty"`
	} `json:"overpassDetails,omitempty"`

	// Ramps Details on ramps available at the facility.
	Ramps *struct {
		// NumberOfRamps The number of inclined ramps at the facility.
		NumberOfRamps *int `json:"numberOfRamps,omitempty"`

		// WidestRamp The widest inclined ramp available at the facility (in feet).
		WidestRamp *int `json:"widestRamp,omitempty"`
	} `json:"ramps,omitempty"`

	// TruckManeuveringArea Details on the maneuvering area at the facility.
	TruckManeuveringArea *struct {
		// Length The length of the truck maneuvering area (in feet).
		Length *int `json:"length,omitempty"`

		// SurfaceType The type of material used to create the truck maneuvering area.
		SurfaceType *FacilityDetailsTruckManeuveringAreaSurfaceType `json:"surfaceType,omitempty"`

		// Width The width of the truck maneuvering area (in feet).
		Width *int `json:"width,omitempty"`
	} `json:"truckManeuveringArea,omitempty"`
}

FacilityDetails Information about the drop-off location facility.

type FacilityDetailsTruckManeuveringAreaSurfaceType

type FacilityDetailsTruckManeuveringAreaSurfaceType string

FacilityDetailsTruckManeuveringAreaSurfaceType The type of material used to create the truck maneuvering area.

Defines values for FacilityDetailsTruckManeuveringAreaSurfaceType.

type FinancialService

type FinancialService = []string

FinancialService defines model for FinancialService.

type GenerateLocationSignedURLResponse

type GenerateLocationSignedURLResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SignedURLResponse
	JSON400      *ErrorMessage
	XML400       *ErrorMessage
	JSON401      *ErrorMessage
	XML401       *ErrorMessage
	JSON403      *ErrorMessage
	XML403       *ErrorMessage
	JSON404      *ErrorMessage
	XML404       *ErrorMessage
	JSON503      *ErrorMessage
	XML503       *ErrorMessage
}

func ParseGenerateLocationSignedURLResponse

func ParseGenerateLocationSignedURLResponse(rsp *http.Response) (*GenerateLocationSignedURLResponse, error)

ParseGenerateLocationSignedURLResponse parses an HTTP response from a GenerateLocationSignedURLWithResponse call

func (GenerateLocationSignedURLResponse) Status

Status returns HTTPResponse.Status

func (GenerateLocationSignedURLResponse) StatusCode

func (r GenerateLocationSignedURLResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDropoffLocationParams

type GetDropoffLocationParams struct {
	// DestinationZIPCode The destination ZIP Code™ of the package.
	DestinationZIPCode DestinationZIPCode `form:"destinationZIPCode" json:"destinationZIPCode"`

	// DestinationZIPPlus4 This is the 4-digit component of the ZIP+4 code. Using the correct Zip+4 reduces the number of times your mail is handled and can decrease the chance of a misdelivery or error.
	DestinationZIPPlus4 *DestinationZIPPlus4 `form:"destinationZIPPlus4,omitempty" json:"destinationZIPPlus4,omitempty"`

	// MailClass The mail class of the package being shipped:
	//   example: PARCEL_SELECT
	MailClass *GetDropoffLocationParamsMailClass `form:"mailClass,omitempty" json:"mailClass,omitempty"`

	// ProcessingCategory The shape of the package being shipped, for more information on package shapes see the [Physical Standards for Parcels](https://pe.usps.com/text/dmm300/201.htm#ep1097220).
	//
	// Note:
	// - `IRREGULAR` is deprecated as of 2/1/2025 and will convert to `NONSTANDARD`.
	// - `NON_MACHINABLE` is deprecated as of 2/1/2025 and will convert to `NONSTANDARD`.
	ProcessingCategory *GetDropoffLocationParamsProcessingCategory `form:"processingCategory,omitempty" json:"processingCategory,omitempty"`

	// DestinationEntryFacilityType Indicates the facility type at which the packages will be dropped off.
	DestinationEntryFacilityType *GetDropoffLocationParamsDestinationEntryFacilityType `form:"destinationEntryFacilityType,omitempty" json:"destinationEntryFacilityType,omitempty"`

	// Palletized Indicates if the shipment or part of the shipment is being received on a pallet.
	Palletized *GetDropoffLocationParamsPalletized `form:"palletized,omitempty" json:"palletized,omitempty"`

	// MailingDate The date the package will be mailed.
	// Defaults to today when omitted.
	// The mailing date may be today plus 0 to 7 days in advance.
	// Enter the date in the full-date notation as defined by [RFC 3339, section 5.6](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6).
	MailingDate *MailingDate `form:"mailingDate,omitempty" json:"mailingDate,omitempty"`
}

GetDropoffLocationParams defines parameters for GetDropoffLocation.

type GetDropoffLocationParamsDestinationEntryFacilityType

type GetDropoffLocationParamsDestinationEntryFacilityType string

GetDropoffLocationParamsDestinationEntryFacilityType defines parameters for GetDropoffLocation.

const (
	DESTINATIONDELIVERYUNIT                         GetDropoffLocationParamsDestinationEntryFacilityType = "DESTINATION_DELIVERY_UNIT"
	DESTINATIONNETWORKDISTRIBUTIONCENTER            GetDropoffLocationParamsDestinationEntryFacilityType = "DESTINATION_NETWORK_DISTRIBUTION_CENTER"
	DESTINATIONREGIONALPROCESSINGDISTRIBUTIONCENTER GetDropoffLocationParamsDestinationEntryFacilityType = "DESTINATION_REGIONAL_PROCESSING_DISTRIBUTION_CENTER"
	DESTINATIONSECTIONALCENTERFACILITY              GetDropoffLocationParamsDestinationEntryFacilityType = "DESTINATION_SECTIONAL_CENTER_FACILITY"
	DESTINATIONSERVICEHUB                           GetDropoffLocationParamsDestinationEntryFacilityType = "DESTINATION_SERVICE_HUB"
)

Defines values for GetDropoffLocationParamsDestinationEntryFacilityType.

type GetDropoffLocationParamsMailClass

type GetDropoffLocationParamsMailClass string

GetDropoffLocationParamsMailClass defines parameters for GetDropoffLocation.

const (
	GetDropoffLocationParamsMailClassBOUNDPRINTEDMATTER      GetDropoffLocationParamsMailClass = "BOUND_PRINTED_MATTER"
	GetDropoffLocationParamsMailClassLIBRARYMAIL             GetDropoffLocationParamsMailClass = "LIBRARY_MAIL"
	GetDropoffLocationParamsMailClassMEDIAMAIL               GetDropoffLocationParamsMailClass = "MEDIA_MAIL"
	GetDropoffLocationParamsMailClassPARCELSELECT            GetDropoffLocationParamsMailClass = "PARCEL_SELECT"
	GetDropoffLocationParamsMailClassPARCELSELECTLIGHTWEIGHT GetDropoffLocationParamsMailClass = "PARCEL_SELECT_LIGHTWEIGHT"
	GetDropoffLocationParamsMailClassUSPSCONNECTLOCAL        GetDropoffLocationParamsMailClass = "USPS_CONNECT_LOCAL"
	GetDropoffLocationParamsMailClassUSPSCONNECTMAIL         GetDropoffLocationParamsMailClass = "USPS_CONNECT_MAIL"
	GetDropoffLocationParamsMailClassUSPSCONNECTREGIONAL     GetDropoffLocationParamsMailClass = "USPS_CONNECT_REGIONAL"
)

Defines values for GetDropoffLocationParamsMailClass.

type GetDropoffLocationParamsPalletized

type GetDropoffLocationParamsPalletized string

GetDropoffLocationParamsPalletized defines parameters for GetDropoffLocation.

const (
	BOTH          GetDropoffLocationParamsPalletized = "BOTH"
	NONPALLETIZED GetDropoffLocationParamsPalletized = "NON_PALLETIZED"
	PALLETIZED    GetDropoffLocationParamsPalletized = "PALLETIZED"
)

Defines values for GetDropoffLocationParamsPalletized.

type GetDropoffLocationParamsProcessingCategory

type GetDropoffLocationParamsProcessingCategory string

GetDropoffLocationParamsProcessingCategory defines parameters for GetDropoffLocation.

const (
	FLATS         GetDropoffLocationParamsProcessingCategory = "FLATS"
	IRREGULAR     GetDropoffLocationParamsProcessingCategory = "IRREGULAR"
	MACHINABLE    GetDropoffLocationParamsProcessingCategory = "MACHINABLE"
	NONMACHINABLE GetDropoffLocationParamsProcessingCategory = "NON_MACHINABLE"
	NONSTANDARD   GetDropoffLocationParamsProcessingCategory = "NONSTANDARD"
)

Defines values for GetDropoffLocationParamsProcessingCategory.

type GetDropoffLocationResponse

type GetDropoffLocationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]DropShipmentLocation
	XML200       *[]DropShipmentLocation
	JSON400      *ErrorMessage
	XML400       *ErrorMessage
	JSON401      *ErrorMessage
	XML401       *ErrorMessage
	JSON403      *ErrorMessage
	XML403       *ErrorMessage
	JSON429      *ErrorMessage
	XML429       *ErrorMessage
	JSON503      *ErrorMessage
	XML503       *ErrorMessage
}

func ParseGetDropoffLocationResponse

func ParseGetDropoffLocationResponse(rsp *http.Response) (*GetDropoffLocationResponse, error)

ParseGetDropoffLocationResponse parses an HTTP response from a GetDropoffLocationWithResponse call

func (GetDropoffLocationResponse) Status

Status returns HTTPResponse.Status

func (GetDropoffLocationResponse) StatusCode

func (r GetDropoffLocationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLocationFilesResponse

type GetLocationFilesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Links
	JSON400      *ErrorMessage
	XML400       *ErrorMessage
	JSON401      *ErrorMessage
	XML401       *ErrorMessage
	JSON403      *ErrorMessage
	XML403       *ErrorMessage
	JSON404      *ErrorMessage
	XML404       *ErrorMessage
	JSON503      *ErrorMessage
	XML503       *ErrorMessage
}

func ParseGetLocationFilesResponse

func ParseGetLocationFilesResponse(rsp *http.Response) (*GetLocationFilesResponse, error)

ParseGetLocationFilesResponse parses an HTTP response from a GetLocationFilesWithResponse call

func (GetLocationFilesResponse) Status

func (r GetLocationFilesResponse) Status() string

Status returns HTTPResponse.Status

func (GetLocationFilesResponse) StatusCode

func (r GetLocationFilesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetParcelLockerLocationParams

type GetParcelLockerLocationParams struct {
	// City This is the city to search.  Clients should URI-encode this value so that spaces are properly represented.  For example, if looking for
	// parcel lockers in "Los Angeles", the `city` parameter's value should look like this: `city=Los%20Angeles`. (Note: the space is converted to `%20`.)
	//
	// Notes:
	//   - If `city` is set, then `state` must also be set.  The API will respond with a 400 Bad Request if `state` does not accompany `city`.
	City *string `form:"city,omitempty" json:"city,omitempty"`

	// State This is the two-character code for the state to search.
	//
	// Notes:
	//   - If `state` is set, then `city` must also be set.  The API will respond with a 400 Bad Request if `city` does not accompany `state`.
	State *string `form:"state,omitempty" json:"state,omitempty"`

	// ZIPCode This is the 5-digit ZIP code.  Nine-digit and eleven-digit ZIP codes are not accepted.
	ZIPCode *string `form:"ZIPCode,omitempty" json:"ZIPCode,omitempty"`

	// Offset Specifies the number of parcel lockers to skip.
	//
	// Examples:
	//   - Given the request `GET /parcel-locker-locations?offset=0&limit=20`, if there are 100 total results, the response will contain the first 20 parcel lockers available at that ZIPCode.  See the documentation on the `limit` parameter.
	//   - Given the request `GET /parcel-locker-locations?ZIPCode=56789&offset=40&limit=20`, if there are 100 total results, the API will skip the first 40 parcel lockers and respond with the next 20.
	//   - Given the request `GET /parcel-locker-locations?city=Denver&state=CO&offset=20&limit=20`, if there are 15 total results, the response will include no parcel lockers because the API skipped over all 15 lockers.
	Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`

	// Limit Indicates how many parcel lockers to include in the response.
	//
	// Notes:
	//   - If the number of total results is less than `limit`, then all results are returned.
	//   - The last page will have the remaining amount of parcel lockers out of the total amount if the value of `limit` does not evenly divide by the total amount of parcel lockers that match the city/state or ZIPCode.
	Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`
}

GetParcelLockerLocationParams defines parameters for GetParcelLockerLocation.

type GetParcelLockerLocationResponse

type GetParcelLockerLocationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ParcelLockerLocation
	XML200       *ParcelLockerLocation
	JSON400      *ErrorMessage
	XML400       *ErrorMessage
	JSON401      *ErrorMessage
	XML401       *ErrorMessage
	JSON403      *ErrorMessage
	XML403       *ErrorMessage
	JSON429      *ErrorMessage
	XML429       *ErrorMessage
	JSON503      *ErrorMessage
	XML503       *ErrorMessage
}

func ParseGetParcelLockerLocationResponse

func ParseGetParcelLockerLocationResponse(rsp *http.Response) (*GetParcelLockerLocationResponse, error)

ParseGetParcelLockerLocationResponse parses an HTTP response from a GetParcelLockerLocationWithResponse call

func (GetParcelLockerLocationResponse) Status

Status returns HTTPResponse.Status

func (GetParcelLockerLocationResponse) StatusCode

func (r GetParcelLockerLocationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPostOfficeLocationParams

type GetPostOfficeLocationParams struct {
	// StreetAddress The number of a building along with the name of the road or street on which it is located.
	StreetAddress *StreetAddress `form:"streetAddress,omitempty" json:"streetAddress,omitempty"`

	// SecondaryAddress The secondary unit designator, such as apartment(APT) or suite(STE) number, defining the exact location of the address within a building.  For more information please see [Postal Explorer](https://pe.usps.com/text/pub28/28c2_003.htm).
	SecondaryAddress *SecondaryAddress `form:"secondaryAddress,omitempty" json:"secondaryAddress,omitempty"`

	// City This is the city name of the address.
	City *City `form:"city,omitempty" json:"city,omitempty"`

	// State This is two-character state code of the address.
	State *State `form:"state,omitempty" json:"state,omitempty"`

	// Urbanization This is the urbanization code relevant only for Puerto Rico addresses.
	Urbanization *Urbanization `form:"urbanization,omitempty" json:"urbanization,omitempty"`

	// ZIPCode This is the 5-digit ZIP code.
	ZIPCode *ZIPCode `form:"ZIPCode,omitempty" json:"ZIPCode,omitempty"`

	// ZIPPlus4 This is the 4-digit component of the ZIP+4 code. Using the correct Zip+4 reduces the number of times your mail is handled and can decrease the chance of a misdelivery or error.
	ZIPPlus4 *ZIPPlus4 `form:"ZIPPlus4,omitempty" json:"ZIPPlus4,omitempty"`

	// LAT The latitude geo coordinate.
	LAT *Latitude `form:"LAT,omitempty" json:"LAT,omitempty"`

	// LONG The longitude geo coordinate.
	LONG *Longitude `form:"LONG,omitempty" json:"LONG,omitempty"`

	// PostOfficeType The type of post office requested.
	PostOfficeType *PostOfficeType `form:"postOfficeType,omitempty" json:"postOfficeType,omitempty"`

	// MailingService Mailing Service supported at the facility
	MailingService *MailingService `form:"mailingService,omitempty" json:"mailingService,omitempty"`

	// BusinessService Business Service supported at the facility
	BusinessService *BusinessService `form:"businessService,omitempty" json:"businessService,omitempty"`

	// PassportService Passport Service supported at the facility
	PassportService *PassportService `form:"passportService,omitempty" json:"passportService,omitempty"`

	// PickupService Pick-Up Service supported at the facility. If requesting PICKUP_PARCEL_LOCKER then the length, width and height parameters are always required.
	PickupService *PickupService `form:"pickupService,omitempty" json:"pickupService,omitempty"`

	// FinancialService Financial Service supported at the facility.
	FinancialService *FinancialService `form:"financialService,omitempty" json:"financialService,omitempty"`

	// Hours Limit the response Post Office Locations to those supporting Retail Services at the enumerated times. If not provided, all with be returned.
	Hours *GetPostOfficeLocationParamsHours `form:"hours,omitempty" json:"hours,omitempty"`

	// Radius The max distance (in miles) from the location given to the respective Post Office. If no radius is provided a default radius of 20 miles will be used
	Radius *Radius `form:"radius,omitempty" json:"radius,omitempty"`

	// Length This is the package length in inches.  The maximum dimension is always length.
	Length *Length `form:"length,omitempty" json:"length,omitempty"`

	// Width This is the package width in inches.  The second longest dimension is always width.
	Width *Width `form:"width,omitempty" json:"width,omitempty"`

	// Height This is the package height in inches.
	Height *Height `form:"height,omitempty" json:"height,omitempty"`

	// Offset The number of items to skip before returning the results
	Offset *OffsetParam `form:"offset,omitempty" json:"offset,omitempty"`

	// Limit The number of items to return
	Limit *LimitParam `form:"limit,omitempty" json:"limit,omitempty"`
}

GetPostOfficeLocationParams defines parameters for GetPostOfficeLocation.

type GetPostOfficeLocationParamsBusinessService

type GetPostOfficeLocationParamsBusinessService string

GetPostOfficeLocationParamsBusinessService defines parameters for GetPostOfficeLocation.

const (
	BULKMAILACCEPTANCE              GetPostOfficeLocationParamsBusinessService = "BULK_MAIL_ACCEPTANCE"
	BULKMAILACCOUNTBALANCE          GetPostOfficeLocationParamsBusinessService = "BULK_MAIL_ACCOUNT_BALANCE"
	BULKMAILNEWPERMIT               GetPostOfficeLocationParamsBusinessService = "BULK_MAIL_NEW_PERMIT"
	BUSINESSREPLYMAILACCOUNTBALANCE GetPostOfficeLocationParamsBusinessService = "BUSINESS_REPLY_MAIL_ACCOUNT_BALANCE"
	BUSINESSREPLYMAILNEWPERMIT      GetPostOfficeLocationParamsBusinessService = "BUSINESS_REPLY_MAIL_NEW_PERMIT"
	CALLREFERRAL                    GetPostOfficeLocationParamsBusinessService = "CALL_REFERRAL"
)

Defines values for GetPostOfficeLocationParamsBusinessService.

type GetPostOfficeLocationParamsFinancialService

type GetPostOfficeLocationParamsFinancialService string

GetPostOfficeLocationParamsFinancialService defines parameters for GetPostOfficeLocation.

const (
	BURIALFLAG         GetPostOfficeLocationParamsFinancialService = "BURIAL_FLAG"
	DUCKSTAMP          GetPostOfficeLocationParamsFinancialService = "DUCK_STAMP"
	GIFTCARDS          GetPostOfficeLocationParamsFinancialService = "GIFT_CARDS"
	GREETINGCARDS      GetPostOfficeLocationParamsFinancialService = "GREETING_CARDS"
	MONEYORDERDOMESTIC GetPostOfficeLocationParamsFinancialService = "MONEY_ORDER_DOMESTIC"
	MONEYORDERINQUIRY  GetPostOfficeLocationParamsFinancialService = "MONEY_ORDER_INQUIRY"
)

Defines values for GetPostOfficeLocationParamsFinancialService.

type GetPostOfficeLocationParamsHours

type GetPostOfficeLocationParamsHours string

GetPostOfficeLocationParamsHours defines parameters for GetPostOfficeLocation.

const (
	GetPostOfficeLocationParamsHoursN24HOURFACILITIES GetPostOfficeLocationParamsHours = "24-HOUR_FACILITIES"
	GetPostOfficeLocationParamsHoursSATURDAYHOURS     GetPostOfficeLocationParamsHours = "SATURDAY_HOURS"
	GetPostOfficeLocationParamsHoursSUNDAYHOURS       GetPostOfficeLocationParamsHours = "SUNDAY_HOURS"
	GetPostOfficeLocationParamsHoursWEEKDAYAFTER5     GetPostOfficeLocationParamsHours = "WEEKDAY_AFTER_5"
)

Defines values for GetPostOfficeLocationParamsHours.

type GetPostOfficeLocationParamsMailingService

type GetPostOfficeLocationParamsMailingService string

GetPostOfficeLocationParamsMailingService defines parameters for GetPostOfficeLocation.

const (
	GetPostOfficeLocationParamsMailingServiceCARRIERSERVICES             GetPostOfficeLocationParamsMailingService = "CARRIER_SERVICES"
	GetPostOfficeLocationParamsMailingServiceGENERALDELIVERY             GetPostOfficeLocationParamsMailingService = "GENERAL_DELIVERY"
	GetPostOfficeLocationParamsMailingServiceGLOBALEXPRESSGUARANTEED     GetPostOfficeLocationParamsMailingService = "GLOBAL_EXPRESS_GUARANTEED"
	GetPostOfficeLocationParamsMailingServiceLABELBROKER                 GetPostOfficeLocationParamsMailingService = "LABEL_BROKER"
	GetPostOfficeLocationParamsMailingServiceLABELBROKERSELFSERVICEKIOSK GetPostOfficeLocationParamsMailingService = "LABEL_BROKER_SELF-SERVICE_KIOSK"
	GetPostOfficeLocationParamsMailingServicePOBOX                       GetPostOfficeLocationParamsMailingService = "PO_BOX"
	GetPostOfficeLocationParamsMailingServicePRIORITYMAILINTERNATIONAL   GetPostOfficeLocationParamsMailingService = "PRIORITY_MAIL_INTERNATIONAL"
	GetPostOfficeLocationParamsMailingServiceSELFSERVICEKIOSK            GetPostOfficeLocationParamsMailingService = "SELF-SERVICE_KIOSK"
	GetPostOfficeLocationParamsMailingServiceUSPSCONNECTLOCAL            GetPostOfficeLocationParamsMailingService = "USPS_CONNECT_LOCAL"
)

Defines values for GetPostOfficeLocationParamsMailingService.

type GetPostOfficeLocationParamsPassportService

type GetPostOfficeLocationParamsPassportService string

GetPostOfficeLocationParamsPassportService defines parameters for GetPostOfficeLocation.

const (
	PASSPORTAPPOINTMENT GetPostOfficeLocationParamsPassportService = "PASSPORT_APPOINTMENT"
	PASSPORTPHOTO       GetPostOfficeLocationParamsPassportService = "PASSPORT_PHOTO"
	PASSPORTWALKIN      GetPostOfficeLocationParamsPassportService = "PASSPORT_WALK-IN"
)

Defines values for GetPostOfficeLocationParamsPassportService.

type GetPostOfficeLocationParamsPickupService

type GetPostOfficeLocationParamsPickupService string

GetPostOfficeLocationParamsPickupService defines parameters for GetPostOfficeLocation.

const (
	HOLDFORPICKUP         GetPostOfficeLocationParamsPickupService = "HOLD_FOR_PICKUP"
	PICKUPACCOUNTABLEMAIL GetPostOfficeLocationParamsPickupService = "PICKUP_ACCOUNTABLE_MAIL"
	PICKUPHOLDMAIL        GetPostOfficeLocationParamsPickupService = "PICKUP_HOLD_MAIL"
	PICKUPNOTICELEFTMAIL  GetPostOfficeLocationParamsPickupService = "PICKUP_NOTICE_LEFT_MAIL"
	PICKUPPARCELLOCKER    GetPostOfficeLocationParamsPickupService = "PICKUP_PARCEL_LOCKER"
)

Defines values for GetPostOfficeLocationParamsPickupService.

type GetPostOfficeLocationParamsPostOfficeType

type GetPostOfficeLocationParamsPostOfficeType string

GetPostOfficeLocationParamsPostOfficeType defines parameters for GetPostOfficeLocation.

const (
	GetPostOfficeLocationParamsPostOfficeTypeCONTRACTPOSTALUNIT GetPostOfficeLocationParamsPostOfficeType = "CONTRACT_POSTAL_UNIT"
	GetPostOfficeLocationParamsPostOfficeTypePOSTOFFICE         GetPostOfficeLocationParamsPostOfficeType = "POST_OFFICE"
	GetPostOfficeLocationParamsPostOfficeTypeSELFSERVICEKIOSK   GetPostOfficeLocationParamsPostOfficeType = "SELF_SERVICE_KIOSK"
	GetPostOfficeLocationParamsPostOfficeTypeVILLAGEPOSTOFFICE  GetPostOfficeLocationParamsPostOfficeType = "VILLAGE_POST_OFFICE"
)

Defines values for GetPostOfficeLocationParamsPostOfficeType.

type GetPostOfficeLocationResponse

type GetPostOfficeLocationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Locations A list of Post Office locations that match the search criteria, sorted by distance (closest first).
		Locations *[]PostOfficeLocation `json:"locations,omitempty"`

		// Metadata Standard error message response.
		Metadata *PaginationMetadata `json:"metadata,omitempty"`
		Warnings *[]struct {
			WarningCode        *string `json:"warningCode,omitempty"`
			WarningDescription *string `json:"warningDescription,omitempty"`
		} `json:"warnings,omitempty"`
	}
	XML200 *struct {
		Locations *[]PostOfficeLocation `json:"locations,omitempty"`

		// Metadata Standard error message response.
		Metadata *PaginationMetadata `json:"metadata,omitempty"`
	}
	JSON400 *ErrorMessage
	XML400  *ErrorMessage
	JSON401 *ErrorMessage
	XML401  *ErrorMessage
	JSON403 *ErrorMessage
	XML403  *ErrorMessage
	JSON429 *ErrorMessage
	XML429  *ErrorMessage
	JSON503 *ErrorMessage
	XML503  *ErrorMessage
}

func ParseGetPostOfficeLocationResponse

func ParseGetPostOfficeLocationResponse(rsp *http.Response) (*GetPostOfficeLocationResponse, error)

ParseGetPostOfficeLocationResponse parses an HTTP response from a GetPostOfficeLocationWithResponse call

func (GetPostOfficeLocationResponse) Status

Status returns HTTPResponse.Status

func (GetPostOfficeLocationResponse) StatusCode

func (r GetPostOfficeLocationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Height

type Height = float64

Height defines model for Height.

type Hours

type Hours string

Hours defines model for Hours.

const (
	HoursN24HOURFACILITIES Hours = "24-HOUR_FACILITIES"
	HoursSATURDAYHOURS     Hours = "SATURDAY_HOURS"
	HoursSUNDAYHOURS       Hours = "SUNDAY_HOURS"
	HoursWEEKDAYAFTER5     Hours = "WEEKDAY_AFTER_5"
)

Defines values for Hours.

type HoursOfOperation

type HoursOfOperation struct {
	// DayOfWeek The day of the week for the set of hours.
	DayOfWeek *HoursOfOperationDayOfWeek `json:"dayOfWeek,omitempty"`

	// Times Hours
	Times *[]struct {
		// CloseTime The time that the facility closes.
		CloseTime *string `json:"closeTime,omitempty"`

		// OpenTime The time that the facility opens.
		OpenTime *string `json:"openTime,omitempty"`
	} `json:"times,omitempty"`
}

HoursOfOperation Facility hours of operation intervals of a day.

type HoursOfOperationDayOfWeek

type HoursOfOperationDayOfWeek string

HoursOfOperationDayOfWeek The day of the week for the set of hours.

const (
	FRIDAY    HoursOfOperationDayOfWeek = "FRIDAY"
	MONDAY    HoursOfOperationDayOfWeek = "MONDAY"
	SATURDAY  HoursOfOperationDayOfWeek = "SATURDAY"
	SUNDAY    HoursOfOperationDayOfWeek = "SUNDAY"
	THURSDAY  HoursOfOperationDayOfWeek = "THURSDAY"
	TUESDAY   HoursOfOperationDayOfWeek = "TUESDAY"
	WEDNESDAY HoursOfOperationDayOfWeek = "WEDNESDAY"
)

Defines values for HoursOfOperationDayOfWeek.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Latitude

type Latitude = float32

Latitude defines model for Latitude.

type Length

type Length = float64

Length defines model for Length.

type LimitParam

type LimitParam = int32

LimitParam defines model for limitParam.

type Links = []struct {
	// Description A human-readable description of the link relationship.
	Description *string `json:"description,omitempty"`

	// Href The URL to a related resource.
	Href string `json:"href"`

	// Method The HTTP method to use to access this link.
	Method *LinksMethod `json:"method,omitempty"`

	// PublishDate The date and time the file was published. The date and time will be returned in UTC (Zulu) format.
	PublishDate *time.Time `json:"publishDate,omitempty"`

	// Rel The short name(s) of the relationship corresponding to the link.
	Rel []string `json:"rel"`

	// SubmissionMediaType The media type of the resource request.
	SubmissionMediaType *string `json:"submissionMediaType,omitempty"`

	// TargetMediaType The media type of the resource response.
	TargetMediaType *string `json:"targetMediaType,omitempty"`

	// Title A human-readable description of the link relationship.
	Title *string `json:"title,omitempty"`
}

Links Hypermedia links to related resources.

type LinksMethod

type LinksMethod string

LinksMethod The HTTP method to use to access this link.

const (
	DELETE LinksMethod = "DELETE"
	GET    LinksMethod = "GET"
	POST   LinksMethod = "POST"
	PUT    LinksMethod = "PUT"
)

Defines values for LinksMethod.

type Longitude

type Longitude = float32

Longitude defines model for Longitude.

type MailClass

type MailClass string

MailClass defines model for MailClass.

const (
	MailClassBOUNDPRINTEDMATTER      MailClass = "BOUND_PRINTED_MATTER"
	MailClassLIBRARYMAIL             MailClass = "LIBRARY_MAIL"
	MailClassMEDIAMAIL               MailClass = "MEDIA_MAIL"
	MailClassPARCELSELECT            MailClass = "PARCEL_SELECT"
	MailClassPARCELSELECTLIGHTWEIGHT MailClass = "PARCEL_SELECT_LIGHTWEIGHT"
	MailClassUSPSCONNECTLOCAL        MailClass = "USPS_CONNECT_LOCAL"
	MailClassUSPSCONNECTMAIL         MailClass = "USPS_CONNECT_MAIL"
	MailClassUSPSCONNECTREGIONAL     MailClass = "USPS_CONNECT_REGIONAL"
)

Defines values for MailClass.

type MailingDate

type MailingDate = openapi_types.Date

MailingDate defines model for MailingDate.

type MailingService

type MailingService = []string

MailingService defines model for MailingService.

type OffsetParam

type OffsetParam = int

OffsetParam defines model for offsetParam.

type PaginationMetadata

type PaginationMetadata struct {
	// Limit The number of resources returned per call, based on the user provided limit
	Limit int `json:"limit"`

	// Links Hypermedia links to related resources.
	Links *Links `json:"links,omitempty"`

	// Offset The current offset, based on the user provided offset
	Offset int `json:"offset"`

	// Page The current page number.
	Page *int `json:"page,omitempty"`

	// TotalCount Total number of resources return in the API request.
	TotalCount *int `json:"totalCount,omitempty"`

	// TotalPages Total number of pages, based on the user provided limit and [totalCount]
	TotalPages *int `json:"totalPages,omitempty"`
}

PaginationMetadata Standard error message response.

type Palletized

type Palletized string

Palletized defines model for Palletized.

const (
	PalletizedBOTH          Palletized = "BOTH"
	PalletizedNONPALLETIZED Palletized = "NON_PALLETIZED"
	PalletizedPALLETIZED    Palletized = "PALLETIZED"
)

Defines values for Palletized.

type ParcelLockerLocation

type ParcelLockerLocation = []struct {
	// DeliveryAddress Address fields for US locations
	DeliveryAddress *DomesticAddress `json:"deliveryAddress,omitempty"`

	// DeliveryPoint 2-digit Delivery Point Code (DPC) of the Parcel Locker.
	DeliveryPoint *string `json:"deliveryPoint,omitempty"`

	// FacilityID Unique identifier of the Post Office where the parcel locker is located.
	FacilityID *string `json:"facilityID,omitempty"`

	// Latitude The latitude geo coordinate.
	Latitude *float32 `json:"latitude,omitempty"`

	// LocationAddress Address fields for US locations
	LocationAddress *DomesticAddress `json:"locationAddress,omitempty"`

	// LocationName The name of the facility where the parcel locker is located.
	LocationName *string `json:"locationName,omitempty"`

	// LockerOnline Indicates whether the parcel locker is currently online or offline.
	LockerOnline *bool `json:"lockerOnline,omitempty"`

	// LockerSizeMaximumHeight Height of the largest locker.
	LockerSizeMaximumHeight *float64 `json:"lockerSizeMaximumHeight,omitempty"`

	// LockerSizeMaximumLength Length of the largest locker.
	LockerSizeMaximumLength *float64 `json:"lockerSizeMaximumLength,omitempty"`

	// LockerSizeMaximumWidth Width of the largest locker.
	LockerSizeMaximumWidth *float64 `json:"lockerSizeMaximumWidth,omitempty"`

	// LockerStatus The current status of the parcel locker.
	LockerStatus *string `json:"lockerStatus,omitempty"`

	// Longitude The longitude geo coordinate.
	Longitude *float32 `json:"longitude,omitempty"`

	// ServiceDirectShip Indicates whether the parcel locker can accept Direct-to-Locker packages.
	ServiceDirectShip *bool `json:"serviceDirectShip,omitempty"`

	// ServiceLabelPrinting Indicates whether the parcel locker has printing capability.
	ServiceLabelPrinting *bool `json:"serviceLabelPrinting,omitempty"`

	// ServicePOBoxOverflow Indicates whether the parcel locker can accept packages that do not fit into a PO Box.
	ServicePOBoxOverflow *bool `json:"servicePOBoxOverflow,omitempty"`

	// ServicePrepaid DEPRECATED, replaced by `servicePrepaidReturns`. Indicates whether the parcel locker can accept prepaid returns packages.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	ServicePrepaid *bool `json:"servicePrepaid,omitempty"`

	// ServicePrepaidReturns Indicates whether the parcel locker can accept prepaid returns packages.
	ServicePrepaidReturns *bool `json:"servicePrepaidReturns,omitempty"`

	// ServiceRedelivery Indicates whether the parcel locker can accept redelivery packages.
	ServiceRedelivery *bool `json:"serviceRedelivery,omitempty"`
}

ParcelLockerLocation defines model for ParcelLockerLocation.

type PassportService

type PassportService = []string

PassportService defines model for PassportService.

type Phone

type Phone = string

Phone The phone number, including the country extension and area code, with no punctuation.

type PickupService

type PickupService = []string

PickupService defines model for PickupService.

type PostOfficeLocation

type PostOfficeLocation struct {
	// DSTObserved Indicator for whether Daylight Savings Time is observed for a given facility.
	DSTObserved *bool `json:"DSTObserved,omitempty"`

	// Distance The distance from the provided address to the Post Office (in miles).
	Distance        *float32         `json:"distance,omitempty"`
	FacilityAddress *DomesticAddress `json:"facilityAddress,omitempty"`

	// FacilityID The USPS® facility ID. When requesting Parcel Locker Delivery while generating a label, this ID should be provided in the request.
	FacilityID *string `json:"facilityID,omitempty"`

	// FacilityName The name of the facility
	FacilityName *string `json:"facilityName,omitempty"`

	// GeoCoordinates The latitude and longitude values.
	GeoCoordinates *struct {
		// Latitude The latitude geo coordinate.
		Latitude *float32 `json:"latitude,omitempty"`

		// Longitude The longitude geo coordinate.
		Longitude *float32 `json:"longitude,omitempty"`
	} `json:"geoCoordinates,omitempty"`

	// Parking The type of parking available at the location.
	Parking *PostOfficeLocationParking `json:"parking,omitempty"`

	// Passports Facility information for passport services.
	Passports *struct {
		// AppointmentRequired Whether appointments are required to take passport photos at the location.
		AppointmentRequired *bool `json:"appointmentRequired,omitempty"`

		// Phone The phone number, including the country extension and area code, with no punctuation.
		Phone *Phone `json:"phone,omitempty"`

		// PhotoCost The cost of passport photos at the location in dollars.
		PhotoCost *float32 `json:"photoCost,omitempty"`
	} `json:"passports,omitempty"`

	// PhoneNumbers Post office contact information.
	PhoneNumbers *struct {
		// Fax The phone number, including the country extension and area code, with no punctuation.
		Fax *Phone `json:"fax,omitempty"`

		// Phone The phone number, including the country extension and area code, with no punctuation.
		Phone *Phone `json:"phone,omitempty"`
	} `json:"phoneNumbers,omitempty"`

	// PostOfficeType The type of location.
	PostOfficeType *PostOfficeLocationPostOfficeType `json:"postOfficeType,omitempty"`

	// Services A list of services offered at the location.
	Services *[]struct {
		AdditionalInformation *struct {
			// MailClasses The list of mail classes that are supported for the Hold for Pickup service at a given facility.
			MailClasses *[]string `json:"mailClasses,omitempty"`
		} `json:"additionalInformation,omitempty"`

		// Hours the days & hours that the associated service is available at the post office.
		Hours *[]HoursOfOperation `json:"hours,omitempty"`

		// Service The services supported at the facility.
		Service *string `json:"service,omitempty"`
	} `json:"services,omitempty"`

	// SpecialHours Facility hours of operation intervals of a day.
	SpecialHours *SpecialHoursOfOperation `json:"specialHours,omitempty"`

	// TemporaryClosure Indicator if the location has a current or upcoming temporary closure.
	TemporaryClosure *bool `json:"temporaryClosure,omitempty"`

	// TemporaryClosureDate The start date of the temporary closure.
	TemporaryClosureDate *openapi_types.Date `json:"temporaryClosureDate,omitempty"`

	// TimeZone The time zone returned for a given facility.
	TimeZone *string `json:"timeZone,omitempty"`
}

PostOfficeLocation USPS® Destination Entry Drop Shipment Location

type PostOfficeLocationParking

type PostOfficeLocationParking string

PostOfficeLocationParking The type of parking available at the location.

const (
	LOT    PostOfficeLocationParking = "LOT"
	STREET PostOfficeLocationParking = "STREET"
)

Defines values for PostOfficeLocationParking.

type PostOfficeLocationPostOfficeType

type PostOfficeLocationPostOfficeType string

PostOfficeLocationPostOfficeType The type of location.

const (
	PostOfficeLocationPostOfficeTypeCONTRACTPOSTALUNIT PostOfficeLocationPostOfficeType = "CONTRACT_POSTAL_UNIT"
	PostOfficeLocationPostOfficeTypePOSTOFFICE         PostOfficeLocationPostOfficeType = "POST_OFFICE"
	PostOfficeLocationPostOfficeTypeSELFSERVICEKIOSK   PostOfficeLocationPostOfficeType = "SELF_SERVICE_KIOSK"
	PostOfficeLocationPostOfficeTypeVILLAGEPOSTOFFICE  PostOfficeLocationPostOfficeType = "VILLAGE_POST_OFFICE"
)

Defines values for PostOfficeLocationPostOfficeType.

type PostOfficeType

type PostOfficeType = []string

PostOfficeType defines model for PostOfficeType.

type ProcessingCategory

type ProcessingCategory string

ProcessingCategory defines model for ProcessingCategory.

const (
	ProcessingCategoryFLATS         ProcessingCategory = "FLATS"
	ProcessingCategoryIRREGULAR     ProcessingCategory = "IRREGULAR"
	ProcessingCategoryMACHINABLE    ProcessingCategory = "MACHINABLE"
	ProcessingCategoryNONMACHINABLE ProcessingCategory = "NON_MACHINABLE"
	ProcessingCategoryNONSTANDARD   ProcessingCategory = "NONSTANDARD"
)

Defines values for ProcessingCategory.

type Radius

type Radius = int

Radius defines model for Radius.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type SecondaryAddress

type SecondaryAddress = string

SecondaryAddress defines model for SecondaryAddress.

type SignedURLResponse

type SignedURLResponse struct {
	// ContentLength Size of the file in bytes.
	ContentLength *int `json:"contentLength,omitempty"`

	// Expiry Expiration date and time of the signed URL.
	Expiry *time.Time `json:"expiry,omitempty"`

	// RangeLimit The maximum number of bytes that can be downloaded using the signed URL. This value is specified in bytes and ensures that users do not exceed the allocated download limit.
	RangeLimit *int `json:"rangeLimit,omitempty"`

	// SignedURL A fully-qualified SAS URL appended with a secure token that provides temporary, restricted access to the requested location file. This SAS URL supports HTTP Range requests, allowing consumers to download files in chunks. This is particularly useful for resuming interrupted downloads or handling very large files.
	SignedURL *string `json:"signedURL,omitempty"`
}

SignedURLResponse Response containing a signed URL and metadata for downloading a location file.

type SpecialHoursOfOperation

type SpecialHoursOfOperation = []struct {
	// Date The day of the week for the set of hours.
	Date *openapi_types.Date `json:"date,omitempty"`

	// Open Indicates if the facility is open.
	Open *bool `json:"open,omitempty"`

	// Times Holiday Hours
	Times *[]struct {
		// CloseTime The time that the facility closes.
		CloseTime *string `json:"closeTime,omitempty"`

		// OpenTime The time that the facility opens.
		OpenTime *string `json:"openTime,omitempty"`
	} `json:"times,omitempty"`
}

SpecialHoursOfOperation Facility hours of operation intervals of a day.

type State

type State = string

State defines model for State.

type StreetAddress

type StreetAddress = string

StreetAddress defines model for StreetAddress.

type USPSConnect

type USPSConnect struct {
	// SundayDelivery Indicates whether sunday delivery service is offered at the given facility.
	SundayDelivery *bool `json:"SundayDelivery,omitempty"`

	// NextDayDropOffCutOffTimes This field will be removed in Version 4.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	NextDayDropOffCutOffTimes *[]CutOffTimesDropOff `json:"nextDayDropOffCutOffTimes,omitempty"`

	// NextDayPickUp Indicates the latest time next day pick up can be scheduled for the given facility. If no time is given next day pick up service is not supported.
	NextDayPickUp *string `json:"nextDayPickUp,omitempty"`

	// SameDayCarrierPickupCutOffTimes This field will be removed in Version 4.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	SameDayCarrierPickupCutOffTimes *[]CutOffTimesPickup `json:"sameDayCarrierPickupCutOffTimes,omitempty"`

	// SameDayDelivery Indicates whether same day delivery service is offered at the given facility.
	SameDayDelivery *bool `json:"sameDayDelivery,omitempty"`

	// SameDayDropOffCutOffTimes This field will be removed in Version 4.
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	SameDayDropOffCutOffTimes *[]CutOffTimesDropOff `json:"sameDayDropOffCutOffTimes,omitempty"`

	// SameDayPickUp Indicates the latest time same day pick up can be scheduled for the given facility. If no time is given same day pick up service is not supported.
	SameDayPickUp *string `json:"sameDayPickUp,omitempty"`
}

USPSConnect Provides details on USPS Connect® services offered at the facility.

type Urbanization

type Urbanization = string

Urbanization defines model for Urbanization.

type Width

type Width = float64

Width defines model for Width.

type ZIPCode

type ZIPCode = string

ZIPCode defines model for ZIPCode.

type ZIPCodeValue

type ZIPCodeValue = string

ZIPCodeValue 5-digit ZIP code.

type ZIPPlus4

type ZIPPlus4 = string

ZIPPlus4 defines model for ZIPPlus4.

Jump to

Keyboard shortcuts

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