customer

package
v0.0.0-...-9e5aecc Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for customer API

func (*Client) DeleteAPICustomersIDRatesRateID

DeleteAPICustomersIDRatesRateID deletes one rate for an customer

func (*Client) GetAPICustomers

func (a *Client) GetAPICustomers(params *GetAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersOK, error)

GetAPICustomers returns a collection of customers

func (*Client) GetAPICustomersID

func (a *Client) GetAPICustomersID(params *GetAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersIDOK, error)

GetAPICustomersID returns one customer

func (*Client) GetAPICustomersIDRates

func (a *Client) GetAPICustomersIDRates(params *GetAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersIDRatesOK, error)

GetAPICustomersIDRates returns a collection of all rates for one customer

func (*Client) PatchAPICustomersID

func (a *Client) PatchAPICustomersID(params *PatchAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPICustomersIDOK, error)

PatchAPICustomersID updates an existing customer

Update an existing customer, you can pass all or just a subset of all attributes

func (*Client) PatchAPICustomersIDMeta

func (a *Client) PatchAPICustomersIDMeta(params *PatchAPICustomersIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPICustomersIDMetaOK, error)

PatchAPICustomersIDMeta sets the value of a meta field for an existing customer

func (*Client) PostAPICustomers

func (a *Client) PostAPICustomers(params *PostAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPICustomersOK, error)

PostAPICustomers creates a new customer

Creates a new customer and returns it afterwards

func (*Client) PostAPICustomersIDRates

func (a *Client) PostAPICustomersIDRates(params *PostAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPICustomersIDRatesOK, error)

PostAPICustomersIDRates adds a new rate to a customer

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteAPICustomersIDRatesRateID(params *DeleteAPICustomersIDRatesRateIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPICustomersIDRatesRateIDNoContent, error)

	GetAPICustomers(params *GetAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersOK, error)

	GetAPICustomersID(params *GetAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersIDOK, error)

	GetAPICustomersIDRates(params *GetAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersIDRatesOK, error)

	PatchAPICustomersID(params *PatchAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPICustomersIDOK, error)

	PatchAPICustomersIDMeta(params *PatchAPICustomersIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPICustomersIDMetaOK, error)

	PostAPICustomers(params *PostAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPICustomersOK, error)

	PostAPICustomersIDRates(params *PostAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPICustomersIDRatesOK, 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 DeleteAPICustomersIDRatesRateIDNoContent

type DeleteAPICustomersIDRatesRateIDNoContent struct {
}

DeleteAPICustomersIDRatesRateIDNoContent describes a response with status code 204, with default header values.

Returns no content: 204 on successful delete

func NewDeleteAPICustomersIDRatesRateIDNoContent

func NewDeleteAPICustomersIDRatesRateIDNoContent() *DeleteAPICustomersIDRatesRateIDNoContent

NewDeleteAPICustomersIDRatesRateIDNoContent creates a DeleteAPICustomersIDRatesRateIDNoContent with default headers values

func (*DeleteAPICustomersIDRatesRateIDNoContent) Error

func (*DeleteAPICustomersIDRatesRateIDNoContent) IsClientError

IsClientError returns true when this delete Api customers Id rates rate Id no content response has a 4xx status code

func (*DeleteAPICustomersIDRatesRateIDNoContent) IsCode

IsCode returns true when this delete Api customers Id rates rate Id no content response a status code equal to that given

func (*DeleteAPICustomersIDRatesRateIDNoContent) IsRedirect

IsRedirect returns true when this delete Api customers Id rates rate Id no content response has a 3xx status code

func (*DeleteAPICustomersIDRatesRateIDNoContent) IsServerError

IsServerError returns true when this delete Api customers Id rates rate Id no content response has a 5xx status code

func (*DeleteAPICustomersIDRatesRateIDNoContent) IsSuccess

IsSuccess returns true when this delete Api customers Id rates rate Id no content response has a 2xx status code

func (*DeleteAPICustomersIDRatesRateIDNoContent) String

type DeleteAPICustomersIDRatesRateIDParams

type DeleteAPICustomersIDRatesRateIDParams struct {

	/* ID.

	   The customer whose rate will be removed
	*/
	ID int64

	/* RateID.

	   The rate to remove
	*/
	RateID int64

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

DeleteAPICustomersIDRatesRateIDParams contains all the parameters to send to the API endpoint

for the delete API customers ID rates rate ID operation.

Typically these are written to a http.Request.

func NewDeleteAPICustomersIDRatesRateIDParams

func NewDeleteAPICustomersIDRatesRateIDParams() *DeleteAPICustomersIDRatesRateIDParams

NewDeleteAPICustomersIDRatesRateIDParams creates a new DeleteAPICustomersIDRatesRateIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteAPICustomersIDRatesRateIDParamsWithContext

func NewDeleteAPICustomersIDRatesRateIDParamsWithContext(ctx context.Context) *DeleteAPICustomersIDRatesRateIDParams

NewDeleteAPICustomersIDRatesRateIDParamsWithContext creates a new DeleteAPICustomersIDRatesRateIDParams object with the ability to set a context for a request.

func NewDeleteAPICustomersIDRatesRateIDParamsWithHTTPClient

func NewDeleteAPICustomersIDRatesRateIDParamsWithHTTPClient(client *http.Client) *DeleteAPICustomersIDRatesRateIDParams

NewDeleteAPICustomersIDRatesRateIDParamsWithHTTPClient creates a new DeleteAPICustomersIDRatesRateIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAPICustomersIDRatesRateIDParamsWithTimeout

func NewDeleteAPICustomersIDRatesRateIDParamsWithTimeout(timeout time.Duration) *DeleteAPICustomersIDRatesRateIDParams

NewDeleteAPICustomersIDRatesRateIDParamsWithTimeout creates a new DeleteAPICustomersIDRatesRateIDParams object with the ability to set a timeout on a request.

func (*DeleteAPICustomersIDRatesRateIDParams) SetContext

SetContext adds the context to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) SetDefaults

func (o *DeleteAPICustomersIDRatesRateIDParams) SetDefaults()

SetDefaults hydrates default values in the delete API customers ID rates rate ID params (not the query body).

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

func (*DeleteAPICustomersIDRatesRateIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) SetID

SetID adds the id to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) SetRateID

func (o *DeleteAPICustomersIDRatesRateIDParams) SetRateID(rateID int64)

SetRateID adds the rateId to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) WithContext

WithContext adds the context to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) WithDefaults

WithDefaults hydrates default values in the delete API customers ID rates rate ID params (not the query body).

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

func (*DeleteAPICustomersIDRatesRateIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) WithID

WithID adds the id to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) WithRateID

WithRateID adds the rateID to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) WithTimeout

WithTimeout adds the timeout to the delete API customers ID rates rate ID params

func (*DeleteAPICustomersIDRatesRateIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAPICustomersIDRatesRateIDReader

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

DeleteAPICustomersIDRatesRateIDReader is a Reader for the DeleteAPICustomersIDRatesRateID structure.

func (*DeleteAPICustomersIDRatesRateIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPICustomersIDOK

type GetAPICustomersIDOK struct {
	Payload *models.CustomerEntity
}

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

Returns one customer entity

func NewGetAPICustomersIDOK

func NewGetAPICustomersIDOK() *GetAPICustomersIDOK

NewGetAPICustomersIDOK creates a GetAPICustomersIDOK with default headers values

func (*GetAPICustomersIDOK) Error

func (o *GetAPICustomersIDOK) Error() string

func (*GetAPICustomersIDOK) GetPayload

func (o *GetAPICustomersIDOK) GetPayload() *models.CustomerEntity

func (*GetAPICustomersIDOK) IsClientError

func (o *GetAPICustomersIDOK) IsClientError() bool

IsClientError returns true when this get Api customers Id o k response has a 4xx status code

func (*GetAPICustomersIDOK) IsCode

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

IsCode returns true when this get Api customers Id o k response a status code equal to that given

func (*GetAPICustomersIDOK) IsRedirect

func (o *GetAPICustomersIDOK) IsRedirect() bool

IsRedirect returns true when this get Api customers Id o k response has a 3xx status code

func (*GetAPICustomersIDOK) IsServerError

func (o *GetAPICustomersIDOK) IsServerError() bool

IsServerError returns true when this get Api customers Id o k response has a 5xx status code

func (*GetAPICustomersIDOK) IsSuccess

func (o *GetAPICustomersIDOK) IsSuccess() bool

IsSuccess returns true when this get Api customers Id o k response has a 2xx status code

func (*GetAPICustomersIDOK) String

func (o *GetAPICustomersIDOK) String() string

type GetAPICustomersIDParams

type GetAPICustomersIDParams struct {

	// ID.
	ID string

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

GetAPICustomersIDParams contains all the parameters to send to the API endpoint

for the get API customers ID operation.

Typically these are written to a http.Request.

func NewGetAPICustomersIDParams

func NewGetAPICustomersIDParams() *GetAPICustomersIDParams

NewGetAPICustomersIDParams creates a new GetAPICustomersIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPICustomersIDParamsWithContext

func NewGetAPICustomersIDParamsWithContext(ctx context.Context) *GetAPICustomersIDParams

NewGetAPICustomersIDParamsWithContext creates a new GetAPICustomersIDParams object with the ability to set a context for a request.

func NewGetAPICustomersIDParamsWithHTTPClient

func NewGetAPICustomersIDParamsWithHTTPClient(client *http.Client) *GetAPICustomersIDParams

NewGetAPICustomersIDParamsWithHTTPClient creates a new GetAPICustomersIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPICustomersIDParamsWithTimeout

func NewGetAPICustomersIDParamsWithTimeout(timeout time.Duration) *GetAPICustomersIDParams

NewGetAPICustomersIDParamsWithTimeout creates a new GetAPICustomersIDParams object with the ability to set a timeout on a request.

func (*GetAPICustomersIDParams) SetContext

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

SetContext adds the context to the get API customers ID params

func (*GetAPICustomersIDParams) SetDefaults

func (o *GetAPICustomersIDParams) SetDefaults()

SetDefaults hydrates default values in the get API customers ID params (not the query body).

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

func (*GetAPICustomersIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API customers ID params

func (*GetAPICustomersIDParams) SetID

func (o *GetAPICustomersIDParams) SetID(id string)

SetID adds the id to the get API customers ID params

func (*GetAPICustomersIDParams) SetTimeout

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

SetTimeout adds the timeout to the get API customers ID params

func (*GetAPICustomersIDParams) WithContext

WithContext adds the context to the get API customers ID params

func (*GetAPICustomersIDParams) WithDefaults

WithDefaults hydrates default values in the get API customers ID params (not the query body).

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

func (*GetAPICustomersIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API customers ID params

func (*GetAPICustomersIDParams) WithID

WithID adds the id to the get API customers ID params

func (*GetAPICustomersIDParams) WithTimeout

WithTimeout adds the timeout to the get API customers ID params

func (*GetAPICustomersIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPICustomersIDRatesOK

type GetAPICustomersIDRatesOK struct {
	Payload []*models.CustomerRate
}

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

Returns a collection of customer rate entities

func NewGetAPICustomersIDRatesOK

func NewGetAPICustomersIDRatesOK() *GetAPICustomersIDRatesOK

NewGetAPICustomersIDRatesOK creates a GetAPICustomersIDRatesOK with default headers values

func (*GetAPICustomersIDRatesOK) Error

func (o *GetAPICustomersIDRatesOK) Error() string

func (*GetAPICustomersIDRatesOK) GetPayload

func (o *GetAPICustomersIDRatesOK) GetPayload() []*models.CustomerRate

func (*GetAPICustomersIDRatesOK) IsClientError

func (o *GetAPICustomersIDRatesOK) IsClientError() bool

IsClientError returns true when this get Api customers Id rates o k response has a 4xx status code

func (*GetAPICustomersIDRatesOK) IsCode

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

IsCode returns true when this get Api customers Id rates o k response a status code equal to that given

func (*GetAPICustomersIDRatesOK) IsRedirect

func (o *GetAPICustomersIDRatesOK) IsRedirect() bool

IsRedirect returns true when this get Api customers Id rates o k response has a 3xx status code

func (*GetAPICustomersIDRatesOK) IsServerError

func (o *GetAPICustomersIDRatesOK) IsServerError() bool

IsServerError returns true when this get Api customers Id rates o k response has a 5xx status code

func (*GetAPICustomersIDRatesOK) IsSuccess

func (o *GetAPICustomersIDRatesOK) IsSuccess() bool

IsSuccess returns true when this get Api customers Id rates o k response has a 2xx status code

func (*GetAPICustomersIDRatesOK) String

func (o *GetAPICustomersIDRatesOK) String() string

type GetAPICustomersIDRatesParams

type GetAPICustomersIDRatesParams struct {

	/* ID.

	   The customer whose rates will be returned
	*/
	ID int64

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

GetAPICustomersIDRatesParams contains all the parameters to send to the API endpoint

for the get API customers ID rates operation.

Typically these are written to a http.Request.

func NewGetAPICustomersIDRatesParams

func NewGetAPICustomersIDRatesParams() *GetAPICustomersIDRatesParams

NewGetAPICustomersIDRatesParams creates a new GetAPICustomersIDRatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPICustomersIDRatesParamsWithContext

func NewGetAPICustomersIDRatesParamsWithContext(ctx context.Context) *GetAPICustomersIDRatesParams

NewGetAPICustomersIDRatesParamsWithContext creates a new GetAPICustomersIDRatesParams object with the ability to set a context for a request.

func NewGetAPICustomersIDRatesParamsWithHTTPClient

func NewGetAPICustomersIDRatesParamsWithHTTPClient(client *http.Client) *GetAPICustomersIDRatesParams

NewGetAPICustomersIDRatesParamsWithHTTPClient creates a new GetAPICustomersIDRatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPICustomersIDRatesParamsWithTimeout

func NewGetAPICustomersIDRatesParamsWithTimeout(timeout time.Duration) *GetAPICustomersIDRatesParams

NewGetAPICustomersIDRatesParamsWithTimeout creates a new GetAPICustomersIDRatesParams object with the ability to set a timeout on a request.

func (*GetAPICustomersIDRatesParams) SetContext

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

SetContext adds the context to the get API customers ID rates params

func (*GetAPICustomersIDRatesParams) SetDefaults

func (o *GetAPICustomersIDRatesParams) SetDefaults()

SetDefaults hydrates default values in the get API customers ID rates params (not the query body).

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

func (*GetAPICustomersIDRatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API customers ID rates params

func (*GetAPICustomersIDRatesParams) SetID

func (o *GetAPICustomersIDRatesParams) SetID(id int64)

SetID adds the id to the get API customers ID rates params

func (*GetAPICustomersIDRatesParams) SetTimeout

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

SetTimeout adds the timeout to the get API customers ID rates params

func (*GetAPICustomersIDRatesParams) WithContext

WithContext adds the context to the get API customers ID rates params

func (*GetAPICustomersIDRatesParams) WithDefaults

WithDefaults hydrates default values in the get API customers ID rates params (not the query body).

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

func (*GetAPICustomersIDRatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API customers ID rates params

func (*GetAPICustomersIDRatesParams) WithID

WithID adds the id to the get API customers ID rates params

func (*GetAPICustomersIDRatesParams) WithTimeout

WithTimeout adds the timeout to the get API customers ID rates params

func (*GetAPICustomersIDRatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPICustomersIDRatesReader

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

GetAPICustomersIDRatesReader is a Reader for the GetAPICustomersIDRates structure.

func (*GetAPICustomersIDRatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPICustomersIDReader

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

GetAPICustomersIDReader is a Reader for the GetAPICustomersID structure.

func (*GetAPICustomersIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPICustomersOK

type GetAPICustomersOK struct {
	Payload []*models.CustomerCollection
}

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

Returns a collection of customer entities

func NewGetAPICustomersOK

func NewGetAPICustomersOK() *GetAPICustomersOK

NewGetAPICustomersOK creates a GetAPICustomersOK with default headers values

func (*GetAPICustomersOK) Error

func (o *GetAPICustomersOK) Error() string

func (*GetAPICustomersOK) GetPayload

func (o *GetAPICustomersOK) GetPayload() []*models.CustomerCollection

func (*GetAPICustomersOK) IsClientError

func (o *GetAPICustomersOK) IsClientError() bool

IsClientError returns true when this get Api customers o k response has a 4xx status code

func (*GetAPICustomersOK) IsCode

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

IsCode returns true when this get Api customers o k response a status code equal to that given

func (*GetAPICustomersOK) IsRedirect

func (o *GetAPICustomersOK) IsRedirect() bool

IsRedirect returns true when this get Api customers o k response has a 3xx status code

func (*GetAPICustomersOK) IsServerError

func (o *GetAPICustomersOK) IsServerError() bool

IsServerError returns true when this get Api customers o k response has a 5xx status code

func (*GetAPICustomersOK) IsSuccess

func (o *GetAPICustomersOK) IsSuccess() bool

IsSuccess returns true when this get Api customers o k response has a 2xx status code

func (*GetAPICustomersOK) String

func (o *GetAPICustomersOK) String() string

type GetAPICustomersParams

type GetAPICustomersParams struct {

	/* Order.

	   The result order. Allowed values: ASC, DESC (default: ASC)
	*/
	Order string

	/* OrderBy.

	   The field by which results will be ordered. Allowed values: id, name (default: name)
	*/
	OrderBy string

	/* Term.

	   Free search term
	*/
	Term *string

	/* Visible.

	   Visibility status to filter activities (1=visible, 2=hidden, 3=both)
	*/
	Visible string

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

GetAPICustomersParams contains all the parameters to send to the API endpoint

for the get API customers operation.

Typically these are written to a http.Request.

func NewGetAPICustomersParams

func NewGetAPICustomersParams() *GetAPICustomersParams

NewGetAPICustomersParams creates a new GetAPICustomersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPICustomersParamsWithContext

func NewGetAPICustomersParamsWithContext(ctx context.Context) *GetAPICustomersParams

NewGetAPICustomersParamsWithContext creates a new GetAPICustomersParams object with the ability to set a context for a request.

func NewGetAPICustomersParamsWithHTTPClient

func NewGetAPICustomersParamsWithHTTPClient(client *http.Client) *GetAPICustomersParams

NewGetAPICustomersParamsWithHTTPClient creates a new GetAPICustomersParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPICustomersParamsWithTimeout

func NewGetAPICustomersParamsWithTimeout(timeout time.Duration) *GetAPICustomersParams

NewGetAPICustomersParamsWithTimeout creates a new GetAPICustomersParams object with the ability to set a timeout on a request.

func (*GetAPICustomersParams) SetContext

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

SetContext adds the context to the get API customers params

func (*GetAPICustomersParams) SetDefaults

func (o *GetAPICustomersParams) SetDefaults()

SetDefaults hydrates default values in the get API customers params (not the query body).

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

func (*GetAPICustomersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API customers params

func (*GetAPICustomersParams) SetOrder

func (o *GetAPICustomersParams) SetOrder(order string)

SetOrder adds the order to the get API customers params

func (*GetAPICustomersParams) SetOrderBy

func (o *GetAPICustomersParams) SetOrderBy(orderBy string)

SetOrderBy adds the orderBy to the get API customers params

func (*GetAPICustomersParams) SetTerm

func (o *GetAPICustomersParams) SetTerm(term *string)

SetTerm adds the term to the get API customers params

func (*GetAPICustomersParams) SetTimeout

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

SetTimeout adds the timeout to the get API customers params

func (*GetAPICustomersParams) SetVisible

func (o *GetAPICustomersParams) SetVisible(visible string)

SetVisible adds the visible to the get API customers params

func (*GetAPICustomersParams) WithContext

WithContext adds the context to the get API customers params

func (*GetAPICustomersParams) WithDefaults

func (o *GetAPICustomersParams) WithDefaults() *GetAPICustomersParams

WithDefaults hydrates default values in the get API customers params (not the query body).

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

func (*GetAPICustomersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API customers params

func (*GetAPICustomersParams) WithOrder

func (o *GetAPICustomersParams) WithOrder(order string) *GetAPICustomersParams

WithOrder adds the order to the get API customers params

func (*GetAPICustomersParams) WithOrderBy

func (o *GetAPICustomersParams) WithOrderBy(orderBy string) *GetAPICustomersParams

WithOrderBy adds the orderBy to the get API customers params

func (*GetAPICustomersParams) WithTerm

WithTerm adds the term to the get API customers params

func (*GetAPICustomersParams) WithTimeout

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

WithTimeout adds the timeout to the get API customers params

func (*GetAPICustomersParams) WithVisible

func (o *GetAPICustomersParams) WithVisible(visible string) *GetAPICustomersParams

WithVisible adds the visible to the get API customers params

func (*GetAPICustomersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAPICustomersReader

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

GetAPICustomersReader is a Reader for the GetAPICustomers structure.

func (*GetAPICustomersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPICustomersIDMetaBody

type PatchAPICustomersIDMetaBody struct {

	// The meta-field name
	// Required: true
	Name *string `json:"name"`

	// The meta-field value
	// Required: true
	Value *string `json:"value"`
}

PatchAPICustomersIDMetaBody patch API customers ID meta body swagger:model PatchAPICustomersIDMetaBody

func (*PatchAPICustomersIDMetaBody) ContextValidate

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

ContextValidate validates this patch API customers ID meta body based on context it is used

func (*PatchAPICustomersIDMetaBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PatchAPICustomersIDMetaBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PatchAPICustomersIDMetaBody) Validate

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

Validate validates this patch API customers ID meta body

type PatchAPICustomersIDMetaOK

type PatchAPICustomersIDMetaOK struct {
	Payload *models.CustomerEntity
}

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

Sets the value of an existing/configured meta-field. You cannot create unknown meta-fields, if the given name is not a configured meta-field, this will return an exception.

func NewPatchAPICustomersIDMetaOK

func NewPatchAPICustomersIDMetaOK() *PatchAPICustomersIDMetaOK

NewPatchAPICustomersIDMetaOK creates a PatchAPICustomersIDMetaOK with default headers values

func (*PatchAPICustomersIDMetaOK) Error

func (o *PatchAPICustomersIDMetaOK) Error() string

func (*PatchAPICustomersIDMetaOK) GetPayload

func (*PatchAPICustomersIDMetaOK) IsClientError

func (o *PatchAPICustomersIDMetaOK) IsClientError() bool

IsClientError returns true when this patch Api customers Id meta o k response has a 4xx status code

func (*PatchAPICustomersIDMetaOK) IsCode

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

IsCode returns true when this patch Api customers Id meta o k response a status code equal to that given

func (*PatchAPICustomersIDMetaOK) IsRedirect

func (o *PatchAPICustomersIDMetaOK) IsRedirect() bool

IsRedirect returns true when this patch Api customers Id meta o k response has a 3xx status code

func (*PatchAPICustomersIDMetaOK) IsServerError

func (o *PatchAPICustomersIDMetaOK) IsServerError() bool

IsServerError returns true when this patch Api customers Id meta o k response has a 5xx status code

func (*PatchAPICustomersIDMetaOK) IsSuccess

func (o *PatchAPICustomersIDMetaOK) IsSuccess() bool

IsSuccess returns true when this patch Api customers Id meta o k response has a 2xx status code

func (*PatchAPICustomersIDMetaOK) String

func (o *PatchAPICustomersIDMetaOK) String() string

type PatchAPICustomersIDMetaParams

type PatchAPICustomersIDMetaParams struct {

	// Body.
	Body PatchAPICustomersIDMetaBody

	/* ID.

	   Customer record ID to set the meta-field value for
	*/
	ID int64

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

PatchAPICustomersIDMetaParams contains all the parameters to send to the API endpoint

for the patch API customers ID meta operation.

Typically these are written to a http.Request.

func NewPatchAPICustomersIDMetaParams

func NewPatchAPICustomersIDMetaParams() *PatchAPICustomersIDMetaParams

NewPatchAPICustomersIDMetaParams creates a new PatchAPICustomersIDMetaParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPICustomersIDMetaParamsWithContext

func NewPatchAPICustomersIDMetaParamsWithContext(ctx context.Context) *PatchAPICustomersIDMetaParams

NewPatchAPICustomersIDMetaParamsWithContext creates a new PatchAPICustomersIDMetaParams object with the ability to set a context for a request.

func NewPatchAPICustomersIDMetaParamsWithHTTPClient

func NewPatchAPICustomersIDMetaParamsWithHTTPClient(client *http.Client) *PatchAPICustomersIDMetaParams

NewPatchAPICustomersIDMetaParamsWithHTTPClient creates a new PatchAPICustomersIDMetaParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPICustomersIDMetaParamsWithTimeout

func NewPatchAPICustomersIDMetaParamsWithTimeout(timeout time.Duration) *PatchAPICustomersIDMetaParams

NewPatchAPICustomersIDMetaParamsWithTimeout creates a new PatchAPICustomersIDMetaParams object with the ability to set a timeout on a request.

func (*PatchAPICustomersIDMetaParams) SetBody

SetBody adds the body to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) SetContext

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

SetContext adds the context to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) SetDefaults

func (o *PatchAPICustomersIDMetaParams) SetDefaults()

SetDefaults hydrates default values in the patch API customers ID meta params (not the query body).

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

func (*PatchAPICustomersIDMetaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) SetID

func (o *PatchAPICustomersIDMetaParams) SetID(id int64)

SetID adds the id to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) SetTimeout

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

SetTimeout adds the timeout to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) WithBody

WithBody adds the body to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) WithContext

WithContext adds the context to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) WithDefaults

WithDefaults hydrates default values in the patch API customers ID meta params (not the query body).

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

func (*PatchAPICustomersIDMetaParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) WithID

WithID adds the id to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) WithTimeout

WithTimeout adds the timeout to the patch API customers ID meta params

func (*PatchAPICustomersIDMetaParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPICustomersIDMetaReader

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

PatchAPICustomersIDMetaReader is a Reader for the PatchAPICustomersIDMeta structure.

func (*PatchAPICustomersIDMetaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAPICustomersIDOK

type PatchAPICustomersIDOK struct {
	Payload *models.CustomerEntity
}

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

Returns the updated customer

func NewPatchAPICustomersIDOK

func NewPatchAPICustomersIDOK() *PatchAPICustomersIDOK

NewPatchAPICustomersIDOK creates a PatchAPICustomersIDOK with default headers values

func (*PatchAPICustomersIDOK) Error

func (o *PatchAPICustomersIDOK) Error() string

func (*PatchAPICustomersIDOK) GetPayload

func (o *PatchAPICustomersIDOK) GetPayload() *models.CustomerEntity

func (*PatchAPICustomersIDOK) IsClientError

func (o *PatchAPICustomersIDOK) IsClientError() bool

IsClientError returns true when this patch Api customers Id o k response has a 4xx status code

func (*PatchAPICustomersIDOK) IsCode

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

IsCode returns true when this patch Api customers Id o k response a status code equal to that given

func (*PatchAPICustomersIDOK) IsRedirect

func (o *PatchAPICustomersIDOK) IsRedirect() bool

IsRedirect returns true when this patch Api customers Id o k response has a 3xx status code

func (*PatchAPICustomersIDOK) IsServerError

func (o *PatchAPICustomersIDOK) IsServerError() bool

IsServerError returns true when this patch Api customers Id o k response has a 5xx status code

func (*PatchAPICustomersIDOK) IsSuccess

func (o *PatchAPICustomersIDOK) IsSuccess() bool

IsSuccess returns true when this patch Api customers Id o k response has a 2xx status code

func (*PatchAPICustomersIDOK) String

func (o *PatchAPICustomersIDOK) String() string

type PatchAPICustomersIDParams

type PatchAPICustomersIDParams struct {

	// Body.
	Body *models.CustomerEditForm

	/* ID.

	   Customer ID to update
	*/
	ID int64

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

PatchAPICustomersIDParams contains all the parameters to send to the API endpoint

for the patch API customers ID operation.

Typically these are written to a http.Request.

func NewPatchAPICustomersIDParams

func NewPatchAPICustomersIDParams() *PatchAPICustomersIDParams

NewPatchAPICustomersIDParams creates a new PatchAPICustomersIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAPICustomersIDParamsWithContext

func NewPatchAPICustomersIDParamsWithContext(ctx context.Context) *PatchAPICustomersIDParams

NewPatchAPICustomersIDParamsWithContext creates a new PatchAPICustomersIDParams object with the ability to set a context for a request.

func NewPatchAPICustomersIDParamsWithHTTPClient

func NewPatchAPICustomersIDParamsWithHTTPClient(client *http.Client) *PatchAPICustomersIDParams

NewPatchAPICustomersIDParamsWithHTTPClient creates a new PatchAPICustomersIDParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAPICustomersIDParamsWithTimeout

func NewPatchAPICustomersIDParamsWithTimeout(timeout time.Duration) *PatchAPICustomersIDParams

NewPatchAPICustomersIDParamsWithTimeout creates a new PatchAPICustomersIDParams object with the ability to set a timeout on a request.

func (*PatchAPICustomersIDParams) SetBody

SetBody adds the body to the patch API customers ID params

func (*PatchAPICustomersIDParams) SetContext

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

SetContext adds the context to the patch API customers ID params

func (*PatchAPICustomersIDParams) SetDefaults

func (o *PatchAPICustomersIDParams) SetDefaults()

SetDefaults hydrates default values in the patch API customers ID params (not the query body).

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

func (*PatchAPICustomersIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch API customers ID params

func (*PatchAPICustomersIDParams) SetID

func (o *PatchAPICustomersIDParams) SetID(id int64)

SetID adds the id to the patch API customers ID params

func (*PatchAPICustomersIDParams) SetTimeout

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

SetTimeout adds the timeout to the patch API customers ID params

func (*PatchAPICustomersIDParams) WithBody

WithBody adds the body to the patch API customers ID params

func (*PatchAPICustomersIDParams) WithContext

WithContext adds the context to the patch API customers ID params

func (*PatchAPICustomersIDParams) WithDefaults

WithDefaults hydrates default values in the patch API customers ID params (not the query body).

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

func (*PatchAPICustomersIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch API customers ID params

func (*PatchAPICustomersIDParams) WithID

WithID adds the id to the patch API customers ID params

func (*PatchAPICustomersIDParams) WithTimeout

WithTimeout adds the timeout to the patch API customers ID params

func (*PatchAPICustomersIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAPICustomersIDReader

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

PatchAPICustomersIDReader is a Reader for the PatchAPICustomersID structure.

func (*PatchAPICustomersIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAPICustomersIDRatesOK

type PostAPICustomersIDRatesOK struct {
	Payload *models.CustomerRate
}

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

Returns the new created rate

func NewPostAPICustomersIDRatesOK

func NewPostAPICustomersIDRatesOK() *PostAPICustomersIDRatesOK

NewPostAPICustomersIDRatesOK creates a PostAPICustomersIDRatesOK with default headers values

func (*PostAPICustomersIDRatesOK) Error

func (o *PostAPICustomersIDRatesOK) Error() string

func (*PostAPICustomersIDRatesOK) GetPayload

func (*PostAPICustomersIDRatesOK) IsClientError

func (o *PostAPICustomersIDRatesOK) IsClientError() bool

IsClientError returns true when this post Api customers Id rates o k response has a 4xx status code

func (*PostAPICustomersIDRatesOK) IsCode

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

IsCode returns true when this post Api customers Id rates o k response a status code equal to that given

func (*PostAPICustomersIDRatesOK) IsRedirect

func (o *PostAPICustomersIDRatesOK) IsRedirect() bool

IsRedirect returns true when this post Api customers Id rates o k response has a 3xx status code

func (*PostAPICustomersIDRatesOK) IsServerError

func (o *PostAPICustomersIDRatesOK) IsServerError() bool

IsServerError returns true when this post Api customers Id rates o k response has a 5xx status code

func (*PostAPICustomersIDRatesOK) IsSuccess

func (o *PostAPICustomersIDRatesOK) IsSuccess() bool

IsSuccess returns true when this post Api customers Id rates o k response has a 2xx status code

func (*PostAPICustomersIDRatesOK) String

func (o *PostAPICustomersIDRatesOK) String() string

type PostAPICustomersIDRatesParams

type PostAPICustomersIDRatesParams struct {

	// Body.
	Body *models.CustomerRateForm

	/* ID.

	   The customer to add the rate for
	*/
	ID int64

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

PostAPICustomersIDRatesParams contains all the parameters to send to the API endpoint

for the post API customers ID rates operation.

Typically these are written to a http.Request.

func NewPostAPICustomersIDRatesParams

func NewPostAPICustomersIDRatesParams() *PostAPICustomersIDRatesParams

NewPostAPICustomersIDRatesParams creates a new PostAPICustomersIDRatesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostAPICustomersIDRatesParamsWithContext

func NewPostAPICustomersIDRatesParamsWithContext(ctx context.Context) *PostAPICustomersIDRatesParams

NewPostAPICustomersIDRatesParamsWithContext creates a new PostAPICustomersIDRatesParams object with the ability to set a context for a request.

func NewPostAPICustomersIDRatesParamsWithHTTPClient

func NewPostAPICustomersIDRatesParamsWithHTTPClient(client *http.Client) *PostAPICustomersIDRatesParams

NewPostAPICustomersIDRatesParamsWithHTTPClient creates a new PostAPICustomersIDRatesParams object with the ability to set a custom HTTPClient for a request.

func NewPostAPICustomersIDRatesParamsWithTimeout

func NewPostAPICustomersIDRatesParamsWithTimeout(timeout time.Duration) *PostAPICustomersIDRatesParams

NewPostAPICustomersIDRatesParamsWithTimeout creates a new PostAPICustomersIDRatesParams object with the ability to set a timeout on a request.

func (*PostAPICustomersIDRatesParams) SetBody

SetBody adds the body to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) SetContext

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

SetContext adds the context to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) SetDefaults

func (o *PostAPICustomersIDRatesParams) SetDefaults()

SetDefaults hydrates default values in the post API customers ID rates params (not the query body).

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

func (*PostAPICustomersIDRatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) SetID

func (o *PostAPICustomersIDRatesParams) SetID(id int64)

SetID adds the id to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) SetTimeout

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

SetTimeout adds the timeout to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) WithBody

WithBody adds the body to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) WithContext

WithContext adds the context to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) WithDefaults

WithDefaults hydrates default values in the post API customers ID rates params (not the query body).

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

func (*PostAPICustomersIDRatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) WithID

WithID adds the id to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) WithTimeout

WithTimeout adds the timeout to the post API customers ID rates params

func (*PostAPICustomersIDRatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostAPICustomersIDRatesReader

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

PostAPICustomersIDRatesReader is a Reader for the PostAPICustomersIDRates structure.

func (*PostAPICustomersIDRatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAPICustomersOK

type PostAPICustomersOK struct {
	Payload *models.CustomerEntity
}

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

Returns the new created customer

func NewPostAPICustomersOK

func NewPostAPICustomersOK() *PostAPICustomersOK

NewPostAPICustomersOK creates a PostAPICustomersOK with default headers values

func (*PostAPICustomersOK) Error

func (o *PostAPICustomersOK) Error() string

func (*PostAPICustomersOK) GetPayload

func (o *PostAPICustomersOK) GetPayload() *models.CustomerEntity

func (*PostAPICustomersOK) IsClientError

func (o *PostAPICustomersOK) IsClientError() bool

IsClientError returns true when this post Api customers o k response has a 4xx status code

func (*PostAPICustomersOK) IsCode

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

IsCode returns true when this post Api customers o k response a status code equal to that given

func (*PostAPICustomersOK) IsRedirect

func (o *PostAPICustomersOK) IsRedirect() bool

IsRedirect returns true when this post Api customers o k response has a 3xx status code

func (*PostAPICustomersOK) IsServerError

func (o *PostAPICustomersOK) IsServerError() bool

IsServerError returns true when this post Api customers o k response has a 5xx status code

func (*PostAPICustomersOK) IsSuccess

func (o *PostAPICustomersOK) IsSuccess() bool

IsSuccess returns true when this post Api customers o k response has a 2xx status code

func (*PostAPICustomersOK) String

func (o *PostAPICustomersOK) String() string

type PostAPICustomersParams

type PostAPICustomersParams struct {

	// Body.
	Body *models.CustomerEditForm

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

PostAPICustomersParams contains all the parameters to send to the API endpoint

for the post API customers operation.

Typically these are written to a http.Request.

func NewPostAPICustomersParams

func NewPostAPICustomersParams() *PostAPICustomersParams

NewPostAPICustomersParams creates a new PostAPICustomersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPostAPICustomersParamsWithContext

func NewPostAPICustomersParamsWithContext(ctx context.Context) *PostAPICustomersParams

NewPostAPICustomersParamsWithContext creates a new PostAPICustomersParams object with the ability to set a context for a request.

func NewPostAPICustomersParamsWithHTTPClient

func NewPostAPICustomersParamsWithHTTPClient(client *http.Client) *PostAPICustomersParams

NewPostAPICustomersParamsWithHTTPClient creates a new PostAPICustomersParams object with the ability to set a custom HTTPClient for a request.

func NewPostAPICustomersParamsWithTimeout

func NewPostAPICustomersParamsWithTimeout(timeout time.Duration) *PostAPICustomersParams

NewPostAPICustomersParamsWithTimeout creates a new PostAPICustomersParams object with the ability to set a timeout on a request.

func (*PostAPICustomersParams) SetBody

SetBody adds the body to the post API customers params

func (*PostAPICustomersParams) SetContext

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

SetContext adds the context to the post API customers params

func (*PostAPICustomersParams) SetDefaults

func (o *PostAPICustomersParams) SetDefaults()

SetDefaults hydrates default values in the post API customers params (not the query body).

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

func (*PostAPICustomersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API customers params

func (*PostAPICustomersParams) SetTimeout

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

SetTimeout adds the timeout to the post API customers params

func (*PostAPICustomersParams) WithBody

WithBody adds the body to the post API customers params

func (*PostAPICustomersParams) WithContext

WithContext adds the context to the post API customers params

func (*PostAPICustomersParams) WithDefaults

WithDefaults hydrates default values in the post API customers params (not the query body).

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

func (*PostAPICustomersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post API customers params

func (*PostAPICustomersParams) WithTimeout

WithTimeout adds the timeout to the post API customers params

func (*PostAPICustomersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostAPICustomersReader

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

PostAPICustomersReader is a Reader for the PostAPICustomers structure.

func (*PostAPICustomersReader) ReadResponse

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