Documentation ¶
Index ¶
- Constants
- type ValidatePostalCodeWithRateData
- type ValidatePostalCodeWithRateDataBadRequest
- type ValidatePostalCodeWithRateDataForbidden
- type ValidatePostalCodeWithRateDataHandler
- type ValidatePostalCodeWithRateDataHandlerFunc
- type ValidatePostalCodeWithRateDataInternalServerError
- type ValidatePostalCodeWithRateDataOK
- func (o *ValidatePostalCodeWithRateDataOK) SetPayload(payload *internalmessages.RateEnginePostalCodePayload)
- func (o *ValidatePostalCodeWithRateDataOK) WithPayload(payload *internalmessages.RateEnginePostalCodePayload) *ValidatePostalCodeWithRateDataOK
- func (o *ValidatePostalCodeWithRateDataOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ValidatePostalCodeWithRateDataParams
- type ValidatePostalCodeWithRateDataURL
- func (o *ValidatePostalCodeWithRateDataURL) Build() (*url.URL, error)
- func (o *ValidatePostalCodeWithRateDataURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ValidatePostalCodeWithRateDataURL) Must(u *url.URL, err error) *url.URL
- func (o *ValidatePostalCodeWithRateDataURL) SetBasePath(bp string)
- func (o *ValidatePostalCodeWithRateDataURL) String() string
- func (o *ValidatePostalCodeWithRateDataURL) StringFull(scheme, host string) string
- func (o *ValidatePostalCodeWithRateDataURL) WithBasePath(bp string) *ValidatePostalCodeWithRateDataURL
- type ValidatePostalCodeWithRateDataUnauthorized
Constants ¶
const ValidatePostalCodeWithRateDataBadRequestCode int = 400
ValidatePostalCodeWithRateDataBadRequestCode is the HTTP code returned for type ValidatePostalCodeWithRateDataBadRequest
const ValidatePostalCodeWithRateDataForbiddenCode int = 403
ValidatePostalCodeWithRateDataForbiddenCode is the HTTP code returned for type ValidatePostalCodeWithRateDataForbidden
const ValidatePostalCodeWithRateDataInternalServerErrorCode int = 500
ValidatePostalCodeWithRateDataInternalServerErrorCode is the HTTP code returned for type ValidatePostalCodeWithRateDataInternalServerError
const ValidatePostalCodeWithRateDataOKCode int = 200
ValidatePostalCodeWithRateDataOKCode is the HTTP code returned for type ValidatePostalCodeWithRateDataOK
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 ¶
func (o *ValidatePostalCodeWithRateData) ServeHTTP(rw http.ResponseWriter, r *http.Request)
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 ¶
func (o *ValidatePostalCodeWithRateDataBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *ValidatePostalCodeWithRateDataForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (fn ValidatePostalCodeWithRateDataHandlerFunc) Handle(params ValidatePostalCodeWithRateDataParams) middleware.Responder
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 ¶
func (o *ValidatePostalCodeWithRateDataInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *ValidatePostalCodeWithRateDataOK) SetPayload(payload *internalmessages.RateEnginePostalCodePayload)
SetPayload sets the payload to the validate postal code with rate data o k response
func (*ValidatePostalCodeWithRateDataOK) WithPayload ¶
func (o *ValidatePostalCodeWithRateDataOK) WithPayload(payload *internalmessages.RateEnginePostalCodePayload) *ValidatePostalCodeWithRateDataOK
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 ¶
func (o *ValidatePostalCodeWithRateDataParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
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 ¶
func (o *ValidatePostalCodeWithRateDataURL) Build() (*url.URL, error)
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 ¶
func (o *ValidatePostalCodeWithRateDataURL) String() 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 ¶
func (o *ValidatePostalCodeWithRateDataURL) WithBasePath(bp string) *ValidatePostalCodeWithRateDataURL
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 ¶
func (o *ValidatePostalCodeWithRateDataUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client