Documentation
¶
Index ¶
- type Client
- func (a *Client) IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPost(params *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams, ...) (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest
- type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) MarshalBinary() ([]byte, error)
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) UnmarshalBinary(b []byte) error
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) Validate(formats strfmt.Registry) error
- type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) Code() int
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) Error() string
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) GetPayload() *models.ErrorResponse
- type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK
- type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams() *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithContext(ctx context.Context) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithHTTPClient(client *http.Client) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithTimeout(timeout time.Duration) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetContext(ctx context.Context)
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetDefaults()
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetHTTPClient(client *http.Client)
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody(...)
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetTimeout(timeout time.Duration)
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithContext(ctx context.Context) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithDefaults() *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithHTTPClient(client *http.Client) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody(...) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithTimeout(timeout time.Duration) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
- func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostReader
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 integration customer token service v1 API
func (*Client) IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPost ¶
func (a *Client) IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPost(params *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams, opts ...ClientOption) (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK, error)
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPost Create access token for admin given the customer credentials.
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 {
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPost(params *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams, opts ...ClientOption) (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK, 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 integration customer token service v1 API client.
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest ¶
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest struct {
Payload *models.ErrorResponse
}
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest describes a response with status code 400, with default header values.
400 Bad Request
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest ¶
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest() *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest
NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest creates a IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest with default headers values
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest) GetPayload ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBadRequest) GetPayload() *models.ErrorResponse
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody ¶
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody struct {
// password
// Required: true
Password *string `json:"password"`
// username
// Required: true
Username *string `json:"username"`
}
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody integration customer token service v1 create customer access token post body swagger:model IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) ContextValidate ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this integration customer token service v1 create customer access token post body based on context it is used
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) MarshalBinary ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) UnmarshalBinary ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) Validate ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) Validate(formats strfmt.Registry) error
Validate validates this integration customer token service v1 create customer access token post body
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault ¶
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault struct {
Payload *models.ErrorResponse
// contains filtered or unexported fields
}
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault describes a response with status code -1, with default header values.
Unexpected error
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault ¶
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault(code int) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault
NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault creates a IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault with default headers values
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) Code ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) Code() int
Code gets the status code for the integration customer token service v1 create customer access token post default response
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) Error ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) Error() string
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) GetPayload ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostDefault) GetPayload() *models.ErrorResponse
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK ¶
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK struct {
Payload string
}
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK describes a response with status code 200, with default header values.
200 Success.
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK ¶
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK() *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK
NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK creates a IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK with default headers values
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK) Error ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK) Error() string
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK) GetPayload ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostOK) GetPayload() string
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams ¶
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams struct {
// IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody.
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams contains all the parameters to send to the API endpoint
for the integration customer token service v1 create customer access token post operation. Typically these are written to a http.Request.
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams ¶
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams() *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams creates a new IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams 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 NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithContext ¶
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithContext(ctx context.Context) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithContext creates a new IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams object with the ability to set a context for a request.
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithHTTPClient ¶
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithHTTPClient(client *http.Client) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithHTTPClient creates a new IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams object with the ability to set a custom HTTPClient for a request.
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithTimeout ¶
func NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithTimeout(timeout time.Duration) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
NewIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParamsWithTimeout creates a new IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams object with the ability to set a timeout on a request.
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetContext ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetContext(ctx context.Context)
SetContext adds the context to the integration customer token service v1 create customer access token post params
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetDefaults ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetDefaults()
SetDefaults hydrates default values in the integration customer token service v1 create customer access token post params (not the query body).
All values with no default are reset to their zero value.
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetHTTPClient ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the integration customer token service v1 create customer access token post params
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody(integrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody)
SetIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody adds the integrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody to the integration customer token service v1 create customer access token post params
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetTimeout ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the integration customer token service v1 create customer access token post params
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithContext ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithContext(ctx context.Context) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
WithContext adds the context to the integration customer token service v1 create customer access token post params
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithDefaults ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithDefaults() *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
WithDefaults hydrates default values in the integration customer token service v1 create customer access token post params (not the query body).
All values with no default are reset to their zero value.
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithHTTPClient ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithHTTPClient(client *http.Client) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
WithHTTPClient adds the HTTPClient to the integration customer token service v1 create customer access token post params
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody(integrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
WithIntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody adds the integrationCustomerTokenServiceV1CreateCustomerAccessTokenPostBody to the integration customer token service v1 create customer access token post params
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithTimeout ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WithTimeout(timeout time.Duration) *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams
WithTimeout adds the timeout to the integration customer token service v1 create customer access token post params
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WriteToRequest ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostReader ¶
type IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostReader struct {
// contains filtered or unexported fields
}
IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostReader is a Reader for the IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPost structure.
func (*IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostReader) ReadResponse ¶
func (o *IntegrationCustomerTokenServiceV1CreateCustomerAccessTokenPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.