postal_codes

package
v0.0.0-...-0751cc3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ValidatePostalCodeWithRateDataBadRequestCode int = 400

ValidatePostalCodeWithRateDataBadRequestCode is the HTTP code returned for type ValidatePostalCodeWithRateDataBadRequest

View Source
const ValidatePostalCodeWithRateDataForbiddenCode int = 403

ValidatePostalCodeWithRateDataForbiddenCode is the HTTP code returned for type ValidatePostalCodeWithRateDataForbidden

View Source
const ValidatePostalCodeWithRateDataInternalServerErrorCode int = 500

ValidatePostalCodeWithRateDataInternalServerErrorCode is the HTTP code returned for type ValidatePostalCodeWithRateDataInternalServerError

View Source
const ValidatePostalCodeWithRateDataOKCode int = 200

ValidatePostalCodeWithRateDataOKCode is the HTTP code returned for type ValidatePostalCodeWithRateDataOK

View Source
const ValidatePostalCodeWithRateDataUnauthorizedCode int = 401

ValidatePostalCodeWithRateDataUnauthorizedCode is the HTTP code returned for type ValidatePostalCodeWithRateDataUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidatePostalCodeWithRateData

type ValidatePostalCodeWithRateData struct {
	Context *middleware.Context
	Handler ValidatePostalCodeWithRateDataHandler
}
ValidatePostalCodeWithRateData swagger:route GET /rate_engine_postal_codes/{postal_code} postal_codes validatePostalCodeWithRateData

Validate if a zipcode is valid for origin or destination location for a move.

Verifies if a zipcode is valid for origin or destination location for a move.

func NewValidatePostalCodeWithRateData

func NewValidatePostalCodeWithRateData(ctx *middleware.Context, handler ValidatePostalCodeWithRateDataHandler) *ValidatePostalCodeWithRateData

NewValidatePostalCodeWithRateData creates a new http.Handler for the validate postal code with rate data operation

func (*ValidatePostalCodeWithRateData) ServeHTTP

type ValidatePostalCodeWithRateDataBadRequest

type ValidatePostalCodeWithRateDataBadRequest struct {
}

ValidatePostalCodeWithRateDataBadRequest invalid request

swagger:response validatePostalCodeWithRateDataBadRequest

func NewValidatePostalCodeWithRateDataBadRequest

func NewValidatePostalCodeWithRateDataBadRequest() *ValidatePostalCodeWithRateDataBadRequest

NewValidatePostalCodeWithRateDataBadRequest creates ValidatePostalCodeWithRateDataBadRequest with default headers values

func (*ValidatePostalCodeWithRateDataBadRequest) WriteResponse

WriteResponse to the client

type ValidatePostalCodeWithRateDataForbidden

type ValidatePostalCodeWithRateDataForbidden struct {
}

ValidatePostalCodeWithRateDataForbidden user is not authorized

swagger:response validatePostalCodeWithRateDataForbidden

func NewValidatePostalCodeWithRateDataForbidden

func NewValidatePostalCodeWithRateDataForbidden() *ValidatePostalCodeWithRateDataForbidden

NewValidatePostalCodeWithRateDataForbidden creates ValidatePostalCodeWithRateDataForbidden with default headers values

func (*ValidatePostalCodeWithRateDataForbidden) WriteResponse

WriteResponse to the client

type ValidatePostalCodeWithRateDataHandler

type ValidatePostalCodeWithRateDataHandler interface {
	Handle(ValidatePostalCodeWithRateDataParams) middleware.Responder
}

ValidatePostalCodeWithRateDataHandler interface for that can handle valid validate postal code with rate data params

type ValidatePostalCodeWithRateDataHandlerFunc

type ValidatePostalCodeWithRateDataHandlerFunc func(ValidatePostalCodeWithRateDataParams) middleware.Responder

ValidatePostalCodeWithRateDataHandlerFunc turns a function with the right signature into a validate postal code with rate data handler

func (ValidatePostalCodeWithRateDataHandlerFunc) Handle

Handle executing the request and returning a response

type ValidatePostalCodeWithRateDataInternalServerError

type ValidatePostalCodeWithRateDataInternalServerError struct {
}

ValidatePostalCodeWithRateDataInternalServerError server error

swagger:response validatePostalCodeWithRateDataInternalServerError

func NewValidatePostalCodeWithRateDataInternalServerError

func NewValidatePostalCodeWithRateDataInternalServerError() *ValidatePostalCodeWithRateDataInternalServerError

NewValidatePostalCodeWithRateDataInternalServerError creates ValidatePostalCodeWithRateDataInternalServerError with default headers values

func (*ValidatePostalCodeWithRateDataInternalServerError) WriteResponse

WriteResponse to the client

type ValidatePostalCodeWithRateDataOK

type ValidatePostalCodeWithRateDataOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.RateEnginePostalCodePayload `json:"body,omitempty"`
}

ValidatePostalCodeWithRateDataOK postal_code is valid or invalid

swagger:response validatePostalCodeWithRateDataOK

func NewValidatePostalCodeWithRateDataOK

func NewValidatePostalCodeWithRateDataOK() *ValidatePostalCodeWithRateDataOK

NewValidatePostalCodeWithRateDataOK creates ValidatePostalCodeWithRateDataOK with default headers values

func (*ValidatePostalCodeWithRateDataOK) SetPayload

SetPayload sets the payload to the validate postal code with rate data o k response

func (*ValidatePostalCodeWithRateDataOK) WithPayload

WithPayload adds the payload to the validate postal code with rate data o k response

func (*ValidatePostalCodeWithRateDataOK) WriteResponse

func (o *ValidatePostalCodeWithRateDataOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ValidatePostalCodeWithRateDataParams

type ValidatePostalCodeWithRateDataParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  Pattern: ^(\d{5}?)$
	  In: path
	*/
	PostalCode string
	/*
	  Required: true
	  In: query
	*/
	PostalCodeType string
}

ValidatePostalCodeWithRateDataParams contains all the bound params for the validate postal code with rate data operation typically these are obtained from a http.Request

swagger:parameters validatePostalCodeWithRateData

func NewValidatePostalCodeWithRateDataParams

func NewValidatePostalCodeWithRateDataParams() ValidatePostalCodeWithRateDataParams

NewValidatePostalCodeWithRateDataParams creates a new ValidatePostalCodeWithRateDataParams object

There are no default values defined in the spec.

func (*ValidatePostalCodeWithRateDataParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewValidatePostalCodeWithRateDataParams() beforehand.

type ValidatePostalCodeWithRateDataURL

type ValidatePostalCodeWithRateDataURL struct {
	PostalCode string

	PostalCodeType string
	// contains filtered or unexported fields
}

ValidatePostalCodeWithRateDataURL generates an URL for the validate postal code with rate data operation

func (*ValidatePostalCodeWithRateDataURL) Build

Build a url path and query string

func (*ValidatePostalCodeWithRateDataURL) BuildFull

func (o *ValidatePostalCodeWithRateDataURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ValidatePostalCodeWithRateDataURL) Must

Must is a helper function to panic when the url builder returns an error

func (*ValidatePostalCodeWithRateDataURL) SetBasePath

func (o *ValidatePostalCodeWithRateDataURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ValidatePostalCodeWithRateDataURL) String

String returns the string representation of the path with query string

func (*ValidatePostalCodeWithRateDataURL) StringFull

func (o *ValidatePostalCodeWithRateDataURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ValidatePostalCodeWithRateDataURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ValidatePostalCodeWithRateDataUnauthorized

type ValidatePostalCodeWithRateDataUnauthorized struct {
}

ValidatePostalCodeWithRateDataUnauthorized must be authenticated to use this endpoint

swagger:response validatePostalCodeWithRateDataUnauthorized

func NewValidatePostalCodeWithRateDataUnauthorized

func NewValidatePostalCodeWithRateDataUnauthorized() *ValidatePostalCodeWithRateDataUnauthorized

NewValidatePostalCodeWithRateDataUnauthorized creates ValidatePostalCodeWithRateDataUnauthorized with default headers values

func (*ValidatePostalCodeWithRateDataUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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