customer

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 customer API

func (*Client) CustomerDelete

func (a *Client) CustomerDelete(params *CustomerDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

CustomerDelete bs e t a delete customer by ID

func (*Client) CustomerGet

func (a *Client) CustomerGet(params *CustomerGetParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerGetOK, error)

CustomerGet gets customer by ID

func (*Client) CustomerListPostList

func (a *Client) CustomerListPostList(params *CustomerListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerListPostListCreated, error)

CustomerListPostList bs e t a create multiple customers related supplier addresses may also be created

func (*Client) CustomerListPutList

func (a *Client) CustomerListPutList(params *CustomerListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerListPutListOK, error)

CustomerListPutList bs e t a update multiple customers addresses can also be updated

func (*Client) CustomerPost

func (a *Client) CustomerPost(params *CustomerPostParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerPostCreated, error)

CustomerPost creates customer related customer addresses may also be created

func (*Client) CustomerPut

func (a *Client) CustomerPut(params *CustomerPutParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerPutOK, error)

CustomerPut updates customer

func (*Client) CustomerSearch

func (a *Client) CustomerSearch(params *CustomerSearchParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerSearchOK, error)

CustomerSearch finds customers corresponding with sent data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CustomerListPostList(params *CustomerListPostListParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerListPostListCreated, error)

	CustomerListPutList(params *CustomerListPutListParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerListPutListOK, error)

	CustomerDelete(params *CustomerDeleteParams, authInfo runtime.ClientAuthInfoWriter) error

	CustomerGet(params *CustomerGetParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerGetOK, error)

	CustomerPost(params *CustomerPostParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerPostCreated, error)

	CustomerPut(params *CustomerPutParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerPutOK, error)

	CustomerSearch(params *CustomerSearchParams, authInfo runtime.ClientAuthInfoWriter) (*CustomerSearchOK, 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 customer API client.

type CustomerDeleteDefault

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

CustomerDeleteDefault handles this case with default header values.

successful operation

func NewCustomerDeleteDefault

func NewCustomerDeleteDefault(code int) *CustomerDeleteDefault

NewCustomerDeleteDefault creates a CustomerDeleteDefault with default headers values

func (*CustomerDeleteDefault) Code

func (o *CustomerDeleteDefault) Code() int

Code gets the status code for the customer delete default response

func (*CustomerDeleteDefault) Error

func (o *CustomerDeleteDefault) Error() string

type CustomerDeleteParams

type CustomerDeleteParams struct {

	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewCustomerDeleteParams

func NewCustomerDeleteParams() *CustomerDeleteParams

NewCustomerDeleteParams creates a new CustomerDeleteParams object with the default values initialized.

func NewCustomerDeleteParamsWithContext

func NewCustomerDeleteParamsWithContext(ctx context.Context) *CustomerDeleteParams

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

func NewCustomerDeleteParamsWithHTTPClient

func NewCustomerDeleteParamsWithHTTPClient(client *http.Client) *CustomerDeleteParams

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

func NewCustomerDeleteParamsWithTimeout

func NewCustomerDeleteParamsWithTimeout(timeout time.Duration) *CustomerDeleteParams

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

func (*CustomerDeleteParams) SetContext

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

SetContext adds the context to the customer delete params

func (*CustomerDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer delete params

func (*CustomerDeleteParams) SetID

func (o *CustomerDeleteParams) SetID(id int32)

SetID adds the id to the customer delete params

func (*CustomerDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the customer delete params

func (*CustomerDeleteParams) WithContext

WithContext adds the context to the customer delete params

func (*CustomerDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the customer delete params

func (*CustomerDeleteParams) WithID

WithID adds the id to the customer delete params

func (*CustomerDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the customer delete params

func (*CustomerDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CustomerDeleteReader

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

CustomerDeleteReader is a Reader for the CustomerDelete structure.

func (*CustomerDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CustomerGetOK

type CustomerGetOK struct {
	Payload *models.ResponseWrapperCustomer
}

CustomerGetOK handles this case with default header values.

successful operation

func NewCustomerGetOK

func NewCustomerGetOK() *CustomerGetOK

NewCustomerGetOK creates a CustomerGetOK with default headers values

func (*CustomerGetOK) Error

func (o *CustomerGetOK) Error() string

func (*CustomerGetOK) GetPayload

func (o *CustomerGetOK) GetPayload() *models.ResponseWrapperCustomer

type CustomerGetParams

type CustomerGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewCustomerGetParams

func NewCustomerGetParams() *CustomerGetParams

NewCustomerGetParams creates a new CustomerGetParams object with the default values initialized.

func NewCustomerGetParamsWithContext

func NewCustomerGetParamsWithContext(ctx context.Context) *CustomerGetParams

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

func NewCustomerGetParamsWithHTTPClient

func NewCustomerGetParamsWithHTTPClient(client *http.Client) *CustomerGetParams

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

func NewCustomerGetParamsWithTimeout

func NewCustomerGetParamsWithTimeout(timeout time.Duration) *CustomerGetParams

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

func (*CustomerGetParams) SetContext

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

SetContext adds the context to the customer get params

func (*CustomerGetParams) SetFields

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

SetFields adds the fields to the customer get params

func (*CustomerGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer get params

func (*CustomerGetParams) SetID

func (o *CustomerGetParams) SetID(id int32)

SetID adds the id to the customer get params

func (*CustomerGetParams) SetTimeout

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

SetTimeout adds the timeout to the customer get params

func (*CustomerGetParams) WithContext

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

WithContext adds the context to the customer get params

func (*CustomerGetParams) WithFields

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

WithFields adds the fields to the customer get params

func (*CustomerGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the customer get params

func (*CustomerGetParams) WithID

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

WithID adds the id to the customer get params

func (*CustomerGetParams) WithTimeout

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

WithTimeout adds the timeout to the customer get params

func (*CustomerGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CustomerGetReader

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

CustomerGetReader is a Reader for the CustomerGet structure.

func (*CustomerGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CustomerListPostListCreated

type CustomerListPostListCreated struct {
	Payload *models.ListResponseCustomer
}

CustomerListPostListCreated handles this case with default header values.

successfully created

func NewCustomerListPostListCreated

func NewCustomerListPostListCreated() *CustomerListPostListCreated

NewCustomerListPostListCreated creates a CustomerListPostListCreated with default headers values

func (*CustomerListPostListCreated) Error

func (*CustomerListPostListCreated) GetPayload

type CustomerListPostListParams

type CustomerListPostListParams struct {

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

	*/
	Body []*models.Customer

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

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

func NewCustomerListPostListParams

func NewCustomerListPostListParams() *CustomerListPostListParams

NewCustomerListPostListParams creates a new CustomerListPostListParams object with the default values initialized.

func NewCustomerListPostListParamsWithContext

func NewCustomerListPostListParamsWithContext(ctx context.Context) *CustomerListPostListParams

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

func NewCustomerListPostListParamsWithHTTPClient

func NewCustomerListPostListParamsWithHTTPClient(client *http.Client) *CustomerListPostListParams

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

func NewCustomerListPostListParamsWithTimeout

func NewCustomerListPostListParamsWithTimeout(timeout time.Duration) *CustomerListPostListParams

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

func (*CustomerListPostListParams) SetBody

func (o *CustomerListPostListParams) SetBody(body []*models.Customer)

SetBody adds the body to the customer list post list params

func (*CustomerListPostListParams) SetContext

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

SetContext adds the context to the customer list post list params

func (*CustomerListPostListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer list post list params

func (*CustomerListPostListParams) SetTimeout

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

SetTimeout adds the timeout to the customer list post list params

func (*CustomerListPostListParams) WithBody

WithBody adds the body to the customer list post list params

func (*CustomerListPostListParams) WithContext

WithContext adds the context to the customer list post list params

func (*CustomerListPostListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the customer list post list params

func (*CustomerListPostListParams) WithTimeout

WithTimeout adds the timeout to the customer list post list params

func (*CustomerListPostListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomerListPostListReader

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

CustomerListPostListReader is a Reader for the CustomerListPostList structure.

func (*CustomerListPostListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CustomerListPutListOK

type CustomerListPutListOK struct {
	Payload *models.ListResponseCustomer
}

CustomerListPutListOK handles this case with default header values.

successful operation

func NewCustomerListPutListOK

func NewCustomerListPutListOK() *CustomerListPutListOK

NewCustomerListPutListOK creates a CustomerListPutListOK with default headers values

func (*CustomerListPutListOK) Error

func (o *CustomerListPutListOK) Error() string

func (*CustomerListPutListOK) GetPayload

type CustomerListPutListParams

type CustomerListPutListParams struct {

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

	*/
	Body []*models.Customer

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

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

func NewCustomerListPutListParams

func NewCustomerListPutListParams() *CustomerListPutListParams

NewCustomerListPutListParams creates a new CustomerListPutListParams object with the default values initialized.

func NewCustomerListPutListParamsWithContext

func NewCustomerListPutListParamsWithContext(ctx context.Context) *CustomerListPutListParams

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

func NewCustomerListPutListParamsWithHTTPClient

func NewCustomerListPutListParamsWithHTTPClient(client *http.Client) *CustomerListPutListParams

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

func NewCustomerListPutListParamsWithTimeout

func NewCustomerListPutListParamsWithTimeout(timeout time.Duration) *CustomerListPutListParams

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

func (*CustomerListPutListParams) SetBody

func (o *CustomerListPutListParams) SetBody(body []*models.Customer)

SetBody adds the body to the customer list put list params

func (*CustomerListPutListParams) SetContext

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

SetContext adds the context to the customer list put list params

func (*CustomerListPutListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer list put list params

func (*CustomerListPutListParams) SetTimeout

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

SetTimeout adds the timeout to the customer list put list params

func (*CustomerListPutListParams) WithBody

WithBody adds the body to the customer list put list params

func (*CustomerListPutListParams) WithContext

WithContext adds the context to the customer list put list params

func (*CustomerListPutListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the customer list put list params

func (*CustomerListPutListParams) WithTimeout

WithTimeout adds the timeout to the customer list put list params

func (*CustomerListPutListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CustomerListPutListReader

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

CustomerListPutListReader is a Reader for the CustomerListPutList structure.

func (*CustomerListPutListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CustomerPostCreated

type CustomerPostCreated struct {
	Payload *models.ResponseWrapperCustomer
}

CustomerPostCreated handles this case with default header values.

successfully created

func NewCustomerPostCreated

func NewCustomerPostCreated() *CustomerPostCreated

NewCustomerPostCreated creates a CustomerPostCreated with default headers values

func (*CustomerPostCreated) Error

func (o *CustomerPostCreated) Error() string

func (*CustomerPostCreated) GetPayload

type CustomerPostParams

type CustomerPostParams struct {

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

	*/
	Body *models.Customer

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

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

func NewCustomerPostParams

func NewCustomerPostParams() *CustomerPostParams

NewCustomerPostParams creates a new CustomerPostParams object with the default values initialized.

func NewCustomerPostParamsWithContext

func NewCustomerPostParamsWithContext(ctx context.Context) *CustomerPostParams

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

func NewCustomerPostParamsWithHTTPClient

func NewCustomerPostParamsWithHTTPClient(client *http.Client) *CustomerPostParams

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

func NewCustomerPostParamsWithTimeout

func NewCustomerPostParamsWithTimeout(timeout time.Duration) *CustomerPostParams

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

func (*CustomerPostParams) SetBody

func (o *CustomerPostParams) SetBody(body *models.Customer)

SetBody adds the body to the customer post params

func (*CustomerPostParams) SetContext

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

SetContext adds the context to the customer post params

func (*CustomerPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer post params

func (*CustomerPostParams) SetTimeout

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

SetTimeout adds the timeout to the customer post params

func (*CustomerPostParams) WithBody

WithBody adds the body to the customer post params

func (*CustomerPostParams) WithContext

WithContext adds the context to the customer post params

func (*CustomerPostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the customer post params

func (*CustomerPostParams) WithTimeout

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

WithTimeout adds the timeout to the customer post params

func (*CustomerPostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CustomerPostReader

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

CustomerPostReader is a Reader for the CustomerPost structure.

func (*CustomerPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CustomerPutOK

type CustomerPutOK struct {
	Payload *models.ResponseWrapperCustomer
}

CustomerPutOK handles this case with default header values.

successful operation

func NewCustomerPutOK

func NewCustomerPutOK() *CustomerPutOK

NewCustomerPutOK creates a CustomerPutOK with default headers values

func (*CustomerPutOK) Error

func (o *CustomerPutOK) Error() string

func (*CustomerPutOK) GetPayload

func (o *CustomerPutOK) GetPayload() *models.ResponseWrapperCustomer

type CustomerPutParams

type CustomerPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Customer
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewCustomerPutParams

func NewCustomerPutParams() *CustomerPutParams

NewCustomerPutParams creates a new CustomerPutParams object with the default values initialized.

func NewCustomerPutParamsWithContext

func NewCustomerPutParamsWithContext(ctx context.Context) *CustomerPutParams

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

func NewCustomerPutParamsWithHTTPClient

func NewCustomerPutParamsWithHTTPClient(client *http.Client) *CustomerPutParams

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

func NewCustomerPutParamsWithTimeout

func NewCustomerPutParamsWithTimeout(timeout time.Duration) *CustomerPutParams

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

func (*CustomerPutParams) SetBody

func (o *CustomerPutParams) SetBody(body *models.Customer)

SetBody adds the body to the customer put params

func (*CustomerPutParams) SetContext

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

SetContext adds the context to the customer put params

func (*CustomerPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer put params

func (*CustomerPutParams) SetID

func (o *CustomerPutParams) SetID(id int32)

SetID adds the id to the customer put params

func (*CustomerPutParams) SetTimeout

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

SetTimeout adds the timeout to the customer put params

func (*CustomerPutParams) WithBody

func (o *CustomerPutParams) WithBody(body *models.Customer) *CustomerPutParams

WithBody adds the body to the customer put params

func (*CustomerPutParams) WithContext

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

WithContext adds the context to the customer put params

func (*CustomerPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the customer put params

func (*CustomerPutParams) WithID

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

WithID adds the id to the customer put params

func (*CustomerPutParams) WithTimeout

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

WithTimeout adds the timeout to the customer put params

func (*CustomerPutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CustomerPutReader

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

CustomerPutReader is a Reader for the CustomerPut structure.

func (*CustomerPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CustomerSearchOK

type CustomerSearchOK struct {
	Payload *models.ListResponseCustomer
}

CustomerSearchOK handles this case with default header values.

successful operation

func NewCustomerSearchOK

func NewCustomerSearchOK() *CustomerSearchOK

NewCustomerSearchOK creates a CustomerSearchOK with default headers values

func (*CustomerSearchOK) Error

func (o *CustomerSearchOK) Error() string

func (*CustomerSearchOK) GetPayload

func (o *CustomerSearchOK) GetPayload() *models.ListResponseCustomer

type CustomerSearchParams

type CustomerSearchParams struct {

	/*AccountManagerID
	  List of IDs

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

	*/
	Count *int64
	/*CustomerAccountNumber
	  List of IDs

	*/
	CustomerAccountNumber *string
	/*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
	/*OrganizationNumber
	  Equals

	*/
	OrganizationNumber *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

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

func NewCustomerSearchParams

func NewCustomerSearchParams() *CustomerSearchParams

NewCustomerSearchParams creates a new CustomerSearchParams object with the default values initialized.

func NewCustomerSearchParamsWithContext

func NewCustomerSearchParamsWithContext(ctx context.Context) *CustomerSearchParams

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

func NewCustomerSearchParamsWithHTTPClient

func NewCustomerSearchParamsWithHTTPClient(client *http.Client) *CustomerSearchParams

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

func NewCustomerSearchParamsWithTimeout

func NewCustomerSearchParamsWithTimeout(timeout time.Duration) *CustomerSearchParams

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

func (*CustomerSearchParams) SetAccountManagerID

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

SetAccountManagerID adds the accountManagerId to the customer search params

func (*CustomerSearchParams) SetContext

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

SetContext adds the context to the customer search params

func (*CustomerSearchParams) SetCount

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

SetCount adds the count to the customer search params

func (*CustomerSearchParams) SetCustomerAccountNumber

func (o *CustomerSearchParams) SetCustomerAccountNumber(customerAccountNumber *string)

SetCustomerAccountNumber adds the customerAccountNumber to the customer search params

func (*CustomerSearchParams) SetEmail

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

SetEmail adds the email to the customer search params

func (*CustomerSearchParams) SetFields

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

SetFields adds the fields to the customer search params

func (*CustomerSearchParams) SetFrom

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

SetFrom adds the from to the customer search params

func (*CustomerSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the customer search params

func (*CustomerSearchParams) SetID

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

SetID adds the id to the customer search params

func (*CustomerSearchParams) SetInvoiceEmail

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

SetInvoiceEmail adds the invoiceEmail to the customer search params

func (*CustomerSearchParams) SetIsInactive

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

SetIsInactive adds the isInactive to the customer search params

func (*CustomerSearchParams) SetOrganizationNumber

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

SetOrganizationNumber adds the organizationNumber to the customer search params

func (*CustomerSearchParams) SetSorting

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

SetSorting adds the sorting to the customer search params

func (*CustomerSearchParams) SetTimeout

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

SetTimeout adds the timeout to the customer search params

func (*CustomerSearchParams) WithAccountManagerID

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

WithAccountManagerID adds the accountManagerID to the customer search params

func (*CustomerSearchParams) WithContext

WithContext adds the context to the customer search params

func (*CustomerSearchParams) WithCount

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

WithCount adds the count to the customer search params

func (*CustomerSearchParams) WithCustomerAccountNumber

func (o *CustomerSearchParams) WithCustomerAccountNumber(customerAccountNumber *string) *CustomerSearchParams

WithCustomerAccountNumber adds the customerAccountNumber to the customer search params

func (*CustomerSearchParams) WithEmail

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

WithEmail adds the email to the customer search params

func (*CustomerSearchParams) WithFields

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

WithFields adds the fields to the customer search params

func (*CustomerSearchParams) WithFrom

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

WithFrom adds the from to the customer search params

func (*CustomerSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the customer search params

func (*CustomerSearchParams) WithID

WithID adds the id to the customer search params

func (*CustomerSearchParams) WithInvoiceEmail

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

WithInvoiceEmail adds the invoiceEmail to the customer search params

func (*CustomerSearchParams) WithIsInactive

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

WithIsInactive adds the isInactive to the customer search params

func (*CustomerSearchParams) WithOrganizationNumber

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

WithOrganizationNumber adds the organizationNumber to the customer search params

func (*CustomerSearchParams) WithSorting

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

WithSorting adds the sorting to the customer search params

func (*CustomerSearchParams) WithTimeout

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

WithTimeout adds the timeout to the customer search params

func (*CustomerSearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CustomerSearchReader

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

CustomerSearchReader is a Reader for the CustomerSearch structure.

func (*CustomerSearchReader) ReadResponse

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