supplier

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 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 supplier API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SupplierDelete

func (a *Client) SupplierDelete(params *SupplierDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

SupplierDelete bs e t a delete supplier by ID

func (*Client) SupplierGet

func (a *Client) SupplierGet(params *SupplierGetParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierGetOK, error)

SupplierGet gets supplier by ID

func (*Client) SupplierListPostList

func (a *Client) SupplierListPostList(params *SupplierListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierListPostListCreated, error)

SupplierListPostList bs e t a create multiple suppliers related supplier addresses may also be created

func (*Client) SupplierListPutList

func (a *Client) SupplierListPutList(params *SupplierListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierListPutListOK, error)

SupplierListPutList bs e t a update multiple suppliers addresses can also be updated

func (*Client) SupplierPost

func (a *Client) SupplierPost(params *SupplierPostParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierPostCreated, error)

SupplierPost creates supplier related supplier addresses may also be created

func (*Client) SupplierPut

func (a *Client) SupplierPut(params *SupplierPutParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierPutOK, error)

SupplierPut updates supplier

func (*Client) SupplierSearch

func (a *Client) SupplierSearch(params *SupplierSearchParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierSearchOK, error)

SupplierSearch finds suppliers corresponding with sent data

type ClientService

type ClientService interface {
	SupplierListPostList(params *SupplierListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierListPostListCreated, error)

	SupplierListPutList(params *SupplierListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierListPutListOK, error)

	SupplierDelete(params *SupplierDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

	SupplierGet(params *SupplierGetParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierGetOK, error)

	SupplierPost(params *SupplierPostParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierPostCreated, error)

	SupplierPut(params *SupplierPutParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierPutOK, error)

	SupplierSearch(params *SupplierSearchParams, authInfo runtime.ClientAuthInfoWriter) (*SupplierSearchOK, 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 supplier API client.

type SupplierDeleteDefault

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

SupplierDeleteDefault handles this case with default header values.

successful operation

func NewSupplierDeleteDefault

func NewSupplierDeleteDefault(code int) *SupplierDeleteDefault

NewSupplierDeleteDefault creates a SupplierDeleteDefault with default headers values

func (*SupplierDeleteDefault) Code

func (o *SupplierDeleteDefault) Code() int

Code gets the status code for the supplier delete default response

func (*SupplierDeleteDefault) Error

func (o *SupplierDeleteDefault) Error() string

type SupplierDeleteParams

type SupplierDeleteParams struct {

	/*ID
	  Element ID

	*/
	ID int32

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

SupplierDeleteParams contains all the parameters to send to the API endpoint for the supplier delete operation typically these are written to a http.Request

func NewSupplierDeleteParams

func NewSupplierDeleteParams() *SupplierDeleteParams

NewSupplierDeleteParams creates a new SupplierDeleteParams object with the default values initialized.

func NewSupplierDeleteParamsWithContext

func NewSupplierDeleteParamsWithContext(ctx context.Context) *SupplierDeleteParams

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

func NewSupplierDeleteParamsWithHTTPClient

func NewSupplierDeleteParamsWithHTTPClient(client *http.Client) *SupplierDeleteParams

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

func NewSupplierDeleteParamsWithTimeout

func NewSupplierDeleteParamsWithTimeout(timeout time.Duration) *SupplierDeleteParams

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

func (*SupplierDeleteParams) SetContext

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

SetContext adds the context to the supplier delete params

func (*SupplierDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the supplier delete params

func (*SupplierDeleteParams) SetID

func (o *SupplierDeleteParams) SetID(id int32)

SetID adds the id to the supplier delete params

func (*SupplierDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the supplier delete params

func (*SupplierDeleteParams) WithContext

WithContext adds the context to the supplier delete params

func (*SupplierDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the supplier delete params

func (*SupplierDeleteParams) WithID

WithID adds the id to the supplier delete params

func (*SupplierDeleteParams) WithTimeout

func (o *SupplierDeleteParams) WithTimeout(timeout time.Duration) *SupplierDeleteParams

WithTimeout adds the timeout to the supplier delete params

func (*SupplierDeleteParams) WriteToRequest

func (o *SupplierDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SupplierDeleteReader

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

SupplierDeleteReader is a Reader for the SupplierDelete structure.

func (*SupplierDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SupplierGetOK

type SupplierGetOK struct {
	Payload *models.ResponseWrapperSupplier
}

SupplierGetOK handles this case with default header values.

successful operation

func NewSupplierGetOK

func NewSupplierGetOK() *SupplierGetOK

NewSupplierGetOK creates a SupplierGetOK with default headers values

func (*SupplierGetOK) Error

func (o *SupplierGetOK) Error() string

func (*SupplierGetOK) GetPayload

func (o *SupplierGetOK) GetPayload() *models.ResponseWrapperSupplier

type SupplierGetParams

type SupplierGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

SupplierGetParams contains all the parameters to send to the API endpoint for the supplier get operation typically these are written to a http.Request

func NewSupplierGetParams

func NewSupplierGetParams() *SupplierGetParams

NewSupplierGetParams creates a new SupplierGetParams object with the default values initialized.

func NewSupplierGetParamsWithContext

func NewSupplierGetParamsWithContext(ctx context.Context) *SupplierGetParams

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

func NewSupplierGetParamsWithHTTPClient

func NewSupplierGetParamsWithHTTPClient(client *http.Client) *SupplierGetParams

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

func NewSupplierGetParamsWithTimeout

func NewSupplierGetParamsWithTimeout(timeout time.Duration) *SupplierGetParams

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

func (*SupplierGetParams) SetContext

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

SetContext adds the context to the supplier get params

func (*SupplierGetParams) SetFields

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

SetFields adds the fields to the supplier get params

func (*SupplierGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the supplier get params

func (*SupplierGetParams) SetID

func (o *SupplierGetParams) SetID(id int32)

SetID adds the id to the supplier get params

func (*SupplierGetParams) SetTimeout

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

SetTimeout adds the timeout to the supplier get params

func (*SupplierGetParams) WithContext

func (o *SupplierGetParams) WithContext(ctx context.Context) *SupplierGetParams

WithContext adds the context to the supplier get params

func (*SupplierGetParams) WithFields

func (o *SupplierGetParams) WithFields(fields *string) *SupplierGetParams

WithFields adds the fields to the supplier get params

func (*SupplierGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the supplier get params

func (*SupplierGetParams) WithID

func (o *SupplierGetParams) WithID(id int32) *SupplierGetParams

WithID adds the id to the supplier get params

func (*SupplierGetParams) WithTimeout

func (o *SupplierGetParams) WithTimeout(timeout time.Duration) *SupplierGetParams

WithTimeout adds the timeout to the supplier get params

func (*SupplierGetParams) WriteToRequest

func (o *SupplierGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SupplierGetReader

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

SupplierGetReader is a Reader for the SupplierGet structure.

func (*SupplierGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SupplierListPostListCreated

type SupplierListPostListCreated struct {
	Payload *models.ListResponseSupplier
}

SupplierListPostListCreated handles this case with default header values.

successfully created

func NewSupplierListPostListCreated

func NewSupplierListPostListCreated() *SupplierListPostListCreated

NewSupplierListPostListCreated creates a SupplierListPostListCreated with default headers values

func (*SupplierListPostListCreated) Error

func (*SupplierListPostListCreated) GetPayload

type SupplierListPostListParams

type SupplierListPostListParams struct {

	/*Body
	  JSON representing a list of new object to be created. Should not have ID and version set.

	*/
	Body []*models.Supplier

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

SupplierListPostListParams contains all the parameters to send to the API endpoint for the supplier list post list operation typically these are written to a http.Request

func NewSupplierListPostListParams

func NewSupplierListPostListParams() *SupplierListPostListParams

NewSupplierListPostListParams creates a new SupplierListPostListParams object with the default values initialized.

func NewSupplierListPostListParamsWithContext

func NewSupplierListPostListParamsWithContext(ctx context.Context) *SupplierListPostListParams

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

func NewSupplierListPostListParamsWithHTTPClient

func NewSupplierListPostListParamsWithHTTPClient(client *http.Client) *SupplierListPostListParams

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

func NewSupplierListPostListParamsWithTimeout

func NewSupplierListPostListParamsWithTimeout(timeout time.Duration) *SupplierListPostListParams

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

func (*SupplierListPostListParams) SetBody

func (o *SupplierListPostListParams) SetBody(body []*models.Supplier)

SetBody adds the body to the supplier list post list params

func (*SupplierListPostListParams) SetContext

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

SetContext adds the context to the supplier list post list params

func (*SupplierListPostListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the supplier list post list params

func (*SupplierListPostListParams) SetTimeout

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

SetTimeout adds the timeout to the supplier list post list params

func (*SupplierListPostListParams) WithBody

WithBody adds the body to the supplier list post list params

func (*SupplierListPostListParams) WithContext

WithContext adds the context to the supplier list post list params

func (*SupplierListPostListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the supplier list post list params

func (*SupplierListPostListParams) WithTimeout

WithTimeout adds the timeout to the supplier list post list params

func (*SupplierListPostListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SupplierListPostListReader

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

SupplierListPostListReader is a Reader for the SupplierListPostList structure.

func (*SupplierListPostListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SupplierListPutListOK

type SupplierListPutListOK struct {
	Payload *models.ListResponseSupplier
}

SupplierListPutListOK handles this case with default header values.

successful operation

func NewSupplierListPutListOK

func NewSupplierListPutListOK() *SupplierListPutListOK

NewSupplierListPutListOK creates a SupplierListPutListOK with default headers values

func (*SupplierListPutListOK) Error

func (o *SupplierListPutListOK) Error() string

func (*SupplierListPutListOK) GetPayload

type SupplierListPutListParams

type SupplierListPutListParams struct {

	/*Body
	  JSON representing updates to object. Should have ID and version set.

	*/
	Body []*models.Supplier

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

SupplierListPutListParams contains all the parameters to send to the API endpoint for the supplier list put list operation typically these are written to a http.Request

func NewSupplierListPutListParams

func NewSupplierListPutListParams() *SupplierListPutListParams

NewSupplierListPutListParams creates a new SupplierListPutListParams object with the default values initialized.

func NewSupplierListPutListParamsWithContext

func NewSupplierListPutListParamsWithContext(ctx context.Context) *SupplierListPutListParams

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

func NewSupplierListPutListParamsWithHTTPClient

func NewSupplierListPutListParamsWithHTTPClient(client *http.Client) *SupplierListPutListParams

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

func NewSupplierListPutListParamsWithTimeout

func NewSupplierListPutListParamsWithTimeout(timeout time.Duration) *SupplierListPutListParams

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

func (*SupplierListPutListParams) SetBody

func (o *SupplierListPutListParams) SetBody(body []*models.Supplier)

SetBody adds the body to the supplier list put list params

func (*SupplierListPutListParams) SetContext

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

SetContext adds the context to the supplier list put list params

func (*SupplierListPutListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the supplier list put list params

func (*SupplierListPutListParams) SetTimeout

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

SetTimeout adds the timeout to the supplier list put list params

func (*SupplierListPutListParams) WithBody

WithBody adds the body to the supplier list put list params

func (*SupplierListPutListParams) WithContext

WithContext adds the context to the supplier list put list params

func (*SupplierListPutListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the supplier list put list params

func (*SupplierListPutListParams) WithTimeout

WithTimeout adds the timeout to the supplier list put list params

func (*SupplierListPutListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SupplierListPutListReader

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

SupplierListPutListReader is a Reader for the SupplierListPutList structure.

func (*SupplierListPutListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SupplierPostCreated

type SupplierPostCreated struct {
	Payload *models.ResponseWrapperSupplier
}

SupplierPostCreated handles this case with default header values.

successfully created

func NewSupplierPostCreated

func NewSupplierPostCreated() *SupplierPostCreated

NewSupplierPostCreated creates a SupplierPostCreated with default headers values

func (*SupplierPostCreated) Error

func (o *SupplierPostCreated) Error() string

func (*SupplierPostCreated) GetPayload

type SupplierPostParams

type SupplierPostParams struct {

	/*Body
	  JSON representing the new object to be created. Should not have ID and version set.

	*/
	Body *models.Supplier

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

SupplierPostParams contains all the parameters to send to the API endpoint for the supplier post operation typically these are written to a http.Request

func NewSupplierPostParams

func NewSupplierPostParams() *SupplierPostParams

NewSupplierPostParams creates a new SupplierPostParams object with the default values initialized.

func NewSupplierPostParamsWithContext

func NewSupplierPostParamsWithContext(ctx context.Context) *SupplierPostParams

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

func NewSupplierPostParamsWithHTTPClient

func NewSupplierPostParamsWithHTTPClient(client *http.Client) *SupplierPostParams

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

func NewSupplierPostParamsWithTimeout

func NewSupplierPostParamsWithTimeout(timeout time.Duration) *SupplierPostParams

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

func (*SupplierPostParams) SetBody

func (o *SupplierPostParams) SetBody(body *models.Supplier)

SetBody adds the body to the supplier post params

func (*SupplierPostParams) SetContext

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

SetContext adds the context to the supplier post params

func (*SupplierPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the supplier post params

func (*SupplierPostParams) SetTimeout

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

SetTimeout adds the timeout to the supplier post params

func (*SupplierPostParams) WithBody

WithBody adds the body to the supplier post params

func (*SupplierPostParams) WithContext

WithContext adds the context to the supplier post params

func (*SupplierPostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the supplier post params

func (*SupplierPostParams) WithTimeout

func (o *SupplierPostParams) WithTimeout(timeout time.Duration) *SupplierPostParams

WithTimeout adds the timeout to the supplier post params

func (*SupplierPostParams) WriteToRequest

func (o *SupplierPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SupplierPostReader

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

SupplierPostReader is a Reader for the SupplierPost structure.

func (*SupplierPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SupplierPutOK

type SupplierPutOK struct {
	Payload *models.ResponseWrapperSupplier
}

SupplierPutOK handles this case with default header values.

successful operation

func NewSupplierPutOK

func NewSupplierPutOK() *SupplierPutOK

NewSupplierPutOK creates a SupplierPutOK with default headers values

func (*SupplierPutOK) Error

func (o *SupplierPutOK) Error() string

func (*SupplierPutOK) GetPayload

func (o *SupplierPutOK) GetPayload() *models.ResponseWrapperSupplier

type SupplierPutParams

type SupplierPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Supplier
	/*ID
	  Element ID

	*/
	ID int32

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

SupplierPutParams contains all the parameters to send to the API endpoint for the supplier put operation typically these are written to a http.Request

func NewSupplierPutParams

func NewSupplierPutParams() *SupplierPutParams

NewSupplierPutParams creates a new SupplierPutParams object with the default values initialized.

func NewSupplierPutParamsWithContext

func NewSupplierPutParamsWithContext(ctx context.Context) *SupplierPutParams

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

func NewSupplierPutParamsWithHTTPClient

func NewSupplierPutParamsWithHTTPClient(client *http.Client) *SupplierPutParams

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

func NewSupplierPutParamsWithTimeout

func NewSupplierPutParamsWithTimeout(timeout time.Duration) *SupplierPutParams

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

func (*SupplierPutParams) SetBody

func (o *SupplierPutParams) SetBody(body *models.Supplier)

SetBody adds the body to the supplier put params

func (*SupplierPutParams) SetContext

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

SetContext adds the context to the supplier put params

func (*SupplierPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the supplier put params

func (*SupplierPutParams) SetID

func (o *SupplierPutParams) SetID(id int32)

SetID adds the id to the supplier put params

func (*SupplierPutParams) SetTimeout

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

SetTimeout adds the timeout to the supplier put params

func (*SupplierPutParams) WithBody

func (o *SupplierPutParams) WithBody(body *models.Supplier) *SupplierPutParams

WithBody adds the body to the supplier put params

func (*SupplierPutParams) WithContext

func (o *SupplierPutParams) WithContext(ctx context.Context) *SupplierPutParams

WithContext adds the context to the supplier put params

func (*SupplierPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the supplier put params

func (*SupplierPutParams) WithID

func (o *SupplierPutParams) WithID(id int32) *SupplierPutParams

WithID adds the id to the supplier put params

func (*SupplierPutParams) WithTimeout

func (o *SupplierPutParams) WithTimeout(timeout time.Duration) *SupplierPutParams

WithTimeout adds the timeout to the supplier put params

func (*SupplierPutParams) WriteToRequest

func (o *SupplierPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SupplierPutReader

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

SupplierPutReader is a Reader for the SupplierPut structure.

func (*SupplierPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SupplierSearchOK

type SupplierSearchOK struct {
	Payload *models.ListResponseSupplier
}

SupplierSearchOK handles this case with default header values.

successful operation

func NewSupplierSearchOK

func NewSupplierSearchOK() *SupplierSearchOK

NewSupplierSearchOK creates a SupplierSearchOK with default headers values

func (*SupplierSearchOK) Error

func (o *SupplierSearchOK) Error() string

func (*SupplierSearchOK) GetPayload

func (o *SupplierSearchOK) GetPayload() *models.ListResponseSupplier

type SupplierSearchParams

type SupplierSearchParams struct {

	/*AccountManagerID
	  List of IDs

	*/
	AccountManagerID *string
	/*ChangedSince
	  Only return elements that have changed since this date and time

	*/
	ChangedSince *string
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Email
	  Equals

	*/
	Email *string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*InvoiceEmail
	  Equals

	*/
	InvoiceEmail *string
	/*IsInactive
	  Equals

	*/
	IsInactive *bool
	/*IsWholesaler
	  Equals

	*/
	IsWholesaler *bool
	/*OrganizationNumber
	  Equals

	*/
	OrganizationNumber *string
	/*ShowProducts
	  Equals

	*/
	ShowProducts *bool
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string
	/*SupplierNumber
	  List of IDs

	*/
	SupplierNumber *string

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

SupplierSearchParams contains all the parameters to send to the API endpoint for the supplier search operation typically these are written to a http.Request

func NewSupplierSearchParams

func NewSupplierSearchParams() *SupplierSearchParams

NewSupplierSearchParams creates a new SupplierSearchParams object with the default values initialized.

func NewSupplierSearchParamsWithContext

func NewSupplierSearchParamsWithContext(ctx context.Context) *SupplierSearchParams

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

func NewSupplierSearchParamsWithHTTPClient

func NewSupplierSearchParamsWithHTTPClient(client *http.Client) *SupplierSearchParams

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

func NewSupplierSearchParamsWithTimeout

func NewSupplierSearchParamsWithTimeout(timeout time.Duration) *SupplierSearchParams

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

func (*SupplierSearchParams) SetAccountManagerID

func (o *SupplierSearchParams) SetAccountManagerID(accountManagerID *string)

SetAccountManagerID adds the accountManagerId to the supplier search params

func (*SupplierSearchParams) SetChangedSince

func (o *SupplierSearchParams) SetChangedSince(changedSince *string)

SetChangedSince adds the changedSince to the supplier search params

func (*SupplierSearchParams) SetContext

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

SetContext adds the context to the supplier search params

func (*SupplierSearchParams) SetCount

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

SetCount adds the count to the supplier search params

func (*SupplierSearchParams) SetEmail

func (o *SupplierSearchParams) SetEmail(email *string)

SetEmail adds the email to the supplier search params

func (*SupplierSearchParams) SetFields

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

SetFields adds the fields to the supplier search params

func (*SupplierSearchParams) SetFrom

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

SetFrom adds the from to the supplier search params

func (*SupplierSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the supplier search params

func (*SupplierSearchParams) SetID

func (o *SupplierSearchParams) SetID(id *string)

SetID adds the id to the supplier search params

func (*SupplierSearchParams) SetInvoiceEmail

func (o *SupplierSearchParams) SetInvoiceEmail(invoiceEmail *string)

SetInvoiceEmail adds the invoiceEmail to the supplier search params

func (*SupplierSearchParams) SetIsInactive

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

SetIsInactive adds the isInactive to the supplier search params

func (*SupplierSearchParams) SetIsWholesaler

func (o *SupplierSearchParams) SetIsWholesaler(isWholesaler *bool)

SetIsWholesaler adds the isWholesaler to the supplier search params

func (*SupplierSearchParams) SetOrganizationNumber

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

SetOrganizationNumber adds the organizationNumber to the supplier search params

func (*SupplierSearchParams) SetShowProducts

func (o *SupplierSearchParams) SetShowProducts(showProducts *bool)

SetShowProducts adds the showProducts to the supplier search params

func (*SupplierSearchParams) SetSorting

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

SetSorting adds the sorting to the supplier search params

func (*SupplierSearchParams) SetSupplierNumber

func (o *SupplierSearchParams) SetSupplierNumber(supplierNumber *string)

SetSupplierNumber adds the supplierNumber to the supplier search params

func (*SupplierSearchParams) SetTimeout

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

SetTimeout adds the timeout to the supplier search params

func (*SupplierSearchParams) WithAccountManagerID

func (o *SupplierSearchParams) WithAccountManagerID(accountManagerID *string) *SupplierSearchParams

WithAccountManagerID adds the accountManagerID to the supplier search params

func (*SupplierSearchParams) WithChangedSince

func (o *SupplierSearchParams) WithChangedSince(changedSince *string) *SupplierSearchParams

WithChangedSince adds the changedSince to the supplier search params

func (*SupplierSearchParams) WithContext

WithContext adds the context to the supplier search params

func (*SupplierSearchParams) WithCount

func (o *SupplierSearchParams) WithCount(count *int64) *SupplierSearchParams

WithCount adds the count to the supplier search params

func (*SupplierSearchParams) WithEmail

func (o *SupplierSearchParams) WithEmail(email *string) *SupplierSearchParams

WithEmail adds the email to the supplier search params

func (*SupplierSearchParams) WithFields

func (o *SupplierSearchParams) WithFields(fields *string) *SupplierSearchParams

WithFields adds the fields to the supplier search params

func (*SupplierSearchParams) WithFrom

func (o *SupplierSearchParams) WithFrom(from *int64) *SupplierSearchParams

WithFrom adds the from to the supplier search params

func (*SupplierSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the supplier search params

func (*SupplierSearchParams) WithID

WithID adds the id to the supplier search params

func (*SupplierSearchParams) WithInvoiceEmail

func (o *SupplierSearchParams) WithInvoiceEmail(invoiceEmail *string) *SupplierSearchParams

WithInvoiceEmail adds the invoiceEmail to the supplier search params

func (*SupplierSearchParams) WithIsInactive

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

WithIsInactive adds the isInactive to the supplier search params

func (*SupplierSearchParams) WithIsWholesaler

func (o *SupplierSearchParams) WithIsWholesaler(isWholesaler *bool) *SupplierSearchParams

WithIsWholesaler adds the isWholesaler to the supplier search params

func (*SupplierSearchParams) WithOrganizationNumber

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

WithOrganizationNumber adds the organizationNumber to the supplier search params

func (*SupplierSearchParams) WithShowProducts

func (o *SupplierSearchParams) WithShowProducts(showProducts *bool) *SupplierSearchParams

WithShowProducts adds the showProducts to the supplier search params

func (*SupplierSearchParams) WithSorting

func (o *SupplierSearchParams) WithSorting(sorting *string) *SupplierSearchParams

WithSorting adds the sorting to the supplier search params

func (*SupplierSearchParams) WithSupplierNumber

func (o *SupplierSearchParams) WithSupplierNumber(supplierNumber *string) *SupplierSearchParams

WithSupplierNumber adds the supplierNumber to the supplier search params

func (*SupplierSearchParams) WithTimeout

func (o *SupplierSearchParams) WithTimeout(timeout time.Duration) *SupplierSearchParams

WithTimeout adds the timeout to the supplier search params

func (*SupplierSearchParams) WriteToRequest

func (o *SupplierSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SupplierSearchReader

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

SupplierSearchReader is a Reader for the SupplierSearch structure.

func (*SupplierSearchReader) ReadResponse

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