Documentation ¶
Index ¶
- type Client
- type ClientService
- type CreateCustomerTokenOK
- type CreateCustomerTokenParams
- func NewCreateCustomerTokenParams() *CreateCustomerTokenParams
- func NewCreateCustomerTokenParamsWithContext(ctx context.Context) *CreateCustomerTokenParams
- func NewCreateCustomerTokenParamsWithHTTPClient(client *http.Client) *CreateCustomerTokenParams
- func NewCreateCustomerTokenParamsWithTimeout(timeout time.Duration) *CreateCustomerTokenParams
- func (o *CreateCustomerTokenParams) SetContext(ctx context.Context)
- func (o *CreateCustomerTokenParams) SetGrantType(grantType string)
- func (o *CreateCustomerTokenParams) SetHTTPClient(client *http.Client)
- func (o *CreateCustomerTokenParams) SetPassword(password string)
- func (o *CreateCustomerTokenParams) SetScope(scope string)
- func (o *CreateCustomerTokenParams) SetTimeout(timeout time.Duration)
- func (o *CreateCustomerTokenParams) SetUsername(username string)
- func (o *CreateCustomerTokenParams) WithContext(ctx context.Context) *CreateCustomerTokenParams
- func (o *CreateCustomerTokenParams) WithGrantType(grantType string) *CreateCustomerTokenParams
- func (o *CreateCustomerTokenParams) WithHTTPClient(client *http.Client) *CreateCustomerTokenParams
- func (o *CreateCustomerTokenParams) WithPassword(password string) *CreateCustomerTokenParams
- func (o *CreateCustomerTokenParams) WithScope(scope string) *CreateCustomerTokenParams
- func (o *CreateCustomerTokenParams) WithTimeout(timeout time.Duration) *CreateCustomerTokenParams
- func (o *CreateCustomerTokenParams) WithUsername(username string) *CreateCustomerTokenParams
- func (o *CreateCustomerTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCustomerTokenReader
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
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
func (o *CreateCustomerTokenParams) WithContext(ctx context.Context) *CreateCustomerTokenParams
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
func (o *CreateCustomerTokenParams) WithScope(scope string) *CreateCustomerTokenParams
WithScope adds the scope to the create customer token params
func (*CreateCustomerTokenParams) WithTimeout ¶ added in v1.2.0
func (o *CreateCustomerTokenParams) WithTimeout(timeout time.Duration) *CreateCustomerTokenParams
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
func (o *CreateCustomerTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.