company

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

func (*Client) CompanyDivisionsGetDivisions

func (a *Client) CompanyDivisionsGetDivisions(params *CompanyDivisionsGetDivisionsParams, authInfo runtime.ClientAuthInfoWriter) (*CompanyDivisionsGetDivisionsOK, error)

CompanyDivisionsGetDivisions ds e p r e c a t e d find divisions

func (*Client) CompanyGet

func (a *Client) CompanyGet(params *CompanyGetParams, authInfo runtime.ClientAuthInfoWriter) (*CompanyGetOK, error)

CompanyGet finds company by ID

func (*Client) CompanyPut

func (a *Client) CompanyPut(params *CompanyPutParams, authInfo runtime.ClientAuthInfoWriter) (*CompanyPutOK, error)

CompanyPut updates company information

func (*Client) CompanyWithLoginAccessGetWithLoginAccess

CompanyWithLoginAccessGetWithLoginAccess returns client customers with accountant auditor relation where the current user has login access proxy login

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CompanyDivisionsGetDivisions(params *CompanyDivisionsGetDivisionsParams, authInfo runtime.ClientAuthInfoWriter) (*CompanyDivisionsGetDivisionsOK, error)

	CompanyWithLoginAccessGetWithLoginAccess(params *CompanyWithLoginAccessGetWithLoginAccessParams, authInfo runtime.ClientAuthInfoWriter) (*CompanyWithLoginAccessGetWithLoginAccessOK, error)

	CompanyGet(params *CompanyGetParams, authInfo runtime.ClientAuthInfoWriter) (*CompanyGetOK, error)

	CompanyPut(params *CompanyPutParams, authInfo runtime.ClientAuthInfoWriter) (*CompanyPutOK, 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 company API client.

type CompanyDivisionsGetDivisionsOK

type CompanyDivisionsGetDivisionsOK struct {
	Payload *models.ListResponseCompany
}

CompanyDivisionsGetDivisionsOK handles this case with default header values.

successful operation

func NewCompanyDivisionsGetDivisionsOK

func NewCompanyDivisionsGetDivisionsOK() *CompanyDivisionsGetDivisionsOK

NewCompanyDivisionsGetDivisionsOK creates a CompanyDivisionsGetDivisionsOK with default headers values

func (*CompanyDivisionsGetDivisionsOK) Error

func (*CompanyDivisionsGetDivisionsOK) GetPayload

type CompanyDivisionsGetDivisionsParams

type CompanyDivisionsGetDivisionsParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

CompanyDivisionsGetDivisionsParams contains all the parameters to send to the API endpoint for the company divisions get divisions operation typically these are written to a http.Request

func NewCompanyDivisionsGetDivisionsParams

func NewCompanyDivisionsGetDivisionsParams() *CompanyDivisionsGetDivisionsParams

NewCompanyDivisionsGetDivisionsParams creates a new CompanyDivisionsGetDivisionsParams object with the default values initialized.

func NewCompanyDivisionsGetDivisionsParamsWithContext

func NewCompanyDivisionsGetDivisionsParamsWithContext(ctx context.Context) *CompanyDivisionsGetDivisionsParams

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

func NewCompanyDivisionsGetDivisionsParamsWithHTTPClient

func NewCompanyDivisionsGetDivisionsParamsWithHTTPClient(client *http.Client) *CompanyDivisionsGetDivisionsParams

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

func NewCompanyDivisionsGetDivisionsParamsWithTimeout

func NewCompanyDivisionsGetDivisionsParamsWithTimeout(timeout time.Duration) *CompanyDivisionsGetDivisionsParams

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

func (*CompanyDivisionsGetDivisionsParams) SetContext

SetContext adds the context to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) SetCount

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

SetCount adds the count to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) SetFields

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

SetFields adds the fields to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) SetFrom

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

SetFrom adds the from to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) SetSorting

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

SetSorting adds the sorting to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) SetTimeout

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

SetTimeout adds the timeout to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) WithContext

WithContext adds the context to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) WithCount

WithCount adds the count to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) WithFields

WithFields adds the fields to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) WithFrom

WithFrom adds the from to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) WithSorting

WithSorting adds the sorting to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) WithTimeout

WithTimeout adds the timeout to the company divisions get divisions params

func (*CompanyDivisionsGetDivisionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CompanyDivisionsGetDivisionsReader

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

CompanyDivisionsGetDivisionsReader is a Reader for the CompanyDivisionsGetDivisions structure.

func (*CompanyDivisionsGetDivisionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CompanyGetOK

type CompanyGetOK struct {
	Payload *models.ResponseWrapperCompany
}

CompanyGetOK handles this case with default header values.

successful operation

func NewCompanyGetOK

func NewCompanyGetOK() *CompanyGetOK

NewCompanyGetOK creates a CompanyGetOK with default headers values

func (*CompanyGetOK) Error

func (o *CompanyGetOK) Error() string

func (*CompanyGetOK) GetPayload

func (o *CompanyGetOK) GetPayload() *models.ResponseWrapperCompany

type CompanyGetParams

type CompanyGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

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

func NewCompanyGetParams

func NewCompanyGetParams() *CompanyGetParams

NewCompanyGetParams creates a new CompanyGetParams object with the default values initialized.

func NewCompanyGetParamsWithContext

func NewCompanyGetParamsWithContext(ctx context.Context) *CompanyGetParams

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

func NewCompanyGetParamsWithHTTPClient

func NewCompanyGetParamsWithHTTPClient(client *http.Client) *CompanyGetParams

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

func NewCompanyGetParamsWithTimeout

func NewCompanyGetParamsWithTimeout(timeout time.Duration) *CompanyGetParams

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

func (*CompanyGetParams) SetContext

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

SetContext adds the context to the company get params

func (*CompanyGetParams) SetFields

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

SetFields adds the fields to the company get params

func (*CompanyGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the company get params

func (*CompanyGetParams) SetID

func (o *CompanyGetParams) SetID(id int32)

SetID adds the id to the company get params

func (*CompanyGetParams) SetTimeout

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

SetTimeout adds the timeout to the company get params

func (*CompanyGetParams) WithContext

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

WithContext adds the context to the company get params

func (*CompanyGetParams) WithFields

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

WithFields adds the fields to the company get params

func (*CompanyGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the company get params

func (*CompanyGetParams) WithID

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

WithID adds the id to the company get params

func (*CompanyGetParams) WithTimeout

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

WithTimeout adds the timeout to the company get params

func (*CompanyGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CompanyGetReader

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

CompanyGetReader is a Reader for the CompanyGet structure.

func (*CompanyGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CompanyPutOK

type CompanyPutOK struct {
	Payload *models.ResponseWrapperCompany
}

CompanyPutOK handles this case with default header values.

successful operation

func NewCompanyPutOK

func NewCompanyPutOK() *CompanyPutOK

NewCompanyPutOK creates a CompanyPutOK with default headers values

func (*CompanyPutOK) Error

func (o *CompanyPutOK) Error() string

func (*CompanyPutOK) GetPayload

func (o *CompanyPutOK) GetPayload() *models.ResponseWrapperCompany

type CompanyPutParams

type CompanyPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.Company

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

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

func NewCompanyPutParams

func NewCompanyPutParams() *CompanyPutParams

NewCompanyPutParams creates a new CompanyPutParams object with the default values initialized.

func NewCompanyPutParamsWithContext

func NewCompanyPutParamsWithContext(ctx context.Context) *CompanyPutParams

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

func NewCompanyPutParamsWithHTTPClient

func NewCompanyPutParamsWithHTTPClient(client *http.Client) *CompanyPutParams

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

func NewCompanyPutParamsWithTimeout

func NewCompanyPutParamsWithTimeout(timeout time.Duration) *CompanyPutParams

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

func (*CompanyPutParams) SetBody

func (o *CompanyPutParams) SetBody(body *models.Company)

SetBody adds the body to the company put params

func (*CompanyPutParams) SetContext

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

SetContext adds the context to the company put params

func (*CompanyPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the company put params

func (*CompanyPutParams) SetTimeout

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

SetTimeout adds the timeout to the company put params

func (*CompanyPutParams) WithBody

func (o *CompanyPutParams) WithBody(body *models.Company) *CompanyPutParams

WithBody adds the body to the company put params

func (*CompanyPutParams) WithContext

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

WithContext adds the context to the company put params

func (*CompanyPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the company put params

func (*CompanyPutParams) WithTimeout

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

WithTimeout adds the timeout to the company put params

func (*CompanyPutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CompanyPutReader

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

CompanyPutReader is a Reader for the CompanyPut structure.

func (*CompanyPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CompanyWithLoginAccessGetWithLoginAccessOK

type CompanyWithLoginAccessGetWithLoginAccessOK struct {
	Payload *models.ListResponseCompany
}

CompanyWithLoginAccessGetWithLoginAccessOK handles this case with default header values.

successful operation

func NewCompanyWithLoginAccessGetWithLoginAccessOK

func NewCompanyWithLoginAccessGetWithLoginAccessOK() *CompanyWithLoginAccessGetWithLoginAccessOK

NewCompanyWithLoginAccessGetWithLoginAccessOK creates a CompanyWithLoginAccessGetWithLoginAccessOK with default headers values

func (*CompanyWithLoginAccessGetWithLoginAccessOK) Error

func (*CompanyWithLoginAccessGetWithLoginAccessOK) GetPayload

type CompanyWithLoginAccessGetWithLoginAccessParams

type CompanyWithLoginAccessGetWithLoginAccessParams struct {

	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

CompanyWithLoginAccessGetWithLoginAccessParams contains all the parameters to send to the API endpoint for the company with login access get with login access operation typically these are written to a http.Request

func NewCompanyWithLoginAccessGetWithLoginAccessParams

func NewCompanyWithLoginAccessGetWithLoginAccessParams() *CompanyWithLoginAccessGetWithLoginAccessParams

NewCompanyWithLoginAccessGetWithLoginAccessParams creates a new CompanyWithLoginAccessGetWithLoginAccessParams object with the default values initialized.

func NewCompanyWithLoginAccessGetWithLoginAccessParamsWithContext

func NewCompanyWithLoginAccessGetWithLoginAccessParamsWithContext(ctx context.Context) *CompanyWithLoginAccessGetWithLoginAccessParams

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

func NewCompanyWithLoginAccessGetWithLoginAccessParamsWithHTTPClient

func NewCompanyWithLoginAccessGetWithLoginAccessParamsWithHTTPClient(client *http.Client) *CompanyWithLoginAccessGetWithLoginAccessParams

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

func NewCompanyWithLoginAccessGetWithLoginAccessParamsWithTimeout

func NewCompanyWithLoginAccessGetWithLoginAccessParamsWithTimeout(timeout time.Duration) *CompanyWithLoginAccessGetWithLoginAccessParams

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

func (*CompanyWithLoginAccessGetWithLoginAccessParams) SetContext

SetContext adds the context to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) SetCount

SetCount adds the count to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) SetFields

SetFields adds the fields to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) SetFrom

SetFrom adds the from to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) SetSorting

SetSorting adds the sorting to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) SetTimeout

SetTimeout adds the timeout to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) WithContext

WithContext adds the context to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) WithCount

WithCount adds the count to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) WithFields

WithFields adds the fields to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) WithFrom

WithFrom adds the from to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) WithSorting

WithSorting adds the sorting to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) WithTimeout

WithTimeout adds the timeout to the company with login access get with login access params

func (*CompanyWithLoginAccessGetWithLoginAccessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CompanyWithLoginAccessGetWithLoginAccessReader

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

CompanyWithLoginAccessGetWithLoginAccessReader is a Reader for the CompanyWithLoginAccessGetWithLoginAccess structure.

func (*CompanyWithLoginAccessGetWithLoginAccessReader) ReadResponse

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