Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type PostCustomerTokenOK
- type PostCustomerTokenParams
- func NewPostCustomerTokenParams() *PostCustomerTokenParams
- func NewPostCustomerTokenParamsWithContext(ctx context.Context) *PostCustomerTokenParams
- func NewPostCustomerTokenParamsWithHTTPClient(client *http.Client) *PostCustomerTokenParams
- func NewPostCustomerTokenParamsWithTimeout(timeout time.Duration) *PostCustomerTokenParams
- func (o *PostCustomerTokenParams) SetContext(ctx context.Context)
- func (o *PostCustomerTokenParams) SetDefaults()
- func (o *PostCustomerTokenParams) SetHTTPClient(client *http.Client)
- func (o *PostCustomerTokenParams) SetTimeout(timeout time.Duration)
- func (o *PostCustomerTokenParams) WithContext(ctx context.Context) *PostCustomerTokenParams
- func (o *PostCustomerTokenParams) WithDefaults() *PostCustomerTokenParams
- func (o *PostCustomerTokenParams) WithHTTPClient(client *http.Client) *PostCustomerTokenParams
- func (o *PostCustomerTokenParams) WithTimeout(timeout time.Duration) *PostCustomerTokenParams
- func (o *PostCustomerTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostCustomerTokenReader
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) PostCustomerToken ¶
func (a *Client) PostCustomerToken(params *PostCustomerTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCustomerTokenOK, error)
PostCustomerToken post customer token API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { PostCustomerToken(params *PostCustomerTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCustomerTokenOK, 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 PostCustomerTokenOK ¶
PostCustomerTokenOK describes a response with status code 200, with default header values.
Success
func NewPostCustomerTokenOK ¶
func NewPostCustomerTokenOK() *PostCustomerTokenOK
NewPostCustomerTokenOK creates a PostCustomerTokenOK with default headers values
func (*PostCustomerTokenOK) Error ¶
func (o *PostCustomerTokenOK) Error() string
func (*PostCustomerTokenOK) GetPayload ¶
func (o *PostCustomerTokenOK) GetPayload() *models.Token
type PostCustomerTokenParams ¶
type PostCustomerTokenParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostCustomerTokenParams contains all the parameters to send to the API endpoint
for the post customer token operation. Typically these are written to a http.Request.
func NewPostCustomerTokenParams ¶
func NewPostCustomerTokenParams() *PostCustomerTokenParams
NewPostCustomerTokenParams creates a new PostCustomerTokenParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostCustomerTokenParamsWithContext ¶
func NewPostCustomerTokenParamsWithContext(ctx context.Context) *PostCustomerTokenParams
NewPostCustomerTokenParamsWithContext creates a new PostCustomerTokenParams object with the ability to set a context for a request.
func NewPostCustomerTokenParamsWithHTTPClient ¶
func NewPostCustomerTokenParamsWithHTTPClient(client *http.Client) *PostCustomerTokenParams
NewPostCustomerTokenParamsWithHTTPClient creates a new PostCustomerTokenParams object with the ability to set a custom HTTPClient for a request.
func NewPostCustomerTokenParamsWithTimeout ¶
func NewPostCustomerTokenParamsWithTimeout(timeout time.Duration) *PostCustomerTokenParams
NewPostCustomerTokenParamsWithTimeout creates a new PostCustomerTokenParams object with the ability to set a timeout on a request.
func (*PostCustomerTokenParams) SetContext ¶
func (o *PostCustomerTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the post customer token params
func (*PostCustomerTokenParams) SetDefaults ¶
func (o *PostCustomerTokenParams) SetDefaults()
SetDefaults hydrates default values in the post customer token params (not the query body).
All values with no default are reset to their zero value.
func (*PostCustomerTokenParams) SetHTTPClient ¶
func (o *PostCustomerTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post customer token params
func (*PostCustomerTokenParams) SetTimeout ¶
func (o *PostCustomerTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post customer token params
func (*PostCustomerTokenParams) WithContext ¶
func (o *PostCustomerTokenParams) WithContext(ctx context.Context) *PostCustomerTokenParams
WithContext adds the context to the post customer token params
func (*PostCustomerTokenParams) WithDefaults ¶
func (o *PostCustomerTokenParams) WithDefaults() *PostCustomerTokenParams
WithDefaults hydrates default values in the post customer token params (not the query body).
All values with no default are reset to their zero value.
func (*PostCustomerTokenParams) WithHTTPClient ¶
func (o *PostCustomerTokenParams) WithHTTPClient(client *http.Client) *PostCustomerTokenParams
WithHTTPClient adds the HTTPClient to the post customer token params
func (*PostCustomerTokenParams) WithTimeout ¶
func (o *PostCustomerTokenParams) WithTimeout(timeout time.Duration) *PostCustomerTokenParams
WithTimeout adds the timeout to the post customer token params
func (*PostCustomerTokenParams) WriteToRequest ¶
func (o *PostCustomerTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostCustomerTokenReader ¶
type PostCustomerTokenReader struct {
// contains filtered or unexported fields
}
PostCustomerTokenReader is a Reader for the PostCustomerToken structure.
func (*PostCustomerTokenReader) ReadResponse ¶
func (o *PostCustomerTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.