Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateCustomerGroup(params *CreateCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateCustomerGroupOK, error)
- func (a *Client) DeleteCustomerGroup(params *DeleteCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteCustomerGroupOK, error)
- func (a *Client) ListCustomerGroups(params *ListCustomerGroupsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListCustomerGroupsOK, error)
- func (a *Client) RetrieveCustomerGroup(params *RetrieveCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveCustomerGroupOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCustomerGroup(params *UpdateCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateCustomerGroupOK, error)
- type ClientOption
- type ClientService
- type CreateCustomerGroupOK
- type CreateCustomerGroupParams
- func NewCreateCustomerGroupParams() *CreateCustomerGroupParams
- func NewCreateCustomerGroupParamsWithContext(ctx context.Context) *CreateCustomerGroupParams
- func NewCreateCustomerGroupParamsWithHTTPClient(client *http.Client) *CreateCustomerGroupParams
- func NewCreateCustomerGroupParamsWithTimeout(timeout time.Duration) *CreateCustomerGroupParams
- func (o *CreateCustomerGroupParams) SetBody(body *models.CreateCustomerGroupRequest)
- func (o *CreateCustomerGroupParams) SetContext(ctx context.Context)
- func (o *CreateCustomerGroupParams) SetDefaults()
- func (o *CreateCustomerGroupParams) SetHTTPClient(client *http.Client)
- func (o *CreateCustomerGroupParams) SetTimeout(timeout time.Duration)
- func (o *CreateCustomerGroupParams) WithBody(body *models.CreateCustomerGroupRequest) *CreateCustomerGroupParams
- func (o *CreateCustomerGroupParams) WithContext(ctx context.Context) *CreateCustomerGroupParams
- func (o *CreateCustomerGroupParams) WithDefaults() *CreateCustomerGroupParams
- func (o *CreateCustomerGroupParams) WithHTTPClient(client *http.Client) *CreateCustomerGroupParams
- func (o *CreateCustomerGroupParams) WithTimeout(timeout time.Duration) *CreateCustomerGroupParams
- func (o *CreateCustomerGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCustomerGroupReader
- type DeleteCustomerGroupOK
- type DeleteCustomerGroupParams
- func NewDeleteCustomerGroupParams() *DeleteCustomerGroupParams
- func NewDeleteCustomerGroupParamsWithContext(ctx context.Context) *DeleteCustomerGroupParams
- func NewDeleteCustomerGroupParamsWithHTTPClient(client *http.Client) *DeleteCustomerGroupParams
- func NewDeleteCustomerGroupParamsWithTimeout(timeout time.Duration) *DeleteCustomerGroupParams
- func (o *DeleteCustomerGroupParams) SetContext(ctx context.Context)
- func (o *DeleteCustomerGroupParams) SetDefaults()
- func (o *DeleteCustomerGroupParams) SetGroupID(groupID string)
- func (o *DeleteCustomerGroupParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCustomerGroupParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCustomerGroupParams) WithContext(ctx context.Context) *DeleteCustomerGroupParams
- func (o *DeleteCustomerGroupParams) WithDefaults() *DeleteCustomerGroupParams
- func (o *DeleteCustomerGroupParams) WithGroupID(groupID string) *DeleteCustomerGroupParams
- func (o *DeleteCustomerGroupParams) WithHTTPClient(client *http.Client) *DeleteCustomerGroupParams
- func (o *DeleteCustomerGroupParams) WithTimeout(timeout time.Duration) *DeleteCustomerGroupParams
- func (o *DeleteCustomerGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCustomerGroupReader
- type ListCustomerGroupsOK
- type ListCustomerGroupsParams
- func NewListCustomerGroupsParams() *ListCustomerGroupsParams
- func NewListCustomerGroupsParamsWithContext(ctx context.Context) *ListCustomerGroupsParams
- func NewListCustomerGroupsParamsWithHTTPClient(client *http.Client) *ListCustomerGroupsParams
- func NewListCustomerGroupsParamsWithTimeout(timeout time.Duration) *ListCustomerGroupsParams
- func (o *ListCustomerGroupsParams) SetContext(ctx context.Context)
- func (o *ListCustomerGroupsParams) SetCursor(cursor *string)
- func (o *ListCustomerGroupsParams) SetDefaults()
- func (o *ListCustomerGroupsParams) SetHTTPClient(client *http.Client)
- func (o *ListCustomerGroupsParams) SetTimeout(timeout time.Duration)
- func (o *ListCustomerGroupsParams) WithContext(ctx context.Context) *ListCustomerGroupsParams
- func (o *ListCustomerGroupsParams) WithCursor(cursor *string) *ListCustomerGroupsParams
- func (o *ListCustomerGroupsParams) WithDefaults() *ListCustomerGroupsParams
- func (o *ListCustomerGroupsParams) WithHTTPClient(client *http.Client) *ListCustomerGroupsParams
- func (o *ListCustomerGroupsParams) WithTimeout(timeout time.Duration) *ListCustomerGroupsParams
- func (o *ListCustomerGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListCustomerGroupsReader
- type RetrieveCustomerGroupOK
- type RetrieveCustomerGroupParams
- func NewRetrieveCustomerGroupParams() *RetrieveCustomerGroupParams
- func NewRetrieveCustomerGroupParamsWithContext(ctx context.Context) *RetrieveCustomerGroupParams
- func NewRetrieveCustomerGroupParamsWithHTTPClient(client *http.Client) *RetrieveCustomerGroupParams
- func NewRetrieveCustomerGroupParamsWithTimeout(timeout time.Duration) *RetrieveCustomerGroupParams
- func (o *RetrieveCustomerGroupParams) SetContext(ctx context.Context)
- func (o *RetrieveCustomerGroupParams) SetDefaults()
- func (o *RetrieveCustomerGroupParams) SetGroupID(groupID string)
- func (o *RetrieveCustomerGroupParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveCustomerGroupParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveCustomerGroupParams) WithContext(ctx context.Context) *RetrieveCustomerGroupParams
- func (o *RetrieveCustomerGroupParams) WithDefaults() *RetrieveCustomerGroupParams
- func (o *RetrieveCustomerGroupParams) WithGroupID(groupID string) *RetrieveCustomerGroupParams
- func (o *RetrieveCustomerGroupParams) WithHTTPClient(client *http.Client) *RetrieveCustomerGroupParams
- func (o *RetrieveCustomerGroupParams) WithTimeout(timeout time.Duration) *RetrieveCustomerGroupParams
- func (o *RetrieveCustomerGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveCustomerGroupReader
- type UpdateCustomerGroupOK
- type UpdateCustomerGroupParams
- func NewUpdateCustomerGroupParams() *UpdateCustomerGroupParams
- func NewUpdateCustomerGroupParamsWithContext(ctx context.Context) *UpdateCustomerGroupParams
- func NewUpdateCustomerGroupParamsWithHTTPClient(client *http.Client) *UpdateCustomerGroupParams
- func NewUpdateCustomerGroupParamsWithTimeout(timeout time.Duration) *UpdateCustomerGroupParams
- func (o *UpdateCustomerGroupParams) SetBody(body *models.UpdateCustomerGroupRequest)
- func (o *UpdateCustomerGroupParams) SetContext(ctx context.Context)
- func (o *UpdateCustomerGroupParams) SetDefaults()
- func (o *UpdateCustomerGroupParams) SetGroupID(groupID string)
- func (o *UpdateCustomerGroupParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCustomerGroupParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCustomerGroupParams) WithBody(body *models.UpdateCustomerGroupRequest) *UpdateCustomerGroupParams
- func (o *UpdateCustomerGroupParams) WithContext(ctx context.Context) *UpdateCustomerGroupParams
- func (o *UpdateCustomerGroupParams) WithDefaults() *UpdateCustomerGroupParams
- func (o *UpdateCustomerGroupParams) WithGroupID(groupID string) *UpdateCustomerGroupParams
- func (o *UpdateCustomerGroupParams) WithHTTPClient(client *http.Client) *UpdateCustomerGroupParams
- func (o *UpdateCustomerGroupParams) WithTimeout(timeout time.Duration) *UpdateCustomerGroupParams
- func (o *UpdateCustomerGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCustomerGroupReader
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 groups API
func (*Client) CreateCustomerGroup ¶
func (a *Client) CreateCustomerGroup(params *CreateCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCustomerGroupOK, error)
CreateCustomerGroup creates customer group Creates a new customer group for a business.
The request must include the `name` value of the group.
func (*Client) DeleteCustomerGroup ¶
func (a *Client) DeleteCustomerGroup(params *DeleteCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerGroupOK, error)
DeleteCustomerGroup deletes customer group
Deletes a customer group as identified by the `group_id` value.
func (*Client) ListCustomerGroups ¶
func (a *Client) ListCustomerGroups(params *ListCustomerGroupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCustomerGroupsOK, error)
ListCustomerGroups lists customer groups
Retrieves the list of customer groups of a business.
func (*Client) RetrieveCustomerGroup ¶
func (a *Client) RetrieveCustomerGroup(params *RetrieveCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveCustomerGroupOK, error)
RetrieveCustomerGroup retrieves customer group
Retrieves a specific customer group as identified by the `group_id` value.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCustomerGroup ¶
func (a *Client) UpdateCustomerGroup(params *UpdateCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerGroupOK, error)
UpdateCustomerGroup updates customer group
Updates a customer group as identified by the `group_id` value.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateCustomerGroup(params *CreateCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCustomerGroupOK, error) DeleteCustomerGroup(params *DeleteCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerGroupOK, error) ListCustomerGroups(params *ListCustomerGroupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCustomerGroupsOK, error) RetrieveCustomerGroup(params *RetrieveCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveCustomerGroupOK, error) UpdateCustomerGroup(params *UpdateCustomerGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerGroupOK, 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 groups API client.
type CreateCustomerGroupOK ¶
type CreateCustomerGroupOK struct {
Payload *models.CreateCustomerGroupResponse
}
CreateCustomerGroupOK describes a response with status code 200, with default header values.
Success
func NewCreateCustomerGroupOK ¶
func NewCreateCustomerGroupOK() *CreateCustomerGroupOK
NewCreateCustomerGroupOK creates a CreateCustomerGroupOK with default headers values
func (*CreateCustomerGroupOK) Error ¶
func (o *CreateCustomerGroupOK) Error() string
func (*CreateCustomerGroupOK) GetPayload ¶
func (o *CreateCustomerGroupOK) GetPayload() *models.CreateCustomerGroupResponse
type CreateCustomerGroupParams ¶
type CreateCustomerGroupParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.CreateCustomerGroupRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCustomerGroupParams contains all the parameters to send to the API endpoint
for the create customer group operation. Typically these are written to a http.Request.
func NewCreateCustomerGroupParams ¶
func NewCreateCustomerGroupParams() *CreateCustomerGroupParams
NewCreateCustomerGroupParams creates a new CreateCustomerGroupParams 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 NewCreateCustomerGroupParamsWithContext ¶
func NewCreateCustomerGroupParamsWithContext(ctx context.Context) *CreateCustomerGroupParams
NewCreateCustomerGroupParamsWithContext creates a new CreateCustomerGroupParams object with the ability to set a context for a request.
func NewCreateCustomerGroupParamsWithHTTPClient ¶
func NewCreateCustomerGroupParamsWithHTTPClient(client *http.Client) *CreateCustomerGroupParams
NewCreateCustomerGroupParamsWithHTTPClient creates a new CreateCustomerGroupParams object with the ability to set a custom HTTPClient for a request.
func NewCreateCustomerGroupParamsWithTimeout ¶
func NewCreateCustomerGroupParamsWithTimeout(timeout time.Duration) *CreateCustomerGroupParams
NewCreateCustomerGroupParamsWithTimeout creates a new CreateCustomerGroupParams object with the ability to set a timeout on a request.
func (*CreateCustomerGroupParams) SetBody ¶
func (o *CreateCustomerGroupParams) SetBody(body *models.CreateCustomerGroupRequest)
SetBody adds the body to the create customer group params
func (*CreateCustomerGroupParams) SetContext ¶
func (o *CreateCustomerGroupParams) SetContext(ctx context.Context)
SetContext adds the context to the create customer group params
func (*CreateCustomerGroupParams) SetDefaults ¶
func (o *CreateCustomerGroupParams) SetDefaults()
SetDefaults hydrates default values in the create customer group params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCustomerGroupParams) SetHTTPClient ¶
func (o *CreateCustomerGroupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create customer group params
func (*CreateCustomerGroupParams) SetTimeout ¶
func (o *CreateCustomerGroupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create customer group params
func (*CreateCustomerGroupParams) WithBody ¶
func (o *CreateCustomerGroupParams) WithBody(body *models.CreateCustomerGroupRequest) *CreateCustomerGroupParams
WithBody adds the body to the create customer group params
func (*CreateCustomerGroupParams) WithContext ¶
func (o *CreateCustomerGroupParams) WithContext(ctx context.Context) *CreateCustomerGroupParams
WithContext adds the context to the create customer group params
func (*CreateCustomerGroupParams) WithDefaults ¶
func (o *CreateCustomerGroupParams) WithDefaults() *CreateCustomerGroupParams
WithDefaults hydrates default values in the create customer group params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCustomerGroupParams) WithHTTPClient ¶
func (o *CreateCustomerGroupParams) WithHTTPClient(client *http.Client) *CreateCustomerGroupParams
WithHTTPClient adds the HTTPClient to the create customer group params
func (*CreateCustomerGroupParams) WithTimeout ¶
func (o *CreateCustomerGroupParams) WithTimeout(timeout time.Duration) *CreateCustomerGroupParams
WithTimeout adds the timeout to the create customer group params
func (*CreateCustomerGroupParams) WriteToRequest ¶
func (o *CreateCustomerGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCustomerGroupReader ¶
type CreateCustomerGroupReader struct {
// contains filtered or unexported fields
}
CreateCustomerGroupReader is a Reader for the CreateCustomerGroup structure.
func (*CreateCustomerGroupReader) ReadResponse ¶
func (o *CreateCustomerGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCustomerGroupOK ¶
type DeleteCustomerGroupOK struct {
Payload *models.DeleteCustomerGroupResponse
}
DeleteCustomerGroupOK describes a response with status code 200, with default header values.
Success
func NewDeleteCustomerGroupOK ¶
func NewDeleteCustomerGroupOK() *DeleteCustomerGroupOK
NewDeleteCustomerGroupOK creates a DeleteCustomerGroupOK with default headers values
func (*DeleteCustomerGroupOK) Error ¶
func (o *DeleteCustomerGroupOK) Error() string
func (*DeleteCustomerGroupOK) GetPayload ¶
func (o *DeleteCustomerGroupOK) GetPayload() *models.DeleteCustomerGroupResponse
type DeleteCustomerGroupParams ¶
type DeleteCustomerGroupParams struct { /* GroupID. The ID of the customer group to delete. */ GroupID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCustomerGroupParams contains all the parameters to send to the API endpoint
for the delete customer group operation. Typically these are written to a http.Request.
func NewDeleteCustomerGroupParams ¶
func NewDeleteCustomerGroupParams() *DeleteCustomerGroupParams
NewDeleteCustomerGroupParams creates a new DeleteCustomerGroupParams 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 NewDeleteCustomerGroupParamsWithContext ¶
func NewDeleteCustomerGroupParamsWithContext(ctx context.Context) *DeleteCustomerGroupParams
NewDeleteCustomerGroupParamsWithContext creates a new DeleteCustomerGroupParams object with the ability to set a context for a request.
func NewDeleteCustomerGroupParamsWithHTTPClient ¶
func NewDeleteCustomerGroupParamsWithHTTPClient(client *http.Client) *DeleteCustomerGroupParams
NewDeleteCustomerGroupParamsWithHTTPClient creates a new DeleteCustomerGroupParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteCustomerGroupParamsWithTimeout ¶
func NewDeleteCustomerGroupParamsWithTimeout(timeout time.Duration) *DeleteCustomerGroupParams
NewDeleteCustomerGroupParamsWithTimeout creates a new DeleteCustomerGroupParams object with the ability to set a timeout on a request.
func (*DeleteCustomerGroupParams) SetContext ¶
func (o *DeleteCustomerGroupParams) SetContext(ctx context.Context)
SetContext adds the context to the delete customer group params
func (*DeleteCustomerGroupParams) SetDefaults ¶
func (o *DeleteCustomerGroupParams) SetDefaults()
SetDefaults hydrates default values in the delete customer group params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomerGroupParams) SetGroupID ¶
func (o *DeleteCustomerGroupParams) SetGroupID(groupID string)
SetGroupID adds the groupId to the delete customer group params
func (*DeleteCustomerGroupParams) SetHTTPClient ¶
func (o *DeleteCustomerGroupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete customer group params
func (*DeleteCustomerGroupParams) SetTimeout ¶
func (o *DeleteCustomerGroupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete customer group params
func (*DeleteCustomerGroupParams) WithContext ¶
func (o *DeleteCustomerGroupParams) WithContext(ctx context.Context) *DeleteCustomerGroupParams
WithContext adds the context to the delete customer group params
func (*DeleteCustomerGroupParams) WithDefaults ¶
func (o *DeleteCustomerGroupParams) WithDefaults() *DeleteCustomerGroupParams
WithDefaults hydrates default values in the delete customer group params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomerGroupParams) WithGroupID ¶
func (o *DeleteCustomerGroupParams) WithGroupID(groupID string) *DeleteCustomerGroupParams
WithGroupID adds the groupID to the delete customer group params
func (*DeleteCustomerGroupParams) WithHTTPClient ¶
func (o *DeleteCustomerGroupParams) WithHTTPClient(client *http.Client) *DeleteCustomerGroupParams
WithHTTPClient adds the HTTPClient to the delete customer group params
func (*DeleteCustomerGroupParams) WithTimeout ¶
func (o *DeleteCustomerGroupParams) WithTimeout(timeout time.Duration) *DeleteCustomerGroupParams
WithTimeout adds the timeout to the delete customer group params
func (*DeleteCustomerGroupParams) WriteToRequest ¶
func (o *DeleteCustomerGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCustomerGroupReader ¶
type DeleteCustomerGroupReader struct {
// contains filtered or unexported fields
}
DeleteCustomerGroupReader is a Reader for the DeleteCustomerGroup structure.
func (*DeleteCustomerGroupReader) ReadResponse ¶
func (o *DeleteCustomerGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListCustomerGroupsOK ¶
type ListCustomerGroupsOK struct {
Payload *models.ListCustomerGroupsResponse
}
ListCustomerGroupsOK describes a response with status code 200, with default header values.
Success
func NewListCustomerGroupsOK ¶
func NewListCustomerGroupsOK() *ListCustomerGroupsOK
NewListCustomerGroupsOK creates a ListCustomerGroupsOK with default headers values
func (*ListCustomerGroupsOK) Error ¶
func (o *ListCustomerGroupsOK) Error() string
func (*ListCustomerGroupsOK) GetPayload ¶
func (o *ListCustomerGroupsOK) GetPayload() *models.ListCustomerGroupsResponse
type ListCustomerGroupsParams ¶
type ListCustomerGroupsParams struct { /* Cursor. A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See the [Pagination guide](https://developer.squareup.com/docs/working-with-apis/pagination) for more information. */ Cursor *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListCustomerGroupsParams contains all the parameters to send to the API endpoint
for the list customer groups operation. Typically these are written to a http.Request.
func NewListCustomerGroupsParams ¶
func NewListCustomerGroupsParams() *ListCustomerGroupsParams
NewListCustomerGroupsParams creates a new ListCustomerGroupsParams 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 NewListCustomerGroupsParamsWithContext ¶
func NewListCustomerGroupsParamsWithContext(ctx context.Context) *ListCustomerGroupsParams
NewListCustomerGroupsParamsWithContext creates a new ListCustomerGroupsParams object with the ability to set a context for a request.
func NewListCustomerGroupsParamsWithHTTPClient ¶
func NewListCustomerGroupsParamsWithHTTPClient(client *http.Client) *ListCustomerGroupsParams
NewListCustomerGroupsParamsWithHTTPClient creates a new ListCustomerGroupsParams object with the ability to set a custom HTTPClient for a request.
func NewListCustomerGroupsParamsWithTimeout ¶
func NewListCustomerGroupsParamsWithTimeout(timeout time.Duration) *ListCustomerGroupsParams
NewListCustomerGroupsParamsWithTimeout creates a new ListCustomerGroupsParams object with the ability to set a timeout on a request.
func (*ListCustomerGroupsParams) SetContext ¶
func (o *ListCustomerGroupsParams) SetContext(ctx context.Context)
SetContext adds the context to the list customer groups params
func (*ListCustomerGroupsParams) SetCursor ¶
func (o *ListCustomerGroupsParams) SetCursor(cursor *string)
SetCursor adds the cursor to the list customer groups params
func (*ListCustomerGroupsParams) SetDefaults ¶
func (o *ListCustomerGroupsParams) SetDefaults()
SetDefaults hydrates default values in the list customer groups params (not the query body).
All values with no default are reset to their zero value.
func (*ListCustomerGroupsParams) SetHTTPClient ¶
func (o *ListCustomerGroupsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list customer groups params
func (*ListCustomerGroupsParams) SetTimeout ¶
func (o *ListCustomerGroupsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list customer groups params
func (*ListCustomerGroupsParams) WithContext ¶
func (o *ListCustomerGroupsParams) WithContext(ctx context.Context) *ListCustomerGroupsParams
WithContext adds the context to the list customer groups params
func (*ListCustomerGroupsParams) WithCursor ¶
func (o *ListCustomerGroupsParams) WithCursor(cursor *string) *ListCustomerGroupsParams
WithCursor adds the cursor to the list customer groups params
func (*ListCustomerGroupsParams) WithDefaults ¶
func (o *ListCustomerGroupsParams) WithDefaults() *ListCustomerGroupsParams
WithDefaults hydrates default values in the list customer groups params (not the query body).
All values with no default are reset to their zero value.
func (*ListCustomerGroupsParams) WithHTTPClient ¶
func (o *ListCustomerGroupsParams) WithHTTPClient(client *http.Client) *ListCustomerGroupsParams
WithHTTPClient adds the HTTPClient to the list customer groups params
func (*ListCustomerGroupsParams) WithTimeout ¶
func (o *ListCustomerGroupsParams) WithTimeout(timeout time.Duration) *ListCustomerGroupsParams
WithTimeout adds the timeout to the list customer groups params
func (*ListCustomerGroupsParams) WriteToRequest ¶
func (o *ListCustomerGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListCustomerGroupsReader ¶
type ListCustomerGroupsReader struct {
// contains filtered or unexported fields
}
ListCustomerGroupsReader is a Reader for the ListCustomerGroups structure.
func (*ListCustomerGroupsReader) ReadResponse ¶
func (o *ListCustomerGroupsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrieveCustomerGroupOK ¶
type RetrieveCustomerGroupOK struct {
Payload *models.RetrieveCustomerGroupResponse
}
RetrieveCustomerGroupOK describes a response with status code 200, with default header values.
Success
func NewRetrieveCustomerGroupOK ¶
func NewRetrieveCustomerGroupOK() *RetrieveCustomerGroupOK
NewRetrieveCustomerGroupOK creates a RetrieveCustomerGroupOK with default headers values
func (*RetrieveCustomerGroupOK) Error ¶
func (o *RetrieveCustomerGroupOK) Error() string
func (*RetrieveCustomerGroupOK) GetPayload ¶
func (o *RetrieveCustomerGroupOK) GetPayload() *models.RetrieveCustomerGroupResponse
type RetrieveCustomerGroupParams ¶
type RetrieveCustomerGroupParams struct { /* GroupID. The ID of the customer group to retrieve. */ GroupID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveCustomerGroupParams contains all the parameters to send to the API endpoint
for the retrieve customer group operation. Typically these are written to a http.Request.
func NewRetrieveCustomerGroupParams ¶
func NewRetrieveCustomerGroupParams() *RetrieveCustomerGroupParams
NewRetrieveCustomerGroupParams creates a new RetrieveCustomerGroupParams 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 NewRetrieveCustomerGroupParamsWithContext ¶
func NewRetrieveCustomerGroupParamsWithContext(ctx context.Context) *RetrieveCustomerGroupParams
NewRetrieveCustomerGroupParamsWithContext creates a new RetrieveCustomerGroupParams object with the ability to set a context for a request.
func NewRetrieveCustomerGroupParamsWithHTTPClient ¶
func NewRetrieveCustomerGroupParamsWithHTTPClient(client *http.Client) *RetrieveCustomerGroupParams
NewRetrieveCustomerGroupParamsWithHTTPClient creates a new RetrieveCustomerGroupParams object with the ability to set a custom HTTPClient for a request.
func NewRetrieveCustomerGroupParamsWithTimeout ¶
func NewRetrieveCustomerGroupParamsWithTimeout(timeout time.Duration) *RetrieveCustomerGroupParams
NewRetrieveCustomerGroupParamsWithTimeout creates a new RetrieveCustomerGroupParams object with the ability to set a timeout on a request.
func (*RetrieveCustomerGroupParams) SetContext ¶
func (o *RetrieveCustomerGroupParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve customer group params
func (*RetrieveCustomerGroupParams) SetDefaults ¶
func (o *RetrieveCustomerGroupParams) SetDefaults()
SetDefaults hydrates default values in the retrieve customer group params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveCustomerGroupParams) SetGroupID ¶
func (o *RetrieveCustomerGroupParams) SetGroupID(groupID string)
SetGroupID adds the groupId to the retrieve customer group params
func (*RetrieveCustomerGroupParams) SetHTTPClient ¶
func (o *RetrieveCustomerGroupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve customer group params
func (*RetrieveCustomerGroupParams) SetTimeout ¶
func (o *RetrieveCustomerGroupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve customer group params
func (*RetrieveCustomerGroupParams) WithContext ¶
func (o *RetrieveCustomerGroupParams) WithContext(ctx context.Context) *RetrieveCustomerGroupParams
WithContext adds the context to the retrieve customer group params
func (*RetrieveCustomerGroupParams) WithDefaults ¶
func (o *RetrieveCustomerGroupParams) WithDefaults() *RetrieveCustomerGroupParams
WithDefaults hydrates default values in the retrieve customer group params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveCustomerGroupParams) WithGroupID ¶
func (o *RetrieveCustomerGroupParams) WithGroupID(groupID string) *RetrieveCustomerGroupParams
WithGroupID adds the groupID to the retrieve customer group params
func (*RetrieveCustomerGroupParams) WithHTTPClient ¶
func (o *RetrieveCustomerGroupParams) WithHTTPClient(client *http.Client) *RetrieveCustomerGroupParams
WithHTTPClient adds the HTTPClient to the retrieve customer group params
func (*RetrieveCustomerGroupParams) WithTimeout ¶
func (o *RetrieveCustomerGroupParams) WithTimeout(timeout time.Duration) *RetrieveCustomerGroupParams
WithTimeout adds the timeout to the retrieve customer group params
func (*RetrieveCustomerGroupParams) WriteToRequest ¶
func (o *RetrieveCustomerGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveCustomerGroupReader ¶
type RetrieveCustomerGroupReader struct {
// contains filtered or unexported fields
}
RetrieveCustomerGroupReader is a Reader for the RetrieveCustomerGroup structure.
func (*RetrieveCustomerGroupReader) ReadResponse ¶
func (o *RetrieveCustomerGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCustomerGroupOK ¶
type UpdateCustomerGroupOK struct {
Payload *models.UpdateCustomerGroupResponse
}
UpdateCustomerGroupOK describes a response with status code 200, with default header values.
Success
func NewUpdateCustomerGroupOK ¶
func NewUpdateCustomerGroupOK() *UpdateCustomerGroupOK
NewUpdateCustomerGroupOK creates a UpdateCustomerGroupOK with default headers values
func (*UpdateCustomerGroupOK) Error ¶
func (o *UpdateCustomerGroupOK) Error() string
func (*UpdateCustomerGroupOK) GetPayload ¶
func (o *UpdateCustomerGroupOK) GetPayload() *models.UpdateCustomerGroupResponse
type UpdateCustomerGroupParams ¶
type UpdateCustomerGroupParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.UpdateCustomerGroupRequest /* GroupID. The ID of the customer group to update. */ GroupID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCustomerGroupParams contains all the parameters to send to the API endpoint
for the update customer group operation. Typically these are written to a http.Request.
func NewUpdateCustomerGroupParams ¶
func NewUpdateCustomerGroupParams() *UpdateCustomerGroupParams
NewUpdateCustomerGroupParams creates a new UpdateCustomerGroupParams 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 NewUpdateCustomerGroupParamsWithContext ¶
func NewUpdateCustomerGroupParamsWithContext(ctx context.Context) *UpdateCustomerGroupParams
NewUpdateCustomerGroupParamsWithContext creates a new UpdateCustomerGroupParams object with the ability to set a context for a request.
func NewUpdateCustomerGroupParamsWithHTTPClient ¶
func NewUpdateCustomerGroupParamsWithHTTPClient(client *http.Client) *UpdateCustomerGroupParams
NewUpdateCustomerGroupParamsWithHTTPClient creates a new UpdateCustomerGroupParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateCustomerGroupParamsWithTimeout ¶
func NewUpdateCustomerGroupParamsWithTimeout(timeout time.Duration) *UpdateCustomerGroupParams
NewUpdateCustomerGroupParamsWithTimeout creates a new UpdateCustomerGroupParams object with the ability to set a timeout on a request.
func (*UpdateCustomerGroupParams) SetBody ¶
func (o *UpdateCustomerGroupParams) SetBody(body *models.UpdateCustomerGroupRequest)
SetBody adds the body to the update customer group params
func (*UpdateCustomerGroupParams) SetContext ¶
func (o *UpdateCustomerGroupParams) SetContext(ctx context.Context)
SetContext adds the context to the update customer group params
func (*UpdateCustomerGroupParams) SetDefaults ¶
func (o *UpdateCustomerGroupParams) SetDefaults()
SetDefaults hydrates default values in the update customer group params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomerGroupParams) SetGroupID ¶
func (o *UpdateCustomerGroupParams) SetGroupID(groupID string)
SetGroupID adds the groupId to the update customer group params
func (*UpdateCustomerGroupParams) SetHTTPClient ¶
func (o *UpdateCustomerGroupParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update customer group params
func (*UpdateCustomerGroupParams) SetTimeout ¶
func (o *UpdateCustomerGroupParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update customer group params
func (*UpdateCustomerGroupParams) WithBody ¶
func (o *UpdateCustomerGroupParams) WithBody(body *models.UpdateCustomerGroupRequest) *UpdateCustomerGroupParams
WithBody adds the body to the update customer group params
func (*UpdateCustomerGroupParams) WithContext ¶
func (o *UpdateCustomerGroupParams) WithContext(ctx context.Context) *UpdateCustomerGroupParams
WithContext adds the context to the update customer group params
func (*UpdateCustomerGroupParams) WithDefaults ¶
func (o *UpdateCustomerGroupParams) WithDefaults() *UpdateCustomerGroupParams
WithDefaults hydrates default values in the update customer group params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomerGroupParams) WithGroupID ¶
func (o *UpdateCustomerGroupParams) WithGroupID(groupID string) *UpdateCustomerGroupParams
WithGroupID adds the groupID to the update customer group params
func (*UpdateCustomerGroupParams) WithHTTPClient ¶
func (o *UpdateCustomerGroupParams) WithHTTPClient(client *http.Client) *UpdateCustomerGroupParams
WithHTTPClient adds the HTTPClient to the update customer group params
func (*UpdateCustomerGroupParams) WithTimeout ¶
func (o *UpdateCustomerGroupParams) WithTimeout(timeout time.Duration) *UpdateCustomerGroupParams
WithTimeout adds the timeout to the update customer group params
func (*UpdateCustomerGroupParams) WriteToRequest ¶
func (o *UpdateCustomerGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCustomerGroupReader ¶
type UpdateCustomerGroupReader struct {
// contains filtered or unexported fields
}
UpdateCustomerGroupReader is a Reader for the UpdateCustomerGroup structure.
func (*UpdateCustomerGroupReader) ReadResponse ¶
func (o *UpdateCustomerGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_customer_group_parameters.go
- create_customer_group_responses.go
- customer_groups_client.go
- delete_customer_group_parameters.go
- delete_customer_group_responses.go
- list_customer_groups_parameters.go
- list_customer_groups_responses.go
- retrieve_customer_group_parameters.go
- retrieve_customer_group_responses.go
- update_customer_group_parameters.go
- update_customer_group_responses.go