insurance

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 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) (*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 ClientService

type ClientService interface {
	GetInsurancePrices(params *GetInsurancePricesParams) (*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 *esimodels.BadRequest
}

GetInsurancePricesBadRequest handles this case 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 *esimodels.ErrorLimited
}

GetInsurancePricesEnhanceYourCalm handles this case 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 *esimodels.GatewayTimeout
}

GetInsurancePricesGatewayTimeout handles this case 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 *esimodels.InternalServerError
}

GetInsurancePricesInternalServerError handles this case 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 handles this case 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 handles this case 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) 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) 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

	*/
	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

	*/
	Datasource *string
	/*Language
	  Language to use in the response, takes precedence over Accept-Language

	*/
	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 values initialized.

func NewGetInsurancePricesParamsWithContext

func NewGetInsurancePricesParamsWithContext(ctx context.Context) *GetInsurancePricesParams

NewGetInsurancePricesParamsWithContext creates a new GetInsurancePricesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *esimodels.ServiceUnavailable
}

GetInsurancePricesServiceUnavailable handles this case 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