insurance

package
v0.5.24 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 13 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 insurance API

func (*Client) GetInsurancePrices

func (a *Client) GetInsurancePrices(params *GetInsurancePricesParams, opts ...ClientOption) (*GetInsurancePricesOK, error)
GetInsurancePrices lists insurance levels

Return available insurance levels for all ship types

---

This route is cached for up to 3600 seconds

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.4.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetInsurancePrices(params *GetInsurancePricesParams, opts ...ClientOption) (*GetInsurancePricesOK, 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 insurance API client.

type GetInsurancePricesBadRequest

type GetInsurancePricesBadRequest struct {
	Payload *models.BadRequest
}
GetInsurancePricesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetInsurancePricesBadRequest

func NewGetInsurancePricesBadRequest() *GetInsurancePricesBadRequest

NewGetInsurancePricesBadRequest creates a GetInsurancePricesBadRequest with default headers values

func (*GetInsurancePricesBadRequest) Error

func (*GetInsurancePricesBadRequest) GetPayload

type GetInsurancePricesEnhanceYourCalm

type GetInsurancePricesEnhanceYourCalm struct {
	Payload *models.ErrorLimited
}
GetInsurancePricesEnhanceYourCalm describes a response with status code 420, with default header values.

Error limited

func NewGetInsurancePricesEnhanceYourCalm

func NewGetInsurancePricesEnhanceYourCalm() *GetInsurancePricesEnhanceYourCalm

NewGetInsurancePricesEnhanceYourCalm creates a GetInsurancePricesEnhanceYourCalm with default headers values

func (*GetInsurancePricesEnhanceYourCalm) Error

func (*GetInsurancePricesEnhanceYourCalm) GetPayload

type GetInsurancePricesGatewayTimeout

type GetInsurancePricesGatewayTimeout struct {
	Payload *models.GatewayTimeout
}
GetInsurancePricesGatewayTimeout describes a response with status code 504, with default header values.

Gateway timeout

func NewGetInsurancePricesGatewayTimeout

func NewGetInsurancePricesGatewayTimeout() *GetInsurancePricesGatewayTimeout

NewGetInsurancePricesGatewayTimeout creates a GetInsurancePricesGatewayTimeout with default headers values

func (*GetInsurancePricesGatewayTimeout) Error

func (*GetInsurancePricesGatewayTimeout) GetPayload

type GetInsurancePricesInternalServerError

type GetInsurancePricesInternalServerError struct {
	Payload *models.InternalServerError
}
GetInsurancePricesInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetInsurancePricesInternalServerError

func NewGetInsurancePricesInternalServerError() *GetInsurancePricesInternalServerError

NewGetInsurancePricesInternalServerError creates a GetInsurancePricesInternalServerError with default headers values

func (*GetInsurancePricesInternalServerError) Error

func (*GetInsurancePricesInternalServerError) GetPayload

type GetInsurancePricesNotModified

type GetInsurancePricesNotModified struct {

	/* The caching mechanism used
	 */
	CacheControl string

	/* RFC7232 compliant entity tag
	 */
	ETag string

	/* RFC7231 formatted datetime string
	 */
	Expires string

	/* RFC7231 formatted datetime string
	 */
	LastModified string
}
GetInsurancePricesNotModified describes a response with status code 304, with default header values.

Not modified

func NewGetInsurancePricesNotModified

func NewGetInsurancePricesNotModified() *GetInsurancePricesNotModified

NewGetInsurancePricesNotModified creates a GetInsurancePricesNotModified with default headers values

func (*GetInsurancePricesNotModified) Error

type GetInsurancePricesOK

type GetInsurancePricesOK struct {

	/* The caching mechanism used
	 */
	CacheControl string

	/* The language used in the response
	 */
	ContentLanguage string

	/* RFC7232 compliant entity tag
	 */
	ETag string

	/* RFC7231 formatted datetime string
	 */
	Expires string

	/* RFC7231 formatted datetime string
	 */
	LastModified string

	Payload []*GetInsurancePricesOKBodyItems0
}
GetInsurancePricesOK describes a response with status code 200, with default header values.

A list of insurance levels for all ship types

func NewGetInsurancePricesOK

func NewGetInsurancePricesOK() *GetInsurancePricesOK

NewGetInsurancePricesOK creates a GetInsurancePricesOK with default headers values

func (*GetInsurancePricesOK) Error

func (o *GetInsurancePricesOK) Error() string

func (*GetInsurancePricesOK) GetPayload

type GetInsurancePricesOKBodyItems0

type GetInsurancePricesOKBodyItems0 struct {

	// get_insurance_prices_levels
	//
	// A list of a available insurance levels for this ship type
	// Required: true
	// Max Items: 6
	Levels []*GetInsurancePricesOKBodyItems0LevelsItems0 `json:"levels"`

	// get_insurance_prices_type_id
	//
	// type_id integer
	// Required: true
	TypeID *int32 `json:"type_id"`
}

GetInsurancePricesOKBodyItems0 get_insurance_prices_200_ok // // 200 ok object swagger:model GetInsurancePricesOKBodyItems0

func (*GetInsurancePricesOKBodyItems0) ContextValidate added in v0.3.0

func (o *GetInsurancePricesOKBodyItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get insurance prices o k body items0 based on the context it is used

func (*GetInsurancePricesOKBodyItems0) MarshalBinary

func (o *GetInsurancePricesOKBodyItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetInsurancePricesOKBodyItems0) UnmarshalBinary

func (o *GetInsurancePricesOKBodyItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetInsurancePricesOKBodyItems0) Validate

func (o *GetInsurancePricesOKBodyItems0) Validate(formats strfmt.Registry) error

Validate validates this get insurance prices o k body items0

type GetInsurancePricesOKBodyItems0LevelsItems0

type GetInsurancePricesOKBodyItems0LevelsItems0 struct {

	// get_insurance_prices_cost
	//
	// cost number
	// Required: true
	Cost *float32 `json:"cost"`

	// get_insurance_prices_name
	//
	// Localized insurance level
	// Required: true
	Name *string `json:"name"`

	// get_insurance_prices_payout
	//
	// payout number
	// Required: true
	Payout *float32 `json:"payout"`
}

GetInsurancePricesOKBodyItems0LevelsItems0 get_insurance_prices_level // // level object swagger:model GetInsurancePricesOKBodyItems0LevelsItems0

func (*GetInsurancePricesOKBodyItems0LevelsItems0) ContextValidate added in v0.3.0

ContextValidate validates this get insurance prices o k body items0 levels items0 based on context it is used

func (*GetInsurancePricesOKBodyItems0LevelsItems0) MarshalBinary

func (o *GetInsurancePricesOKBodyItems0LevelsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetInsurancePricesOKBodyItems0LevelsItems0) UnmarshalBinary

func (o *GetInsurancePricesOKBodyItems0LevelsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetInsurancePricesOKBodyItems0LevelsItems0) Validate

Validate validates this get insurance prices o k body items0 levels items0

type GetInsurancePricesParams

type GetInsurancePricesParams struct {

	/* AcceptLanguage.

	   Language to use in the response

	   Default: "en"
	*/
	AcceptLanguage *string

	/* IfNoneMatch.

	   ETag from a previous request. A 304 will be returned if this matches the current ETag
	*/
	IfNoneMatch *string

	/* Datasource.

	   The server name you would like data from

	   Default: "tranquility"
	*/
	Datasource *string

	/* Language.

	   Language to use in the response, takes precedence over Accept-Language

	   Default: "en"
	*/
	Language *string

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

GetInsurancePricesParams contains all the parameters to send to the API endpoint

for the get insurance prices operation.

Typically these are written to a http.Request.

func NewGetInsurancePricesParams

func NewGetInsurancePricesParams() *GetInsurancePricesParams

NewGetInsurancePricesParams creates a new GetInsurancePricesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetInsurancePricesParamsWithContext

func NewGetInsurancePricesParamsWithContext(ctx context.Context) *GetInsurancePricesParams

NewGetInsurancePricesParamsWithContext creates a new GetInsurancePricesParams object with the ability to set a context for a request.

func NewGetInsurancePricesParamsWithHTTPClient

func NewGetInsurancePricesParamsWithHTTPClient(client *http.Client) *GetInsurancePricesParams

NewGetInsurancePricesParamsWithHTTPClient creates a new GetInsurancePricesParams object with the ability to set a custom HTTPClient for a request.

func NewGetInsurancePricesParamsWithTimeout

func NewGetInsurancePricesParamsWithTimeout(timeout time.Duration) *GetInsurancePricesParams

NewGetInsurancePricesParamsWithTimeout creates a new GetInsurancePricesParams object with the ability to set a timeout on a request.

func (*GetInsurancePricesParams) SetAcceptLanguage

func (o *GetInsurancePricesParams) SetAcceptLanguage(acceptLanguage *string)

SetAcceptLanguage adds the acceptLanguage to the get insurance prices params

func (*GetInsurancePricesParams) SetContext

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

SetContext adds the context to the get insurance prices params

func (*GetInsurancePricesParams) SetDatasource

func (o *GetInsurancePricesParams) SetDatasource(datasource *string)

SetDatasource adds the datasource to the get insurance prices params

func (*GetInsurancePricesParams) SetDefaults added in v0.3.0

func (o *GetInsurancePricesParams) SetDefaults()

SetDefaults hydrates default values in the get insurance prices params (not the query body).

All values with no default are reset to their zero value.

func (*GetInsurancePricesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get insurance prices params

func (*GetInsurancePricesParams) SetIfNoneMatch

func (o *GetInsurancePricesParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the get insurance prices params

func (*GetInsurancePricesParams) SetLanguage

func (o *GetInsurancePricesParams) SetLanguage(language *string)

SetLanguage adds the language to the get insurance prices params

func (*GetInsurancePricesParams) SetTimeout

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

SetTimeout adds the timeout to the get insurance prices params

func (*GetInsurancePricesParams) WithAcceptLanguage

func (o *GetInsurancePricesParams) WithAcceptLanguage(acceptLanguage *string) *GetInsurancePricesParams

WithAcceptLanguage adds the acceptLanguage to the get insurance prices params

func (*GetInsurancePricesParams) WithContext

WithContext adds the context to the get insurance prices params

func (*GetInsurancePricesParams) WithDatasource

func (o *GetInsurancePricesParams) WithDatasource(datasource *string) *GetInsurancePricesParams

WithDatasource adds the datasource to the get insurance prices params

func (*GetInsurancePricesParams) WithDefaults added in v0.3.0

WithDefaults hydrates default values in the get insurance prices params (not the query body).

All values with no default are reset to their zero value.

func (*GetInsurancePricesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get insurance prices params

func (*GetInsurancePricesParams) WithIfNoneMatch

func (o *GetInsurancePricesParams) WithIfNoneMatch(ifNoneMatch *string) *GetInsurancePricesParams

WithIfNoneMatch adds the ifNoneMatch to the get insurance prices params

func (*GetInsurancePricesParams) WithLanguage

func (o *GetInsurancePricesParams) WithLanguage(language *string) *GetInsurancePricesParams

WithLanguage adds the language to the get insurance prices params

func (*GetInsurancePricesParams) WithTimeout

WithTimeout adds the timeout to the get insurance prices params

func (*GetInsurancePricesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetInsurancePricesReader

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

GetInsurancePricesReader is a Reader for the GetInsurancePrices structure.

func (*GetInsurancePricesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInsurancePricesServiceUnavailable

type GetInsurancePricesServiceUnavailable struct {
	Payload *models.ServiceUnavailable
}
GetInsurancePricesServiceUnavailable describes a response with status code 503, with default header values.

Service unavailable

func NewGetInsurancePricesServiceUnavailable

func NewGetInsurancePricesServiceUnavailable() *GetInsurancePricesServiceUnavailable

NewGetInsurancePricesServiceUnavailable creates a GetInsurancePricesServiceUnavailable with default headers values

func (*GetInsurancePricesServiceUnavailable) Error

func (*GetInsurancePricesServiceUnavailable) GetPayload

Jump to

Keyboard shortcuts

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