customer_token

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 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) 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

type PostCustomerTokenOK struct {
	Payload *models.Token
}
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

WithContext adds the context to the post customer token params

func (*PostCustomerTokenParams) WithDefaults

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

WithTimeout adds the timeout to the post customer token params

func (*PostCustomerTokenParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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