customers

package
Version: v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 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 (*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 ClientService added in v0.26.0

type ClientService interface {
	Create(params *CreateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCreated, error)

	GetID(params *GetIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetIDOK, 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 customers API 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

func (*CreateCreated) GetPayload added in v0.26.0

func (o *CreateCreated) GetPayload() *models.Customer

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

func (*CreateDefault) GetPayload added in v0.26.0

func (o *CreateDefault) GetPayload() *models.Error

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

func (*GetIDDefault) GetPayload added in v0.26.0

func (o *GetIDDefault) GetPayload() *models.Error

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

func (*GetIDNotFound) GetPayload added in v0.26.0

func (o *GetIDNotFound) GetPayload() *models.Error

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

func (*GetIDOK) GetPayload added in v0.26.0

func (o *GetIDOK) GetPayload() *models.Customer

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

func (*GetIDUnauthorized) GetPayload added in v0.26.0

func (o *GetIDUnauthorized) GetPayload() *models.Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL