customer

package
v0.0.0-...-0ebfa01 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 10 Imported by: 1

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

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

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) CreateCustomer

func (a *Client) CreateCustomer(params *CreateCustomerParams, opts ...ClientOption) (*CreateCustomerOK, error)

CreateCustomer creates a new customer

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) 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)

	CreateCustomer(params *CreateCustomerParams, opts ...ClientOption) (*CreateCustomerOK, error)

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

	GetCustomer(params *GetCustomerParams, opts ...ClientOption) (*GetCustomerOK, 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 CreateCustomerDefault

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

An unexpected error response.

func NewCreateCustomerDefault

func NewCreateCustomerDefault(code int) *CreateCustomerDefault

NewCreateCustomerDefault creates a CreateCustomerDefault with default headers values

func (*CreateCustomerDefault) Code

func (o *CreateCustomerDefault) Code() int

Code gets the status code for the create customer default response

func (*CreateCustomerDefault) Error

func (o *CreateCustomerDefault) Error() string

func (*CreateCustomerDefault) GetPayload

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

type CreateCustomerOK

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

A successful response.

func NewCreateCustomerOK

func NewCreateCustomerOK() *CreateCustomerOK

NewCreateCustomerOK creates a CreateCustomerOK with default headers values

func (*CreateCustomerOK) Error

func (o *CreateCustomerOK) Error() string

func (*CreateCustomerOK) GetPayload

type CreateCustomerParams

type CreateCustomerParams struct {

	// Body.
	Body *models.CustomerspbRegisterCustomerRequest

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

CreateCustomerParams contains all the parameters to send to the API endpoint

for the create customer operation.

Typically these are written to a http.Request.

func NewCreateCustomerParams

func NewCreateCustomerParams() *CreateCustomerParams

NewCreateCustomerParams creates a new CreateCustomerParams 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 NewCreateCustomerParamsWithContext

func NewCreateCustomerParamsWithContext(ctx context.Context) *CreateCustomerParams

NewCreateCustomerParamsWithContext creates a new CreateCustomerParams object with the ability to set a context for a request.

func NewCreateCustomerParamsWithHTTPClient

func NewCreateCustomerParamsWithHTTPClient(client *http.Client) *CreateCustomerParams

NewCreateCustomerParamsWithHTTPClient creates a new CreateCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewCreateCustomerParamsWithTimeout

func NewCreateCustomerParamsWithTimeout(timeout time.Duration) *CreateCustomerParams

NewCreateCustomerParamsWithTimeout creates a new CreateCustomerParams object with the ability to set a timeout on a request.

func (*CreateCustomerParams) SetBody

SetBody adds the body to the create customer params

func (*CreateCustomerParams) SetContext

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

SetContext adds the context to the create customer params

func (*CreateCustomerParams) SetDefaults

func (o *CreateCustomerParams) SetDefaults()

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

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

func (*CreateCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create customer params

func (*CreateCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the create customer params

func (*CreateCustomerParams) WithBody

WithBody adds the body to the create customer params

func (*CreateCustomerParams) WithContext

WithContext adds the context to the create customer params

func (*CreateCustomerParams) WithDefaults

func (o *CreateCustomerParams) WithDefaults() *CreateCustomerParams

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

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

func (*CreateCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create customer params

func (*CreateCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the create customer params

func (*CreateCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateCustomerReader

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

CreateCustomerReader is a Reader for the CreateCustomer structure.

func (*CreateCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

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

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

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

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

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL