customer_token

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 customer token API

func (*Client) CreateCustomerToken added in v1.2.0

func (a *Client) CreateCustomerToken(params *CreateCustomerTokenParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCustomerTokenOK, error)

CreateCustomerToken create customer token API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CreateCustomerToken(params *CreateCustomerTokenParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCustomerTokenOK, 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 token API client.

type CreateCustomerTokenOK added in v1.2.0

type CreateCustomerTokenOK struct {
	Payload *models.Token
}

CreateCustomerTokenOK handles this case with default header values.

Success

func NewCreateCustomerTokenOK added in v1.2.0

func NewCreateCustomerTokenOK() *CreateCustomerTokenOK

NewCreateCustomerTokenOK creates a CreateCustomerTokenOK with default headers values

func (*CreateCustomerTokenOK) Error added in v1.2.0

func (o *CreateCustomerTokenOK) Error() string

func (*CreateCustomerTokenOK) GetPayload added in v1.2.0

func (o *CreateCustomerTokenOK) GetPayload() *models.Token

type CreateCustomerTokenParams added in v1.2.0

type CreateCustomerTokenParams struct {

	/*GrantType*/
	GrantType string
	/*Password*/
	Password string
	/*Scope*/
	Scope string
	/*Username*/
	Username string

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

CreateCustomerTokenParams contains all the parameters to send to the API endpoint for the create customer token operation typically these are written to a http.Request

func NewCreateCustomerTokenParams added in v1.2.0

func NewCreateCustomerTokenParams() *CreateCustomerTokenParams

NewCreateCustomerTokenParams creates a new CreateCustomerTokenParams object with the default values initialized.

func NewCreateCustomerTokenParamsWithContext added in v1.2.0

func NewCreateCustomerTokenParamsWithContext(ctx context.Context) *CreateCustomerTokenParams

NewCreateCustomerTokenParamsWithContext creates a new CreateCustomerTokenParams object with the default values initialized, and the ability to set a context for a request

func NewCreateCustomerTokenParamsWithHTTPClient added in v1.2.0

func NewCreateCustomerTokenParamsWithHTTPClient(client *http.Client) *CreateCustomerTokenParams

NewCreateCustomerTokenParamsWithHTTPClient creates a new CreateCustomerTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateCustomerTokenParamsWithTimeout added in v1.2.0

func NewCreateCustomerTokenParamsWithTimeout(timeout time.Duration) *CreateCustomerTokenParams

NewCreateCustomerTokenParamsWithTimeout creates a new CreateCustomerTokenParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateCustomerTokenParams) SetContext added in v1.2.0

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

SetContext adds the context to the create customer token params

func (*CreateCustomerTokenParams) SetGrantType added in v1.2.0

func (o *CreateCustomerTokenParams) SetGrantType(grantType string)

SetGrantType adds the grantType to the create customer token params

func (*CreateCustomerTokenParams) SetHTTPClient added in v1.2.0

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

SetHTTPClient adds the HTTPClient to the create customer token params

func (*CreateCustomerTokenParams) SetPassword added in v1.2.0

func (o *CreateCustomerTokenParams) SetPassword(password string)

SetPassword adds the password to the create customer token params

func (*CreateCustomerTokenParams) SetScope added in v1.2.0

func (o *CreateCustomerTokenParams) SetScope(scope string)

SetScope adds the scope to the create customer token params

func (*CreateCustomerTokenParams) SetTimeout added in v1.2.0

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

SetTimeout adds the timeout to the create customer token params

func (*CreateCustomerTokenParams) SetUsername added in v1.2.0

func (o *CreateCustomerTokenParams) SetUsername(username string)

SetUsername adds the username to the create customer token params

func (*CreateCustomerTokenParams) WithContext added in v1.2.0

WithContext adds the context to the create customer token params

func (*CreateCustomerTokenParams) WithGrantType added in v1.2.0

func (o *CreateCustomerTokenParams) WithGrantType(grantType string) *CreateCustomerTokenParams

WithGrantType adds the grantType to the create customer token params

func (*CreateCustomerTokenParams) WithHTTPClient added in v1.2.0

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

WithHTTPClient adds the HTTPClient to the create customer token params

func (*CreateCustomerTokenParams) WithPassword added in v1.2.0

func (o *CreateCustomerTokenParams) WithPassword(password string) *CreateCustomerTokenParams

WithPassword adds the password to the create customer token params

func (*CreateCustomerTokenParams) WithScope added in v1.2.0

WithScope adds the scope to the create customer token params

func (*CreateCustomerTokenParams) WithTimeout added in v1.2.0

WithTimeout adds the timeout to the create customer token params

func (*CreateCustomerTokenParams) WithUsername added in v1.2.0

func (o *CreateCustomerTokenParams) WithUsername(username string) *CreateCustomerTokenParams

WithUsername adds the username to the create customer token params

func (*CreateCustomerTokenParams) WriteToRequest added in v1.2.0

WriteToRequest writes these params to a swagger request

type CreateCustomerTokenReader added in v1.2.0

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

CreateCustomerTokenReader is a Reader for the CreateCustomerToken structure.

func (*CreateCustomerTokenReader) ReadResponse added in v1.2.0

func (o *CreateCustomerTokenReader) 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