external

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for external API

func (*Client) ProductExternalGet

func (a *Client) ProductExternalGet(params *ProductExternalGetParams, authInfo runtime.ClientAuthInfoWriter) (*ProductExternalGetOK, error)

ProductExternalGet bs e t a get external product by ID

func (*Client) ProductExternalSearch

func (a *Client) ProductExternalSearch(params *ProductExternalSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ProductExternalSearchOK, error)

ProductExternalSearch bs e t a find external products corresponding with sent data the sorting field is not in use on this endpoint

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ProductExternalGet(params *ProductExternalGetParams, authInfo runtime.ClientAuthInfoWriter) (*ProductExternalGetOK, error)

	ProductExternalSearch(params *ProductExternalSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ProductExternalSearchOK, 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 external API client.

type ProductExternalGetOK

type ProductExternalGetOK struct {
	Payload *models.ResponseWrapperExternalProduct
}

ProductExternalGetOK handles this case with default header values.

successful operation

func NewProductExternalGetOK

func NewProductExternalGetOK() *ProductExternalGetOK

NewProductExternalGetOK creates a ProductExternalGetOK with default headers values

func (*ProductExternalGetOK) Error

func (o *ProductExternalGetOK) Error() string

func (*ProductExternalGetOK) GetPayload

type ProductExternalGetParams

type ProductExternalGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

ProductExternalGetParams contains all the parameters to send to the API endpoint for the product external get operation typically these are written to a http.Request

func NewProductExternalGetParams

func NewProductExternalGetParams() *ProductExternalGetParams

NewProductExternalGetParams creates a new ProductExternalGetParams object with the default values initialized.

func NewProductExternalGetParamsWithContext

func NewProductExternalGetParamsWithContext(ctx context.Context) *ProductExternalGetParams

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

func NewProductExternalGetParamsWithHTTPClient

func NewProductExternalGetParamsWithHTTPClient(client *http.Client) *ProductExternalGetParams

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

func NewProductExternalGetParamsWithTimeout

func NewProductExternalGetParamsWithTimeout(timeout time.Duration) *ProductExternalGetParams

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

func (*ProductExternalGetParams) SetContext

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

SetContext adds the context to the product external get params

func (*ProductExternalGetParams) SetFields

func (o *ProductExternalGetParams) SetFields(fields *string)

SetFields adds the fields to the product external get params

func (*ProductExternalGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product external get params

func (*ProductExternalGetParams) SetID

func (o *ProductExternalGetParams) SetID(id int32)

SetID adds the id to the product external get params

func (*ProductExternalGetParams) SetTimeout

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

SetTimeout adds the timeout to the product external get params

func (*ProductExternalGetParams) WithContext

WithContext adds the context to the product external get params

func (*ProductExternalGetParams) WithFields

WithFields adds the fields to the product external get params

func (*ProductExternalGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the product external get params

func (*ProductExternalGetParams) WithID

WithID adds the id to the product external get params

func (*ProductExternalGetParams) WithTimeout

WithTimeout adds the timeout to the product external get params

func (*ProductExternalGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductExternalGetReader

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

ProductExternalGetReader is a Reader for the ProductExternalGet structure.

func (*ProductExternalGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductExternalSearchOK

type ProductExternalSearchOK struct {
	Payload *models.ListResponseExternalProduct
}

ProductExternalSearchOK handles this case with default header values.

successful operation

func NewProductExternalSearchOK

func NewProductExternalSearchOK() *ProductExternalSearchOK

NewProductExternalSearchOK creates a ProductExternalSearchOK with default headers values

func (*ProductExternalSearchOK) Error

func (o *ProductExternalSearchOK) Error() string

func (*ProductExternalSearchOK) GetPayload

type ProductExternalSearchParams

type ProductExternalSearchParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*ElNumber
	  List of valid el numbers

	*/
	ElNumber *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*IsInactive
	  Equals

	*/
	IsInactive *bool
	/*Name
	  Containing

	*/
	Name *string
	/*NrfNumber
	  List of valid nrf numbers

	*/
	NrfNumber *string
	/*OrganizationNumber
	  Wholesaler organization number. Mandatory if Wholesaler is not selected. If Wholesaler is selected, this field is ignored.

	*/
	OrganizationNumber *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string
	/*Wholesaler
	  Wholesaler

	*/
	Wholesaler *string

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

ProductExternalSearchParams contains all the parameters to send to the API endpoint for the product external search operation typically these are written to a http.Request

func NewProductExternalSearchParams

func NewProductExternalSearchParams() *ProductExternalSearchParams

NewProductExternalSearchParams creates a new ProductExternalSearchParams object with the default values initialized.

func NewProductExternalSearchParamsWithContext

func NewProductExternalSearchParamsWithContext(ctx context.Context) *ProductExternalSearchParams

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

func NewProductExternalSearchParamsWithHTTPClient

func NewProductExternalSearchParamsWithHTTPClient(client *http.Client) *ProductExternalSearchParams

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

func NewProductExternalSearchParamsWithTimeout

func NewProductExternalSearchParamsWithTimeout(timeout time.Duration) *ProductExternalSearchParams

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

func (*ProductExternalSearchParams) SetContext

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

SetContext adds the context to the product external search params

func (*ProductExternalSearchParams) SetCount

func (o *ProductExternalSearchParams) SetCount(count *int64)

SetCount adds the count to the product external search params

func (*ProductExternalSearchParams) SetElNumber

func (o *ProductExternalSearchParams) SetElNumber(elNumber *string)

SetElNumber adds the elNumber to the product external search params

func (*ProductExternalSearchParams) SetFields

func (o *ProductExternalSearchParams) SetFields(fields *string)

SetFields adds the fields to the product external search params

func (*ProductExternalSearchParams) SetFrom

func (o *ProductExternalSearchParams) SetFrom(from *int64)

SetFrom adds the from to the product external search params

func (*ProductExternalSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product external search params

func (*ProductExternalSearchParams) SetIsInactive

func (o *ProductExternalSearchParams) SetIsInactive(isInactive *bool)

SetIsInactive adds the isInactive to the product external search params

func (*ProductExternalSearchParams) SetName

func (o *ProductExternalSearchParams) SetName(name *string)

SetName adds the name to the product external search params

func (*ProductExternalSearchParams) SetNrfNumber

func (o *ProductExternalSearchParams) SetNrfNumber(nrfNumber *string)

SetNrfNumber adds the nrfNumber to the product external search params

func (*ProductExternalSearchParams) SetOrganizationNumber

func (o *ProductExternalSearchParams) SetOrganizationNumber(organizationNumber *string)

SetOrganizationNumber adds the organizationNumber to the product external search params

func (*ProductExternalSearchParams) SetSorting

func (o *ProductExternalSearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the product external search params

func (*ProductExternalSearchParams) SetTimeout

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

SetTimeout adds the timeout to the product external search params

func (*ProductExternalSearchParams) SetWholesaler

func (o *ProductExternalSearchParams) SetWholesaler(wholesaler *string)

SetWholesaler adds the wholesaler to the product external search params

func (*ProductExternalSearchParams) WithContext

WithContext adds the context to the product external search params

func (*ProductExternalSearchParams) WithCount

WithCount adds the count to the product external search params

func (*ProductExternalSearchParams) WithElNumber

WithElNumber adds the elNumber to the product external search params

func (*ProductExternalSearchParams) WithFields

WithFields adds the fields to the product external search params

func (*ProductExternalSearchParams) WithFrom

WithFrom adds the from to the product external search params

func (*ProductExternalSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the product external search params

func (*ProductExternalSearchParams) WithIsInactive

func (o *ProductExternalSearchParams) WithIsInactive(isInactive *bool) *ProductExternalSearchParams

WithIsInactive adds the isInactive to the product external search params

func (*ProductExternalSearchParams) WithName

WithName adds the name to the product external search params

func (*ProductExternalSearchParams) WithNrfNumber

func (o *ProductExternalSearchParams) WithNrfNumber(nrfNumber *string) *ProductExternalSearchParams

WithNrfNumber adds the nrfNumber to the product external search params

func (*ProductExternalSearchParams) WithOrganizationNumber

func (o *ProductExternalSearchParams) WithOrganizationNumber(organizationNumber *string) *ProductExternalSearchParams

WithOrganizationNumber adds the organizationNumber to the product external search params

func (*ProductExternalSearchParams) WithSorting

WithSorting adds the sorting to the product external search params

func (*ProductExternalSearchParams) WithTimeout

WithTimeout adds the timeout to the product external search params

func (*ProductExternalSearchParams) WithWholesaler

func (o *ProductExternalSearchParams) WithWholesaler(wholesaler *string) *ProductExternalSearchParams

WithWholesaler adds the wholesaler to the product external search params

func (*ProductExternalSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProductExternalSearchReader

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

ProductExternalSearchReader is a Reader for the ProductExternalSearch structure.

func (*ProductExternalSearchReader) ReadResponse

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