quote

package
v0.0.0-...-0ce3674 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const QuoteCreateBadRequestCode int = 400

QuoteCreateBadRequestCode is the HTTP code returned for type QuoteCreateBadRequest

View Source
const QuoteCreateCreatedCode int = 201

QuoteCreateCreatedCode is the HTTP code returned for type QuoteCreateCreated

View Source
const QuoteCreateForbiddenCode int = 403

QuoteCreateForbiddenCode is the HTTP code returned for type QuoteCreateForbidden

View Source
const QuoteCreateInternalServerErrorCode int = 500

QuoteCreateInternalServerErrorCode is the HTTP code returned for type QuoteCreateInternalServerError

View Source
const QuoteCreateMethodNotAllowedCode int = 405

QuoteCreateMethodNotAllowedCode is the HTTP code returned for type QuoteCreateMethodNotAllowed

View Source
const QuoteCreateNotFoundCode int = 404

QuoteCreateNotFoundCode is the HTTP code returned for type QuoteCreateNotFound

View Source
const QuoteCreateServiceUnavailableCode int = 503

QuoteCreateServiceUnavailableCode is the HTTP code returned for type QuoteCreateServiceUnavailable

View Source
const QuoteCreateUnauthorizedCode int = 401

QuoteCreateUnauthorizedCode is the HTTP code returned for type QuoteCreateUnauthorized

View Source
const QuoteCreateUnprocessableEntityCode int = 422

QuoteCreateUnprocessableEntityCode is the HTTP code returned for type QuoteCreateUnprocessableEntity

View Source
const QuoteFindBadRequestCode int = 400

QuoteFindBadRequestCode is the HTTP code returned for type QuoteFindBadRequest

View Source
const QuoteFindForbiddenCode int = 403

QuoteFindForbiddenCode is the HTTP code returned for type QuoteFindForbidden

View Source
const QuoteFindInternalServerErrorCode int = 500

QuoteFindInternalServerErrorCode is the HTTP code returned for type QuoteFindInternalServerError

View Source
const QuoteFindMethodNotAllowedCode int = 405

QuoteFindMethodNotAllowedCode is the HTTP code returned for type QuoteFindMethodNotAllowed

View Source
const QuoteFindNotFoundCode int = 404

QuoteFindNotFoundCode is the HTTP code returned for type QuoteFindNotFound

View Source
const QuoteFindOKCode int = 200

QuoteFindOKCode is the HTTP code returned for type QuoteFindOK

View Source
const QuoteFindServiceUnavailableCode int = 503

QuoteFindServiceUnavailableCode is the HTTP code returned for type QuoteFindServiceUnavailable

View Source
const QuoteFindUnauthorizedCode int = 401

QuoteFindUnauthorizedCode is the HTTP code returned for type QuoteFindUnauthorized

View Source
const QuoteFindUnprocessableEntityCode int = 422

QuoteFindUnprocessableEntityCode is the HTTP code returned for type QuoteFindUnprocessableEntity

View Source
const QuoteGetBadRequestCode int = 400

QuoteGetBadRequestCode is the HTTP code returned for type QuoteGetBadRequest

View Source
const QuoteGetForbiddenCode int = 403

QuoteGetForbiddenCode is the HTTP code returned for type QuoteGetForbidden

View Source
const QuoteGetInternalServerErrorCode int = 500

QuoteGetInternalServerErrorCode is the HTTP code returned for type QuoteGetInternalServerError

View Source
const QuoteGetMethodNotAllowedCode int = 405

QuoteGetMethodNotAllowedCode is the HTTP code returned for type QuoteGetMethodNotAllowed

View Source
const QuoteGetNotFoundCode int = 404

QuoteGetNotFoundCode is the HTTP code returned for type QuoteGetNotFound

View Source
const QuoteGetOKCode int = 200

QuoteGetOKCode is the HTTP code returned for type QuoteGetOK

View Source
const QuoteGetServiceUnavailableCode int = 503

QuoteGetServiceUnavailableCode is the HTTP code returned for type QuoteGetServiceUnavailable

View Source
const QuoteGetUnauthorizedCode int = 401

QuoteGetUnauthorizedCode is the HTTP code returned for type QuoteGetUnauthorized

View Source
const QuoteGetUnprocessableEntityCode int = 422

QuoteGetUnprocessableEntityCode is the HTTP code returned for type QuoteGetUnprocessableEntity

View Source
const QuoteRequestStateChangeBadRequestCode int = 400

QuoteRequestStateChangeBadRequestCode is the HTTP code returned for type QuoteRequestStateChangeBadRequest

View Source
const QuoteRequestStateChangeForbiddenCode int = 403

QuoteRequestStateChangeForbiddenCode is the HTTP code returned for type QuoteRequestStateChangeForbidden

View Source
const QuoteRequestStateChangeInternalServerErrorCode int = 500

QuoteRequestStateChangeInternalServerErrorCode is the HTTP code returned for type QuoteRequestStateChangeInternalServerError

View Source
const QuoteRequestStateChangeMethodNotAllowedCode int = 405

QuoteRequestStateChangeMethodNotAllowedCode is the HTTP code returned for type QuoteRequestStateChangeMethodNotAllowed

View Source
const QuoteRequestStateChangeNotFoundCode int = 404

QuoteRequestStateChangeNotFoundCode is the HTTP code returned for type QuoteRequestStateChangeNotFound

View Source
const QuoteRequestStateChangeOKCode int = 200

QuoteRequestStateChangeOKCode is the HTTP code returned for type QuoteRequestStateChangeOK

View Source
const QuoteRequestStateChangeServiceUnavailableCode int = 503

QuoteRequestStateChangeServiceUnavailableCode is the HTTP code returned for type QuoteRequestStateChangeServiceUnavailable

View Source
const QuoteRequestStateChangeUnauthorizedCode int = 401

QuoteRequestStateChangeUnauthorizedCode is the HTTP code returned for type QuoteRequestStateChangeUnauthorized

View Source
const QuoteRequestStateChangeUnprocessableEntityCode int = 422

QuoteRequestStateChangeUnprocessableEntityCode is the HTTP code returned for type QuoteRequestStateChangeUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type QuoteCreate

type QuoteCreate struct {
	Context *middleware.Context
	Handler QuoteCreateHandler
}
QuoteCreate swagger:route POST /quoteManagement/v2/quote Quote quoteCreate

Create a quote

This operation is used to create a new quote.

func NewQuoteCreate

func NewQuoteCreate(ctx *middleware.Context, handler QuoteCreateHandler) *QuoteCreate

NewQuoteCreate creates a new http.Handler for the quote create operation

func (*QuoteCreate) ServeHTTP

func (o *QuoteCreate) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type QuoteCreateBadRequest

type QuoteCreateBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteCreateBadRequest Bad Request

List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value

swagger:response quoteCreateBadRequest

func NewQuoteCreateBadRequest

func NewQuoteCreateBadRequest() *QuoteCreateBadRequest

NewQuoteCreateBadRequest creates QuoteCreateBadRequest with default headers values

func (*QuoteCreateBadRequest) SetPayload

func (o *QuoteCreateBadRequest) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote create bad request response

func (*QuoteCreateBadRequest) WithPayload

WithPayload adds the payload to the quote create bad request response

func (*QuoteCreateBadRequest) WriteResponse

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

WriteResponse to the client

type QuoteCreateCreated

type QuoteCreateCreated struct {

	/*
	  In: Body
	*/
	Payload *models.Quote `json:"body,omitempty"`
}

QuoteCreateCreated Created

swagger:response quoteCreateCreated

func NewQuoteCreateCreated

func NewQuoteCreateCreated() *QuoteCreateCreated

NewQuoteCreateCreated creates QuoteCreateCreated with default headers values

func (*QuoteCreateCreated) SetPayload

func (o *QuoteCreateCreated) SetPayload(payload *models.Quote)

SetPayload sets the payload to the quote create created response

func (*QuoteCreateCreated) WithPayload

func (o *QuoteCreateCreated) WithPayload(payload *models.Quote) *QuoteCreateCreated

WithPayload adds the payload to the quote create created response

func (*QuoteCreateCreated) WriteResponse

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

WriteResponse to the client

type QuoteCreateForbidden

type QuoteCreateForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteCreateForbidden Forbidden

List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests

swagger:response quoteCreateForbidden

func NewQuoteCreateForbidden

func NewQuoteCreateForbidden() *QuoteCreateForbidden

NewQuoteCreateForbidden creates QuoteCreateForbidden with default headers values

func (*QuoteCreateForbidden) SetPayload

func (o *QuoteCreateForbidden) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote create forbidden response

func (*QuoteCreateForbidden) WithPayload

WithPayload adds the payload to the quote create forbidden response

func (*QuoteCreateForbidden) WriteResponse

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

WriteResponse to the client

type QuoteCreateHandler

type QuoteCreateHandler interface {
	Handle(QuoteCreateParams, *models.Principal) middleware.Responder
}

QuoteCreateHandler interface for that can handle valid quote create params

type QuoteCreateHandlerFunc

type QuoteCreateHandlerFunc func(QuoteCreateParams, *models.Principal) middleware.Responder

QuoteCreateHandlerFunc turns a function with the right signature into a quote create handler

func (QuoteCreateHandlerFunc) Handle

Handle executing the request and returning a response

type QuoteCreateInternalServerError

type QuoteCreateInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteCreateInternalServerError Internal Server Error

List of supported error codes: - 1: Internal error

swagger:response quoteCreateInternalServerError

func NewQuoteCreateInternalServerError

func NewQuoteCreateInternalServerError() *QuoteCreateInternalServerError

NewQuoteCreateInternalServerError creates QuoteCreateInternalServerError with default headers values

func (*QuoteCreateInternalServerError) SetPayload

SetPayload sets the payload to the quote create internal server error response

func (*QuoteCreateInternalServerError) WithPayload

WithPayload adds the payload to the quote create internal server error response

func (*QuoteCreateInternalServerError) WriteResponse

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

WriteResponse to the client

type QuoteCreateMethodNotAllowed

type QuoteCreateMethodNotAllowed struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteCreateMethodNotAllowed Method Not Allowed

List of supported error codes: - 61: Method not allowed

swagger:response quoteCreateMethodNotAllowed

func NewQuoteCreateMethodNotAllowed

func NewQuoteCreateMethodNotAllowed() *QuoteCreateMethodNotAllowed

NewQuoteCreateMethodNotAllowed creates QuoteCreateMethodNotAllowed with default headers values

func (*QuoteCreateMethodNotAllowed) SetPayload

func (o *QuoteCreateMethodNotAllowed) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote create method not allowed response

func (*QuoteCreateMethodNotAllowed) WithPayload

WithPayload adds the payload to the quote create method not allowed response

func (*QuoteCreateMethodNotAllowed) WriteResponse

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

WriteResponse to the client

type QuoteCreateNotFound

type QuoteCreateNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteCreateNotFound Not Found

List of supported error codes: - 60: Resource not found

swagger:response quoteCreateNotFound

func NewQuoteCreateNotFound

func NewQuoteCreateNotFound() *QuoteCreateNotFound

NewQuoteCreateNotFound creates QuoteCreateNotFound with default headers values

func (*QuoteCreateNotFound) SetPayload

func (o *QuoteCreateNotFound) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote create not found response

func (*QuoteCreateNotFound) WithPayload

WithPayload adds the payload to the quote create not found response

func (*QuoteCreateNotFound) WriteResponse

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

WriteResponse to the client

type QuoteCreateParams

type QuoteCreateParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Quote *models.QuoteCreate
}

QuoteCreateParams contains all the bound params for the quote create operation typically these are obtained from a http.Request

swagger:parameters quoteCreate

func NewQuoteCreateParams

func NewQuoteCreateParams() QuoteCreateParams

NewQuoteCreateParams creates a new QuoteCreateParams object

There are no default values defined in the spec.

func (*QuoteCreateParams) BindRequest

func (o *QuoteCreateParams) 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 NewQuoteCreateParams() beforehand.

type QuoteCreateServiceUnavailable

type QuoteCreateServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteCreateServiceUnavailable Service Unavailable

swagger:response quoteCreateServiceUnavailable

func NewQuoteCreateServiceUnavailable

func NewQuoteCreateServiceUnavailable() *QuoteCreateServiceUnavailable

NewQuoteCreateServiceUnavailable creates QuoteCreateServiceUnavailable with default headers values

func (*QuoteCreateServiceUnavailable) SetPayload

SetPayload sets the payload to the quote create service unavailable response

func (*QuoteCreateServiceUnavailable) WithPayload

WithPayload adds the payload to the quote create service unavailable response

func (*QuoteCreateServiceUnavailable) WriteResponse

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

WriteResponse to the client

type QuoteCreateURL

type QuoteCreateURL struct {
	// contains filtered or unexported fields
}

QuoteCreateURL generates an URL for the quote create operation

func (*QuoteCreateURL) Build

func (o *QuoteCreateURL) Build() (*url.URL, error)

Build a url path and query string

func (*QuoteCreateURL) BuildFull

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

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

func (*QuoteCreateURL) Must

func (o *QuoteCreateURL) Must(u *url.URL, err error) *url.URL

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

func (*QuoteCreateURL) SetBasePath

func (o *QuoteCreateURL) 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 (*QuoteCreateURL) String

func (o *QuoteCreateURL) String() string

String returns the string representation of the path with query string

func (*QuoteCreateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*QuoteCreateURL) WithBasePath

func (o *QuoteCreateURL) WithBasePath(bp string) *QuoteCreateURL

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 QuoteCreateUnauthorized

type QuoteCreateUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteCreateUnauthorized Unauthorized

List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials

swagger:response quoteCreateUnauthorized

func NewQuoteCreateUnauthorized

func NewQuoteCreateUnauthorized() *QuoteCreateUnauthorized

NewQuoteCreateUnauthorized creates QuoteCreateUnauthorized with default headers values

func (*QuoteCreateUnauthorized) SetPayload

func (o *QuoteCreateUnauthorized) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote create unauthorized response

func (*QuoteCreateUnauthorized) WithPayload

WithPayload adds the payload to the quote create unauthorized response

func (*QuoteCreateUnauthorized) WriteResponse

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

WriteResponse to the client

type QuoteCreateUnprocessableEntity

type QuoteCreateUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteCreateUnprocessableEntity Unprocessable entity

Functional error

  • code: 101

message: A relatedPartyRole for Buyer role must be provided description:

  • code: 103

message: A relatedPartyRole is incomplete (must have partyRole.id or role.id+relatedParty) description:

  • code: 104

message: A relatedParty is incomplete (must have a party.id or a party.name) description:

  • code: 105

message: Qualification Id provided did not exist or expired description:

  • code: 106

message: At least a productOffering Id or a product.id or a productSpec.id must be provided in quote item description:

  • code: 107

message: inconsistency between requestedQuoteCompletionDate and expectedFulfillmentStartDate description:

  • code: 108

message: Seller requires agreement under which the buyer is requesting but is missing from the request. description:

  • code: 109

message: The agreement provided cannot be validated by the seller description:

  • code: 110

message: Product requested is not part of the provided agreement description:

  • code: 111

message: Mandatory product/item relationship is missing description:

swagger:response quoteCreateUnprocessableEntity

func NewQuoteCreateUnprocessableEntity

func NewQuoteCreateUnprocessableEntity() *QuoteCreateUnprocessableEntity

NewQuoteCreateUnprocessableEntity creates QuoteCreateUnprocessableEntity with default headers values

func (*QuoteCreateUnprocessableEntity) SetPayload

SetPayload sets the payload to the quote create unprocessable entity response

func (*QuoteCreateUnprocessableEntity) WithPayload

WithPayload adds the payload to the quote create unprocessable entity response

func (*QuoteCreateUnprocessableEntity) WriteResponse

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

WriteResponse to the client

type QuoteFind

type QuoteFind struct {
	Context *middleware.Context
	Handler QuoteFindHandler
}
QuoteFind swagger:route GET /quoteManagement/v2/quote Quote quoteFind

List quotes

This operation is used to retrieve quote information using filter criteria.

func NewQuoteFind

func NewQuoteFind(ctx *middleware.Context, handler QuoteFindHandler) *QuoteFind

NewQuoteFind creates a new http.Handler for the quote find operation

func (*QuoteFind) ServeHTTP

func (o *QuoteFind) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type QuoteFindBadRequest

type QuoteFindBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteFindBadRequest Bad Request

List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value

swagger:response quoteFindBadRequest

func NewQuoteFindBadRequest

func NewQuoteFindBadRequest() *QuoteFindBadRequest

NewQuoteFindBadRequest creates QuoteFindBadRequest with default headers values

func (*QuoteFindBadRequest) SetPayload

func (o *QuoteFindBadRequest) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote find bad request response

func (*QuoteFindBadRequest) WithPayload

WithPayload adds the payload to the quote find bad request response

func (*QuoteFindBadRequest) WriteResponse

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

WriteResponse to the client

type QuoteFindForbidden

type QuoteFindForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteFindForbidden Forbidden

List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests

swagger:response quoteFindForbidden

func NewQuoteFindForbidden

func NewQuoteFindForbidden() *QuoteFindForbidden

NewQuoteFindForbidden creates QuoteFindForbidden with default headers values

func (*QuoteFindForbidden) SetPayload

func (o *QuoteFindForbidden) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote find forbidden response

func (*QuoteFindForbidden) WithPayload

WithPayload adds the payload to the quote find forbidden response

func (*QuoteFindForbidden) WriteResponse

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

WriteResponse to the client

type QuoteFindHandler

type QuoteFindHandler interface {
	Handle(QuoteFindParams, *models.Principal) middleware.Responder
}

QuoteFindHandler interface for that can handle valid quote find params

type QuoteFindHandlerFunc

type QuoteFindHandlerFunc func(QuoteFindParams, *models.Principal) middleware.Responder

QuoteFindHandlerFunc turns a function with the right signature into a quote find handler

func (QuoteFindHandlerFunc) Handle

Handle executing the request and returning a response

type QuoteFindInternalServerError

type QuoteFindInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteFindInternalServerError Internal Server Error

List of supported error codes: - 1: Internal error

swagger:response quoteFindInternalServerError

func NewQuoteFindInternalServerError

func NewQuoteFindInternalServerError() *QuoteFindInternalServerError

NewQuoteFindInternalServerError creates QuoteFindInternalServerError with default headers values

func (*QuoteFindInternalServerError) SetPayload

SetPayload sets the payload to the quote find internal server error response

func (*QuoteFindInternalServerError) WithPayload

WithPayload adds the payload to the quote find internal server error response

func (*QuoteFindInternalServerError) WriteResponse

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

WriteResponse to the client

type QuoteFindMethodNotAllowed

type QuoteFindMethodNotAllowed struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteFindMethodNotAllowed Method Not Allowed

List of supported error codes: - 61: Method not allowed

swagger:response quoteFindMethodNotAllowed

func NewQuoteFindMethodNotAllowed

func NewQuoteFindMethodNotAllowed() *QuoteFindMethodNotAllowed

NewQuoteFindMethodNotAllowed creates QuoteFindMethodNotAllowed with default headers values

func (*QuoteFindMethodNotAllowed) SetPayload

func (o *QuoteFindMethodNotAllowed) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote find method not allowed response

func (*QuoteFindMethodNotAllowed) WithPayload

WithPayload adds the payload to the quote find method not allowed response

func (*QuoteFindMethodNotAllowed) WriteResponse

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

WriteResponse to the client

type QuoteFindNotFound

type QuoteFindNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteFindNotFound Not Found

List of supported error codes: - 60: Resource not found

swagger:response quoteFindNotFound

func NewQuoteFindNotFound

func NewQuoteFindNotFound() *QuoteFindNotFound

NewQuoteFindNotFound creates QuoteFindNotFound with default headers values

func (*QuoteFindNotFound) SetPayload

func (o *QuoteFindNotFound) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote find not found response

func (*QuoteFindNotFound) WithPayload

WithPayload adds the payload to the quote find not found response

func (*QuoteFindNotFound) WriteResponse

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

WriteResponse to the client

type QuoteFindOK

type QuoteFindOK struct {
	/*The number of resources retrieved in the response

	 */
	XResultCount int32 `json:"X-Result-Count"`
	/*Total number of items matching criteria

	 */
	XTotalCount int32 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.QuoteFind `json:"body,omitempty"`
}

QuoteFindOK Ok

swagger:response quoteFindOK

func NewQuoteFindOK

func NewQuoteFindOK() *QuoteFindOK

NewQuoteFindOK creates QuoteFindOK with default headers values

func (*QuoteFindOK) SetPayload

func (o *QuoteFindOK) SetPayload(payload []*models.QuoteFind)

SetPayload sets the payload to the quote find o k response

func (*QuoteFindOK) SetXResultCount

func (o *QuoteFindOK) SetXResultCount(xResultCount int32)

SetXResultCount sets the xResultCount to the quote find o k response

func (*QuoteFindOK) SetXTotalCount

func (o *QuoteFindOK) SetXTotalCount(xTotalCount int32)

SetXTotalCount sets the xTotalCount to the quote find o k response

func (*QuoteFindOK) WithPayload

func (o *QuoteFindOK) WithPayload(payload []*models.QuoteFind) *QuoteFindOK

WithPayload adds the payload to the quote find o k response

func (*QuoteFindOK) WithXResultCount

func (o *QuoteFindOK) WithXResultCount(xResultCount int32) *QuoteFindOK

WithXResultCount adds the xResultCount to the quote find o k response

func (*QuoteFindOK) WithXTotalCount

func (o *QuoteFindOK) WithXTotalCount(xTotalCount int32) *QuoteFindOK

WithXTotalCount adds the xTotalCount to the quote find o k response

func (*QuoteFindOK) WriteResponse

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

WriteResponse to the client

type QuoteFindParams

type QuoteFindParams struct {

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

	/*ID given by the consumer and only understandable by him (to facilitate his searches afterwards)
	  In: query
	*/
	ExternalID *string
	/*Requested number of resources to be provided in response requested by client
	  In: query
	*/
	Limit *string
	/*Requested index for start of resources to be provided in response requested by client
	  In: query
	*/
	Offset *string
	/*This value MAY be assigned by the Buyer/Seller to identify a project the quoting request is associated with.
	  In: query
	*/
	ProjectID *string
	/*Date when the quote was completed -  greater than
	  In: query
	*/
	QuoteCompletionDateGt *strfmt.DateTime
	/*Date when the quote was completed -  lower than
	  In: query
	*/
	QuoteCompletionDateLt *strfmt.DateTime
	/*Date when the quote was created - greater than
	  In: query
	*/
	QuoteDateGt *strfmt.DateTime
	/*Date when the quote was created - lower than
	  In: query
	*/
	QuoteDateLt *strfmt.DateTime
	/*Level of the quote - could be indicative, budgetary or firm
	  In: query
	*/
	QuoteLevel *string
	/*State of the Quote
	  In: query
	*/
	State *string
}

QuoteFindParams contains all the bound params for the quote find operation typically these are obtained from a http.Request

swagger:parameters quoteFind

func NewQuoteFindParams

func NewQuoteFindParams() QuoteFindParams

NewQuoteFindParams creates a new QuoteFindParams object

There are no default values defined in the spec.

func (*QuoteFindParams) BindRequest

func (o *QuoteFindParams) 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 NewQuoteFindParams() beforehand.

type QuoteFindServiceUnavailable

type QuoteFindServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteFindServiceUnavailable Service Unavailable

swagger:response quoteFindServiceUnavailable

func NewQuoteFindServiceUnavailable

func NewQuoteFindServiceUnavailable() *QuoteFindServiceUnavailable

NewQuoteFindServiceUnavailable creates QuoteFindServiceUnavailable with default headers values

func (*QuoteFindServiceUnavailable) SetPayload

func (o *QuoteFindServiceUnavailable) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote find service unavailable response

func (*QuoteFindServiceUnavailable) WithPayload

WithPayload adds the payload to the quote find service unavailable response

func (*QuoteFindServiceUnavailable) WriteResponse

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

WriteResponse to the client

type QuoteFindURL

type QuoteFindURL struct {
	ExternalID            *string
	Limit                 *string
	Offset                *string
	ProjectID             *string
	QuoteCompletionDateGt *strfmt.DateTime
	QuoteCompletionDateLt *strfmt.DateTime
	QuoteDateGt           *strfmt.DateTime
	QuoteDateLt           *strfmt.DateTime
	QuoteLevel            *string
	State                 *string
	// contains filtered or unexported fields
}

QuoteFindURL generates an URL for the quote find operation

func (*QuoteFindURL) Build

func (o *QuoteFindURL) Build() (*url.URL, error)

Build a url path and query string

func (*QuoteFindURL) BuildFull

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

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

func (*QuoteFindURL) Must

func (o *QuoteFindURL) Must(u *url.URL, err error) *url.URL

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

func (*QuoteFindURL) SetBasePath

func (o *QuoteFindURL) 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 (*QuoteFindURL) String

func (o *QuoteFindURL) String() string

String returns the string representation of the path with query string

func (*QuoteFindURL) StringFull

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

StringFull returns the string representation of a complete url

func (*QuoteFindURL) WithBasePath

func (o *QuoteFindURL) WithBasePath(bp string) *QuoteFindURL

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 QuoteFindUnauthorized

type QuoteFindUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteFindUnauthorized Unauthorized

List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials

swagger:response quoteFindUnauthorized

func NewQuoteFindUnauthorized

func NewQuoteFindUnauthorized() *QuoteFindUnauthorized

NewQuoteFindUnauthorized creates QuoteFindUnauthorized with default headers values

func (*QuoteFindUnauthorized) SetPayload

func (o *QuoteFindUnauthorized) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote find unauthorized response

func (*QuoteFindUnauthorized) WithPayload

WithPayload adds the payload to the quote find unauthorized response

func (*QuoteFindUnauthorized) WriteResponse

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

WriteResponse to the client

type QuoteFindUnprocessableEntity

type QuoteFindUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteFindUnprocessableEntity Unprocessable entity

Functional error

  • code: 100

message: Too many records retrieved - please restrict requested parameter value(s) description:

swagger:response quoteFindUnprocessableEntity

func NewQuoteFindUnprocessableEntity

func NewQuoteFindUnprocessableEntity() *QuoteFindUnprocessableEntity

NewQuoteFindUnprocessableEntity creates QuoteFindUnprocessableEntity with default headers values

func (*QuoteFindUnprocessableEntity) SetPayload

SetPayload sets the payload to the quote find unprocessable entity response

func (*QuoteFindUnprocessableEntity) WithPayload

WithPayload adds the payload to the quote find unprocessable entity response

func (*QuoteFindUnprocessableEntity) WriteResponse

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

WriteResponse to the client

type QuoteGet

type QuoteGet struct {
	Context *middleware.Context
	Handler QuoteGetHandler
}
QuoteGet swagger:route GET /quoteManagement/v2/quote/{id} Quote quoteGet

Retrieve a quote

This operation is used to retrieve quote information using the ID.

func NewQuoteGet

func NewQuoteGet(ctx *middleware.Context, handler QuoteGetHandler) *QuoteGet

NewQuoteGet creates a new http.Handler for the quote get operation

func (*QuoteGet) ServeHTTP

func (o *QuoteGet) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type QuoteGetBadRequest

type QuoteGetBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteGetBadRequest Bad Request

List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value

swagger:response quoteGetBadRequest

func NewQuoteGetBadRequest

func NewQuoteGetBadRequest() *QuoteGetBadRequest

NewQuoteGetBadRequest creates QuoteGetBadRequest with default headers values

func (*QuoteGetBadRequest) SetPayload

func (o *QuoteGetBadRequest) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote get bad request response

func (*QuoteGetBadRequest) WithPayload

WithPayload adds the payload to the quote get bad request response

func (*QuoteGetBadRequest) WriteResponse

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

WriteResponse to the client

type QuoteGetForbidden

type QuoteGetForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteGetForbidden Forbidden

List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests

swagger:response quoteGetForbidden

func NewQuoteGetForbidden

func NewQuoteGetForbidden() *QuoteGetForbidden

NewQuoteGetForbidden creates QuoteGetForbidden with default headers values

func (*QuoteGetForbidden) SetPayload

func (o *QuoteGetForbidden) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote get forbidden response

func (*QuoteGetForbidden) WithPayload

WithPayload adds the payload to the quote get forbidden response

func (*QuoteGetForbidden) WriteResponse

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

WriteResponse to the client

type QuoteGetHandler

type QuoteGetHandler interface {
	Handle(QuoteGetParams, *models.Principal) middleware.Responder
}

QuoteGetHandler interface for that can handle valid quote get params

type QuoteGetHandlerFunc

type QuoteGetHandlerFunc func(QuoteGetParams, *models.Principal) middleware.Responder

QuoteGetHandlerFunc turns a function with the right signature into a quote get handler

func (QuoteGetHandlerFunc) Handle

Handle executing the request and returning a response

type QuoteGetInternalServerError

type QuoteGetInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteGetInternalServerError Internal Server Error

List of supported error codes: - 1: Internal error

swagger:response quoteGetInternalServerError

func NewQuoteGetInternalServerError

func NewQuoteGetInternalServerError() *QuoteGetInternalServerError

NewQuoteGetInternalServerError creates QuoteGetInternalServerError with default headers values

func (*QuoteGetInternalServerError) SetPayload

func (o *QuoteGetInternalServerError) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote get internal server error response

func (*QuoteGetInternalServerError) WithPayload

WithPayload adds the payload to the quote get internal server error response

func (*QuoteGetInternalServerError) WriteResponse

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

WriteResponse to the client

type QuoteGetMethodNotAllowed

type QuoteGetMethodNotAllowed struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteGetMethodNotAllowed Method Not Allowed

List of supported error codes: - 61: Method not allowed

swagger:response quoteGetMethodNotAllowed

func NewQuoteGetMethodNotAllowed

func NewQuoteGetMethodNotAllowed() *QuoteGetMethodNotAllowed

NewQuoteGetMethodNotAllowed creates QuoteGetMethodNotAllowed with default headers values

func (*QuoteGetMethodNotAllowed) SetPayload

func (o *QuoteGetMethodNotAllowed) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote get method not allowed response

func (*QuoteGetMethodNotAllowed) WithPayload

WithPayload adds the payload to the quote get method not allowed response

func (*QuoteGetMethodNotAllowed) WriteResponse

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

WriteResponse to the client

type QuoteGetNotFound

type QuoteGetNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteGetNotFound Not Found

List of supported error codes: - 60: Resource not found

swagger:response quoteGetNotFound

func NewQuoteGetNotFound

func NewQuoteGetNotFound() *QuoteGetNotFound

NewQuoteGetNotFound creates QuoteGetNotFound with default headers values

func (*QuoteGetNotFound) SetPayload

func (o *QuoteGetNotFound) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote get not found response

func (*QuoteGetNotFound) WithPayload

func (o *QuoteGetNotFound) WithPayload(payload *models.ErrorRepresentation) *QuoteGetNotFound

WithPayload adds the payload to the quote get not found response

func (*QuoteGetNotFound) WriteResponse

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

WriteResponse to the client

type QuoteGetOK

type QuoteGetOK struct {

	/*
	  In: Body
	*/
	Payload *models.Quote `json:"body,omitempty"`
}

QuoteGetOK Ok

swagger:response quoteGetOK

func NewQuoteGetOK

func NewQuoteGetOK() *QuoteGetOK

NewQuoteGetOK creates QuoteGetOK with default headers values

func (*QuoteGetOK) SetPayload

func (o *QuoteGetOK) SetPayload(payload *models.Quote)

SetPayload sets the payload to the quote get o k response

func (*QuoteGetOK) WithPayload

func (o *QuoteGetOK) WithPayload(payload *models.Quote) *QuoteGetOK

WithPayload adds the payload to the quote get o k response

func (*QuoteGetOK) WriteResponse

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

WriteResponse to the client

type QuoteGetParams

type QuoteGetParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	ID string
}

QuoteGetParams contains all the bound params for the quote get operation typically these are obtained from a http.Request

swagger:parameters quoteGet

func NewQuoteGetParams

func NewQuoteGetParams() QuoteGetParams

NewQuoteGetParams creates a new QuoteGetParams object

There are no default values defined in the spec.

func (*QuoteGetParams) BindRequest

func (o *QuoteGetParams) 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 NewQuoteGetParams() beforehand.

type QuoteGetServiceUnavailable

type QuoteGetServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteGetServiceUnavailable Service Unavailable

swagger:response quoteGetServiceUnavailable

func NewQuoteGetServiceUnavailable

func NewQuoteGetServiceUnavailable() *QuoteGetServiceUnavailable

NewQuoteGetServiceUnavailable creates QuoteGetServiceUnavailable with default headers values

func (*QuoteGetServiceUnavailable) SetPayload

func (o *QuoteGetServiceUnavailable) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote get service unavailable response

func (*QuoteGetServiceUnavailable) WithPayload

WithPayload adds the payload to the quote get service unavailable response

func (*QuoteGetServiceUnavailable) WriteResponse

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

WriteResponse to the client

type QuoteGetURL

type QuoteGetURL struct {
	ID string
	// contains filtered or unexported fields
}

QuoteGetURL generates an URL for the quote get operation

func (*QuoteGetURL) Build

func (o *QuoteGetURL) Build() (*url.URL, error)

Build a url path and query string

func (*QuoteGetURL) BuildFull

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

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

func (*QuoteGetURL) Must

func (o *QuoteGetURL) Must(u *url.URL, err error) *url.URL

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

func (*QuoteGetURL) SetBasePath

func (o *QuoteGetURL) 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 (*QuoteGetURL) String

func (o *QuoteGetURL) String() string

String returns the string representation of the path with query string

func (*QuoteGetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*QuoteGetURL) WithBasePath

func (o *QuoteGetURL) WithBasePath(bp string) *QuoteGetURL

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 QuoteGetUnauthorized

type QuoteGetUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteGetUnauthorized Unauthorized

List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials

swagger:response quoteGetUnauthorized

func NewQuoteGetUnauthorized

func NewQuoteGetUnauthorized() *QuoteGetUnauthorized

NewQuoteGetUnauthorized creates QuoteGetUnauthorized with default headers values

func (*QuoteGetUnauthorized) SetPayload

func (o *QuoteGetUnauthorized) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote get unauthorized response

func (*QuoteGetUnauthorized) WithPayload

WithPayload adds the payload to the quote get unauthorized response

func (*QuoteGetUnauthorized) WriteResponse

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

WriteResponse to the client

type QuoteGetUnprocessableEntity

type QuoteGetUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteGetUnprocessableEntity Unprocessable entity

Functional error

swagger:response quoteGetUnprocessableEntity

func NewQuoteGetUnprocessableEntity

func NewQuoteGetUnprocessableEntity() *QuoteGetUnprocessableEntity

NewQuoteGetUnprocessableEntity creates QuoteGetUnprocessableEntity with default headers values

func (*QuoteGetUnprocessableEntity) SetPayload

func (o *QuoteGetUnprocessableEntity) SetPayload(payload *models.ErrorRepresentation)

SetPayload sets the payload to the quote get unprocessable entity response

func (*QuoteGetUnprocessableEntity) WithPayload

WithPayload adds the payload to the quote get unprocessable entity response

func (*QuoteGetUnprocessableEntity) WriteResponse

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

WriteResponse to the client

type QuoteRequestStateChange

type QuoteRequestStateChange struct {
	Context *middleware.Context
	Handler QuoteRequestStateChangeHandler
}
QuoteRequestStateChange swagger:route POST /quoteManagement/v2/quote/requestStateChange Quote quoteRequestStateChange

request a quote state change

Request from buyer to cancel or reject a quote. When seller receive cancel request, seller will shift quote state to CANCELLED (no change on order item state) When seller receive reject request, seller will shift quote state to REJECTED (no change on order item state)

func NewQuoteRequestStateChange

func NewQuoteRequestStateChange(ctx *middleware.Context, handler QuoteRequestStateChangeHandler) *QuoteRequestStateChange

NewQuoteRequestStateChange creates a new http.Handler for the quote request state change operation

func (*QuoteRequestStateChange) ServeHTTP

type QuoteRequestStateChangeBadRequest

type QuoteRequestStateChangeBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteRequestStateChangeBadRequest Bad Request

List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value

swagger:response quoteRequestStateChangeBadRequest

func NewQuoteRequestStateChangeBadRequest

func NewQuoteRequestStateChangeBadRequest() *QuoteRequestStateChangeBadRequest

NewQuoteRequestStateChangeBadRequest creates QuoteRequestStateChangeBadRequest with default headers values

func (*QuoteRequestStateChangeBadRequest) SetPayload

SetPayload sets the payload to the quote request state change bad request response

func (*QuoteRequestStateChangeBadRequest) WithPayload

WithPayload adds the payload to the quote request state change bad request response

func (*QuoteRequestStateChangeBadRequest) WriteResponse

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

WriteResponse to the client

type QuoteRequestStateChangeForbidden

type QuoteRequestStateChangeForbidden struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteRequestStateChangeForbidden Forbidden

List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests

swagger:response quoteRequestStateChangeForbidden

func NewQuoteRequestStateChangeForbidden

func NewQuoteRequestStateChangeForbidden() *QuoteRequestStateChangeForbidden

NewQuoteRequestStateChangeForbidden creates QuoteRequestStateChangeForbidden with default headers values

func (*QuoteRequestStateChangeForbidden) SetPayload

SetPayload sets the payload to the quote request state change forbidden response

func (*QuoteRequestStateChangeForbidden) WithPayload

WithPayload adds the payload to the quote request state change forbidden response

func (*QuoteRequestStateChangeForbidden) WriteResponse

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

WriteResponse to the client

type QuoteRequestStateChangeHandler

type QuoteRequestStateChangeHandler interface {
	Handle(QuoteRequestStateChangeParams, *models.Principal) middleware.Responder
}

QuoteRequestStateChangeHandler interface for that can handle valid quote request state change params

type QuoteRequestStateChangeHandlerFunc

type QuoteRequestStateChangeHandlerFunc func(QuoteRequestStateChangeParams, *models.Principal) middleware.Responder

QuoteRequestStateChangeHandlerFunc turns a function with the right signature into a quote request state change handler

func (QuoteRequestStateChangeHandlerFunc) Handle

Handle executing the request and returning a response

type QuoteRequestStateChangeInternalServerError

type QuoteRequestStateChangeInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteRequestStateChangeInternalServerError Internal Server Error

List of supported error codes: - 1: Internal error

swagger:response quoteRequestStateChangeInternalServerError

func NewQuoteRequestStateChangeInternalServerError

func NewQuoteRequestStateChangeInternalServerError() *QuoteRequestStateChangeInternalServerError

NewQuoteRequestStateChangeInternalServerError creates QuoteRequestStateChangeInternalServerError with default headers values

func (*QuoteRequestStateChangeInternalServerError) SetPayload

SetPayload sets the payload to the quote request state change internal server error response

func (*QuoteRequestStateChangeInternalServerError) WithPayload

WithPayload adds the payload to the quote request state change internal server error response

func (*QuoteRequestStateChangeInternalServerError) WriteResponse

WriteResponse to the client

type QuoteRequestStateChangeMethodNotAllowed

type QuoteRequestStateChangeMethodNotAllowed struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteRequestStateChangeMethodNotAllowed Method Not Allowed

List of supported error codes: - 61: Method not allowed

swagger:response quoteRequestStateChangeMethodNotAllowed

func NewQuoteRequestStateChangeMethodNotAllowed

func NewQuoteRequestStateChangeMethodNotAllowed() *QuoteRequestStateChangeMethodNotAllowed

NewQuoteRequestStateChangeMethodNotAllowed creates QuoteRequestStateChangeMethodNotAllowed with default headers values

func (*QuoteRequestStateChangeMethodNotAllowed) SetPayload

SetPayload sets the payload to the quote request state change method not allowed response

func (*QuoteRequestStateChangeMethodNotAllowed) WithPayload

WithPayload adds the payload to the quote request state change method not allowed response

func (*QuoteRequestStateChangeMethodNotAllowed) WriteResponse

WriteResponse to the client

type QuoteRequestStateChangeNotFound

type QuoteRequestStateChangeNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteRequestStateChangeNotFound Not Found

List of supported error codes: - 60: Resource not found

swagger:response quoteRequestStateChangeNotFound

func NewQuoteRequestStateChangeNotFound

func NewQuoteRequestStateChangeNotFound() *QuoteRequestStateChangeNotFound

NewQuoteRequestStateChangeNotFound creates QuoteRequestStateChangeNotFound with default headers values

func (*QuoteRequestStateChangeNotFound) SetPayload

SetPayload sets the payload to the quote request state change not found response

func (*QuoteRequestStateChangeNotFound) WithPayload

WithPayload adds the payload to the quote request state change not found response

func (*QuoteRequestStateChangeNotFound) WriteResponse

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

WriteResponse to the client

type QuoteRequestStateChangeOK

type QuoteRequestStateChangeOK struct {

	/*
	  In: Body
	*/
	Payload *models.ChangeQuoteStateResponse `json:"body,omitempty"`
}

QuoteRequestStateChangeOK Ok

swagger:response quoteRequestStateChangeOK

func NewQuoteRequestStateChangeOK

func NewQuoteRequestStateChangeOK() *QuoteRequestStateChangeOK

NewQuoteRequestStateChangeOK creates QuoteRequestStateChangeOK with default headers values

func (*QuoteRequestStateChangeOK) SetPayload

SetPayload sets the payload to the quote request state change o k response

func (*QuoteRequestStateChangeOK) WithPayload

WithPayload adds the payload to the quote request state change o k response

func (*QuoteRequestStateChangeOK) WriteResponse

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

WriteResponse to the client

type QuoteRequestStateChangeParams

type QuoteRequestStateChangeParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	ChangeQuoteStateRequest *models.ChangelQuoteStateRequest
}

QuoteRequestStateChangeParams contains all the bound params for the quote request state change operation typically these are obtained from a http.Request

swagger:parameters quoteRequestStateChange

func NewQuoteRequestStateChangeParams

func NewQuoteRequestStateChangeParams() QuoteRequestStateChangeParams

NewQuoteRequestStateChangeParams creates a new QuoteRequestStateChangeParams object

There are no default values defined in the spec.

func (*QuoteRequestStateChangeParams) 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 NewQuoteRequestStateChangeParams() beforehand.

type QuoteRequestStateChangeServiceUnavailable

type QuoteRequestStateChangeServiceUnavailable struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteRequestStateChangeServiceUnavailable Service Unavailable

swagger:response quoteRequestStateChangeServiceUnavailable

func NewQuoteRequestStateChangeServiceUnavailable

func NewQuoteRequestStateChangeServiceUnavailable() *QuoteRequestStateChangeServiceUnavailable

NewQuoteRequestStateChangeServiceUnavailable creates QuoteRequestStateChangeServiceUnavailable with default headers values

func (*QuoteRequestStateChangeServiceUnavailable) SetPayload

SetPayload sets the payload to the quote request state change service unavailable response

func (*QuoteRequestStateChangeServiceUnavailable) WithPayload

WithPayload adds the payload to the quote request state change service unavailable response

func (*QuoteRequestStateChangeServiceUnavailable) WriteResponse

WriteResponse to the client

type QuoteRequestStateChangeURL

type QuoteRequestStateChangeURL struct {
	// contains filtered or unexported fields
}

QuoteRequestStateChangeURL generates an URL for the quote request state change operation

func (*QuoteRequestStateChangeURL) Build

func (o *QuoteRequestStateChangeURL) Build() (*url.URL, error)

Build a url path and query string

func (*QuoteRequestStateChangeURL) BuildFull

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

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

func (*QuoteRequestStateChangeURL) Must

func (o *QuoteRequestStateChangeURL) Must(u *url.URL, err error) *url.URL

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

func (*QuoteRequestStateChangeURL) SetBasePath

func (o *QuoteRequestStateChangeURL) 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 (*QuoteRequestStateChangeURL) String

func (o *QuoteRequestStateChangeURL) String() string

String returns the string representation of the path with query string

func (*QuoteRequestStateChangeURL) StringFull

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

StringFull returns the string representation of a complete url

func (*QuoteRequestStateChangeURL) 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 QuoteRequestStateChangeUnauthorized

type QuoteRequestStateChangeUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteRequestStateChangeUnauthorized Unauthorized

List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials

swagger:response quoteRequestStateChangeUnauthorized

func NewQuoteRequestStateChangeUnauthorized

func NewQuoteRequestStateChangeUnauthorized() *QuoteRequestStateChangeUnauthorized

NewQuoteRequestStateChangeUnauthorized creates QuoteRequestStateChangeUnauthorized with default headers values

func (*QuoteRequestStateChangeUnauthorized) SetPayload

SetPayload sets the payload to the quote request state change unauthorized response

func (*QuoteRequestStateChangeUnauthorized) WithPayload

WithPayload adds the payload to the quote request state change unauthorized response

func (*QuoteRequestStateChangeUnauthorized) WriteResponse

WriteResponse to the client

type QuoteRequestStateChangeUnprocessableEntity

type QuoteRequestStateChangeUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorRepresentation `json:"body,omitempty"`
}

QuoteRequestStateChangeUnprocessableEntity Unprocessable entity

Functional error

  • code: 100

message: Quote current status is incompatible with requested quote state change description:

  • code: 101

message: Quote external Id provided did not match description:

swagger:response quoteRequestStateChangeUnprocessableEntity

func NewQuoteRequestStateChangeUnprocessableEntity

func NewQuoteRequestStateChangeUnprocessableEntity() *QuoteRequestStateChangeUnprocessableEntity

NewQuoteRequestStateChangeUnprocessableEntity creates QuoteRequestStateChangeUnprocessableEntity with default headers values

func (*QuoteRequestStateChangeUnprocessableEntity) SetPayload

SetPayload sets the payload to the quote request state change unprocessable entity response

func (*QuoteRequestStateChangeUnprocessableEntity) WithPayload

WithPayload adds the payload to the quote request state change unprocessable entity response

func (*QuoteRequestStateChangeUnprocessableEntity) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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