customers

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

type CreateCreated struct {
	Payload *models.Customer
}

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

type CreateDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type GetIDDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type GetIDNotFound struct {
	Payload *models.Error
}

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

type GetIDOK struct {
	Payload *models.Customer
}

GetIDOK handles this case with default header values.

OK

func NewGetIDOK

func NewGetIDOK() *GetIDOK

NewGetIDOK creates a GetIDOK with default headers values

func (*GetIDOK) Error

func (o *GetIDOK) Error() string

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 {
	Payload *models.Error
}

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

Jump to

Keyboard shortcuts

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