customer

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSmsNumberDefault

type ChangeSmsNumberDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
ChangeSmsNumberDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewChangeSmsNumberDefault

func NewChangeSmsNumberDefault(code int) *ChangeSmsNumberDefault

NewChangeSmsNumberDefault creates a ChangeSmsNumberDefault with default headers values

func (*ChangeSmsNumberDefault) Code

func (o *ChangeSmsNumberDefault) Code() int

Code gets the status code for the change sms number default response

func (*ChangeSmsNumberDefault) Error

func (o *ChangeSmsNumberDefault) Error() string

func (*ChangeSmsNumberDefault) GetPayload

func (o *ChangeSmsNumberDefault) GetPayload() *models.RPCStatus

func (*ChangeSmsNumberDefault) IsClientError

func (o *ChangeSmsNumberDefault) IsClientError() bool

IsClientError returns true when this change sms number default response has a 4xx status code

func (*ChangeSmsNumberDefault) IsCode

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

IsCode returns true when this change sms number default response a status code equal to that given

func (*ChangeSmsNumberDefault) IsRedirect

func (o *ChangeSmsNumberDefault) IsRedirect() bool

IsRedirect returns true when this change sms number default response has a 3xx status code

func (*ChangeSmsNumberDefault) IsServerError

func (o *ChangeSmsNumberDefault) IsServerError() bool

IsServerError returns true when this change sms number default response has a 5xx status code

func (*ChangeSmsNumberDefault) IsSuccess

func (o *ChangeSmsNumberDefault) IsSuccess() bool

IsSuccess returns true when this change sms number default response has a 2xx status code

func (*ChangeSmsNumberDefault) String

func (o *ChangeSmsNumberDefault) String() string

type ChangeSmsNumberOK

type ChangeSmsNumberOK struct {
	Payload models.CustomerspbChangeSmsNumberResponse
}
ChangeSmsNumberOK describes a response with status code 200, with default header values.

A successful response.

func NewChangeSmsNumberOK

func NewChangeSmsNumberOK() *ChangeSmsNumberOK

NewChangeSmsNumberOK creates a ChangeSmsNumberOK with default headers values

func (*ChangeSmsNumberOK) Error

func (o *ChangeSmsNumberOK) Error() string

func (*ChangeSmsNumberOK) GetPayload

func (*ChangeSmsNumberOK) IsClientError

func (o *ChangeSmsNumberOK) IsClientError() bool

IsClientError returns true when this change sms number o k response has a 4xx status code

func (*ChangeSmsNumberOK) IsCode

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

IsCode returns true when this change sms number o k response a status code equal to that given

func (*ChangeSmsNumberOK) IsRedirect

func (o *ChangeSmsNumberOK) IsRedirect() bool

IsRedirect returns true when this change sms number o k response has a 3xx status code

func (*ChangeSmsNumberOK) IsServerError

func (o *ChangeSmsNumberOK) IsServerError() bool

IsServerError returns true when this change sms number o k response has a 5xx status code

func (*ChangeSmsNumberOK) IsSuccess

func (o *ChangeSmsNumberOK) IsSuccess() bool

IsSuccess returns true when this change sms number o k response has a 2xx status code

func (*ChangeSmsNumberOK) String

func (o *ChangeSmsNumberOK) String() string

type ChangeSmsNumberParams

type ChangeSmsNumberParams struct {

	// Body.
	Body *models.ChangeSmsNumberParamsBody

	// ID.
	ID string

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

ChangeSmsNumberParams contains all the parameters to send to the API endpoint

for the change sms number operation.

Typically these are written to a http.Request.

func NewChangeSmsNumberParams

func NewChangeSmsNumberParams() *ChangeSmsNumberParams

NewChangeSmsNumberParams creates a new ChangeSmsNumberParams 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 NewChangeSmsNumberParamsWithContext

func NewChangeSmsNumberParamsWithContext(ctx context.Context) *ChangeSmsNumberParams

NewChangeSmsNumberParamsWithContext creates a new ChangeSmsNumberParams object with the ability to set a context for a request.

func NewChangeSmsNumberParamsWithHTTPClient

func NewChangeSmsNumberParamsWithHTTPClient(client *http.Client) *ChangeSmsNumberParams

NewChangeSmsNumberParamsWithHTTPClient creates a new ChangeSmsNumberParams object with the ability to set a custom HTTPClient for a request.

func NewChangeSmsNumberParamsWithTimeout

func NewChangeSmsNumberParamsWithTimeout(timeout time.Duration) *ChangeSmsNumberParams

NewChangeSmsNumberParamsWithTimeout creates a new ChangeSmsNumberParams object with the ability to set a timeout on a request.

func (*ChangeSmsNumberParams) SetBody

SetBody adds the body to the change sms number params

func (*ChangeSmsNumberParams) SetContext

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

SetContext adds the context to the change sms number params

func (*ChangeSmsNumberParams) SetDefaults

func (o *ChangeSmsNumberParams) SetDefaults()

SetDefaults hydrates default values in the change sms number params (not the query body).

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

func (*ChangeSmsNumberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the change sms number params

func (*ChangeSmsNumberParams) SetID

func (o *ChangeSmsNumberParams) SetID(id string)

SetID adds the id to the change sms number params

func (*ChangeSmsNumberParams) SetTimeout

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

SetTimeout adds the timeout to the change sms number params

func (*ChangeSmsNumberParams) WithBody

WithBody adds the body to the change sms number params

func (*ChangeSmsNumberParams) WithContext

WithContext adds the context to the change sms number params

func (*ChangeSmsNumberParams) WithDefaults

func (o *ChangeSmsNumberParams) WithDefaults() *ChangeSmsNumberParams

WithDefaults hydrates default values in the change sms number params (not the query body).

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

func (*ChangeSmsNumberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the change sms number params

func (*ChangeSmsNumberParams) WithID

WithID adds the id to the change sms number params

func (*ChangeSmsNumberParams) WithTimeout

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

WithTimeout adds the timeout to the change sms number params

func (*ChangeSmsNumberParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ChangeSmsNumberReader

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

ChangeSmsNumberReader is a Reader for the ChangeSmsNumber structure.

func (*ChangeSmsNumberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for customer API

func (*Client) ChangeSmsNumber

func (a *Client) ChangeSmsNumber(params *ChangeSmsNumberParams, opts ...ClientOption) (*ChangeSmsNumberOK, error)

ChangeSmsNumber changes a customers s m s number

func (*Client) DisableCustomer

func (a *Client) DisableCustomer(params *DisableCustomerParams, opts ...ClientOption) (*DisableCustomerOK, error)

DisableCustomer disables a customer

func (*Client) EnableCustomer

func (a *Client) EnableCustomer(params *EnableCustomerParams, opts ...ClientOption) (*EnableCustomerOK, error)

EnableCustomer enables a customer

func (*Client) GetCustomer

func (a *Client) GetCustomer(params *GetCustomerParams, opts ...ClientOption) (*GetCustomerOK, error)

GetCustomer gets a customer

func (*Client) RegisterCustomer

func (a *Client) RegisterCustomer(params *RegisterCustomerParams, opts ...ClientOption) (*RegisterCustomerOK, error)

RegisterCustomer registers a new 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 {
	DisableCustomer(params *DisableCustomerParams, opts ...ClientOption) (*DisableCustomerOK, error)

	ChangeSmsNumber(params *ChangeSmsNumberParams, opts ...ClientOption) (*ChangeSmsNumberOK, error)

	EnableCustomer(params *EnableCustomerParams, opts ...ClientOption) (*EnableCustomerOK, error)

	GetCustomer(params *GetCustomerParams, opts ...ClientOption) (*GetCustomerOK, error)

	RegisterCustomer(params *RegisterCustomerParams, opts ...ClientOption) (*RegisterCustomerOK, 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 DisableCustomerDefault

type DisableCustomerDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
DisableCustomerDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDisableCustomerDefault

func NewDisableCustomerDefault(code int) *DisableCustomerDefault

NewDisableCustomerDefault creates a DisableCustomerDefault with default headers values

func (*DisableCustomerDefault) Code

func (o *DisableCustomerDefault) Code() int

Code gets the status code for the disable customer default response

func (*DisableCustomerDefault) Error

func (o *DisableCustomerDefault) Error() string

func (*DisableCustomerDefault) GetPayload

func (o *DisableCustomerDefault) GetPayload() *models.RPCStatus

func (*DisableCustomerDefault) IsClientError

func (o *DisableCustomerDefault) IsClientError() bool

IsClientError returns true when this disable customer default response has a 4xx status code

func (*DisableCustomerDefault) IsCode

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

IsCode returns true when this disable customer default response a status code equal to that given

func (*DisableCustomerDefault) IsRedirect

func (o *DisableCustomerDefault) IsRedirect() bool

IsRedirect returns true when this disable customer default response has a 3xx status code

func (*DisableCustomerDefault) IsServerError

func (o *DisableCustomerDefault) IsServerError() bool

IsServerError returns true when this disable customer default response has a 5xx status code

func (*DisableCustomerDefault) IsSuccess

func (o *DisableCustomerDefault) IsSuccess() bool

IsSuccess returns true when this disable customer default response has a 2xx status code

func (*DisableCustomerDefault) String

func (o *DisableCustomerDefault) String() string

type DisableCustomerOK

type DisableCustomerOK struct {
	Payload models.CustomerspbDisableCustomerResponse
}
DisableCustomerOK describes a response with status code 200, with default header values.

A successful response.

func NewDisableCustomerOK

func NewDisableCustomerOK() *DisableCustomerOK

NewDisableCustomerOK creates a DisableCustomerOK with default headers values

func (*DisableCustomerOK) Error

func (o *DisableCustomerOK) Error() string

func (*DisableCustomerOK) GetPayload

func (*DisableCustomerOK) IsClientError

func (o *DisableCustomerOK) IsClientError() bool

IsClientError returns true when this disable customer o k response has a 4xx status code

func (*DisableCustomerOK) IsCode

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

IsCode returns true when this disable customer o k response a status code equal to that given

func (*DisableCustomerOK) IsRedirect

func (o *DisableCustomerOK) IsRedirect() bool

IsRedirect returns true when this disable customer o k response has a 3xx status code

func (*DisableCustomerOK) IsServerError

func (o *DisableCustomerOK) IsServerError() bool

IsServerError returns true when this disable customer o k response has a 5xx status code

func (*DisableCustomerOK) IsSuccess

func (o *DisableCustomerOK) IsSuccess() bool

IsSuccess returns true when this disable customer o k response has a 2xx status code

func (*DisableCustomerOK) String

func (o *DisableCustomerOK) String() string

type DisableCustomerParams

type DisableCustomerParams struct {

	// Body.
	Body interface{}

	// ID.
	ID string

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

DisableCustomerParams contains all the parameters to send to the API endpoint

for the disable customer operation.

Typically these are written to a http.Request.

func NewDisableCustomerParams

func NewDisableCustomerParams() *DisableCustomerParams

NewDisableCustomerParams creates a new DisableCustomerParams 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 NewDisableCustomerParamsWithContext

func NewDisableCustomerParamsWithContext(ctx context.Context) *DisableCustomerParams

NewDisableCustomerParamsWithContext creates a new DisableCustomerParams object with the ability to set a context for a request.

func NewDisableCustomerParamsWithHTTPClient

func NewDisableCustomerParamsWithHTTPClient(client *http.Client) *DisableCustomerParams

NewDisableCustomerParamsWithHTTPClient creates a new DisableCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewDisableCustomerParamsWithTimeout

func NewDisableCustomerParamsWithTimeout(timeout time.Duration) *DisableCustomerParams

NewDisableCustomerParamsWithTimeout creates a new DisableCustomerParams object with the ability to set a timeout on a request.

func (*DisableCustomerParams) SetBody

func (o *DisableCustomerParams) SetBody(body interface{})

SetBody adds the body to the disable customer params

func (*DisableCustomerParams) SetContext

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

SetContext adds the context to the disable customer params

func (*DisableCustomerParams) SetDefaults

func (o *DisableCustomerParams) SetDefaults()

SetDefaults hydrates default values in the disable customer params (not the query body).

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

func (*DisableCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the disable customer params

func (*DisableCustomerParams) SetID

func (o *DisableCustomerParams) SetID(id string)

SetID adds the id to the disable customer params

func (*DisableCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the disable customer params

func (*DisableCustomerParams) WithBody

func (o *DisableCustomerParams) WithBody(body interface{}) *DisableCustomerParams

WithBody adds the body to the disable customer params

func (*DisableCustomerParams) WithContext

WithContext adds the context to the disable customer params

func (*DisableCustomerParams) WithDefaults

func (o *DisableCustomerParams) WithDefaults() *DisableCustomerParams

WithDefaults hydrates default values in the disable customer params (not the query body).

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

func (*DisableCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the disable customer params

func (*DisableCustomerParams) WithID

WithID adds the id to the disable customer params

func (*DisableCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the disable customer params

func (*DisableCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DisableCustomerReader

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

DisableCustomerReader is a Reader for the DisableCustomer structure.

func (*DisableCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnableCustomerDefault

type EnableCustomerDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
EnableCustomerDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewEnableCustomerDefault

func NewEnableCustomerDefault(code int) *EnableCustomerDefault

NewEnableCustomerDefault creates a EnableCustomerDefault with default headers values

func (*EnableCustomerDefault) Code

func (o *EnableCustomerDefault) Code() int

Code gets the status code for the enable customer default response

func (*EnableCustomerDefault) Error

func (o *EnableCustomerDefault) Error() string

func (*EnableCustomerDefault) GetPayload

func (o *EnableCustomerDefault) GetPayload() *models.RPCStatus

func (*EnableCustomerDefault) IsClientError

func (o *EnableCustomerDefault) IsClientError() bool

IsClientError returns true when this enable customer default response has a 4xx status code

func (*EnableCustomerDefault) IsCode

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

IsCode returns true when this enable customer default response a status code equal to that given

func (*EnableCustomerDefault) IsRedirect

func (o *EnableCustomerDefault) IsRedirect() bool

IsRedirect returns true when this enable customer default response has a 3xx status code

func (*EnableCustomerDefault) IsServerError

func (o *EnableCustomerDefault) IsServerError() bool

IsServerError returns true when this enable customer default response has a 5xx status code

func (*EnableCustomerDefault) IsSuccess

func (o *EnableCustomerDefault) IsSuccess() bool

IsSuccess returns true when this enable customer default response has a 2xx status code

func (*EnableCustomerDefault) String

func (o *EnableCustomerDefault) String() string

type EnableCustomerOK

type EnableCustomerOK struct {
	Payload models.CustomerspbEnableCustomerResponse
}
EnableCustomerOK describes a response with status code 200, with default header values.

A successful response.

func NewEnableCustomerOK

func NewEnableCustomerOK() *EnableCustomerOK

NewEnableCustomerOK creates a EnableCustomerOK with default headers values

func (*EnableCustomerOK) Error

func (o *EnableCustomerOK) Error() string

func (*EnableCustomerOK) GetPayload

func (*EnableCustomerOK) IsClientError

func (o *EnableCustomerOK) IsClientError() bool

IsClientError returns true when this enable customer o k response has a 4xx status code

func (*EnableCustomerOK) IsCode

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

IsCode returns true when this enable customer o k response a status code equal to that given

func (*EnableCustomerOK) IsRedirect

func (o *EnableCustomerOK) IsRedirect() bool

IsRedirect returns true when this enable customer o k response has a 3xx status code

func (*EnableCustomerOK) IsServerError

func (o *EnableCustomerOK) IsServerError() bool

IsServerError returns true when this enable customer o k response has a 5xx status code

func (*EnableCustomerOK) IsSuccess

func (o *EnableCustomerOK) IsSuccess() bool

IsSuccess returns true when this enable customer o k response has a 2xx status code

func (*EnableCustomerOK) String

func (o *EnableCustomerOK) String() string

type EnableCustomerParams

type EnableCustomerParams struct {

	// Body.
	Body interface{}

	// ID.
	ID string

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

EnableCustomerParams contains all the parameters to send to the API endpoint

for the enable customer operation.

Typically these are written to a http.Request.

func NewEnableCustomerParams

func NewEnableCustomerParams() *EnableCustomerParams

NewEnableCustomerParams creates a new EnableCustomerParams 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 NewEnableCustomerParamsWithContext

func NewEnableCustomerParamsWithContext(ctx context.Context) *EnableCustomerParams

NewEnableCustomerParamsWithContext creates a new EnableCustomerParams object with the ability to set a context for a request.

func NewEnableCustomerParamsWithHTTPClient

func NewEnableCustomerParamsWithHTTPClient(client *http.Client) *EnableCustomerParams

NewEnableCustomerParamsWithHTTPClient creates a new EnableCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewEnableCustomerParamsWithTimeout

func NewEnableCustomerParamsWithTimeout(timeout time.Duration) *EnableCustomerParams

NewEnableCustomerParamsWithTimeout creates a new EnableCustomerParams object with the ability to set a timeout on a request.

func (*EnableCustomerParams) SetBody

func (o *EnableCustomerParams) SetBody(body interface{})

SetBody adds the body to the enable customer params

func (*EnableCustomerParams) SetContext

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

SetContext adds the context to the enable customer params

func (*EnableCustomerParams) SetDefaults

func (o *EnableCustomerParams) SetDefaults()

SetDefaults hydrates default values in the enable customer params (not the query body).

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

func (*EnableCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enable customer params

func (*EnableCustomerParams) SetID

func (o *EnableCustomerParams) SetID(id string)

SetID adds the id to the enable customer params

func (*EnableCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the enable customer params

func (*EnableCustomerParams) WithBody

func (o *EnableCustomerParams) WithBody(body interface{}) *EnableCustomerParams

WithBody adds the body to the enable customer params

func (*EnableCustomerParams) WithContext

WithContext adds the context to the enable customer params

func (*EnableCustomerParams) WithDefaults

func (o *EnableCustomerParams) WithDefaults() *EnableCustomerParams

WithDefaults hydrates default values in the enable customer params (not the query body).

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

func (*EnableCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the enable customer params

func (*EnableCustomerParams) WithID

WithID adds the id to the enable customer params

func (*EnableCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the enable customer params

func (*EnableCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EnableCustomerReader

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

EnableCustomerReader is a Reader for the EnableCustomer structure.

func (*EnableCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCustomerDefault

type GetCustomerDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
GetCustomerDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetCustomerDefault

func NewGetCustomerDefault(code int) *GetCustomerDefault

NewGetCustomerDefault creates a GetCustomerDefault with default headers values

func (*GetCustomerDefault) Code

func (o *GetCustomerDefault) Code() int

Code gets the status code for the get customer default response

func (*GetCustomerDefault) Error

func (o *GetCustomerDefault) Error() string

func (*GetCustomerDefault) GetPayload

func (o *GetCustomerDefault) GetPayload() *models.RPCStatus

func (*GetCustomerDefault) IsClientError

func (o *GetCustomerDefault) IsClientError() bool

IsClientError returns true when this get customer default response has a 4xx status code

func (*GetCustomerDefault) IsCode

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

IsCode returns true when this get customer default response a status code equal to that given

func (*GetCustomerDefault) IsRedirect

func (o *GetCustomerDefault) IsRedirect() bool

IsRedirect returns true when this get customer default response has a 3xx status code

func (*GetCustomerDefault) IsServerError

func (o *GetCustomerDefault) IsServerError() bool

IsServerError returns true when this get customer default response has a 5xx status code

func (*GetCustomerDefault) IsSuccess

func (o *GetCustomerDefault) IsSuccess() bool

IsSuccess returns true when this get customer default response has a 2xx status code

func (*GetCustomerDefault) String

func (o *GetCustomerDefault) String() string

type GetCustomerOK

type GetCustomerOK struct {
	Payload *models.CustomerspbGetCustomerResponse
}
GetCustomerOK describes a response with status code 200, with default header values.

A successful response.

func NewGetCustomerOK

func NewGetCustomerOK() *GetCustomerOK

NewGetCustomerOK creates a GetCustomerOK with default headers values

func (*GetCustomerOK) Error

func (o *GetCustomerOK) Error() string

func (*GetCustomerOK) GetPayload

func (*GetCustomerOK) IsClientError

func (o *GetCustomerOK) IsClientError() bool

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

func (*GetCustomerOK) IsCode

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

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

func (*GetCustomerOK) IsRedirect

func (o *GetCustomerOK) IsRedirect() bool

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

func (*GetCustomerOK) IsServerError

func (o *GetCustomerOK) IsServerError() bool

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

func (*GetCustomerOK) IsSuccess

func (o *GetCustomerOK) IsSuccess() bool

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

func (*GetCustomerOK) String

func (o *GetCustomerOK) String() string

type GetCustomerParams

type GetCustomerParams struct {

	// ID.
	ID string

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

GetCustomerParams contains all the parameters to send to the API endpoint

for the get customer operation.

Typically these are written to a http.Request.

func NewGetCustomerParams

func NewGetCustomerParams() *GetCustomerParams

NewGetCustomerParams creates a new GetCustomerParams 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 NewGetCustomerParamsWithContext

func NewGetCustomerParamsWithContext(ctx context.Context) *GetCustomerParams

NewGetCustomerParamsWithContext creates a new GetCustomerParams object with the ability to set a context for a request.

func NewGetCustomerParamsWithHTTPClient

func NewGetCustomerParamsWithHTTPClient(client *http.Client) *GetCustomerParams

NewGetCustomerParamsWithHTTPClient creates a new GetCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewGetCustomerParamsWithTimeout

func NewGetCustomerParamsWithTimeout(timeout time.Duration) *GetCustomerParams

NewGetCustomerParamsWithTimeout creates a new GetCustomerParams object with the ability to set a timeout on a request.

func (*GetCustomerParams) SetContext

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

SetContext adds the context to the get customer params

func (*GetCustomerParams) SetDefaults

func (o *GetCustomerParams) SetDefaults()

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

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

func (*GetCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get customer params

func (*GetCustomerParams) SetID

func (o *GetCustomerParams) SetID(id string)

SetID adds the id to the get customer params

func (*GetCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the get customer params

func (*GetCustomerParams) WithContext

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

WithContext adds the context to the get customer params

func (*GetCustomerParams) WithDefaults

func (o *GetCustomerParams) WithDefaults() *GetCustomerParams

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

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

func (*GetCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get customer params

func (*GetCustomerParams) WithID

WithID adds the id to the get customer params

func (*GetCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the get customer params

func (*GetCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCustomerReader

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

GetCustomerReader is a Reader for the GetCustomer structure.

func (*GetCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RegisterCustomerDefault

type RegisterCustomerDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
RegisterCustomerDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewRegisterCustomerDefault

func NewRegisterCustomerDefault(code int) *RegisterCustomerDefault

NewRegisterCustomerDefault creates a RegisterCustomerDefault with default headers values

func (*RegisterCustomerDefault) Code

func (o *RegisterCustomerDefault) Code() int

Code gets the status code for the register customer default response

func (*RegisterCustomerDefault) Error

func (o *RegisterCustomerDefault) Error() string

func (*RegisterCustomerDefault) GetPayload

func (o *RegisterCustomerDefault) GetPayload() *models.RPCStatus

func (*RegisterCustomerDefault) IsClientError

func (o *RegisterCustomerDefault) IsClientError() bool

IsClientError returns true when this register customer default response has a 4xx status code

func (*RegisterCustomerDefault) IsCode

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

IsCode returns true when this register customer default response a status code equal to that given

func (*RegisterCustomerDefault) IsRedirect

func (o *RegisterCustomerDefault) IsRedirect() bool

IsRedirect returns true when this register customer default response has a 3xx status code

func (*RegisterCustomerDefault) IsServerError

func (o *RegisterCustomerDefault) IsServerError() bool

IsServerError returns true when this register customer default response has a 5xx status code

func (*RegisterCustomerDefault) IsSuccess

func (o *RegisterCustomerDefault) IsSuccess() bool

IsSuccess returns true when this register customer default response has a 2xx status code

func (*RegisterCustomerDefault) String

func (o *RegisterCustomerDefault) String() string

type RegisterCustomerOK

type RegisterCustomerOK struct {
	Payload *models.CustomerspbRegisterCustomerResponse
}
RegisterCustomerOK describes a response with status code 200, with default header values.

A successful response.

func NewRegisterCustomerOK

func NewRegisterCustomerOK() *RegisterCustomerOK

NewRegisterCustomerOK creates a RegisterCustomerOK with default headers values

func (*RegisterCustomerOK) Error

func (o *RegisterCustomerOK) Error() string

func (*RegisterCustomerOK) GetPayload

func (*RegisterCustomerOK) IsClientError

func (o *RegisterCustomerOK) IsClientError() bool

IsClientError returns true when this register customer o k response has a 4xx status code

func (*RegisterCustomerOK) IsCode

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

IsCode returns true when this register customer o k response a status code equal to that given

func (*RegisterCustomerOK) IsRedirect

func (o *RegisterCustomerOK) IsRedirect() bool

IsRedirect returns true when this register customer o k response has a 3xx status code

func (*RegisterCustomerOK) IsServerError

func (o *RegisterCustomerOK) IsServerError() bool

IsServerError returns true when this register customer o k response has a 5xx status code

func (*RegisterCustomerOK) IsSuccess

func (o *RegisterCustomerOK) IsSuccess() bool

IsSuccess returns true when this register customer o k response has a 2xx status code

func (*RegisterCustomerOK) String

func (o *RegisterCustomerOK) String() string

type RegisterCustomerParams

type RegisterCustomerParams struct {

	// Body.
	Body *models.CustomerspbRegisterCustomerRequest

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

RegisterCustomerParams contains all the parameters to send to the API endpoint

for the register customer operation.

Typically these are written to a http.Request.

func NewRegisterCustomerParams

func NewRegisterCustomerParams() *RegisterCustomerParams

NewRegisterCustomerParams creates a new RegisterCustomerParams 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 NewRegisterCustomerParamsWithContext

func NewRegisterCustomerParamsWithContext(ctx context.Context) *RegisterCustomerParams

NewRegisterCustomerParamsWithContext creates a new RegisterCustomerParams object with the ability to set a context for a request.

func NewRegisterCustomerParamsWithHTTPClient

func NewRegisterCustomerParamsWithHTTPClient(client *http.Client) *RegisterCustomerParams

NewRegisterCustomerParamsWithHTTPClient creates a new RegisterCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewRegisterCustomerParamsWithTimeout

func NewRegisterCustomerParamsWithTimeout(timeout time.Duration) *RegisterCustomerParams

NewRegisterCustomerParamsWithTimeout creates a new RegisterCustomerParams object with the ability to set a timeout on a request.

func (*RegisterCustomerParams) SetBody

SetBody adds the body to the register customer params

func (*RegisterCustomerParams) SetContext

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

SetContext adds the context to the register customer params

func (*RegisterCustomerParams) SetDefaults

func (o *RegisterCustomerParams) SetDefaults()

SetDefaults hydrates default values in the register customer params (not the query body).

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

func (*RegisterCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the register customer params

func (*RegisterCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the register customer params

func (*RegisterCustomerParams) WithBody

WithBody adds the body to the register customer params

func (*RegisterCustomerParams) WithContext

WithContext adds the context to the register customer params

func (*RegisterCustomerParams) WithDefaults

WithDefaults hydrates default values in the register customer params (not the query body).

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

func (*RegisterCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the register customer params

func (*RegisterCustomerParams) WithTimeout

WithTimeout adds the timeout to the register customer params

func (*RegisterCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RegisterCustomerReader

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

RegisterCustomerReader is a Reader for the RegisterCustomer structure.

func (*RegisterCustomerReader) ReadResponse

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