counterparties

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 12 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 counterparties API

func (*Client) DeleteV1CounterpartiesID

func (a *Client) DeleteV1CounterpartiesID(params *DeleteV1CounterpartiesIDParams, opts ...ClientOption) (*DeleteV1CounterpartiesIDNoContent, error)

DeleteV1CounterpartiesID deletes counterparty

Deletes the identified counterparty.

func (*Client) GetV1Counterparties

func (a *Client) GetV1Counterparties(params *GetV1CounterpartiesParams, opts ...ClientOption) (*GetV1CounterpartiesOK, error)

GetV1Counterparties queries counterparties

Returns a list of counterparties. For further details on Pagination, see section above.

func (*Client) GetV1CounterpartiesGetByExternalIDExternalID

func (a *Client) GetV1CounterpartiesGetByExternalIDExternalID(params *GetV1CounterpartiesGetByExternalIDExternalIDParams, opts ...ClientOption) (*GetV1CounterpartiesGetByExternalIDExternalIDOK, error)

GetV1CounterpartiesGetByExternalIDExternalID reads counterparty by its external Id

Returns the identified counterparty.

func (*Client) GetV1CounterpartiesID

func (a *Client) GetV1CounterpartiesID(params *GetV1CounterpartiesIDParams, opts ...ClientOption) (*GetV1CounterpartiesIDOK, error)

GetV1CounterpartiesID reads counterparty

Returns the identified counterparty

func (*Client) GetV1CounterpartiesIDEvents

func (a *Client) GetV1CounterpartiesIDEvents(params *GetV1CounterpartiesIDEventsParams, opts ...ClientOption) (*GetV1CounterpartiesIDEventsOK, error)

GetV1CounterpartiesIDEvents queries counterparty events

Returns a list of Counterparty events. For further details on Pagination, see the section above.

func (*Client) PostV1Counterparties

func (a *Client) PostV1Counterparties(params *PostV1CounterpartiesParams, opts ...ClientOption) (*PostV1CounterpartiesCreated, error)

PostV1Counterparties creates counterparty

Creates a new counterparty.

func (*Client) PutV1CounterpartiesID

func (a *Client) PutV1CounterpartiesID(params *PutV1CounterpartiesIDParams, opts ...ClientOption) (*PutV1CounterpartiesIDOK, error)

PutV1CounterpartiesID updates counterparty

Updates the identified counterparty. Note that you must supply the full Counterparty object when updating. If a field is omitted in the update request, that is set on the existing object, it will get removed.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteV1CounterpartiesID(params *DeleteV1CounterpartiesIDParams, opts ...ClientOption) (*DeleteV1CounterpartiesIDNoContent, error)

	GetV1Counterparties(params *GetV1CounterpartiesParams, opts ...ClientOption) (*GetV1CounterpartiesOK, error)

	GetV1CounterpartiesGetByExternalIDExternalID(params *GetV1CounterpartiesGetByExternalIDExternalIDParams, opts ...ClientOption) (*GetV1CounterpartiesGetByExternalIDExternalIDOK, error)

	GetV1CounterpartiesID(params *GetV1CounterpartiesIDParams, opts ...ClientOption) (*GetV1CounterpartiesIDOK, error)

	GetV1CounterpartiesIDEvents(params *GetV1CounterpartiesIDEventsParams, opts ...ClientOption) (*GetV1CounterpartiesIDEventsOK, error)

	PostV1Counterparties(params *PostV1CounterpartiesParams, opts ...ClientOption) (*PostV1CounterpartiesCreated, error)

	PutV1CounterpartiesID(params *PutV1CounterpartiesIDParams, opts ...ClientOption) (*PutV1CounterpartiesIDOK, 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 counterparties API client.

type DeleteV1CounterpartiesIDNoContent

type DeleteV1CounterpartiesIDNoContent struct {
}

DeleteV1CounterpartiesIDNoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteV1CounterpartiesIDNoContent

func NewDeleteV1CounterpartiesIDNoContent() *DeleteV1CounterpartiesIDNoContent

NewDeleteV1CounterpartiesIDNoContent creates a DeleteV1CounterpartiesIDNoContent with default headers values

func (*DeleteV1CounterpartiesIDNoContent) Code

Code gets the status code for the delete v1 counterparties Id no content response

func (*DeleteV1CounterpartiesIDNoContent) Error

func (*DeleteV1CounterpartiesIDNoContent) IsClientError

func (o *DeleteV1CounterpartiesIDNoContent) IsClientError() bool

IsClientError returns true when this delete v1 counterparties Id no content response has a 4xx status code

func (*DeleteV1CounterpartiesIDNoContent) IsCode

func (o *DeleteV1CounterpartiesIDNoContent) IsCode(code int) bool

IsCode returns true when this delete v1 counterparties Id no content response a status code equal to that given

func (*DeleteV1CounterpartiesIDNoContent) IsRedirect

func (o *DeleteV1CounterpartiesIDNoContent) IsRedirect() bool

IsRedirect returns true when this delete v1 counterparties Id no content response has a 3xx status code

func (*DeleteV1CounterpartiesIDNoContent) IsServerError

func (o *DeleteV1CounterpartiesIDNoContent) IsServerError() bool

IsServerError returns true when this delete v1 counterparties Id no content response has a 5xx status code

func (*DeleteV1CounterpartiesIDNoContent) IsSuccess

func (o *DeleteV1CounterpartiesIDNoContent) IsSuccess() bool

IsSuccess returns true when this delete v1 counterparties Id no content response has a 2xx status code

func (*DeleteV1CounterpartiesIDNoContent) String

type DeleteV1CounterpartiesIDNotFound

type DeleteV1CounterpartiesIDNotFound struct {
	Payload *models.ErrorResponse
}

DeleteV1CounterpartiesIDNotFound describes a response with status code 404, with default header values.

The requested resource was not found

func NewDeleteV1CounterpartiesIDNotFound

func NewDeleteV1CounterpartiesIDNotFound() *DeleteV1CounterpartiesIDNotFound

NewDeleteV1CounterpartiesIDNotFound creates a DeleteV1CounterpartiesIDNotFound with default headers values

func (*DeleteV1CounterpartiesIDNotFound) Code

Code gets the status code for the delete v1 counterparties Id not found response

func (*DeleteV1CounterpartiesIDNotFound) Error

func (*DeleteV1CounterpartiesIDNotFound) GetPayload

func (*DeleteV1CounterpartiesIDNotFound) IsClientError

func (o *DeleteV1CounterpartiesIDNotFound) IsClientError() bool

IsClientError returns true when this delete v1 counterparties Id not found response has a 4xx status code

func (*DeleteV1CounterpartiesIDNotFound) IsCode

func (o *DeleteV1CounterpartiesIDNotFound) IsCode(code int) bool

IsCode returns true when this delete v1 counterparties Id not found response a status code equal to that given

func (*DeleteV1CounterpartiesIDNotFound) IsRedirect

func (o *DeleteV1CounterpartiesIDNotFound) IsRedirect() bool

IsRedirect returns true when this delete v1 counterparties Id not found response has a 3xx status code

func (*DeleteV1CounterpartiesIDNotFound) IsServerError

func (o *DeleteV1CounterpartiesIDNotFound) IsServerError() bool

IsServerError returns true when this delete v1 counterparties Id not found response has a 5xx status code

func (*DeleteV1CounterpartiesIDNotFound) IsSuccess

func (o *DeleteV1CounterpartiesIDNotFound) IsSuccess() bool

IsSuccess returns true when this delete v1 counterparties Id not found response has a 2xx status code

func (*DeleteV1CounterpartiesIDNotFound) String

type DeleteV1CounterpartiesIDParams

type DeleteV1CounterpartiesIDParams struct {

	/* ID.

	   Counterparty ID
	*/
	ID string

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

DeleteV1CounterpartiesIDParams contains all the parameters to send to the API endpoint

for the delete v1 counterparties ID operation.

Typically these are written to a http.Request.

func NewDeleteV1CounterpartiesIDParams

func NewDeleteV1CounterpartiesIDParams() *DeleteV1CounterpartiesIDParams

NewDeleteV1CounterpartiesIDParams creates a new DeleteV1CounterpartiesIDParams 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 NewDeleteV1CounterpartiesIDParamsWithContext

func NewDeleteV1CounterpartiesIDParamsWithContext(ctx context.Context) *DeleteV1CounterpartiesIDParams

NewDeleteV1CounterpartiesIDParamsWithContext creates a new DeleteV1CounterpartiesIDParams object with the ability to set a context for a request.

func NewDeleteV1CounterpartiesIDParamsWithHTTPClient

func NewDeleteV1CounterpartiesIDParamsWithHTTPClient(client *http.Client) *DeleteV1CounterpartiesIDParams

NewDeleteV1CounterpartiesIDParamsWithHTTPClient creates a new DeleteV1CounterpartiesIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteV1CounterpartiesIDParamsWithTimeout

func NewDeleteV1CounterpartiesIDParamsWithTimeout(timeout time.Duration) *DeleteV1CounterpartiesIDParams

NewDeleteV1CounterpartiesIDParamsWithTimeout creates a new DeleteV1CounterpartiesIDParams object with the ability to set a timeout on a request.

func (*DeleteV1CounterpartiesIDParams) SetContext

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

SetContext adds the context to the delete v1 counterparties ID params

func (*DeleteV1CounterpartiesIDParams) SetDefaults

func (o *DeleteV1CounterpartiesIDParams) SetDefaults()

SetDefaults hydrates default values in the delete v1 counterparties ID params (not the query body).

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

func (*DeleteV1CounterpartiesIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete v1 counterparties ID params

func (*DeleteV1CounterpartiesIDParams) SetID

SetID adds the id to the delete v1 counterparties ID params

func (*DeleteV1CounterpartiesIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete v1 counterparties ID params

func (*DeleteV1CounterpartiesIDParams) WithContext

WithContext adds the context to the delete v1 counterparties ID params

func (*DeleteV1CounterpartiesIDParams) WithDefaults

WithDefaults hydrates default values in the delete v1 counterparties ID params (not the query body).

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

func (*DeleteV1CounterpartiesIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete v1 counterparties ID params

func (*DeleteV1CounterpartiesIDParams) WithID

WithID adds the id to the delete v1 counterparties ID params

func (*DeleteV1CounterpartiesIDParams) WithTimeout

WithTimeout adds the timeout to the delete v1 counterparties ID params

func (*DeleteV1CounterpartiesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteV1CounterpartiesIDReader

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

DeleteV1CounterpartiesIDReader is a Reader for the DeleteV1CounterpartiesID structure.

func (*DeleteV1CounterpartiesIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1CounterpartiesBadRequest added in v1.3.0

type GetV1CounterpartiesBadRequest struct {
	Payload *models.ErrorResponse
}

GetV1CounterpartiesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetV1CounterpartiesBadRequest added in v1.3.0

func NewGetV1CounterpartiesBadRequest() *GetV1CounterpartiesBadRequest

NewGetV1CounterpartiesBadRequest creates a GetV1CounterpartiesBadRequest with default headers values

func (*GetV1CounterpartiesBadRequest) Code added in v1.3.0

Code gets the status code for the get v1 counterparties bad request response

func (*GetV1CounterpartiesBadRequest) Error added in v1.3.0

func (*GetV1CounterpartiesBadRequest) GetPayload added in v1.3.0

func (*GetV1CounterpartiesBadRequest) IsClientError added in v1.3.0

func (o *GetV1CounterpartiesBadRequest) IsClientError() bool

IsClientError returns true when this get v1 counterparties bad request response has a 4xx status code

func (*GetV1CounterpartiesBadRequest) IsCode added in v1.3.0

func (o *GetV1CounterpartiesBadRequest) IsCode(code int) bool

IsCode returns true when this get v1 counterparties bad request response a status code equal to that given

func (*GetV1CounterpartiesBadRequest) IsRedirect added in v1.3.0

func (o *GetV1CounterpartiesBadRequest) IsRedirect() bool

IsRedirect returns true when this get v1 counterparties bad request response has a 3xx status code

func (*GetV1CounterpartiesBadRequest) IsServerError added in v1.3.0

func (o *GetV1CounterpartiesBadRequest) IsServerError() bool

IsServerError returns true when this get v1 counterparties bad request response has a 5xx status code

func (*GetV1CounterpartiesBadRequest) IsSuccess added in v1.3.0

func (o *GetV1CounterpartiesBadRequest) IsSuccess() bool

IsSuccess returns true when this get v1 counterparties bad request response has a 2xx status code

func (*GetV1CounterpartiesBadRequest) String added in v1.3.0

type GetV1CounterpartiesGetByExternalIDExternalIDNotFound

type GetV1CounterpartiesGetByExternalIDExternalIDNotFound struct {
	Payload string
}

GetV1CounterpartiesGetByExternalIDExternalIDNotFound describes a response with status code 404, with default header values.

The identified counterparty doesn't exist.

func NewGetV1CounterpartiesGetByExternalIDExternalIDNotFound

func NewGetV1CounterpartiesGetByExternalIDExternalIDNotFound() *GetV1CounterpartiesGetByExternalIDExternalIDNotFound

NewGetV1CounterpartiesGetByExternalIDExternalIDNotFound creates a GetV1CounterpartiesGetByExternalIDExternalIDNotFound with default headers values

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) Code

Code gets the status code for the get v1 counterparties get by external Id external Id not found response

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) Error

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) GetPayload

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) IsClientError

IsClientError returns true when this get v1 counterparties get by external Id external Id not found response has a 4xx status code

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) IsCode

IsCode returns true when this get v1 counterparties get by external Id external Id not found response a status code equal to that given

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) IsRedirect

IsRedirect returns true when this get v1 counterparties get by external Id external Id not found response has a 3xx status code

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) IsServerError

IsServerError returns true when this get v1 counterparties get by external Id external Id not found response has a 5xx status code

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) IsSuccess

IsSuccess returns true when this get v1 counterparties get by external Id external Id not found response has a 2xx status code

func (*GetV1CounterpartiesGetByExternalIDExternalIDNotFound) String

type GetV1CounterpartiesGetByExternalIDExternalIDOK

type GetV1CounterpartiesGetByExternalIDExternalIDOK struct {
	Payload *models.Counterparty
}

GetV1CounterpartiesGetByExternalIDExternalIDOK describes a response with status code 200, with default header values.

The identified counterparty.

func NewGetV1CounterpartiesGetByExternalIDExternalIDOK

func NewGetV1CounterpartiesGetByExternalIDExternalIDOK() *GetV1CounterpartiesGetByExternalIDExternalIDOK

NewGetV1CounterpartiesGetByExternalIDExternalIDOK creates a GetV1CounterpartiesGetByExternalIDExternalIDOK with default headers values

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) Code

Code gets the status code for the get v1 counterparties get by external Id external Id o k response

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) Error

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) GetPayload

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) IsClientError

IsClientError returns true when this get v1 counterparties get by external Id external Id o k response has a 4xx status code

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) IsCode

IsCode returns true when this get v1 counterparties get by external Id external Id o k response a status code equal to that given

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) IsRedirect

IsRedirect returns true when this get v1 counterparties get by external Id external Id o k response has a 3xx status code

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) IsServerError

IsServerError returns true when this get v1 counterparties get by external Id external Id o k response has a 5xx status code

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) IsSuccess

IsSuccess returns true when this get v1 counterparties get by external Id external Id o k response has a 2xx status code

func (*GetV1CounterpartiesGetByExternalIDExternalIDOK) String

type GetV1CounterpartiesGetByExternalIDExternalIDParams

type GetV1CounterpartiesGetByExternalIDExternalIDParams struct {

	/* ExternalID.

	   The externalId of the counterparty. Supplied when creating counterparties.
	*/
	ExternalID string

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

GetV1CounterpartiesGetByExternalIDExternalIDParams contains all the parameters to send to the API endpoint

for the get v1 counterparties get by external ID external ID operation.

Typically these are written to a http.Request.

func NewGetV1CounterpartiesGetByExternalIDExternalIDParams

func NewGetV1CounterpartiesGetByExternalIDExternalIDParams() *GetV1CounterpartiesGetByExternalIDExternalIDParams

NewGetV1CounterpartiesGetByExternalIDExternalIDParams creates a new GetV1CounterpartiesGetByExternalIDExternalIDParams 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 NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithContext

func NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithContext(ctx context.Context) *GetV1CounterpartiesGetByExternalIDExternalIDParams

NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithContext creates a new GetV1CounterpartiesGetByExternalIDExternalIDParams object with the ability to set a context for a request.

func NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithHTTPClient

func NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithHTTPClient(client *http.Client) *GetV1CounterpartiesGetByExternalIDExternalIDParams

NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithHTTPClient creates a new GetV1CounterpartiesGetByExternalIDExternalIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithTimeout

func NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithTimeout(timeout time.Duration) *GetV1CounterpartiesGetByExternalIDExternalIDParams

NewGetV1CounterpartiesGetByExternalIDExternalIDParamsWithTimeout creates a new GetV1CounterpartiesGetByExternalIDExternalIDParams object with the ability to set a timeout on a request.

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) SetContext

SetContext adds the context to the get v1 counterparties get by external ID external ID params

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) SetDefaults

SetDefaults hydrates default values in the get v1 counterparties get by external ID external ID params (not the query body).

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

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) SetExternalID

func (o *GetV1CounterpartiesGetByExternalIDExternalIDParams) SetExternalID(externalID string)

SetExternalID adds the externalId to the get v1 counterparties get by external ID external ID params

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get v1 counterparties get by external ID external ID params

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) SetTimeout

SetTimeout adds the timeout to the get v1 counterparties get by external ID external ID params

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) WithContext

WithContext adds the context to the get v1 counterparties get by external ID external ID params

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) WithDefaults

WithDefaults hydrates default values in the get v1 counterparties get by external ID external ID params (not the query body).

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

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) WithExternalID

WithExternalID adds the externalID to the get v1 counterparties get by external ID external ID params

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 counterparties get by external ID external ID params

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) WithTimeout

WithTimeout adds the timeout to the get v1 counterparties get by external ID external ID params

func (*GetV1CounterpartiesGetByExternalIDExternalIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1CounterpartiesGetByExternalIDExternalIDReader

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

GetV1CounterpartiesGetByExternalIDExternalIDReader is a Reader for the GetV1CounterpartiesGetByExternalIDExternalID structure.

func (*GetV1CounterpartiesGetByExternalIDExternalIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1CounterpartiesIDEventsOK

type GetV1CounterpartiesIDEventsOK struct {
	Payload *GetV1CounterpartiesIDEventsOKBody
}

GetV1CounterpartiesIDEventsOK describes a response with status code 200, with default header values.

QueryResponse with a list of Events

func NewGetV1CounterpartiesIDEventsOK

func NewGetV1CounterpartiesIDEventsOK() *GetV1CounterpartiesIDEventsOK

NewGetV1CounterpartiesIDEventsOK creates a GetV1CounterpartiesIDEventsOK with default headers values

func (*GetV1CounterpartiesIDEventsOK) Code

Code gets the status code for the get v1 counterparties Id events o k response

func (*GetV1CounterpartiesIDEventsOK) Error

func (*GetV1CounterpartiesIDEventsOK) GetPayload

func (*GetV1CounterpartiesIDEventsOK) IsClientError

func (o *GetV1CounterpartiesIDEventsOK) IsClientError() bool

IsClientError returns true when this get v1 counterparties Id events o k response has a 4xx status code

func (*GetV1CounterpartiesIDEventsOK) IsCode

func (o *GetV1CounterpartiesIDEventsOK) IsCode(code int) bool

IsCode returns true when this get v1 counterparties Id events o k response a status code equal to that given

func (*GetV1CounterpartiesIDEventsOK) IsRedirect

func (o *GetV1CounterpartiesIDEventsOK) IsRedirect() bool

IsRedirect returns true when this get v1 counterparties Id events o k response has a 3xx status code

func (*GetV1CounterpartiesIDEventsOK) IsServerError

func (o *GetV1CounterpartiesIDEventsOK) IsServerError() bool

IsServerError returns true when this get v1 counterparties Id events o k response has a 5xx status code

func (*GetV1CounterpartiesIDEventsOK) IsSuccess

func (o *GetV1CounterpartiesIDEventsOK) IsSuccess() bool

IsSuccess returns true when this get v1 counterparties Id events o k response has a 2xx status code

func (*GetV1CounterpartiesIDEventsOK) String

type GetV1CounterpartiesIDEventsOKBody

type GetV1CounterpartiesIDEventsOKBody struct {
	models.QueryResponse

	// items
	Items []*models.Event `json:"items"`
}

GetV1CounterpartiesIDEventsOKBody get v1 counterparties ID events o k body swagger:model GetV1CounterpartiesIDEventsOKBody

func (*GetV1CounterpartiesIDEventsOKBody) ContextValidate

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

ContextValidate validate this get v1 counterparties ID events o k body based on the context it is used

func (*GetV1CounterpartiesIDEventsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (GetV1CounterpartiesIDEventsOKBody) MarshalJSON

func (o GetV1CounterpartiesIDEventsOKBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetV1CounterpartiesIDEventsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetV1CounterpartiesIDEventsOKBody) UnmarshalJSON

func (o *GetV1CounterpartiesIDEventsOKBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetV1CounterpartiesIDEventsOKBody) Validate

Validate validates this get v1 counterparties ID events o k body

type GetV1CounterpartiesIDEventsParams

type GetV1CounterpartiesIDEventsParams struct {

	/* ID.

	   Counterparty ID
	*/
	ID string

	/* Limit.

	   Limit resulting response list. Defaults to 100.
	*/
	Limit *int64

	/* Token.

	   If the response comes back and `nextToken` is populated, use that value in this `token` query to continue pagination.
	*/
	Token *string

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

GetV1CounterpartiesIDEventsParams contains all the parameters to send to the API endpoint

for the get v1 counterparties ID events operation.

Typically these are written to a http.Request.

func NewGetV1CounterpartiesIDEventsParams

func NewGetV1CounterpartiesIDEventsParams() *GetV1CounterpartiesIDEventsParams

NewGetV1CounterpartiesIDEventsParams creates a new GetV1CounterpartiesIDEventsParams 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 NewGetV1CounterpartiesIDEventsParamsWithContext

func NewGetV1CounterpartiesIDEventsParamsWithContext(ctx context.Context) *GetV1CounterpartiesIDEventsParams

NewGetV1CounterpartiesIDEventsParamsWithContext creates a new GetV1CounterpartiesIDEventsParams object with the ability to set a context for a request.

func NewGetV1CounterpartiesIDEventsParamsWithHTTPClient

func NewGetV1CounterpartiesIDEventsParamsWithHTTPClient(client *http.Client) *GetV1CounterpartiesIDEventsParams

NewGetV1CounterpartiesIDEventsParamsWithHTTPClient creates a new GetV1CounterpartiesIDEventsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1CounterpartiesIDEventsParamsWithTimeout

func NewGetV1CounterpartiesIDEventsParamsWithTimeout(timeout time.Duration) *GetV1CounterpartiesIDEventsParams

NewGetV1CounterpartiesIDEventsParamsWithTimeout creates a new GetV1CounterpartiesIDEventsParams object with the ability to set a timeout on a request.

func (*GetV1CounterpartiesIDEventsParams) SetContext

SetContext adds the context to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) SetDefaults

func (o *GetV1CounterpartiesIDEventsParams) SetDefaults()

SetDefaults hydrates default values in the get v1 counterparties ID events params (not the query body).

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

func (*GetV1CounterpartiesIDEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) SetID

SetID adds the id to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) SetLimit

func (o *GetV1CounterpartiesIDEventsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) SetToken

func (o *GetV1CounterpartiesIDEventsParams) SetToken(token *string)

SetToken adds the token to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) WithContext

WithContext adds the context to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) WithDefaults

WithDefaults hydrates default values in the get v1 counterparties ID events params (not the query body).

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

func (*GetV1CounterpartiesIDEventsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) WithID

WithID adds the id to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) WithLimit

WithLimit adds the limit to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) WithTimeout

WithTimeout adds the timeout to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) WithToken

WithToken adds the token to the get v1 counterparties ID events params

func (*GetV1CounterpartiesIDEventsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1CounterpartiesIDEventsReader

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

GetV1CounterpartiesIDEventsReader is a Reader for the GetV1CounterpartiesIDEvents structure.

func (*GetV1CounterpartiesIDEventsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1CounterpartiesIDNotFound

type GetV1CounterpartiesIDNotFound struct {
	Payload string
}

GetV1CounterpartiesIDNotFound describes a response with status code 404, with default header values.

The identified counterparty doesn't exist.

func NewGetV1CounterpartiesIDNotFound

func NewGetV1CounterpartiesIDNotFound() *GetV1CounterpartiesIDNotFound

NewGetV1CounterpartiesIDNotFound creates a GetV1CounterpartiesIDNotFound with default headers values

func (*GetV1CounterpartiesIDNotFound) Code

Code gets the status code for the get v1 counterparties Id not found response

func (*GetV1CounterpartiesIDNotFound) Error

func (*GetV1CounterpartiesIDNotFound) GetPayload

func (o *GetV1CounterpartiesIDNotFound) GetPayload() string

func (*GetV1CounterpartiesIDNotFound) IsClientError

func (o *GetV1CounterpartiesIDNotFound) IsClientError() bool

IsClientError returns true when this get v1 counterparties Id not found response has a 4xx status code

func (*GetV1CounterpartiesIDNotFound) IsCode

func (o *GetV1CounterpartiesIDNotFound) IsCode(code int) bool

IsCode returns true when this get v1 counterparties Id not found response a status code equal to that given

func (*GetV1CounterpartiesIDNotFound) IsRedirect

func (o *GetV1CounterpartiesIDNotFound) IsRedirect() bool

IsRedirect returns true when this get v1 counterparties Id not found response has a 3xx status code

func (*GetV1CounterpartiesIDNotFound) IsServerError

func (o *GetV1CounterpartiesIDNotFound) IsServerError() bool

IsServerError returns true when this get v1 counterparties Id not found response has a 5xx status code

func (*GetV1CounterpartiesIDNotFound) IsSuccess

func (o *GetV1CounterpartiesIDNotFound) IsSuccess() bool

IsSuccess returns true when this get v1 counterparties Id not found response has a 2xx status code

func (*GetV1CounterpartiesIDNotFound) String

type GetV1CounterpartiesIDOK

type GetV1CounterpartiesIDOK struct {
	Payload *models.Counterparty
}

GetV1CounterpartiesIDOK describes a response with status code 200, with default header values.

The identified counterparty.

func NewGetV1CounterpartiesIDOK

func NewGetV1CounterpartiesIDOK() *GetV1CounterpartiesIDOK

NewGetV1CounterpartiesIDOK creates a GetV1CounterpartiesIDOK with default headers values

func (*GetV1CounterpartiesIDOK) Code

func (o *GetV1CounterpartiesIDOK) Code() int

Code gets the status code for the get v1 counterparties Id o k response

func (*GetV1CounterpartiesIDOK) Error

func (o *GetV1CounterpartiesIDOK) Error() string

func (*GetV1CounterpartiesIDOK) GetPayload

func (o *GetV1CounterpartiesIDOK) GetPayload() *models.Counterparty

func (*GetV1CounterpartiesIDOK) IsClientError

func (o *GetV1CounterpartiesIDOK) IsClientError() bool

IsClientError returns true when this get v1 counterparties Id o k response has a 4xx status code

func (*GetV1CounterpartiesIDOK) IsCode

func (o *GetV1CounterpartiesIDOK) IsCode(code int) bool

IsCode returns true when this get v1 counterparties Id o k response a status code equal to that given

func (*GetV1CounterpartiesIDOK) IsRedirect

func (o *GetV1CounterpartiesIDOK) IsRedirect() bool

IsRedirect returns true when this get v1 counterparties Id o k response has a 3xx status code

func (*GetV1CounterpartiesIDOK) IsServerError

func (o *GetV1CounterpartiesIDOK) IsServerError() bool

IsServerError returns true when this get v1 counterparties Id o k response has a 5xx status code

func (*GetV1CounterpartiesIDOK) IsSuccess

func (o *GetV1CounterpartiesIDOK) IsSuccess() bool

IsSuccess returns true when this get v1 counterparties Id o k response has a 2xx status code

func (*GetV1CounterpartiesIDOK) String

func (o *GetV1CounterpartiesIDOK) String() string

type GetV1CounterpartiesIDParams

type GetV1CounterpartiesIDParams struct {

	/* ID.

	   Counterparty ID
	*/
	ID string

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

GetV1CounterpartiesIDParams contains all the parameters to send to the API endpoint

for the get v1 counterparties ID operation.

Typically these are written to a http.Request.

func NewGetV1CounterpartiesIDParams

func NewGetV1CounterpartiesIDParams() *GetV1CounterpartiesIDParams

NewGetV1CounterpartiesIDParams creates a new GetV1CounterpartiesIDParams 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 NewGetV1CounterpartiesIDParamsWithContext

func NewGetV1CounterpartiesIDParamsWithContext(ctx context.Context) *GetV1CounterpartiesIDParams

NewGetV1CounterpartiesIDParamsWithContext creates a new GetV1CounterpartiesIDParams object with the ability to set a context for a request.

func NewGetV1CounterpartiesIDParamsWithHTTPClient

func NewGetV1CounterpartiesIDParamsWithHTTPClient(client *http.Client) *GetV1CounterpartiesIDParams

NewGetV1CounterpartiesIDParamsWithHTTPClient creates a new GetV1CounterpartiesIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1CounterpartiesIDParamsWithTimeout

func NewGetV1CounterpartiesIDParamsWithTimeout(timeout time.Duration) *GetV1CounterpartiesIDParams

NewGetV1CounterpartiesIDParamsWithTimeout creates a new GetV1CounterpartiesIDParams object with the ability to set a timeout on a request.

func (*GetV1CounterpartiesIDParams) SetContext

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

SetContext adds the context to the get v1 counterparties ID params

func (*GetV1CounterpartiesIDParams) SetDefaults

func (o *GetV1CounterpartiesIDParams) SetDefaults()

SetDefaults hydrates default values in the get v1 counterparties ID params (not the query body).

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

func (*GetV1CounterpartiesIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 counterparties ID params

func (*GetV1CounterpartiesIDParams) SetID

func (o *GetV1CounterpartiesIDParams) SetID(id string)

SetID adds the id to the get v1 counterparties ID params

func (*GetV1CounterpartiesIDParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 counterparties ID params

func (*GetV1CounterpartiesIDParams) WithContext

WithContext adds the context to the get v1 counterparties ID params

func (*GetV1CounterpartiesIDParams) WithDefaults

WithDefaults hydrates default values in the get v1 counterparties ID params (not the query body).

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

func (*GetV1CounterpartiesIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 counterparties ID params

func (*GetV1CounterpartiesIDParams) WithID

WithID adds the id to the get v1 counterparties ID params

func (*GetV1CounterpartiesIDParams) WithTimeout

WithTimeout adds the timeout to the get v1 counterparties ID params

func (*GetV1CounterpartiesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1CounterpartiesIDReader

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

GetV1CounterpartiesIDReader is a Reader for the GetV1CounterpartiesID structure.

func (*GetV1CounterpartiesIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1CounterpartiesOK

type GetV1CounterpartiesOK struct {
	Payload *GetV1CounterpartiesOKBody
}

GetV1CounterpartiesOK describes a response with status code 200, with default header values.

QueryResponse with list of Counterparties

func NewGetV1CounterpartiesOK

func NewGetV1CounterpartiesOK() *GetV1CounterpartiesOK

NewGetV1CounterpartiesOK creates a GetV1CounterpartiesOK with default headers values

func (*GetV1CounterpartiesOK) Code

func (o *GetV1CounterpartiesOK) Code() int

Code gets the status code for the get v1 counterparties o k response

func (*GetV1CounterpartiesOK) Error

func (o *GetV1CounterpartiesOK) Error() string

func (*GetV1CounterpartiesOK) GetPayload

func (*GetV1CounterpartiesOK) IsClientError

func (o *GetV1CounterpartiesOK) IsClientError() bool

IsClientError returns true when this get v1 counterparties o k response has a 4xx status code

func (*GetV1CounterpartiesOK) IsCode

func (o *GetV1CounterpartiesOK) IsCode(code int) bool

IsCode returns true when this get v1 counterparties o k response a status code equal to that given

func (*GetV1CounterpartiesOK) IsRedirect

func (o *GetV1CounterpartiesOK) IsRedirect() bool

IsRedirect returns true when this get v1 counterparties o k response has a 3xx status code

func (*GetV1CounterpartiesOK) IsServerError

func (o *GetV1CounterpartiesOK) IsServerError() bool

IsServerError returns true when this get v1 counterparties o k response has a 5xx status code

func (*GetV1CounterpartiesOK) IsSuccess

func (o *GetV1CounterpartiesOK) IsSuccess() bool

IsSuccess returns true when this get v1 counterparties o k response has a 2xx status code

func (*GetV1CounterpartiesOK) String

func (o *GetV1CounterpartiesOK) String() string

type GetV1CounterpartiesOKBody

type GetV1CounterpartiesOKBody struct {
	models.QueryResponse

	// items
	Items []*models.Counterparty `json:"items"`
}

GetV1CounterpartiesOKBody get v1 counterparties o k body swagger:model GetV1CounterpartiesOKBody

func (*GetV1CounterpartiesOKBody) ContextValidate

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

ContextValidate validate this get v1 counterparties o k body based on the context it is used

func (*GetV1CounterpartiesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (GetV1CounterpartiesOKBody) MarshalJSON

func (o GetV1CounterpartiesOKBody) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*GetV1CounterpartiesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetV1CounterpartiesOKBody) UnmarshalJSON

func (o *GetV1CounterpartiesOKBody) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetV1CounterpartiesOKBody) Validate

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

Validate validates this get v1 counterparties o k body

type GetV1CounterpartiesParams

type GetV1CounterpartiesParams struct {

	/* Limit.

	   Limit resulting response list. . Defaults to 100.
	*/
	Limit *int64

	/* Query.

	   Free text search of counterparty names and identifiers. Must be at least 3 characters.
	*/
	Query *int64

	/* Token.

	   If response comes back and `nextToken` is populated, use that value in this `token` query to continue pagination.
	*/
	Token *string

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

GetV1CounterpartiesParams contains all the parameters to send to the API endpoint

for the get v1 counterparties operation.

Typically these are written to a http.Request.

func NewGetV1CounterpartiesParams

func NewGetV1CounterpartiesParams() *GetV1CounterpartiesParams

NewGetV1CounterpartiesParams creates a new GetV1CounterpartiesParams 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 NewGetV1CounterpartiesParamsWithContext

func NewGetV1CounterpartiesParamsWithContext(ctx context.Context) *GetV1CounterpartiesParams

NewGetV1CounterpartiesParamsWithContext creates a new GetV1CounterpartiesParams object with the ability to set a context for a request.

func NewGetV1CounterpartiesParamsWithHTTPClient

func NewGetV1CounterpartiesParamsWithHTTPClient(client *http.Client) *GetV1CounterpartiesParams

NewGetV1CounterpartiesParamsWithHTTPClient creates a new GetV1CounterpartiesParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1CounterpartiesParamsWithTimeout

func NewGetV1CounterpartiesParamsWithTimeout(timeout time.Duration) *GetV1CounterpartiesParams

NewGetV1CounterpartiesParamsWithTimeout creates a new GetV1CounterpartiesParams object with the ability to set a timeout on a request.

func (*GetV1CounterpartiesParams) SetContext

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

SetContext adds the context to the get v1 counterparties params

func (*GetV1CounterpartiesParams) SetDefaults

func (o *GetV1CounterpartiesParams) SetDefaults()

SetDefaults hydrates default values in the get v1 counterparties params (not the query body).

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

func (*GetV1CounterpartiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 counterparties params

func (*GetV1CounterpartiesParams) SetLimit

func (o *GetV1CounterpartiesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get v1 counterparties params

func (*GetV1CounterpartiesParams) SetQuery

func (o *GetV1CounterpartiesParams) SetQuery(query *int64)

SetQuery adds the query to the get v1 counterparties params

func (*GetV1CounterpartiesParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 counterparties params

func (*GetV1CounterpartiesParams) SetToken

func (o *GetV1CounterpartiesParams) SetToken(token *string)

SetToken adds the token to the get v1 counterparties params

func (*GetV1CounterpartiesParams) WithContext

WithContext adds the context to the get v1 counterparties params

func (*GetV1CounterpartiesParams) WithDefaults

WithDefaults hydrates default values in the get v1 counterparties params (not the query body).

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

func (*GetV1CounterpartiesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 counterparties params

func (*GetV1CounterpartiesParams) WithLimit

WithLimit adds the limit to the get v1 counterparties params

func (*GetV1CounterpartiesParams) WithQuery

WithQuery adds the query to the get v1 counterparties params

func (*GetV1CounterpartiesParams) WithTimeout

WithTimeout adds the timeout to the get v1 counterparties params

func (*GetV1CounterpartiesParams) WithToken

WithToken adds the token to the get v1 counterparties params

func (*GetV1CounterpartiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1CounterpartiesReader

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

GetV1CounterpartiesReader is a Reader for the GetV1Counterparties structure.

func (*GetV1CounterpartiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostV1CounterpartiesBadRequest added in v1.3.0

type PostV1CounterpartiesBadRequest struct {
	Payload *models.ErrorResponse
}

PostV1CounterpartiesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPostV1CounterpartiesBadRequest added in v1.3.0

func NewPostV1CounterpartiesBadRequest() *PostV1CounterpartiesBadRequest

NewPostV1CounterpartiesBadRequest creates a PostV1CounterpartiesBadRequest with default headers values

func (*PostV1CounterpartiesBadRequest) Code added in v1.3.0

Code gets the status code for the post v1 counterparties bad request response

func (*PostV1CounterpartiesBadRequest) Error added in v1.3.0

func (*PostV1CounterpartiesBadRequest) GetPayload added in v1.3.0

func (*PostV1CounterpartiesBadRequest) IsClientError added in v1.3.0

func (o *PostV1CounterpartiesBadRequest) IsClientError() bool

IsClientError returns true when this post v1 counterparties bad request response has a 4xx status code

func (*PostV1CounterpartiesBadRequest) IsCode added in v1.3.0

func (o *PostV1CounterpartiesBadRequest) IsCode(code int) bool

IsCode returns true when this post v1 counterparties bad request response a status code equal to that given

func (*PostV1CounterpartiesBadRequest) IsRedirect added in v1.3.0

func (o *PostV1CounterpartiesBadRequest) IsRedirect() bool

IsRedirect returns true when this post v1 counterparties bad request response has a 3xx status code

func (*PostV1CounterpartiesBadRequest) IsServerError added in v1.3.0

func (o *PostV1CounterpartiesBadRequest) IsServerError() bool

IsServerError returns true when this post v1 counterparties bad request response has a 5xx status code

func (*PostV1CounterpartiesBadRequest) IsSuccess added in v1.3.0

func (o *PostV1CounterpartiesBadRequest) IsSuccess() bool

IsSuccess returns true when this post v1 counterparties bad request response has a 2xx status code

func (*PostV1CounterpartiesBadRequest) String added in v1.3.0

type PostV1CounterpartiesCreated

type PostV1CounterpartiesCreated struct {
	Payload *models.Counterparty
}

PostV1CounterpartiesCreated describes a response with status code 201, with default header values.

The created counterparty

func NewPostV1CounterpartiesCreated

func NewPostV1CounterpartiesCreated() *PostV1CounterpartiesCreated

NewPostV1CounterpartiesCreated creates a PostV1CounterpartiesCreated with default headers values

func (*PostV1CounterpartiesCreated) Code

func (o *PostV1CounterpartiesCreated) Code() int

Code gets the status code for the post v1 counterparties created response

func (*PostV1CounterpartiesCreated) Error

func (*PostV1CounterpartiesCreated) GetPayload

func (*PostV1CounterpartiesCreated) IsClientError

func (o *PostV1CounterpartiesCreated) IsClientError() bool

IsClientError returns true when this post v1 counterparties created response has a 4xx status code

func (*PostV1CounterpartiesCreated) IsCode

func (o *PostV1CounterpartiesCreated) IsCode(code int) bool

IsCode returns true when this post v1 counterparties created response a status code equal to that given

func (*PostV1CounterpartiesCreated) IsRedirect

func (o *PostV1CounterpartiesCreated) IsRedirect() bool

IsRedirect returns true when this post v1 counterparties created response has a 3xx status code

func (*PostV1CounterpartiesCreated) IsServerError

func (o *PostV1CounterpartiesCreated) IsServerError() bool

IsServerError returns true when this post v1 counterparties created response has a 5xx status code

func (*PostV1CounterpartiesCreated) IsSuccess

func (o *PostV1CounterpartiesCreated) IsSuccess() bool

IsSuccess returns true when this post v1 counterparties created response has a 2xx status code

func (*PostV1CounterpartiesCreated) String

func (o *PostV1CounterpartiesCreated) String() string

type PostV1CounterpartiesParams

type PostV1CounterpartiesParams struct {

	/* Counterparty.

	   CreateCounterpartyRequest
	*/
	Counterparty *models.CreateCounterpartyRequest

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

PostV1CounterpartiesParams contains all the parameters to send to the API endpoint

for the post v1 counterparties operation.

Typically these are written to a http.Request.

func NewPostV1CounterpartiesParams

func NewPostV1CounterpartiesParams() *PostV1CounterpartiesParams

NewPostV1CounterpartiesParams creates a new PostV1CounterpartiesParams 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 NewPostV1CounterpartiesParamsWithContext

func NewPostV1CounterpartiesParamsWithContext(ctx context.Context) *PostV1CounterpartiesParams

NewPostV1CounterpartiesParamsWithContext creates a new PostV1CounterpartiesParams object with the ability to set a context for a request.

func NewPostV1CounterpartiesParamsWithHTTPClient

func NewPostV1CounterpartiesParamsWithHTTPClient(client *http.Client) *PostV1CounterpartiesParams

NewPostV1CounterpartiesParamsWithHTTPClient creates a new PostV1CounterpartiesParams object with the ability to set a custom HTTPClient for a request.

func NewPostV1CounterpartiesParamsWithTimeout

func NewPostV1CounterpartiesParamsWithTimeout(timeout time.Duration) *PostV1CounterpartiesParams

NewPostV1CounterpartiesParamsWithTimeout creates a new PostV1CounterpartiesParams object with the ability to set a timeout on a request.

func (*PostV1CounterpartiesParams) SetContext

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

SetContext adds the context to the post v1 counterparties params

func (*PostV1CounterpartiesParams) SetCounterparty

func (o *PostV1CounterpartiesParams) SetCounterparty(counterparty *models.CreateCounterpartyRequest)

SetCounterparty adds the counterparty to the post v1 counterparties params

func (*PostV1CounterpartiesParams) SetDefaults

func (o *PostV1CounterpartiesParams) SetDefaults()

SetDefaults hydrates default values in the post v1 counterparties params (not the query body).

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

func (*PostV1CounterpartiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post v1 counterparties params

func (*PostV1CounterpartiesParams) SetTimeout

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

SetTimeout adds the timeout to the post v1 counterparties params

func (*PostV1CounterpartiesParams) WithContext

WithContext adds the context to the post v1 counterparties params

func (*PostV1CounterpartiesParams) WithCounterparty

WithCounterparty adds the counterparty to the post v1 counterparties params

func (*PostV1CounterpartiesParams) WithDefaults

WithDefaults hydrates default values in the post v1 counterparties params (not the query body).

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

func (*PostV1CounterpartiesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v1 counterparties params

func (*PostV1CounterpartiesParams) WithTimeout

WithTimeout adds the timeout to the post v1 counterparties params

func (*PostV1CounterpartiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostV1CounterpartiesReader

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

PostV1CounterpartiesReader is a Reader for the PostV1Counterparties structure.

func (*PostV1CounterpartiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutV1CounterpartiesIDBadRequest added in v1.3.0

type PutV1CounterpartiesIDBadRequest struct {
	Payload *models.ErrorResponse
}

PutV1CounterpartiesIDBadRequest describes a response with status code 400, with default header values.

Bad request

func NewPutV1CounterpartiesIDBadRequest added in v1.3.0

func NewPutV1CounterpartiesIDBadRequest() *PutV1CounterpartiesIDBadRequest

NewPutV1CounterpartiesIDBadRequest creates a PutV1CounterpartiesIDBadRequest with default headers values

func (*PutV1CounterpartiesIDBadRequest) Code added in v1.3.0

Code gets the status code for the put v1 counterparties Id bad request response

func (*PutV1CounterpartiesIDBadRequest) Error added in v1.3.0

func (*PutV1CounterpartiesIDBadRequest) GetPayload added in v1.3.0

func (*PutV1CounterpartiesIDBadRequest) IsClientError added in v1.3.0

func (o *PutV1CounterpartiesIDBadRequest) IsClientError() bool

IsClientError returns true when this put v1 counterparties Id bad request response has a 4xx status code

func (*PutV1CounterpartiesIDBadRequest) IsCode added in v1.3.0

func (o *PutV1CounterpartiesIDBadRequest) IsCode(code int) bool

IsCode returns true when this put v1 counterparties Id bad request response a status code equal to that given

func (*PutV1CounterpartiesIDBadRequest) IsRedirect added in v1.3.0

func (o *PutV1CounterpartiesIDBadRequest) IsRedirect() bool

IsRedirect returns true when this put v1 counterparties Id bad request response has a 3xx status code

func (*PutV1CounterpartiesIDBadRequest) IsServerError added in v1.3.0

func (o *PutV1CounterpartiesIDBadRequest) IsServerError() bool

IsServerError returns true when this put v1 counterparties Id bad request response has a 5xx status code

func (*PutV1CounterpartiesIDBadRequest) IsSuccess added in v1.3.0

func (o *PutV1CounterpartiesIDBadRequest) IsSuccess() bool

IsSuccess returns true when this put v1 counterparties Id bad request response has a 2xx status code

func (*PutV1CounterpartiesIDBadRequest) String added in v1.3.0

type PutV1CounterpartiesIDConflict added in v1.3.0

type PutV1CounterpartiesIDConflict struct {
	Payload *models.ErrorResponse
}

PutV1CounterpartiesIDConflict describes a response with status code 409, with default header values.

Conflict with the current state of the target resource

func NewPutV1CounterpartiesIDConflict added in v1.3.0

func NewPutV1CounterpartiesIDConflict() *PutV1CounterpartiesIDConflict

NewPutV1CounterpartiesIDConflict creates a PutV1CounterpartiesIDConflict with default headers values

func (*PutV1CounterpartiesIDConflict) Code added in v1.3.0

Code gets the status code for the put v1 counterparties Id conflict response

func (*PutV1CounterpartiesIDConflict) Error added in v1.3.0

func (*PutV1CounterpartiesIDConflict) GetPayload added in v1.3.0

func (*PutV1CounterpartiesIDConflict) IsClientError added in v1.3.0

func (o *PutV1CounterpartiesIDConflict) IsClientError() bool

IsClientError returns true when this put v1 counterparties Id conflict response has a 4xx status code

func (*PutV1CounterpartiesIDConflict) IsCode added in v1.3.0

func (o *PutV1CounterpartiesIDConflict) IsCode(code int) bool

IsCode returns true when this put v1 counterparties Id conflict response a status code equal to that given

func (*PutV1CounterpartiesIDConflict) IsRedirect added in v1.3.0

func (o *PutV1CounterpartiesIDConflict) IsRedirect() bool

IsRedirect returns true when this put v1 counterparties Id conflict response has a 3xx status code

func (*PutV1CounterpartiesIDConflict) IsServerError added in v1.3.0

func (o *PutV1CounterpartiesIDConflict) IsServerError() bool

IsServerError returns true when this put v1 counterparties Id conflict response has a 5xx status code

func (*PutV1CounterpartiesIDConflict) IsSuccess added in v1.3.0

func (o *PutV1CounterpartiesIDConflict) IsSuccess() bool

IsSuccess returns true when this put v1 counterparties Id conflict response has a 2xx status code

func (*PutV1CounterpartiesIDConflict) String added in v1.3.0

type PutV1CounterpartiesIDOK

type PutV1CounterpartiesIDOK struct {
	Payload *models.Counterparty
}

PutV1CounterpartiesIDOK describes a response with status code 200, with default header values.

The updated counterparty

func NewPutV1CounterpartiesIDOK

func NewPutV1CounterpartiesIDOK() *PutV1CounterpartiesIDOK

NewPutV1CounterpartiesIDOK creates a PutV1CounterpartiesIDOK with default headers values

func (*PutV1CounterpartiesIDOK) Code

func (o *PutV1CounterpartiesIDOK) Code() int

Code gets the status code for the put v1 counterparties Id o k response

func (*PutV1CounterpartiesIDOK) Error

func (o *PutV1CounterpartiesIDOK) Error() string

func (*PutV1CounterpartiesIDOK) GetPayload

func (o *PutV1CounterpartiesIDOK) GetPayload() *models.Counterparty

func (*PutV1CounterpartiesIDOK) IsClientError

func (o *PutV1CounterpartiesIDOK) IsClientError() bool

IsClientError returns true when this put v1 counterparties Id o k response has a 4xx status code

func (*PutV1CounterpartiesIDOK) IsCode

func (o *PutV1CounterpartiesIDOK) IsCode(code int) bool

IsCode returns true when this put v1 counterparties Id o k response a status code equal to that given

func (*PutV1CounterpartiesIDOK) IsRedirect

func (o *PutV1CounterpartiesIDOK) IsRedirect() bool

IsRedirect returns true when this put v1 counterparties Id o k response has a 3xx status code

func (*PutV1CounterpartiesIDOK) IsServerError

func (o *PutV1CounterpartiesIDOK) IsServerError() bool

IsServerError returns true when this put v1 counterparties Id o k response has a 5xx status code

func (*PutV1CounterpartiesIDOK) IsSuccess

func (o *PutV1CounterpartiesIDOK) IsSuccess() bool

IsSuccess returns true when this put v1 counterparties Id o k response has a 2xx status code

func (*PutV1CounterpartiesIDOK) String

func (o *PutV1CounterpartiesIDOK) String() string

type PutV1CounterpartiesIDParams

type PutV1CounterpartiesIDParams struct {

	/* Counterparty.

	   Counterparty
	*/
	Counterparty *models.UpdateCounterpartyRequest

	/* ID.

	   Counterparty ID
	*/
	ID string

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

PutV1CounterpartiesIDParams contains all the parameters to send to the API endpoint

for the put v1 counterparties ID operation.

Typically these are written to a http.Request.

func NewPutV1CounterpartiesIDParams

func NewPutV1CounterpartiesIDParams() *PutV1CounterpartiesIDParams

NewPutV1CounterpartiesIDParams creates a new PutV1CounterpartiesIDParams 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 NewPutV1CounterpartiesIDParamsWithContext

func NewPutV1CounterpartiesIDParamsWithContext(ctx context.Context) *PutV1CounterpartiesIDParams

NewPutV1CounterpartiesIDParamsWithContext creates a new PutV1CounterpartiesIDParams object with the ability to set a context for a request.

func NewPutV1CounterpartiesIDParamsWithHTTPClient

func NewPutV1CounterpartiesIDParamsWithHTTPClient(client *http.Client) *PutV1CounterpartiesIDParams

NewPutV1CounterpartiesIDParamsWithHTTPClient creates a new PutV1CounterpartiesIDParams object with the ability to set a custom HTTPClient for a request.

func NewPutV1CounterpartiesIDParamsWithTimeout

func NewPutV1CounterpartiesIDParamsWithTimeout(timeout time.Duration) *PutV1CounterpartiesIDParams

NewPutV1CounterpartiesIDParamsWithTimeout creates a new PutV1CounterpartiesIDParams object with the ability to set a timeout on a request.

func (*PutV1CounterpartiesIDParams) SetContext

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

SetContext adds the context to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) SetCounterparty

func (o *PutV1CounterpartiesIDParams) SetCounterparty(counterparty *models.UpdateCounterpartyRequest)

SetCounterparty adds the counterparty to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) SetDefaults

func (o *PutV1CounterpartiesIDParams) SetDefaults()

SetDefaults hydrates default values in the put v1 counterparties ID params (not the query body).

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

func (*PutV1CounterpartiesIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) SetID

func (o *PutV1CounterpartiesIDParams) SetID(id string)

SetID adds the id to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) SetTimeout

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

SetTimeout adds the timeout to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) WithContext

WithContext adds the context to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) WithCounterparty

WithCounterparty adds the counterparty to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) WithDefaults

WithDefaults hydrates default values in the put v1 counterparties ID params (not the query body).

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

func (*PutV1CounterpartiesIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) WithID

WithID adds the id to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) WithTimeout

WithTimeout adds the timeout to the put v1 counterparties ID params

func (*PutV1CounterpartiesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutV1CounterpartiesIDReader

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

PutV1CounterpartiesIDReader is a Reader for the PutV1CounterpartiesID structure.

func (*PutV1CounterpartiesIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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