Documentation ¶
Index ¶
- type ChangeSmsNumberDefault
- type ChangeSmsNumberOK
- type ChangeSmsNumberParams
- func NewChangeSmsNumberParams() *ChangeSmsNumberParams
- func NewChangeSmsNumberParamsWithContext(ctx context.Context) *ChangeSmsNumberParams
- func NewChangeSmsNumberParamsWithHTTPClient(client *http.Client) *ChangeSmsNumberParams
- func NewChangeSmsNumberParamsWithTimeout(timeout time.Duration) *ChangeSmsNumberParams
- func (o *ChangeSmsNumberParams) SetBody(body *models.ChangeSmsNumberParamsBody)
- func (o *ChangeSmsNumberParams) SetContext(ctx context.Context)
- func (o *ChangeSmsNumberParams) SetDefaults()
- func (o *ChangeSmsNumberParams) SetHTTPClient(client *http.Client)
- func (o *ChangeSmsNumberParams) SetID(id string)
- func (o *ChangeSmsNumberParams) SetTimeout(timeout time.Duration)
- func (o *ChangeSmsNumberParams) WithBody(body *models.ChangeSmsNumberParamsBody) *ChangeSmsNumberParams
- func (o *ChangeSmsNumberParams) WithContext(ctx context.Context) *ChangeSmsNumberParams
- func (o *ChangeSmsNumberParams) WithDefaults() *ChangeSmsNumberParams
- func (o *ChangeSmsNumberParams) WithHTTPClient(client *http.Client) *ChangeSmsNumberParams
- func (o *ChangeSmsNumberParams) WithID(id string) *ChangeSmsNumberParams
- func (o *ChangeSmsNumberParams) WithTimeout(timeout time.Duration) *ChangeSmsNumberParams
- func (o *ChangeSmsNumberParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ChangeSmsNumberReader
- type Client
- func (a *Client) ChangeSmsNumber(params *ChangeSmsNumberParams, opts ...ClientOption) (*ChangeSmsNumberOK, error)
- func (a *Client) CreateCustomer(params *CreateCustomerParams, opts ...ClientOption) (*CreateCustomerOK, error)
- func (a *Client) DisableCustomer(params *DisableCustomerParams, opts ...ClientOption) (*DisableCustomerOK, error)
- func (a *Client) EnableCustomer(params *EnableCustomerParams, opts ...ClientOption) (*EnableCustomerOK, error)
- func (a *Client) GetCustomer(params *GetCustomerParams, opts ...ClientOption) (*GetCustomerOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateCustomerDefault
- type CreateCustomerOK
- type CreateCustomerParams
- func NewCreateCustomerParams() *CreateCustomerParams
- func NewCreateCustomerParamsWithContext(ctx context.Context) *CreateCustomerParams
- func NewCreateCustomerParamsWithHTTPClient(client *http.Client) *CreateCustomerParams
- func NewCreateCustomerParamsWithTimeout(timeout time.Duration) *CreateCustomerParams
- func (o *CreateCustomerParams) SetBody(body *models.CustomerspbRegisterCustomerRequest)
- func (o *CreateCustomerParams) SetContext(ctx context.Context)
- func (o *CreateCustomerParams) SetDefaults()
- func (o *CreateCustomerParams) SetHTTPClient(client *http.Client)
- func (o *CreateCustomerParams) SetTimeout(timeout time.Duration)
- func (o *CreateCustomerParams) WithBody(body *models.CustomerspbRegisterCustomerRequest) *CreateCustomerParams
- func (o *CreateCustomerParams) WithContext(ctx context.Context) *CreateCustomerParams
- func (o *CreateCustomerParams) WithDefaults() *CreateCustomerParams
- func (o *CreateCustomerParams) WithHTTPClient(client *http.Client) *CreateCustomerParams
- func (o *CreateCustomerParams) WithTimeout(timeout time.Duration) *CreateCustomerParams
- func (o *CreateCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCustomerReader
- type DisableCustomerDefault
- type DisableCustomerOK
- type DisableCustomerParams
- func NewDisableCustomerParams() *DisableCustomerParams
- func NewDisableCustomerParamsWithContext(ctx context.Context) *DisableCustomerParams
- func NewDisableCustomerParamsWithHTTPClient(client *http.Client) *DisableCustomerParams
- func NewDisableCustomerParamsWithTimeout(timeout time.Duration) *DisableCustomerParams
- func (o *DisableCustomerParams) SetBody(body interface{})
- func (o *DisableCustomerParams) SetContext(ctx context.Context)
- func (o *DisableCustomerParams) SetDefaults()
- func (o *DisableCustomerParams) SetHTTPClient(client *http.Client)
- func (o *DisableCustomerParams) SetID(id string)
- func (o *DisableCustomerParams) SetTimeout(timeout time.Duration)
- func (o *DisableCustomerParams) WithBody(body interface{}) *DisableCustomerParams
- func (o *DisableCustomerParams) WithContext(ctx context.Context) *DisableCustomerParams
- func (o *DisableCustomerParams) WithDefaults() *DisableCustomerParams
- func (o *DisableCustomerParams) WithHTTPClient(client *http.Client) *DisableCustomerParams
- func (o *DisableCustomerParams) WithID(id string) *DisableCustomerParams
- func (o *DisableCustomerParams) WithTimeout(timeout time.Duration) *DisableCustomerParams
- func (o *DisableCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DisableCustomerReader
- type EnableCustomerDefault
- type EnableCustomerOK
- type EnableCustomerParams
- func NewEnableCustomerParams() *EnableCustomerParams
- func NewEnableCustomerParamsWithContext(ctx context.Context) *EnableCustomerParams
- func NewEnableCustomerParamsWithHTTPClient(client *http.Client) *EnableCustomerParams
- func NewEnableCustomerParamsWithTimeout(timeout time.Duration) *EnableCustomerParams
- func (o *EnableCustomerParams) SetBody(body interface{})
- func (o *EnableCustomerParams) SetContext(ctx context.Context)
- func (o *EnableCustomerParams) SetDefaults()
- func (o *EnableCustomerParams) SetHTTPClient(client *http.Client)
- func (o *EnableCustomerParams) SetID(id string)
- func (o *EnableCustomerParams) SetTimeout(timeout time.Duration)
- func (o *EnableCustomerParams) WithBody(body interface{}) *EnableCustomerParams
- func (o *EnableCustomerParams) WithContext(ctx context.Context) *EnableCustomerParams
- func (o *EnableCustomerParams) WithDefaults() *EnableCustomerParams
- func (o *EnableCustomerParams) WithHTTPClient(client *http.Client) *EnableCustomerParams
- func (o *EnableCustomerParams) WithID(id string) *EnableCustomerParams
- func (o *EnableCustomerParams) WithTimeout(timeout time.Duration) *EnableCustomerParams
- func (o *EnableCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EnableCustomerReader
- type GetCustomerDefault
- type GetCustomerOK
- type GetCustomerParams
- func (o *GetCustomerParams) SetContext(ctx context.Context)
- func (o *GetCustomerParams) SetDefaults()
- func (o *GetCustomerParams) SetHTTPClient(client *http.Client)
- func (o *GetCustomerParams) SetID(id string)
- func (o *GetCustomerParams) SetTimeout(timeout time.Duration)
- func (o *GetCustomerParams) WithContext(ctx context.Context) *GetCustomerParams
- func (o *GetCustomerParams) WithDefaults() *GetCustomerParams
- func (o *GetCustomerParams) WithHTTPClient(client *http.Client) *GetCustomerParams
- func (o *GetCustomerParams) WithID(id string) *GetCustomerParams
- func (o *GetCustomerParams) WithTimeout(timeout time.Duration) *GetCustomerParams
- func (o *GetCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCustomerReader
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 ¶
func (o *ChangeSmsNumberOK) GetPayload() models.CustomerspbChangeSmsNumberResponse
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 ¶
func (o *ChangeSmsNumberParams) SetBody(body *models.ChangeSmsNumberParamsBody)
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 ¶
func (o *ChangeSmsNumberParams) WithBody(body *models.ChangeSmsNumberParamsBody) *ChangeSmsNumberParams
WithBody adds the body to the change sms number params
func (*ChangeSmsNumberParams) WithContext ¶
func (o *ChangeSmsNumberParams) WithContext(ctx context.Context) *ChangeSmsNumberParams
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 ¶
func (o *ChangeSmsNumberParams) WithID(id string) *ChangeSmsNumberParams
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 ¶
func (o *CreateCustomerOK) GetPayload() *models.CustomerspbRegisterCustomerResponse
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 ¶
func (o *CreateCustomerParams) SetBody(body *models.CustomerspbRegisterCustomerRequest)
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 ¶
func (o *CreateCustomerParams) WithBody(body *models.CustomerspbRegisterCustomerRequest) *CreateCustomerParams
WithBody adds the body to the create customer params
func (*CreateCustomerParams) WithContext ¶
func (o *CreateCustomerParams) WithContext(ctx context.Context) *CreateCustomerParams
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 ¶
func (o *DisableCustomerOK) GetPayload() models.CustomerspbDisableCustomerResponse
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 ¶
func (o *DisableCustomerParams) WithContext(ctx context.Context) *DisableCustomerParams
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 ¶
func (o *DisableCustomerParams) WithID(id string) *DisableCustomerParams
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 ¶
func (o *EnableCustomerOK) GetPayload() models.CustomerspbEnableCustomerResponse
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 ¶
func (o *EnableCustomerParams) WithContext(ctx context.Context) *EnableCustomerParams
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 ¶
func (o *EnableCustomerParams) WithID(id string) *EnableCustomerParams
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 ¶
func (o *GetCustomerOK) GetPayload() *models.CustomerspbGetCustomerResponse
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 ¶
func (o *GetCustomerParams) WithID(id string) *GetCustomerParams
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.
Source Files ¶
- change_sms_number_parameters.go
- change_sms_number_responses.go
- create_customer_parameters.go
- create_customer_responses.go
- customer_client.go
- disable_customer_parameters.go
- disable_customer_responses.go
- enable_customer_parameters.go
- enable_customer_responses.go
- get_customer_parameters.go
- get_customer_responses.go