Documentation ¶
Index ¶
- type Client
- type CreateCreated
- type CreateDefault
- type CreateParams
- func (o *CreateParams) SetContext(ctx context.Context)
- func (o *CreateParams) SetHTTPClient(client *http.Client)
- func (o *CreateParams) SetInfo(info *models.Customer)
- func (o *CreateParams) SetTimeout(timeout time.Duration)
- func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
- func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
- func (o *CreateParams) WithInfo(info *models.Customer) *CreateParams
- func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
- func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateReader
- type GetIDDefault
- type GetIDNotFound
- type GetIDOK
- type GetIDParams
- func (o *GetIDParams) SetContext(ctx context.Context)
- func (o *GetIDParams) SetHTTPClient(client *http.Client)
- func (o *GetIDParams) SetInfo(info *models.SocialID)
- func (o *GetIDParams) SetTimeout(timeout time.Duration)
- func (o *GetIDParams) WithContext(ctx context.Context) *GetIDParams
- func (o *GetIDParams) WithHTTPClient(client *http.Client) *GetIDParams
- func (o *GetIDParams) WithInfo(info *models.SocialID) *GetIDParams
- func (o *GetIDParams) WithTimeout(timeout time.Duration) *GetIDParams
- func (o *GetIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetIDReader
- type GetIDUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for customers API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new customers API client.
func (*Client) Create ¶
func (a *Client) Create(params *CreateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCreated, error)
Create creates a new customer to track
func (*Client) GetID ¶
func (a *Client) GetID(params *GetIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetIDOK, error)
GetID gets a customer Id given an s s n
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateCreated ¶
CreateCreated handles this case with default header values.
created
func NewCreateCreated ¶
func NewCreateCreated() *CreateCreated
NewCreateCreated creates a CreateCreated with default headers values
func (*CreateCreated) Error ¶
func (o *CreateCreated) Error() string
type CreateDefault ¶
CreateDefault handles this case with default header values.
error
func NewCreateDefault ¶
func NewCreateDefault(code int) *CreateDefault
NewCreateDefault creates a CreateDefault with default headers values
func (*CreateDefault) Code ¶
func (o *CreateDefault) Code() int
Code gets the status code for the create default response
func (*CreateDefault) Error ¶
func (o *CreateDefault) Error() string
type CreateParams ¶
type CreateParams struct { /*Info*/ Info *models.Customer Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateParams contains all the parameters to send to the API endpoint for the create operation typically these are written to a http.Request
func NewCreateParams ¶
func NewCreateParams() *CreateParams
NewCreateParams creates a new CreateParams object with the default values initialized.
func NewCreateParamsWithContext ¶
func NewCreateParamsWithContext(ctx context.Context) *CreateParams
NewCreateParamsWithContext creates a new CreateParams object with the default values initialized, and the ability to set a context for a request
func NewCreateParamsWithHTTPClient ¶
func NewCreateParamsWithHTTPClient(client *http.Client) *CreateParams
NewCreateParamsWithHTTPClient creates a new CreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateParamsWithTimeout ¶
func NewCreateParamsWithTimeout(timeout time.Duration) *CreateParams
NewCreateParamsWithTimeout creates a new CreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateParams) SetContext ¶
func (o *CreateParams) SetContext(ctx context.Context)
SetContext adds the context to the create params
func (*CreateParams) SetHTTPClient ¶
func (o *CreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create params
func (*CreateParams) SetInfo ¶
func (o *CreateParams) SetInfo(info *models.Customer)
SetInfo adds the info to the create params
func (*CreateParams) SetTimeout ¶
func (o *CreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create params
func (*CreateParams) WithContext ¶
func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
WithContext adds the context to the create params
func (*CreateParams) WithHTTPClient ¶
func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
WithHTTPClient adds the HTTPClient to the create params
func (*CreateParams) WithInfo ¶
func (o *CreateParams) WithInfo(info *models.Customer) *CreateParams
WithInfo adds the info to the create params
func (*CreateParams) WithTimeout ¶
func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
WithTimeout adds the timeout to the create params
func (*CreateParams) WriteToRequest ¶
func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateReader ¶
type CreateReader struct {
// contains filtered or unexported fields
}
CreateReader is a Reader for the Create structure.
func (*CreateReader) ReadResponse ¶
func (o *CreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetIDDefault ¶
GetIDDefault handles this case with default header values.
error
func NewGetIDDefault ¶
func NewGetIDDefault(code int) *GetIDDefault
NewGetIDDefault creates a GetIDDefault with default headers values
func (*GetIDDefault) Code ¶
func (o *GetIDDefault) Code() int
Code gets the status code for the get Id default response
func (*GetIDDefault) Error ¶
func (o *GetIDDefault) Error() string
type GetIDNotFound ¶
GetIDNotFound handles this case with default header values.
resource not found
func NewGetIDNotFound ¶
func NewGetIDNotFound() *GetIDNotFound
NewGetIDNotFound creates a GetIDNotFound with default headers values
func (*GetIDNotFound) Error ¶
func (o *GetIDNotFound) Error() string
type GetIDOK ¶
GetIDOK handles this case with default header values.
OK
func NewGetIDOK ¶
func NewGetIDOK() *GetIDOK
NewGetIDOK creates a GetIDOK with default headers values
type GetIDParams ¶
type GetIDParams struct { /*Info*/ Info *models.SocialID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetIDParams contains all the parameters to send to the API endpoint for the get Id operation typically these are written to a http.Request
func NewGetIDParams ¶
func NewGetIDParams() *GetIDParams
NewGetIDParams creates a new GetIDParams object with the default values initialized.
func NewGetIDParamsWithContext ¶
func NewGetIDParamsWithContext(ctx context.Context) *GetIDParams
NewGetIDParamsWithContext creates a new GetIDParams object with the default values initialized, and the ability to set a context for a request
func NewGetIDParamsWithHTTPClient ¶
func NewGetIDParamsWithHTTPClient(client *http.Client) *GetIDParams
NewGetIDParamsWithHTTPClient creates a new GetIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetIDParamsWithTimeout ¶
func NewGetIDParamsWithTimeout(timeout time.Duration) *GetIDParams
NewGetIDParamsWithTimeout creates a new GetIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetIDParams) SetContext ¶
func (o *GetIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get Id params
func (*GetIDParams) SetHTTPClient ¶
func (o *GetIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get Id params
func (*GetIDParams) SetInfo ¶
func (o *GetIDParams) SetInfo(info *models.SocialID)
SetInfo adds the info to the get Id params
func (*GetIDParams) SetTimeout ¶
func (o *GetIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get Id params
func (*GetIDParams) WithContext ¶
func (o *GetIDParams) WithContext(ctx context.Context) *GetIDParams
WithContext adds the context to the get Id params
func (*GetIDParams) WithHTTPClient ¶
func (o *GetIDParams) WithHTTPClient(client *http.Client) *GetIDParams
WithHTTPClient adds the HTTPClient to the get Id params
func (*GetIDParams) WithInfo ¶
func (o *GetIDParams) WithInfo(info *models.SocialID) *GetIDParams
WithInfo adds the info to the get Id params
func (*GetIDParams) WithTimeout ¶
func (o *GetIDParams) WithTimeout(timeout time.Duration) *GetIDParams
WithTimeout adds the timeout to the get Id params
func (*GetIDParams) WriteToRequest ¶
func (o *GetIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetIDReader ¶
type GetIDReader struct {
// contains filtered or unexported fields
}
GetIDReader is a Reader for the GetID structure.
func (*GetIDReader) ReadResponse ¶
func (o *GetIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetIDUnauthorized ¶
type GetIDUnauthorized struct {
}GetIDUnauthorized handles this case with default header values.
unauthorized
func NewGetIDUnauthorized ¶
func NewGetIDUnauthorized() *GetIDUnauthorized
NewGetIDUnauthorized creates a GetIDUnauthorized with default headers values
func (*GetIDUnauthorized) Error ¶
func (o *GetIDUnauthorized) Error() string