quote

package
v0.0.0-...-c4e9093 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for quote API

func (*Client) QuoteCreate

func (a *Client) QuoteCreate(params *QuoteCreateParams) (*QuoteCreateCreated, error)

QuoteCreate creates a quote

This operation is used to create a new quote.

func (*Client) QuoteFind

func (a *Client) QuoteFind(params *QuoteFindParams) (*QuoteFindOK, error)

QuoteFind lists quotes

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

func (*Client) QuoteGet

func (a *Client) QuoteGet(params *QuoteGetParams) (*QuoteGetOK, error)

QuoteGet retrieves a quote

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

func (*Client) QuoteRequestStateChange

func (a *Client) QuoteRequestStateChange(params *QuoteRequestStateChangeParams) (*QuoteRequestStateChangeOK, error)
QuoteRequestStateChange requests 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 (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	QuoteCreate(params *QuoteCreateParams) (*QuoteCreateCreated, error)

	QuoteFind(params *QuoteFindParams) (*QuoteFindOK, error)

	QuoteGet(params *QuoteGetParams) (*QuoteGetOK, error)

	QuoteRequestStateChange(params *QuoteRequestStateChangeParams) (*QuoteRequestStateChangeOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new quote API client.

type QuoteCreateBadRequest

type QuoteCreateBadRequest struct {
	Payload *models.ErrorRepresentation
}

QuoteCreateBadRequest handles this case with default header values.

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

func NewQuoteCreateBadRequest

func NewQuoteCreateBadRequest() *QuoteCreateBadRequest

NewQuoteCreateBadRequest creates a QuoteCreateBadRequest with default headers values

func (*QuoteCreateBadRequest) Error

func (o *QuoteCreateBadRequest) Error() string

func (*QuoteCreateBadRequest) GetPayload

type QuoteCreateCreated

type QuoteCreateCreated struct {
	Payload *models.Quote
}

QuoteCreateCreated handles this case with default header values.

Created

func NewQuoteCreateCreated

func NewQuoteCreateCreated() *QuoteCreateCreated

NewQuoteCreateCreated creates a QuoteCreateCreated with default headers values

func (*QuoteCreateCreated) Error

func (o *QuoteCreateCreated) Error() string

func (*QuoteCreateCreated) GetPayload

func (o *QuoteCreateCreated) GetPayload() *models.Quote

type QuoteCreateForbidden

type QuoteCreateForbidden struct {
	Payload *models.ErrorRepresentation
}

QuoteCreateForbidden handles this case with default header values.

Forbidden

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

func NewQuoteCreateForbidden

func NewQuoteCreateForbidden() *QuoteCreateForbidden

NewQuoteCreateForbidden creates a QuoteCreateForbidden with default headers values

func (*QuoteCreateForbidden) Error

func (o *QuoteCreateForbidden) Error() string

func (*QuoteCreateForbidden) GetPayload

type QuoteCreateInternalServerError

type QuoteCreateInternalServerError struct {
	Payload *models.ErrorRepresentation
}

QuoteCreateInternalServerError handles this case with default header values.

Internal Server Error

List of supported error codes: - 1: Internal error

func NewQuoteCreateInternalServerError

func NewQuoteCreateInternalServerError() *QuoteCreateInternalServerError

NewQuoteCreateInternalServerError creates a QuoteCreateInternalServerError with default headers values

func (*QuoteCreateInternalServerError) Error

func (*QuoteCreateInternalServerError) GetPayload

type QuoteCreateMethodNotAllowed

type QuoteCreateMethodNotAllowed struct {
	Payload *models.ErrorRepresentation
}

QuoteCreateMethodNotAllowed handles this case with default header values.

Method Not Allowed

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

func NewQuoteCreateMethodNotAllowed

func NewQuoteCreateMethodNotAllowed() *QuoteCreateMethodNotAllowed

NewQuoteCreateMethodNotAllowed creates a QuoteCreateMethodNotAllowed with default headers values

func (*QuoteCreateMethodNotAllowed) Error

func (*QuoteCreateMethodNotAllowed) GetPayload

type QuoteCreateNotFound

type QuoteCreateNotFound struct {
	Payload *models.ErrorRepresentation
}

QuoteCreateNotFound handles this case with default header values.

Not Found

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

func NewQuoteCreateNotFound

func NewQuoteCreateNotFound() *QuoteCreateNotFound

NewQuoteCreateNotFound creates a QuoteCreateNotFound with default headers values

func (*QuoteCreateNotFound) Error

func (o *QuoteCreateNotFound) Error() string

func (*QuoteCreateNotFound) GetPayload

type QuoteCreateParams

type QuoteCreateParams struct {

	/*Quote*/
	Quote *models.QuoteCreate

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QuoteCreateParams contains all the parameters to send to the API endpoint for the quote create operation typically these are written to a http.Request

func NewQuoteCreateParams

func NewQuoteCreateParams() *QuoteCreateParams

NewQuoteCreateParams creates a new QuoteCreateParams object with the default values initialized.

func NewQuoteCreateParamsWithContext

func NewQuoteCreateParamsWithContext(ctx context.Context) *QuoteCreateParams

NewQuoteCreateParamsWithContext creates a new QuoteCreateParams object with the default values initialized, and the ability to set a context for a request

func NewQuoteCreateParamsWithHTTPClient

func NewQuoteCreateParamsWithHTTPClient(client *http.Client) *QuoteCreateParams

NewQuoteCreateParamsWithHTTPClient creates a new QuoteCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewQuoteCreateParamsWithTimeout

func NewQuoteCreateParamsWithTimeout(timeout time.Duration) *QuoteCreateParams

NewQuoteCreateParamsWithTimeout creates a new QuoteCreateParams object with the default values initialized, and the ability to set a timeout on a request

func (*QuoteCreateParams) SetContext

func (o *QuoteCreateParams) SetContext(ctx context.Context)

SetContext adds the context to the quote create params

func (*QuoteCreateParams) SetHTTPClient

func (o *QuoteCreateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the quote create params

func (*QuoteCreateParams) SetQuote

func (o *QuoteCreateParams) SetQuote(quote *models.QuoteCreate)

SetQuote adds the quote to the quote create params

func (*QuoteCreateParams) SetTimeout

func (o *QuoteCreateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the quote create params

func (*QuoteCreateParams) WithContext

func (o *QuoteCreateParams) WithContext(ctx context.Context) *QuoteCreateParams

WithContext adds the context to the quote create params

func (*QuoteCreateParams) WithHTTPClient

func (o *QuoteCreateParams) WithHTTPClient(client *http.Client) *QuoteCreateParams

WithHTTPClient adds the HTTPClient to the quote create params

func (*QuoteCreateParams) WithQuote

func (o *QuoteCreateParams) WithQuote(quote *models.QuoteCreate) *QuoteCreateParams

WithQuote adds the quote to the quote create params

func (*QuoteCreateParams) WithTimeout

func (o *QuoteCreateParams) WithTimeout(timeout time.Duration) *QuoteCreateParams

WithTimeout adds the timeout to the quote create params

func (*QuoteCreateParams) WriteToRequest

func (o *QuoteCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QuoteCreateReader

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

QuoteCreateReader is a Reader for the QuoteCreate structure.

func (*QuoteCreateReader) ReadResponse

func (o *QuoteCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type QuoteCreateServiceUnavailable

type QuoteCreateServiceUnavailable struct {
	Payload *models.ErrorRepresentation
}

QuoteCreateServiceUnavailable handles this case with default header values.

Service Unavailable

func NewQuoteCreateServiceUnavailable

func NewQuoteCreateServiceUnavailable() *QuoteCreateServiceUnavailable

NewQuoteCreateServiceUnavailable creates a QuoteCreateServiceUnavailable with default headers values

func (*QuoteCreateServiceUnavailable) Error

func (*QuoteCreateServiceUnavailable) GetPayload

type QuoteCreateUnauthorized

type QuoteCreateUnauthorized struct {
	Payload *models.ErrorRepresentation
}

QuoteCreateUnauthorized handles this case with default header values.

Unauthorized

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

func NewQuoteCreateUnauthorized

func NewQuoteCreateUnauthorized() *QuoteCreateUnauthorized

NewQuoteCreateUnauthorized creates a QuoteCreateUnauthorized with default headers values

func (*QuoteCreateUnauthorized) Error

func (o *QuoteCreateUnauthorized) Error() string

func (*QuoteCreateUnauthorized) GetPayload

type QuoteCreateUnprocessableEntity

type QuoteCreateUnprocessableEntity struct {
	Payload *models.ErrorRepresentation
}

QuoteCreateUnprocessableEntity handles this case with default header values.

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:

func NewQuoteCreateUnprocessableEntity

func NewQuoteCreateUnprocessableEntity() *QuoteCreateUnprocessableEntity

NewQuoteCreateUnprocessableEntity creates a QuoteCreateUnprocessableEntity with default headers values

func (*QuoteCreateUnprocessableEntity) Error

func (*QuoteCreateUnprocessableEntity) GetPayload

type QuoteFindBadRequest

type QuoteFindBadRequest struct {
	Payload *models.ErrorRepresentation
}

QuoteFindBadRequest handles this case with default header values.

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

func NewQuoteFindBadRequest

func NewQuoteFindBadRequest() *QuoteFindBadRequest

NewQuoteFindBadRequest creates a QuoteFindBadRequest with default headers values

func (*QuoteFindBadRequest) Error

func (o *QuoteFindBadRequest) Error() string

func (*QuoteFindBadRequest) GetPayload

type QuoteFindForbidden

type QuoteFindForbidden struct {
	Payload *models.ErrorRepresentation
}

QuoteFindForbidden handles this case with default header values.

Forbidden

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

func NewQuoteFindForbidden

func NewQuoteFindForbidden() *QuoteFindForbidden

NewQuoteFindForbidden creates a QuoteFindForbidden with default headers values

func (*QuoteFindForbidden) Error

func (o *QuoteFindForbidden) Error() string

func (*QuoteFindForbidden) GetPayload

type QuoteFindInternalServerError

type QuoteFindInternalServerError struct {
	Payload *models.ErrorRepresentation
}

QuoteFindInternalServerError handles this case with default header values.

Internal Server Error

List of supported error codes: - 1: Internal error

func NewQuoteFindInternalServerError

func NewQuoteFindInternalServerError() *QuoteFindInternalServerError

NewQuoteFindInternalServerError creates a QuoteFindInternalServerError with default headers values

func (*QuoteFindInternalServerError) Error

func (*QuoteFindInternalServerError) GetPayload

type QuoteFindMethodNotAllowed

type QuoteFindMethodNotAllowed struct {
	Payload *models.ErrorRepresentation
}

QuoteFindMethodNotAllowed handles this case with default header values.

Method Not Allowed

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

func NewQuoteFindMethodNotAllowed

func NewQuoteFindMethodNotAllowed() *QuoteFindMethodNotAllowed

NewQuoteFindMethodNotAllowed creates a QuoteFindMethodNotAllowed with default headers values

func (*QuoteFindMethodNotAllowed) Error

func (o *QuoteFindMethodNotAllowed) Error() string

func (*QuoteFindMethodNotAllowed) GetPayload

type QuoteFindNotFound

type QuoteFindNotFound struct {
	Payload *models.ErrorRepresentation
}

QuoteFindNotFound handles this case with default header values.

Not Found

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

func NewQuoteFindNotFound

func NewQuoteFindNotFound() *QuoteFindNotFound

NewQuoteFindNotFound creates a QuoteFindNotFound with default headers values

func (*QuoteFindNotFound) Error

func (o *QuoteFindNotFound) Error() string

func (*QuoteFindNotFound) GetPayload

func (o *QuoteFindNotFound) GetPayload() *models.ErrorRepresentation

type QuoteFindOK

type QuoteFindOK struct {
	/*The number of resources retrieved in the response
	 */
	XResultCount int32
	/*Total number of items matching criteria
	 */
	XTotalCount int32

	Payload []*models.QuoteFind
}

QuoteFindOK handles this case with default header values.

Ok

func NewQuoteFindOK

func NewQuoteFindOK() *QuoteFindOK

NewQuoteFindOK creates a QuoteFindOK with default headers values

func (*QuoteFindOK) Error

func (o *QuoteFindOK) Error() string

func (*QuoteFindOK) GetPayload

func (o *QuoteFindOK) GetPayload() []*models.QuoteFind

type QuoteFindParams

type QuoteFindParams struct {

	/*ExternalID
	  ID given by the consumer and only understandable by him (to facilitate his searches afterwards)

	*/
	ExternalID *string
	/*Limit
	  Requested number of resources to be provided in response requested by client

	*/
	Limit *string
	/*Offset
	  Requested index for start of resources to be provided in response requested by client

	*/
	Offset *string
	/*ProjectID
	  This value MAY be assigned by the Buyer/Seller to identify a project the quoting request is associated with.

	*/
	ProjectID *string
	/*QuoteCompletionDateGt
	  Date when the quote was completed -  greater than

	*/
	QuoteCompletionDateGt *strfmt.DateTime
	/*QuoteCompletionDateLt
	  Date when the quote was completed -  lower than

	*/
	QuoteCompletionDateLt *strfmt.DateTime
	/*QuoteDateGt
	  Date when the quote was created - greater than

	*/
	QuoteDateGt *strfmt.DateTime
	/*QuoteDateLt
	  Date when the quote was created - lower than

	*/
	QuoteDateLt *strfmt.DateTime
	/*QuoteLevel
	  Level of the quote - could be indicative, budgetary or firm

	*/
	QuoteLevel *string
	/*State
	  State of the Quote

	*/
	State *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QuoteFindParams contains all the parameters to send to the API endpoint for the quote find operation typically these are written to a http.Request

func NewQuoteFindParams

func NewQuoteFindParams() *QuoteFindParams

NewQuoteFindParams creates a new QuoteFindParams object with the default values initialized.

func NewQuoteFindParamsWithContext

func NewQuoteFindParamsWithContext(ctx context.Context) *QuoteFindParams

NewQuoteFindParamsWithContext creates a new QuoteFindParams object with the default values initialized, and the ability to set a context for a request

func NewQuoteFindParamsWithHTTPClient

func NewQuoteFindParamsWithHTTPClient(client *http.Client) *QuoteFindParams

NewQuoteFindParamsWithHTTPClient creates a new QuoteFindParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewQuoteFindParamsWithTimeout

func NewQuoteFindParamsWithTimeout(timeout time.Duration) *QuoteFindParams

NewQuoteFindParamsWithTimeout creates a new QuoteFindParams object with the default values initialized, and the ability to set a timeout on a request

func (*QuoteFindParams) SetContext

func (o *QuoteFindParams) SetContext(ctx context.Context)

SetContext adds the context to the quote find params

func (*QuoteFindParams) SetExternalID

func (o *QuoteFindParams) SetExternalID(externalID *string)

SetExternalID adds the externalId to the quote find params

func (*QuoteFindParams) SetHTTPClient

func (o *QuoteFindParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the quote find params

func (*QuoteFindParams) SetLimit

func (o *QuoteFindParams) SetLimit(limit *string)

SetLimit adds the limit to the quote find params

func (*QuoteFindParams) SetOffset

func (o *QuoteFindParams) SetOffset(offset *string)

SetOffset adds the offset to the quote find params

func (*QuoteFindParams) SetProjectID

func (o *QuoteFindParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the quote find params

func (*QuoteFindParams) SetQuoteCompletionDateGt

func (o *QuoteFindParams) SetQuoteCompletionDateGt(quoteCompletionDateGt *strfmt.DateTime)

SetQuoteCompletionDateGt adds the quoteCompletionDateGt to the quote find params

func (*QuoteFindParams) SetQuoteCompletionDateLt

func (o *QuoteFindParams) SetQuoteCompletionDateLt(quoteCompletionDateLt *strfmt.DateTime)

SetQuoteCompletionDateLt adds the quoteCompletionDateLt to the quote find params

func (*QuoteFindParams) SetQuoteDateGt

func (o *QuoteFindParams) SetQuoteDateGt(quoteDateGt *strfmt.DateTime)

SetQuoteDateGt adds the quoteDateGt to the quote find params

func (*QuoteFindParams) SetQuoteDateLt

func (o *QuoteFindParams) SetQuoteDateLt(quoteDateLt *strfmt.DateTime)

SetQuoteDateLt adds the quoteDateLt to the quote find params

func (*QuoteFindParams) SetQuoteLevel

func (o *QuoteFindParams) SetQuoteLevel(quoteLevel *string)

SetQuoteLevel adds the quoteLevel to the quote find params

func (*QuoteFindParams) SetState

func (o *QuoteFindParams) SetState(state *string)

SetState adds the state to the quote find params

func (*QuoteFindParams) SetTimeout

func (o *QuoteFindParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the quote find params

func (*QuoteFindParams) WithContext

func (o *QuoteFindParams) WithContext(ctx context.Context) *QuoteFindParams

WithContext adds the context to the quote find params

func (*QuoteFindParams) WithExternalID

func (o *QuoteFindParams) WithExternalID(externalID *string) *QuoteFindParams

WithExternalID adds the externalID to the quote find params

func (*QuoteFindParams) WithHTTPClient

func (o *QuoteFindParams) WithHTTPClient(client *http.Client) *QuoteFindParams

WithHTTPClient adds the HTTPClient to the quote find params

func (*QuoteFindParams) WithLimit

func (o *QuoteFindParams) WithLimit(limit *string) *QuoteFindParams

WithLimit adds the limit to the quote find params

func (*QuoteFindParams) WithOffset

func (o *QuoteFindParams) WithOffset(offset *string) *QuoteFindParams

WithOffset adds the offset to the quote find params

func (*QuoteFindParams) WithProjectID

func (o *QuoteFindParams) WithProjectID(projectID *string) *QuoteFindParams

WithProjectID adds the projectID to the quote find params

func (*QuoteFindParams) WithQuoteCompletionDateGt

func (o *QuoteFindParams) WithQuoteCompletionDateGt(quoteCompletionDateGt *strfmt.DateTime) *QuoteFindParams

WithQuoteCompletionDateGt adds the quoteCompletionDateGt to the quote find params

func (*QuoteFindParams) WithQuoteCompletionDateLt

func (o *QuoteFindParams) WithQuoteCompletionDateLt(quoteCompletionDateLt *strfmt.DateTime) *QuoteFindParams

WithQuoteCompletionDateLt adds the quoteCompletionDateLt to the quote find params

func (*QuoteFindParams) WithQuoteDateGt

func (o *QuoteFindParams) WithQuoteDateGt(quoteDateGt *strfmt.DateTime) *QuoteFindParams

WithQuoteDateGt adds the quoteDateGt to the quote find params

func (*QuoteFindParams) WithQuoteDateLt

func (o *QuoteFindParams) WithQuoteDateLt(quoteDateLt *strfmt.DateTime) *QuoteFindParams

WithQuoteDateLt adds the quoteDateLt to the quote find params

func (*QuoteFindParams) WithQuoteLevel

func (o *QuoteFindParams) WithQuoteLevel(quoteLevel *string) *QuoteFindParams

WithQuoteLevel adds the quoteLevel to the quote find params

func (*QuoteFindParams) WithState

func (o *QuoteFindParams) WithState(state *string) *QuoteFindParams

WithState adds the state to the quote find params

func (*QuoteFindParams) WithTimeout

func (o *QuoteFindParams) WithTimeout(timeout time.Duration) *QuoteFindParams

WithTimeout adds the timeout to the quote find params

func (*QuoteFindParams) WriteToRequest

func (o *QuoteFindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QuoteFindReader

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

QuoteFindReader is a Reader for the QuoteFind structure.

func (*QuoteFindReader) ReadResponse

func (o *QuoteFindReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type QuoteFindServiceUnavailable

type QuoteFindServiceUnavailable struct {
	Payload *models.ErrorRepresentation
}

QuoteFindServiceUnavailable handles this case with default header values.

Service Unavailable

func NewQuoteFindServiceUnavailable

func NewQuoteFindServiceUnavailable() *QuoteFindServiceUnavailable

NewQuoteFindServiceUnavailable creates a QuoteFindServiceUnavailable with default headers values

func (*QuoteFindServiceUnavailable) Error

func (*QuoteFindServiceUnavailable) GetPayload

type QuoteFindUnauthorized

type QuoteFindUnauthorized struct {
	Payload *models.ErrorRepresentation
}

QuoteFindUnauthorized handles this case with default header values.

Unauthorized

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

func NewQuoteFindUnauthorized

func NewQuoteFindUnauthorized() *QuoteFindUnauthorized

NewQuoteFindUnauthorized creates a QuoteFindUnauthorized with default headers values

func (*QuoteFindUnauthorized) Error

func (o *QuoteFindUnauthorized) Error() string

func (*QuoteFindUnauthorized) GetPayload

type QuoteFindUnprocessableEntity

type QuoteFindUnprocessableEntity struct {
	Payload *models.ErrorRepresentation
}

QuoteFindUnprocessableEntity handles this case with default header values.

Unprocessable entity

Functional error

  • code: 100

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

func NewQuoteFindUnprocessableEntity

func NewQuoteFindUnprocessableEntity() *QuoteFindUnprocessableEntity

NewQuoteFindUnprocessableEntity creates a QuoteFindUnprocessableEntity with default headers values

func (*QuoteFindUnprocessableEntity) Error

func (*QuoteFindUnprocessableEntity) GetPayload

type QuoteGetBadRequest

type QuoteGetBadRequest struct {
	Payload *models.ErrorRepresentation
}

QuoteGetBadRequest handles this case with default header values.

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

func NewQuoteGetBadRequest

func NewQuoteGetBadRequest() *QuoteGetBadRequest

NewQuoteGetBadRequest creates a QuoteGetBadRequest with default headers values

func (*QuoteGetBadRequest) Error

func (o *QuoteGetBadRequest) Error() string

func (*QuoteGetBadRequest) GetPayload

type QuoteGetForbidden

type QuoteGetForbidden struct {
	Payload *models.ErrorRepresentation
}

QuoteGetForbidden handles this case with default header values.

Forbidden

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

func NewQuoteGetForbidden

func NewQuoteGetForbidden() *QuoteGetForbidden

NewQuoteGetForbidden creates a QuoteGetForbidden with default headers values

func (*QuoteGetForbidden) Error

func (o *QuoteGetForbidden) Error() string

func (*QuoteGetForbidden) GetPayload

func (o *QuoteGetForbidden) GetPayload() *models.ErrorRepresentation

type QuoteGetInternalServerError

type QuoteGetInternalServerError struct {
	Payload *models.ErrorRepresentation
}

QuoteGetInternalServerError handles this case with default header values.

Internal Server Error

List of supported error codes: - 1: Internal error

func NewQuoteGetInternalServerError

func NewQuoteGetInternalServerError() *QuoteGetInternalServerError

NewQuoteGetInternalServerError creates a QuoteGetInternalServerError with default headers values

func (*QuoteGetInternalServerError) Error

func (*QuoteGetInternalServerError) GetPayload

type QuoteGetMethodNotAllowed

type QuoteGetMethodNotAllowed struct {
	Payload *models.ErrorRepresentation
}

QuoteGetMethodNotAllowed handles this case with default header values.

Method Not Allowed

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

func NewQuoteGetMethodNotAllowed

func NewQuoteGetMethodNotAllowed() *QuoteGetMethodNotAllowed

NewQuoteGetMethodNotAllowed creates a QuoteGetMethodNotAllowed with default headers values

func (*QuoteGetMethodNotAllowed) Error

func (o *QuoteGetMethodNotAllowed) Error() string

func (*QuoteGetMethodNotAllowed) GetPayload

type QuoteGetNotFound

type QuoteGetNotFound struct {
	Payload *models.ErrorRepresentation
}

QuoteGetNotFound handles this case with default header values.

Not Found

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

func NewQuoteGetNotFound

func NewQuoteGetNotFound() *QuoteGetNotFound

NewQuoteGetNotFound creates a QuoteGetNotFound with default headers values

func (*QuoteGetNotFound) Error

func (o *QuoteGetNotFound) Error() string

func (*QuoteGetNotFound) GetPayload

func (o *QuoteGetNotFound) GetPayload() *models.ErrorRepresentation

type QuoteGetOK

type QuoteGetOK struct {
	Payload *models.Quote
}

QuoteGetOK handles this case with default header values.

Ok

func NewQuoteGetOK

func NewQuoteGetOK() *QuoteGetOK

NewQuoteGetOK creates a QuoteGetOK with default headers values

func (*QuoteGetOK) Error

func (o *QuoteGetOK) Error() string

func (*QuoteGetOK) GetPayload

func (o *QuoteGetOK) GetPayload() *models.Quote

type QuoteGetParams

type QuoteGetParams struct {

	/*ID*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QuoteGetParams contains all the parameters to send to the API endpoint for the quote get operation typically these are written to a http.Request

func NewQuoteGetParams

func NewQuoteGetParams() *QuoteGetParams

NewQuoteGetParams creates a new QuoteGetParams object with the default values initialized.

func NewQuoteGetParamsWithContext

func NewQuoteGetParamsWithContext(ctx context.Context) *QuoteGetParams

NewQuoteGetParamsWithContext creates a new QuoteGetParams object with the default values initialized, and the ability to set a context for a request

func NewQuoteGetParamsWithHTTPClient

func NewQuoteGetParamsWithHTTPClient(client *http.Client) *QuoteGetParams

NewQuoteGetParamsWithHTTPClient creates a new QuoteGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewQuoteGetParamsWithTimeout

func NewQuoteGetParamsWithTimeout(timeout time.Duration) *QuoteGetParams

NewQuoteGetParamsWithTimeout creates a new QuoteGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*QuoteGetParams) SetContext

func (o *QuoteGetParams) SetContext(ctx context.Context)

SetContext adds the context to the quote get params

func (*QuoteGetParams) SetHTTPClient

func (o *QuoteGetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the quote get params

func (*QuoteGetParams) SetID

func (o *QuoteGetParams) SetID(id string)

SetID adds the id to the quote get params

func (*QuoteGetParams) SetTimeout

func (o *QuoteGetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the quote get params

func (*QuoteGetParams) WithContext

func (o *QuoteGetParams) WithContext(ctx context.Context) *QuoteGetParams

WithContext adds the context to the quote get params

func (*QuoteGetParams) WithHTTPClient

func (o *QuoteGetParams) WithHTTPClient(client *http.Client) *QuoteGetParams

WithHTTPClient adds the HTTPClient to the quote get params

func (*QuoteGetParams) WithID

func (o *QuoteGetParams) WithID(id string) *QuoteGetParams

WithID adds the id to the quote get params

func (*QuoteGetParams) WithTimeout

func (o *QuoteGetParams) WithTimeout(timeout time.Duration) *QuoteGetParams

WithTimeout adds the timeout to the quote get params

func (*QuoteGetParams) WriteToRequest

func (o *QuoteGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QuoteGetReader

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

QuoteGetReader is a Reader for the QuoteGet structure.

func (*QuoteGetReader) ReadResponse

func (o *QuoteGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type QuoteGetServiceUnavailable

type QuoteGetServiceUnavailable struct {
	Payload *models.ErrorRepresentation
}

QuoteGetServiceUnavailable handles this case with default header values.

Service Unavailable

func NewQuoteGetServiceUnavailable

func NewQuoteGetServiceUnavailable() *QuoteGetServiceUnavailable

NewQuoteGetServiceUnavailable creates a QuoteGetServiceUnavailable with default headers values

func (*QuoteGetServiceUnavailable) Error

func (*QuoteGetServiceUnavailable) GetPayload

type QuoteGetUnauthorized

type QuoteGetUnauthorized struct {
	Payload *models.ErrorRepresentation
}

QuoteGetUnauthorized handles this case with default header values.

Unauthorized

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

func NewQuoteGetUnauthorized

func NewQuoteGetUnauthorized() *QuoteGetUnauthorized

NewQuoteGetUnauthorized creates a QuoteGetUnauthorized with default headers values

func (*QuoteGetUnauthorized) Error

func (o *QuoteGetUnauthorized) Error() string

func (*QuoteGetUnauthorized) GetPayload

type QuoteGetUnprocessableEntity

type QuoteGetUnprocessableEntity struct {
	Payload *models.ErrorRepresentation
}

QuoteGetUnprocessableEntity handles this case with default header values.

Unprocessable entity

Functional error

func NewQuoteGetUnprocessableEntity

func NewQuoteGetUnprocessableEntity() *QuoteGetUnprocessableEntity

NewQuoteGetUnprocessableEntity creates a QuoteGetUnprocessableEntity with default headers values

func (*QuoteGetUnprocessableEntity) Error

func (*QuoteGetUnprocessableEntity) GetPayload

type QuoteRequestStateChangeBadRequest

type QuoteRequestStateChangeBadRequest struct {
	Payload *models.ErrorRepresentation
}

QuoteRequestStateChangeBadRequest handles this case with default header values.

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

func NewQuoteRequestStateChangeBadRequest

func NewQuoteRequestStateChangeBadRequest() *QuoteRequestStateChangeBadRequest

NewQuoteRequestStateChangeBadRequest creates a QuoteRequestStateChangeBadRequest with default headers values

func (*QuoteRequestStateChangeBadRequest) Error

func (*QuoteRequestStateChangeBadRequest) GetPayload

type QuoteRequestStateChangeForbidden

type QuoteRequestStateChangeForbidden struct {
	Payload *models.ErrorRepresentation
}

QuoteRequestStateChangeForbidden handles this case with default header values.

Forbidden

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

func NewQuoteRequestStateChangeForbidden

func NewQuoteRequestStateChangeForbidden() *QuoteRequestStateChangeForbidden

NewQuoteRequestStateChangeForbidden creates a QuoteRequestStateChangeForbidden with default headers values

func (*QuoteRequestStateChangeForbidden) Error

func (*QuoteRequestStateChangeForbidden) GetPayload

type QuoteRequestStateChangeInternalServerError

type QuoteRequestStateChangeInternalServerError struct {
	Payload *models.ErrorRepresentation
}

QuoteRequestStateChangeInternalServerError handles this case with default header values.

Internal Server Error

List of supported error codes: - 1: Internal error

func NewQuoteRequestStateChangeInternalServerError

func NewQuoteRequestStateChangeInternalServerError() *QuoteRequestStateChangeInternalServerError

NewQuoteRequestStateChangeInternalServerError creates a QuoteRequestStateChangeInternalServerError with default headers values

func (*QuoteRequestStateChangeInternalServerError) Error

func (*QuoteRequestStateChangeInternalServerError) GetPayload

type QuoteRequestStateChangeMethodNotAllowed

type QuoteRequestStateChangeMethodNotAllowed struct {
	Payload *models.ErrorRepresentation
}

QuoteRequestStateChangeMethodNotAllowed handles this case with default header values.

Method Not Allowed

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

func NewQuoteRequestStateChangeMethodNotAllowed

func NewQuoteRequestStateChangeMethodNotAllowed() *QuoteRequestStateChangeMethodNotAllowed

NewQuoteRequestStateChangeMethodNotAllowed creates a QuoteRequestStateChangeMethodNotAllowed with default headers values

func (*QuoteRequestStateChangeMethodNotAllowed) Error

func (*QuoteRequestStateChangeMethodNotAllowed) GetPayload

type QuoteRequestStateChangeNotFound

type QuoteRequestStateChangeNotFound struct {
	Payload *models.ErrorRepresentation
}

QuoteRequestStateChangeNotFound handles this case with default header values.

Not Found

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

func NewQuoteRequestStateChangeNotFound

func NewQuoteRequestStateChangeNotFound() *QuoteRequestStateChangeNotFound

NewQuoteRequestStateChangeNotFound creates a QuoteRequestStateChangeNotFound with default headers values

func (*QuoteRequestStateChangeNotFound) Error

func (*QuoteRequestStateChangeNotFound) GetPayload

type QuoteRequestStateChangeOK

type QuoteRequestStateChangeOK struct {
	Payload *models.ChangeQuoteStateResponse
}

QuoteRequestStateChangeOK handles this case with default header values.

Ok

func NewQuoteRequestStateChangeOK

func NewQuoteRequestStateChangeOK() *QuoteRequestStateChangeOK

NewQuoteRequestStateChangeOK creates a QuoteRequestStateChangeOK with default headers values

func (*QuoteRequestStateChangeOK) Error

func (o *QuoteRequestStateChangeOK) Error() string

func (*QuoteRequestStateChangeOK) GetPayload

type QuoteRequestStateChangeParams

type QuoteRequestStateChangeParams struct {

	/*ChangeQuoteStateRequest*/
	ChangeQuoteStateRequest *models.ChangelQuoteStateRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

QuoteRequestStateChangeParams contains all the parameters to send to the API endpoint for the quote request state change operation typically these are written to a http.Request

func NewQuoteRequestStateChangeParams

func NewQuoteRequestStateChangeParams() *QuoteRequestStateChangeParams

NewQuoteRequestStateChangeParams creates a new QuoteRequestStateChangeParams object with the default values initialized.

func NewQuoteRequestStateChangeParamsWithContext

func NewQuoteRequestStateChangeParamsWithContext(ctx context.Context) *QuoteRequestStateChangeParams

NewQuoteRequestStateChangeParamsWithContext creates a new QuoteRequestStateChangeParams object with the default values initialized, and the ability to set a context for a request

func NewQuoteRequestStateChangeParamsWithHTTPClient

func NewQuoteRequestStateChangeParamsWithHTTPClient(client *http.Client) *QuoteRequestStateChangeParams

NewQuoteRequestStateChangeParamsWithHTTPClient creates a new QuoteRequestStateChangeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewQuoteRequestStateChangeParamsWithTimeout

func NewQuoteRequestStateChangeParamsWithTimeout(timeout time.Duration) *QuoteRequestStateChangeParams

NewQuoteRequestStateChangeParamsWithTimeout creates a new QuoteRequestStateChangeParams object with the default values initialized, and the ability to set a timeout on a request

func (*QuoteRequestStateChangeParams) SetChangeQuoteStateRequest

func (o *QuoteRequestStateChangeParams) SetChangeQuoteStateRequest(changeQuoteStateRequest *models.ChangelQuoteStateRequest)

SetChangeQuoteStateRequest adds the changeQuoteStateRequest to the quote request state change params

func (*QuoteRequestStateChangeParams) SetContext

func (o *QuoteRequestStateChangeParams) SetContext(ctx context.Context)

SetContext adds the context to the quote request state change params

func (*QuoteRequestStateChangeParams) SetHTTPClient

func (o *QuoteRequestStateChangeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the quote request state change params

func (*QuoteRequestStateChangeParams) SetTimeout

func (o *QuoteRequestStateChangeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the quote request state change params

func (*QuoteRequestStateChangeParams) WithChangeQuoteStateRequest

func (o *QuoteRequestStateChangeParams) WithChangeQuoteStateRequest(changeQuoteStateRequest *models.ChangelQuoteStateRequest) *QuoteRequestStateChangeParams

WithChangeQuoteStateRequest adds the changeQuoteStateRequest to the quote request state change params

func (*QuoteRequestStateChangeParams) WithContext

WithContext adds the context to the quote request state change params

func (*QuoteRequestStateChangeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the quote request state change params

func (*QuoteRequestStateChangeParams) WithTimeout

WithTimeout adds the timeout to the quote request state change params

func (*QuoteRequestStateChangeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QuoteRequestStateChangeReader

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

QuoteRequestStateChangeReader is a Reader for the QuoteRequestStateChange structure.

func (*QuoteRequestStateChangeReader) ReadResponse

func (o *QuoteRequestStateChangeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type QuoteRequestStateChangeServiceUnavailable

type QuoteRequestStateChangeServiceUnavailable struct {
	Payload *models.ErrorRepresentation
}

QuoteRequestStateChangeServiceUnavailable handles this case with default header values.

Service Unavailable

func NewQuoteRequestStateChangeServiceUnavailable

func NewQuoteRequestStateChangeServiceUnavailable() *QuoteRequestStateChangeServiceUnavailable

NewQuoteRequestStateChangeServiceUnavailable creates a QuoteRequestStateChangeServiceUnavailable with default headers values

func (*QuoteRequestStateChangeServiceUnavailable) Error

func (*QuoteRequestStateChangeServiceUnavailable) GetPayload

type QuoteRequestStateChangeUnauthorized

type QuoteRequestStateChangeUnauthorized struct {
	Payload *models.ErrorRepresentation
}

QuoteRequestStateChangeUnauthorized handles this case with default header values.

Unauthorized

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

func NewQuoteRequestStateChangeUnauthorized

func NewQuoteRequestStateChangeUnauthorized() *QuoteRequestStateChangeUnauthorized

NewQuoteRequestStateChangeUnauthorized creates a QuoteRequestStateChangeUnauthorized with default headers values

func (*QuoteRequestStateChangeUnauthorized) Error

func (*QuoteRequestStateChangeUnauthorized) GetPayload

type QuoteRequestStateChangeUnprocessableEntity

type QuoteRequestStateChangeUnprocessableEntity struct {
	Payload *models.ErrorRepresentation
}

QuoteRequestStateChangeUnprocessableEntity handles this case with default header values.

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:

func NewQuoteRequestStateChangeUnprocessableEntity

func NewQuoteRequestStateChangeUnprocessableEntity() *QuoteRequestStateChangeUnprocessableEntity

NewQuoteRequestStateChangeUnprocessableEntity creates a QuoteRequestStateChangeUnprocessableEntity with default headers values

func (*QuoteRequestStateChangeUnprocessableEntity) Error

func (*QuoteRequestStateChangeUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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