third_parties

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 third parties API

func (*Client) GetV1betaThirdParties

func (a *Client) GetV1betaThirdParties(params *GetV1betaThirdPartiesParams, opts ...ClientOption) (*GetV1betaThirdPartiesOK, error)

GetV1betaThirdParties queries third parties

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

func (*Client) GetV1betaThirdPartiesID

func (a *Client) GetV1betaThirdPartiesID(params *GetV1betaThirdPartiesIDParams, opts ...ClientOption) (*GetV1betaThirdPartiesIDOK, error)

GetV1betaThirdPartiesID reads third party

Returns the identified ThirdParty.

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 {
	GetV1betaThirdParties(params *GetV1betaThirdPartiesParams, opts ...ClientOption) (*GetV1betaThirdPartiesOK, error)

	GetV1betaThirdPartiesID(params *GetV1betaThirdPartiesIDParams, opts ...ClientOption) (*GetV1betaThirdPartiesIDOK, 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 third parties API client.

type GetV1betaThirdPartiesIDNotFound

type GetV1betaThirdPartiesIDNotFound struct {
	Payload string
}

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

The identified third party doesn't exist

func NewGetV1betaThirdPartiesIDNotFound

func NewGetV1betaThirdPartiesIDNotFound() *GetV1betaThirdPartiesIDNotFound

NewGetV1betaThirdPartiesIDNotFound creates a GetV1betaThirdPartiesIDNotFound with default headers values

func (*GetV1betaThirdPartiesIDNotFound) Code

Code gets the status code for the get v1beta third parties Id not found response

func (*GetV1betaThirdPartiesIDNotFound) Error

func (*GetV1betaThirdPartiesIDNotFound) GetPayload

func (o *GetV1betaThirdPartiesIDNotFound) GetPayload() string

func (*GetV1betaThirdPartiesIDNotFound) IsClientError

func (o *GetV1betaThirdPartiesIDNotFound) IsClientError() bool

IsClientError returns true when this get v1beta third parties Id not found response has a 4xx status code

func (*GetV1betaThirdPartiesIDNotFound) IsCode

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

IsCode returns true when this get v1beta third parties Id not found response a status code equal to that given

func (*GetV1betaThirdPartiesIDNotFound) IsRedirect

func (o *GetV1betaThirdPartiesIDNotFound) IsRedirect() bool

IsRedirect returns true when this get v1beta third parties Id not found response has a 3xx status code

func (*GetV1betaThirdPartiesIDNotFound) IsServerError

func (o *GetV1betaThirdPartiesIDNotFound) IsServerError() bool

IsServerError returns true when this get v1beta third parties Id not found response has a 5xx status code

func (*GetV1betaThirdPartiesIDNotFound) IsSuccess

func (o *GetV1betaThirdPartiesIDNotFound) IsSuccess() bool

IsSuccess returns true when this get v1beta third parties Id not found response has a 2xx status code

func (*GetV1betaThirdPartiesIDNotFound) String

type GetV1betaThirdPartiesIDOK

type GetV1betaThirdPartiesIDOK struct {
	Payload *models.ThirdParty
}

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

The identified third party.

func NewGetV1betaThirdPartiesIDOK

func NewGetV1betaThirdPartiesIDOK() *GetV1betaThirdPartiesIDOK

NewGetV1betaThirdPartiesIDOK creates a GetV1betaThirdPartiesIDOK with default headers values

func (*GetV1betaThirdPartiesIDOK) Code

func (o *GetV1betaThirdPartiesIDOK) Code() int

Code gets the status code for the get v1beta third parties Id o k response

func (*GetV1betaThirdPartiesIDOK) Error

func (o *GetV1betaThirdPartiesIDOK) Error() string

func (*GetV1betaThirdPartiesIDOK) GetPayload

func (o *GetV1betaThirdPartiesIDOK) GetPayload() *models.ThirdParty

func (*GetV1betaThirdPartiesIDOK) IsClientError

func (o *GetV1betaThirdPartiesIDOK) IsClientError() bool

IsClientError returns true when this get v1beta third parties Id o k response has a 4xx status code

func (*GetV1betaThirdPartiesIDOK) IsCode

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

IsCode returns true when this get v1beta third parties Id o k response a status code equal to that given

func (*GetV1betaThirdPartiesIDOK) IsRedirect

func (o *GetV1betaThirdPartiesIDOK) IsRedirect() bool

IsRedirect returns true when this get v1beta third parties Id o k response has a 3xx status code

func (*GetV1betaThirdPartiesIDOK) IsServerError

func (o *GetV1betaThirdPartiesIDOK) IsServerError() bool

IsServerError returns true when this get v1beta third parties Id o k response has a 5xx status code

func (*GetV1betaThirdPartiesIDOK) IsSuccess

func (o *GetV1betaThirdPartiesIDOK) IsSuccess() bool

IsSuccess returns true when this get v1beta third parties Id o k response has a 2xx status code

func (*GetV1betaThirdPartiesIDOK) String

func (o *GetV1betaThirdPartiesIDOK) String() string

type GetV1betaThirdPartiesIDParams

type GetV1betaThirdPartiesIDParams struct {

	/* ID.

	   ThirdParty ID
	*/
	ID string

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

GetV1betaThirdPartiesIDParams contains all the parameters to send to the API endpoint

for the get v1beta third parties ID operation.

Typically these are written to a http.Request.

func NewGetV1betaThirdPartiesIDParams

func NewGetV1betaThirdPartiesIDParams() *GetV1betaThirdPartiesIDParams

NewGetV1betaThirdPartiesIDParams creates a new GetV1betaThirdPartiesIDParams 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 NewGetV1betaThirdPartiesIDParamsWithContext

func NewGetV1betaThirdPartiesIDParamsWithContext(ctx context.Context) *GetV1betaThirdPartiesIDParams

NewGetV1betaThirdPartiesIDParamsWithContext creates a new GetV1betaThirdPartiesIDParams object with the ability to set a context for a request.

func NewGetV1betaThirdPartiesIDParamsWithHTTPClient

func NewGetV1betaThirdPartiesIDParamsWithHTTPClient(client *http.Client) *GetV1betaThirdPartiesIDParams

NewGetV1betaThirdPartiesIDParamsWithHTTPClient creates a new GetV1betaThirdPartiesIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1betaThirdPartiesIDParamsWithTimeout

func NewGetV1betaThirdPartiesIDParamsWithTimeout(timeout time.Duration) *GetV1betaThirdPartiesIDParams

NewGetV1betaThirdPartiesIDParamsWithTimeout creates a new GetV1betaThirdPartiesIDParams object with the ability to set a timeout on a request.

func (*GetV1betaThirdPartiesIDParams) SetContext

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

SetContext adds the context to the get v1beta third parties ID params

func (*GetV1betaThirdPartiesIDParams) SetDefaults

func (o *GetV1betaThirdPartiesIDParams) SetDefaults()

SetDefaults hydrates default values in the get v1beta third parties ID params (not the query body).

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

func (*GetV1betaThirdPartiesIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1beta third parties ID params

func (*GetV1betaThirdPartiesIDParams) SetID

SetID adds the id to the get v1beta third parties ID params

func (*GetV1betaThirdPartiesIDParams) SetTimeout

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

SetTimeout adds the timeout to the get v1beta third parties ID params

func (*GetV1betaThirdPartiesIDParams) WithContext

WithContext adds the context to the get v1beta third parties ID params

func (*GetV1betaThirdPartiesIDParams) WithDefaults

WithDefaults hydrates default values in the get v1beta third parties ID params (not the query body).

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

func (*GetV1betaThirdPartiesIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1beta third parties ID params

func (*GetV1betaThirdPartiesIDParams) WithID

WithID adds the id to the get v1beta third parties ID params

func (*GetV1betaThirdPartiesIDParams) WithTimeout

WithTimeout adds the timeout to the get v1beta third parties ID params

func (*GetV1betaThirdPartiesIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1betaThirdPartiesIDReader

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

GetV1betaThirdPartiesIDReader is a Reader for the GetV1betaThirdPartiesID structure.

func (*GetV1betaThirdPartiesIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetV1betaThirdPartiesOK

type GetV1betaThirdPartiesOK struct {
	Payload *GetV1betaThirdPartiesOKBody
}

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

QueryResponse with list of ThirdParties

func NewGetV1betaThirdPartiesOK

func NewGetV1betaThirdPartiesOK() *GetV1betaThirdPartiesOK

NewGetV1betaThirdPartiesOK creates a GetV1betaThirdPartiesOK with default headers values

func (*GetV1betaThirdPartiesOK) Code

func (o *GetV1betaThirdPartiesOK) Code() int

Code gets the status code for the get v1beta third parties o k response

func (*GetV1betaThirdPartiesOK) Error

func (o *GetV1betaThirdPartiesOK) Error() string

func (*GetV1betaThirdPartiesOK) GetPayload

func (*GetV1betaThirdPartiesOK) IsClientError

func (o *GetV1betaThirdPartiesOK) IsClientError() bool

IsClientError returns true when this get v1beta third parties o k response has a 4xx status code

func (*GetV1betaThirdPartiesOK) IsCode

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

IsCode returns true when this get v1beta third parties o k response a status code equal to that given

func (*GetV1betaThirdPartiesOK) IsRedirect

func (o *GetV1betaThirdPartiesOK) IsRedirect() bool

IsRedirect returns true when this get v1beta third parties o k response has a 3xx status code

func (*GetV1betaThirdPartiesOK) IsServerError

func (o *GetV1betaThirdPartiesOK) IsServerError() bool

IsServerError returns true when this get v1beta third parties o k response has a 5xx status code

func (*GetV1betaThirdPartiesOK) IsSuccess

func (o *GetV1betaThirdPartiesOK) IsSuccess() bool

IsSuccess returns true when this get v1beta third parties o k response has a 2xx status code

func (*GetV1betaThirdPartiesOK) String

func (o *GetV1betaThirdPartiesOK) String() string

type GetV1betaThirdPartiesOKBody

type GetV1betaThirdPartiesOKBody struct {
	models.QueryResponse

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

GetV1betaThirdPartiesOKBody get v1beta third parties o k body swagger:model GetV1betaThirdPartiesOKBody

func (*GetV1betaThirdPartiesOKBody) ContextValidate

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

ContextValidate validate this get v1beta third parties o k body based on the context it is used

func (*GetV1betaThirdPartiesOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (GetV1betaThirdPartiesOKBody) MarshalJSON

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

MarshalJSON marshals this object to a JSON structure

func (*GetV1betaThirdPartiesOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetV1betaThirdPartiesOKBody) UnmarshalJSON

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

UnmarshalJSON unmarshals this object from a JSON structure

func (*GetV1betaThirdPartiesOKBody) Validate

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

Validate validates this get v1beta third parties o k body

type GetV1betaThirdPartiesParams

type GetV1betaThirdPartiesParams struct {

	/* Limit.

	   Limit resulting response list.Value must be between 1 and 500 (higher values will be coerced down to 500). Defaults to 100.
	*/
	Limit *int64

	/* Token.

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

	/* Type.

	   Filters out third parties with the given type.
	*/
	Type *string

	/* VendorID.

	   Filters out third parties with the given vendorId.
	*/
	VendorID *string

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

GetV1betaThirdPartiesParams contains all the parameters to send to the API endpoint

for the get v1beta third parties operation.

Typically these are written to a http.Request.

func NewGetV1betaThirdPartiesParams

func NewGetV1betaThirdPartiesParams() *GetV1betaThirdPartiesParams

NewGetV1betaThirdPartiesParams creates a new GetV1betaThirdPartiesParams 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 NewGetV1betaThirdPartiesParamsWithContext

func NewGetV1betaThirdPartiesParamsWithContext(ctx context.Context) *GetV1betaThirdPartiesParams

NewGetV1betaThirdPartiesParamsWithContext creates a new GetV1betaThirdPartiesParams object with the ability to set a context for a request.

func NewGetV1betaThirdPartiesParamsWithHTTPClient

func NewGetV1betaThirdPartiesParamsWithHTTPClient(client *http.Client) *GetV1betaThirdPartiesParams

NewGetV1betaThirdPartiesParamsWithHTTPClient creates a new GetV1betaThirdPartiesParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1betaThirdPartiesParamsWithTimeout

func NewGetV1betaThirdPartiesParamsWithTimeout(timeout time.Duration) *GetV1betaThirdPartiesParams

NewGetV1betaThirdPartiesParamsWithTimeout creates a new GetV1betaThirdPartiesParams object with the ability to set a timeout on a request.

func (*GetV1betaThirdPartiesParams) SetContext

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

SetContext adds the context to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) SetDefaults

func (o *GetV1betaThirdPartiesParams) SetDefaults()

SetDefaults hydrates default values in the get v1beta third parties params (not the query body).

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

func (*GetV1betaThirdPartiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) SetLimit

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

SetLimit adds the limit to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) SetTimeout

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

SetTimeout adds the timeout to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) SetToken

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

SetToken adds the token to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) SetType

func (o *GetV1betaThirdPartiesParams) SetType(typeVar *string)

SetType adds the type to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) SetVendorID

func (o *GetV1betaThirdPartiesParams) SetVendorID(vendorID *string)

SetVendorID adds the vendorId to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) WithContext

WithContext adds the context to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) WithDefaults

WithDefaults hydrates default values in the get v1beta third parties params (not the query body).

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

func (*GetV1betaThirdPartiesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) WithLimit

WithLimit adds the limit to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) WithTimeout

WithTimeout adds the timeout to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) WithToken

WithToken adds the token to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) WithType

WithType adds the typeVar to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) WithVendorID

WithVendorID adds the vendorID to the get v1beta third parties params

func (*GetV1betaThirdPartiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1betaThirdPartiesReader

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

GetV1betaThirdPartiesReader is a Reader for the GetV1betaThirdParties structure.

func (*GetV1betaThirdPartiesReader) ReadResponse

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