Documentation
¶
Index ¶
- type AddGroupToCustomerOK
- type AddGroupToCustomerParams
- func NewAddGroupToCustomerParams() *AddGroupToCustomerParams
- func NewAddGroupToCustomerParamsWithContext(ctx context.Context) *AddGroupToCustomerParams
- func NewAddGroupToCustomerParamsWithHTTPClient(client *http.Client) *AddGroupToCustomerParams
- func NewAddGroupToCustomerParamsWithTimeout(timeout time.Duration) *AddGroupToCustomerParams
- func (o *AddGroupToCustomerParams) SetContext(ctx context.Context)
- func (o *AddGroupToCustomerParams) SetCustomerID(customerID string)
- func (o *AddGroupToCustomerParams) SetDefaults()
- func (o *AddGroupToCustomerParams) SetGroupID(groupID string)
- func (o *AddGroupToCustomerParams) SetHTTPClient(client *http.Client)
- func (o *AddGroupToCustomerParams) SetTimeout(timeout time.Duration)
- func (o *AddGroupToCustomerParams) WithContext(ctx context.Context) *AddGroupToCustomerParams
- func (o *AddGroupToCustomerParams) WithCustomerID(customerID string) *AddGroupToCustomerParams
- func (o *AddGroupToCustomerParams) WithDefaults() *AddGroupToCustomerParams
- func (o *AddGroupToCustomerParams) WithGroupID(groupID string) *AddGroupToCustomerParams
- func (o *AddGroupToCustomerParams) WithHTTPClient(client *http.Client) *AddGroupToCustomerParams
- func (o *AddGroupToCustomerParams) WithTimeout(timeout time.Duration) *AddGroupToCustomerParams
- func (o *AddGroupToCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddGroupToCustomerReader
- type Client
- func (a *Client) AddGroupToCustomer(params *AddGroupToCustomerParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddGroupToCustomerOK, error)
- func (a *Client) CreateCustomer(params *CreateCustomerParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateCustomerOK, error)
- func (a *Client) CreateCustomerCard(params *CreateCustomerCardParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateCustomerCardOK, error)
- func (a *Client) DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteCustomerOK, error)
- func (a *Client) DeleteCustomerCard(params *DeleteCustomerCardParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteCustomerCardOK, error)
- func (a *Client) ListCustomers(params *ListCustomersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListCustomersOK, error)
- func (a *Client) RemoveGroupFromCustomer(params *RemoveGroupFromCustomerParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveGroupFromCustomerOK, error)
- func (a *Client) RetrieveCustomer(params *RetrieveCustomerParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RetrieveCustomerOK, error)
- func (a *Client) SearchCustomers(params *SearchCustomersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchCustomersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateCustomerOK, error)
- type ClientOption
- type ClientService
- type CreateCustomerCardOK
- type CreateCustomerCardParams
- func NewCreateCustomerCardParams() *CreateCustomerCardParams
- func NewCreateCustomerCardParamsWithContext(ctx context.Context) *CreateCustomerCardParams
- func NewCreateCustomerCardParamsWithHTTPClient(client *http.Client) *CreateCustomerCardParams
- func NewCreateCustomerCardParamsWithTimeout(timeout time.Duration) *CreateCustomerCardParams
- func (o *CreateCustomerCardParams) SetBody(body *models.CreateCustomerCardRequest)
- func (o *CreateCustomerCardParams) SetContext(ctx context.Context)
- func (o *CreateCustomerCardParams) SetCustomerID(customerID string)
- func (o *CreateCustomerCardParams) SetDefaults()
- func (o *CreateCustomerCardParams) SetHTTPClient(client *http.Client)
- func (o *CreateCustomerCardParams) SetTimeout(timeout time.Duration)
- func (o *CreateCustomerCardParams) WithBody(body *models.CreateCustomerCardRequest) *CreateCustomerCardParams
- func (o *CreateCustomerCardParams) WithContext(ctx context.Context) *CreateCustomerCardParams
- func (o *CreateCustomerCardParams) WithCustomerID(customerID string) *CreateCustomerCardParams
- func (o *CreateCustomerCardParams) WithDefaults() *CreateCustomerCardParams
- func (o *CreateCustomerCardParams) WithHTTPClient(client *http.Client) *CreateCustomerCardParams
- func (o *CreateCustomerCardParams) WithTimeout(timeout time.Duration) *CreateCustomerCardParams
- func (o *CreateCustomerCardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCustomerCardReader
- type CreateCustomerOK
- type CreateCustomerParams
- func NewCreateCustomerParams() *CreateCustomerParams
- func NewCreateCustomerParamsWithContext(ctx context.Context) *CreateCustomerParams
- func NewCreateCustomerParamsWithHTTPClient(client *http.Client) *CreateCustomerParams
- func NewCreateCustomerParamsWithTimeout(timeout time.Duration) *CreateCustomerParams
- func (o *CreateCustomerParams) SetBody(body *models.CreateCustomerRequest)
- func (o *CreateCustomerParams) SetContext(ctx context.Context)
- func (o *CreateCustomerParams) SetDefaults()
- func (o *CreateCustomerParams) SetHTTPClient(client *http.Client)
- func (o *CreateCustomerParams) SetTimeout(timeout time.Duration)
- func (o *CreateCustomerParams) WithBody(body *models.CreateCustomerRequest) *CreateCustomerParams
- func (o *CreateCustomerParams) WithContext(ctx context.Context) *CreateCustomerParams
- func (o *CreateCustomerParams) WithDefaults() *CreateCustomerParams
- func (o *CreateCustomerParams) WithHTTPClient(client *http.Client) *CreateCustomerParams
- func (o *CreateCustomerParams) WithTimeout(timeout time.Duration) *CreateCustomerParams
- func (o *CreateCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCustomerReader
- type DeleteCustomerCardOK
- type DeleteCustomerCardParams
- func NewDeleteCustomerCardParams() *DeleteCustomerCardParams
- func NewDeleteCustomerCardParamsWithContext(ctx context.Context) *DeleteCustomerCardParams
- func NewDeleteCustomerCardParamsWithHTTPClient(client *http.Client) *DeleteCustomerCardParams
- func NewDeleteCustomerCardParamsWithTimeout(timeout time.Duration) *DeleteCustomerCardParams
- func (o *DeleteCustomerCardParams) SetCardID(cardID string)
- func (o *DeleteCustomerCardParams) SetContext(ctx context.Context)
- func (o *DeleteCustomerCardParams) SetCustomerID(customerID string)
- func (o *DeleteCustomerCardParams) SetDefaults()
- func (o *DeleteCustomerCardParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCustomerCardParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCustomerCardParams) WithCardID(cardID string) *DeleteCustomerCardParams
- func (o *DeleteCustomerCardParams) WithContext(ctx context.Context) *DeleteCustomerCardParams
- func (o *DeleteCustomerCardParams) WithCustomerID(customerID string) *DeleteCustomerCardParams
- func (o *DeleteCustomerCardParams) WithDefaults() *DeleteCustomerCardParams
- func (o *DeleteCustomerCardParams) WithHTTPClient(client *http.Client) *DeleteCustomerCardParams
- func (o *DeleteCustomerCardParams) WithTimeout(timeout time.Duration) *DeleteCustomerCardParams
- func (o *DeleteCustomerCardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCustomerCardReader
- type DeleteCustomerOK
- type DeleteCustomerParams
- func NewDeleteCustomerParams() *DeleteCustomerParams
- func NewDeleteCustomerParamsWithContext(ctx context.Context) *DeleteCustomerParams
- func NewDeleteCustomerParamsWithHTTPClient(client *http.Client) *DeleteCustomerParams
- func NewDeleteCustomerParamsWithTimeout(timeout time.Duration) *DeleteCustomerParams
- func (o *DeleteCustomerParams) SetContext(ctx context.Context)
- func (o *DeleteCustomerParams) SetCustomerID(customerID string)
- func (o *DeleteCustomerParams) SetDefaults()
- func (o *DeleteCustomerParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCustomerParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCustomerParams) WithContext(ctx context.Context) *DeleteCustomerParams
- func (o *DeleteCustomerParams) WithCustomerID(customerID string) *DeleteCustomerParams
- func (o *DeleteCustomerParams) WithDefaults() *DeleteCustomerParams
- func (o *DeleteCustomerParams) WithHTTPClient(client *http.Client) *DeleteCustomerParams
- func (o *DeleteCustomerParams) WithTimeout(timeout time.Duration) *DeleteCustomerParams
- func (o *DeleteCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCustomerReader
- type ListCustomersOK
- type ListCustomersParams
- func (o *ListCustomersParams) SetContext(ctx context.Context)
- func (o *ListCustomersParams) SetCursor(cursor *string)
- func (o *ListCustomersParams) SetDefaults()
- func (o *ListCustomersParams) SetHTTPClient(client *http.Client)
- func (o *ListCustomersParams) SetSortField(sortField *string)
- func (o *ListCustomersParams) SetSortOrder(sortOrder *string)
- func (o *ListCustomersParams) SetTimeout(timeout time.Duration)
- func (o *ListCustomersParams) WithContext(ctx context.Context) *ListCustomersParams
- func (o *ListCustomersParams) WithCursor(cursor *string) *ListCustomersParams
- func (o *ListCustomersParams) WithDefaults() *ListCustomersParams
- func (o *ListCustomersParams) WithHTTPClient(client *http.Client) *ListCustomersParams
- func (o *ListCustomersParams) WithSortField(sortField *string) *ListCustomersParams
- func (o *ListCustomersParams) WithSortOrder(sortOrder *string) *ListCustomersParams
- func (o *ListCustomersParams) WithTimeout(timeout time.Duration) *ListCustomersParams
- func (o *ListCustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListCustomersReader
- type RemoveGroupFromCustomerOK
- type RemoveGroupFromCustomerParams
- func NewRemoveGroupFromCustomerParams() *RemoveGroupFromCustomerParams
- func NewRemoveGroupFromCustomerParamsWithContext(ctx context.Context) *RemoveGroupFromCustomerParams
- func NewRemoveGroupFromCustomerParamsWithHTTPClient(client *http.Client) *RemoveGroupFromCustomerParams
- func NewRemoveGroupFromCustomerParamsWithTimeout(timeout time.Duration) *RemoveGroupFromCustomerParams
- func (o *RemoveGroupFromCustomerParams) SetContext(ctx context.Context)
- func (o *RemoveGroupFromCustomerParams) SetCustomerID(customerID string)
- func (o *RemoveGroupFromCustomerParams) SetDefaults()
- func (o *RemoveGroupFromCustomerParams) SetGroupID(groupID string)
- func (o *RemoveGroupFromCustomerParams) SetHTTPClient(client *http.Client)
- func (o *RemoveGroupFromCustomerParams) SetTimeout(timeout time.Duration)
- func (o *RemoveGroupFromCustomerParams) WithContext(ctx context.Context) *RemoveGroupFromCustomerParams
- func (o *RemoveGroupFromCustomerParams) WithCustomerID(customerID string) *RemoveGroupFromCustomerParams
- func (o *RemoveGroupFromCustomerParams) WithDefaults() *RemoveGroupFromCustomerParams
- func (o *RemoveGroupFromCustomerParams) WithGroupID(groupID string) *RemoveGroupFromCustomerParams
- func (o *RemoveGroupFromCustomerParams) WithHTTPClient(client *http.Client) *RemoveGroupFromCustomerParams
- func (o *RemoveGroupFromCustomerParams) WithTimeout(timeout time.Duration) *RemoveGroupFromCustomerParams
- func (o *RemoveGroupFromCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveGroupFromCustomerReader
- type RetrieveCustomerOK
- type RetrieveCustomerParams
- func NewRetrieveCustomerParams() *RetrieveCustomerParams
- func NewRetrieveCustomerParamsWithContext(ctx context.Context) *RetrieveCustomerParams
- func NewRetrieveCustomerParamsWithHTTPClient(client *http.Client) *RetrieveCustomerParams
- func NewRetrieveCustomerParamsWithTimeout(timeout time.Duration) *RetrieveCustomerParams
- func (o *RetrieveCustomerParams) SetContext(ctx context.Context)
- func (o *RetrieveCustomerParams) SetCustomerID(customerID string)
- func (o *RetrieveCustomerParams) SetDefaults()
- func (o *RetrieveCustomerParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveCustomerParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveCustomerParams) WithContext(ctx context.Context) *RetrieveCustomerParams
- func (o *RetrieveCustomerParams) WithCustomerID(customerID string) *RetrieveCustomerParams
- func (o *RetrieveCustomerParams) WithDefaults() *RetrieveCustomerParams
- func (o *RetrieveCustomerParams) WithHTTPClient(client *http.Client) *RetrieveCustomerParams
- func (o *RetrieveCustomerParams) WithTimeout(timeout time.Duration) *RetrieveCustomerParams
- func (o *RetrieveCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveCustomerReader
- type SearchCustomersOK
- type SearchCustomersParams
- func NewSearchCustomersParams() *SearchCustomersParams
- func NewSearchCustomersParamsWithContext(ctx context.Context) *SearchCustomersParams
- func NewSearchCustomersParamsWithHTTPClient(client *http.Client) *SearchCustomersParams
- func NewSearchCustomersParamsWithTimeout(timeout time.Duration) *SearchCustomersParams
- func (o *SearchCustomersParams) SetBody(body *models.SearchCustomersRequest)
- func (o *SearchCustomersParams) SetContext(ctx context.Context)
- func (o *SearchCustomersParams) SetDefaults()
- func (o *SearchCustomersParams) SetHTTPClient(client *http.Client)
- func (o *SearchCustomersParams) SetTimeout(timeout time.Duration)
- func (o *SearchCustomersParams) WithBody(body *models.SearchCustomersRequest) *SearchCustomersParams
- func (o *SearchCustomersParams) WithContext(ctx context.Context) *SearchCustomersParams
- func (o *SearchCustomersParams) WithDefaults() *SearchCustomersParams
- func (o *SearchCustomersParams) WithHTTPClient(client *http.Client) *SearchCustomersParams
- func (o *SearchCustomersParams) WithTimeout(timeout time.Duration) *SearchCustomersParams
- func (o *SearchCustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchCustomersReader
- type UpdateCustomerOK
- type UpdateCustomerParams
- func NewUpdateCustomerParams() *UpdateCustomerParams
- func NewUpdateCustomerParamsWithContext(ctx context.Context) *UpdateCustomerParams
- func NewUpdateCustomerParamsWithHTTPClient(client *http.Client) *UpdateCustomerParams
- func NewUpdateCustomerParamsWithTimeout(timeout time.Duration) *UpdateCustomerParams
- func (o *UpdateCustomerParams) SetBody(body *models.UpdateCustomerRequest)
- func (o *UpdateCustomerParams) SetContext(ctx context.Context)
- func (o *UpdateCustomerParams) SetCustomerID(customerID string)
- func (o *UpdateCustomerParams) SetDefaults()
- func (o *UpdateCustomerParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCustomerParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCustomerParams) WithBody(body *models.UpdateCustomerRequest) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithContext(ctx context.Context) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithCustomerID(customerID string) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithDefaults() *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithHTTPClient(client *http.Client) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WithTimeout(timeout time.Duration) *UpdateCustomerParams
- func (o *UpdateCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCustomerReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddGroupToCustomerOK ¶
type AddGroupToCustomerOK struct {
Payload *models.AddGroupToCustomerResponse
}
AddGroupToCustomerOK describes a response with status code 200, with default header values.
Success
func NewAddGroupToCustomerOK ¶
func NewAddGroupToCustomerOK() *AddGroupToCustomerOK
NewAddGroupToCustomerOK creates a AddGroupToCustomerOK with default headers values
func (*AddGroupToCustomerOK) Error ¶
func (o *AddGroupToCustomerOK) Error() string
func (*AddGroupToCustomerOK) GetPayload ¶
func (o *AddGroupToCustomerOK) GetPayload() *models.AddGroupToCustomerResponse
type AddGroupToCustomerParams ¶
type AddGroupToCustomerParams struct { /* CustomerID. The ID of the customer to add to a group. */ CustomerID string /* GroupID. The ID of the customer group to add the customer to. */ GroupID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddGroupToCustomerParams contains all the parameters to send to the API endpoint
for the add group to customer operation. Typically these are written to a http.Request.
func NewAddGroupToCustomerParams ¶
func NewAddGroupToCustomerParams() *AddGroupToCustomerParams
NewAddGroupToCustomerParams creates a new AddGroupToCustomerParams 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 NewAddGroupToCustomerParamsWithContext ¶
func NewAddGroupToCustomerParamsWithContext(ctx context.Context) *AddGroupToCustomerParams
NewAddGroupToCustomerParamsWithContext creates a new AddGroupToCustomerParams object with the ability to set a context for a request.
func NewAddGroupToCustomerParamsWithHTTPClient ¶
func NewAddGroupToCustomerParamsWithHTTPClient(client *http.Client) *AddGroupToCustomerParams
NewAddGroupToCustomerParamsWithHTTPClient creates a new AddGroupToCustomerParams object with the ability to set a custom HTTPClient for a request.
func NewAddGroupToCustomerParamsWithTimeout ¶
func NewAddGroupToCustomerParamsWithTimeout(timeout time.Duration) *AddGroupToCustomerParams
NewAddGroupToCustomerParamsWithTimeout creates a new AddGroupToCustomerParams object with the ability to set a timeout on a request.
func (*AddGroupToCustomerParams) SetContext ¶
func (o *AddGroupToCustomerParams) SetContext(ctx context.Context)
SetContext adds the context to the add group to customer params
func (*AddGroupToCustomerParams) SetCustomerID ¶
func (o *AddGroupToCustomerParams) SetCustomerID(customerID string)
SetCustomerID adds the customerId to the add group to customer params
func (*AddGroupToCustomerParams) SetDefaults ¶
func (o *AddGroupToCustomerParams) SetDefaults()
SetDefaults hydrates default values in the add group to customer params (not the query body).
All values with no default are reset to their zero value.
func (*AddGroupToCustomerParams) SetGroupID ¶
func (o *AddGroupToCustomerParams) SetGroupID(groupID string)
SetGroupID adds the groupId to the add group to customer params
func (*AddGroupToCustomerParams) SetHTTPClient ¶
func (o *AddGroupToCustomerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add group to customer params
func (*AddGroupToCustomerParams) SetTimeout ¶
func (o *AddGroupToCustomerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add group to customer params
func (*AddGroupToCustomerParams) WithContext ¶
func (o *AddGroupToCustomerParams) WithContext(ctx context.Context) *AddGroupToCustomerParams
WithContext adds the context to the add group to customer params
func (*AddGroupToCustomerParams) WithCustomerID ¶
func (o *AddGroupToCustomerParams) WithCustomerID(customerID string) *AddGroupToCustomerParams
WithCustomerID adds the customerID to the add group to customer params
func (*AddGroupToCustomerParams) WithDefaults ¶
func (o *AddGroupToCustomerParams) WithDefaults() *AddGroupToCustomerParams
WithDefaults hydrates default values in the add group to customer params (not the query body).
All values with no default are reset to their zero value.
func (*AddGroupToCustomerParams) WithGroupID ¶
func (o *AddGroupToCustomerParams) WithGroupID(groupID string) *AddGroupToCustomerParams
WithGroupID adds the groupID to the add group to customer params
func (*AddGroupToCustomerParams) WithHTTPClient ¶
func (o *AddGroupToCustomerParams) WithHTTPClient(client *http.Client) *AddGroupToCustomerParams
WithHTTPClient adds the HTTPClient to the add group to customer params
func (*AddGroupToCustomerParams) WithTimeout ¶
func (o *AddGroupToCustomerParams) WithTimeout(timeout time.Duration) *AddGroupToCustomerParams
WithTimeout adds the timeout to the add group to customer params
func (*AddGroupToCustomerParams) WriteToRequest ¶
func (o *AddGroupToCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddGroupToCustomerReader ¶
type AddGroupToCustomerReader struct {
// contains filtered or unexported fields
}
AddGroupToCustomerReader is a Reader for the AddGroupToCustomer structure.
func (*AddGroupToCustomerReader) ReadResponse ¶
func (o *AddGroupToCustomerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for customers API
func (*Client) AddGroupToCustomer ¶
func (a *Client) AddGroupToCustomer(params *AddGroupToCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddGroupToCustomerOK, error)
AddGroupToCustomer adds group to customer Adds a group membership to a customer.
The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.
func (*Client) CreateCustomer ¶
func (a *Client) CreateCustomer(params *CreateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCustomerOK, error)
CreateCustomer creates customer Creates a new customer for a business, which can have associated cards on file.
You must provide __at least one__ of the following values in your request to this endpoint:
- `given_name` - `family_name` - `company_name` - `email_address` - `phone_number`
func (*Client) CreateCustomerCard ¶
func (a *Client) CreateCustomerCard(params *CreateCustomerCardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCustomerCardOK, error)
CreateCustomerCard creates customer card Adds a card on file to an existing customer.
As with charges, calls to `CreateCustomerCard` are idempotent. Multiple calls with the same card nonce return the same card record that was created with the provided nonce during the _first_ call.
func (*Client) DeleteCustomer ¶
func (a *Client) DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerOK, error)
DeleteCustomer deletes customer Deletes a customer from a business, along with any linked cards on file. When two profiles
are merged into a single profile, that profile is assigned a new `customer_id`. You must use the new `customer_id` to delete merged profiles.
func (*Client) DeleteCustomerCard ¶
func (a *Client) DeleteCustomerCard(params *DeleteCustomerCardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerCardOK, error)
DeleteCustomerCard deletes customer card
Removes a card on file from a customer.
func (*Client) ListCustomers ¶
func (a *Client) ListCustomers(params *ListCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCustomersOK, error)
ListCustomers lists customers Lists customer profiles associated with a Square account.
Under normal operating conditions, newly created or updated customer profiles become available for the listing operation in well under 30 seconds. Occasionally, propagation of the new or updated profiles can take closer to one minute or longer, especially during network incidents and outages.
func (*Client) RemoveGroupFromCustomer ¶
func (a *Client) RemoveGroupFromCustomer(params *RemoveGroupFromCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveGroupFromCustomerOK, error)
RemoveGroupFromCustomer removes group from customer Removes a group membership from a customer.
The customer is identified by the `customer_id` value and the customer group is identified by the `group_id` value.
func (*Client) RetrieveCustomer ¶
func (a *Client) RetrieveCustomer(params *RetrieveCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveCustomerOK, error)
RetrieveCustomer retrieves customer
Returns details for a single customer.
func (*Client) SearchCustomers ¶
func (a *Client) SearchCustomers(params *SearchCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchCustomersOK, error)
SearchCustomers searches customers Searches the customer profiles associated with a Square account using a supported query filter.
Calling `SearchCustomers` without any explicit query filter returns all customer profiles ordered alphabetically based on `given_name` and `family_name`.
Under normal operating conditions, newly created or updated customer profiles become available for the search operation in well under 30 seconds. Occasionally, propagation of the new or updated profiles can take closer to one minute or longer, especially during network incidents and outages.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCustomer ¶
func (a *Client) UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerOK, error)
UpdateCustomer updates customer Updates the details of an existing customer. When two profiles are merged
into a single profile, that profile is assigned a new `customer_id`. You must use the new `customer_id` to update merged profiles.
You cannot edit a customer's cards on file with this endpoint. To make changes to a card on file, you must delete the existing card on file with the [DeleteCustomerCard](#endpoint-Customers-deletecustomercard) endpoint, then create a new one with the [CreateCustomerCard](#endpoint-Customers-createcustomercard) endpoint.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AddGroupToCustomer(params *AddGroupToCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddGroupToCustomerOK, error) CreateCustomer(params *CreateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCustomerOK, error) CreateCustomerCard(params *CreateCustomerCardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCustomerCardOK, error) DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerOK, error) DeleteCustomerCard(params *DeleteCustomerCardParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerCardOK, error) ListCustomers(params *ListCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCustomersOK, error) RemoveGroupFromCustomer(params *RemoveGroupFromCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveGroupFromCustomerOK, error) RetrieveCustomer(params *RetrieveCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RetrieveCustomerOK, error) SearchCustomers(params *SearchCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchCustomersOK, error) UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerOK, 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 customers API client.
type CreateCustomerCardOK ¶
type CreateCustomerCardOK struct {
Payload *models.CreateCustomerCardResponse
}
CreateCustomerCardOK describes a response with status code 200, with default header values.
Success
func NewCreateCustomerCardOK ¶
func NewCreateCustomerCardOK() *CreateCustomerCardOK
NewCreateCustomerCardOK creates a CreateCustomerCardOK with default headers values
func (*CreateCustomerCardOK) Error ¶
func (o *CreateCustomerCardOK) Error() string
func (*CreateCustomerCardOK) GetPayload ¶
func (o *CreateCustomerCardOK) GetPayload() *models.CreateCustomerCardResponse
type CreateCustomerCardParams ¶
type CreateCustomerCardParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.CreateCustomerCardRequest /* CustomerID. The Square ID of the customer profile the card is linked to. */ CustomerID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCustomerCardParams contains all the parameters to send to the API endpoint
for the create customer card operation. Typically these are written to a http.Request.
func NewCreateCustomerCardParams ¶
func NewCreateCustomerCardParams() *CreateCustomerCardParams
NewCreateCustomerCardParams creates a new CreateCustomerCardParams 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 NewCreateCustomerCardParamsWithContext ¶
func NewCreateCustomerCardParamsWithContext(ctx context.Context) *CreateCustomerCardParams
NewCreateCustomerCardParamsWithContext creates a new CreateCustomerCardParams object with the ability to set a context for a request.
func NewCreateCustomerCardParamsWithHTTPClient ¶
func NewCreateCustomerCardParamsWithHTTPClient(client *http.Client) *CreateCustomerCardParams
NewCreateCustomerCardParamsWithHTTPClient creates a new CreateCustomerCardParams object with the ability to set a custom HTTPClient for a request.
func NewCreateCustomerCardParamsWithTimeout ¶
func NewCreateCustomerCardParamsWithTimeout(timeout time.Duration) *CreateCustomerCardParams
NewCreateCustomerCardParamsWithTimeout creates a new CreateCustomerCardParams object with the ability to set a timeout on a request.
func (*CreateCustomerCardParams) SetBody ¶
func (o *CreateCustomerCardParams) SetBody(body *models.CreateCustomerCardRequest)
SetBody adds the body to the create customer card params
func (*CreateCustomerCardParams) SetContext ¶
func (o *CreateCustomerCardParams) SetContext(ctx context.Context)
SetContext adds the context to the create customer card params
func (*CreateCustomerCardParams) SetCustomerID ¶
func (o *CreateCustomerCardParams) SetCustomerID(customerID string)
SetCustomerID adds the customerId to the create customer card params
func (*CreateCustomerCardParams) SetDefaults ¶
func (o *CreateCustomerCardParams) SetDefaults()
SetDefaults hydrates default values in the create customer card params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCustomerCardParams) SetHTTPClient ¶
func (o *CreateCustomerCardParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create customer card params
func (*CreateCustomerCardParams) SetTimeout ¶
func (o *CreateCustomerCardParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create customer card params
func (*CreateCustomerCardParams) WithBody ¶
func (o *CreateCustomerCardParams) WithBody(body *models.CreateCustomerCardRequest) *CreateCustomerCardParams
WithBody adds the body to the create customer card params
func (*CreateCustomerCardParams) WithContext ¶
func (o *CreateCustomerCardParams) WithContext(ctx context.Context) *CreateCustomerCardParams
WithContext adds the context to the create customer card params
func (*CreateCustomerCardParams) WithCustomerID ¶
func (o *CreateCustomerCardParams) WithCustomerID(customerID string) *CreateCustomerCardParams
WithCustomerID adds the customerID to the create customer card params
func (*CreateCustomerCardParams) WithDefaults ¶
func (o *CreateCustomerCardParams) WithDefaults() *CreateCustomerCardParams
WithDefaults hydrates default values in the create customer card params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCustomerCardParams) WithHTTPClient ¶
func (o *CreateCustomerCardParams) WithHTTPClient(client *http.Client) *CreateCustomerCardParams
WithHTTPClient adds the HTTPClient to the create customer card params
func (*CreateCustomerCardParams) WithTimeout ¶
func (o *CreateCustomerCardParams) WithTimeout(timeout time.Duration) *CreateCustomerCardParams
WithTimeout adds the timeout to the create customer card params
func (*CreateCustomerCardParams) WriteToRequest ¶
func (o *CreateCustomerCardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCustomerCardReader ¶
type CreateCustomerCardReader struct {
// contains filtered or unexported fields
}
CreateCustomerCardReader is a Reader for the CreateCustomerCard structure.
func (*CreateCustomerCardReader) ReadResponse ¶
func (o *CreateCustomerCardReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateCustomerOK ¶
type CreateCustomerOK struct {
Payload *models.CreateCustomerResponse
}
CreateCustomerOK describes a response with status code 200, with default header values.
Success
func NewCreateCustomerOK ¶
func NewCreateCustomerOK() *CreateCustomerOK
NewCreateCustomerOK creates a CreateCustomerOK with default headers values
func (*CreateCustomerOK) Error ¶
func (o *CreateCustomerOK) Error() string
func (*CreateCustomerOK) GetPayload ¶
func (o *CreateCustomerOK) GetPayload() *models.CreateCustomerResponse
type CreateCustomerParams ¶
type CreateCustomerParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.CreateCustomerRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCustomerParams contains all the parameters to send to the API endpoint
for the create customer operation. Typically these are written to a http.Request.
func NewCreateCustomerParams ¶
func NewCreateCustomerParams() *CreateCustomerParams
NewCreateCustomerParams creates a new CreateCustomerParams 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 NewCreateCustomerParamsWithContext ¶
func NewCreateCustomerParamsWithContext(ctx context.Context) *CreateCustomerParams
NewCreateCustomerParamsWithContext creates a new CreateCustomerParams object with the ability to set a context for a request.
func NewCreateCustomerParamsWithHTTPClient ¶
func NewCreateCustomerParamsWithHTTPClient(client *http.Client) *CreateCustomerParams
NewCreateCustomerParamsWithHTTPClient creates a new CreateCustomerParams object with the ability to set a custom HTTPClient for a request.
func NewCreateCustomerParamsWithTimeout ¶
func NewCreateCustomerParamsWithTimeout(timeout time.Duration) *CreateCustomerParams
NewCreateCustomerParamsWithTimeout creates a new CreateCustomerParams object with the ability to set a timeout on a request.
func (*CreateCustomerParams) SetBody ¶
func (o *CreateCustomerParams) SetBody(body *models.CreateCustomerRequest)
SetBody adds the body to the create customer params
func (*CreateCustomerParams) SetContext ¶
func (o *CreateCustomerParams) SetContext(ctx context.Context)
SetContext adds the context to the create customer params
func (*CreateCustomerParams) SetDefaults ¶
func (o *CreateCustomerParams) SetDefaults()
SetDefaults hydrates default values in the create customer params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCustomerParams) SetHTTPClient ¶
func (o *CreateCustomerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create customer params
func (*CreateCustomerParams) SetTimeout ¶
func (o *CreateCustomerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create customer params
func (*CreateCustomerParams) WithBody ¶
func (o *CreateCustomerParams) WithBody(body *models.CreateCustomerRequest) *CreateCustomerParams
WithBody adds the body to the create customer params
func (*CreateCustomerParams) WithContext ¶
func (o *CreateCustomerParams) WithContext(ctx context.Context) *CreateCustomerParams
WithContext adds the context to the create customer params
func (*CreateCustomerParams) WithDefaults ¶
func (o *CreateCustomerParams) WithDefaults() *CreateCustomerParams
WithDefaults hydrates default values in the create customer params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCustomerParams) WithHTTPClient ¶
func (o *CreateCustomerParams) WithHTTPClient(client *http.Client) *CreateCustomerParams
WithHTTPClient adds the HTTPClient to the create customer params
func (*CreateCustomerParams) WithTimeout ¶
func (o *CreateCustomerParams) WithTimeout(timeout time.Duration) *CreateCustomerParams
WithTimeout adds the timeout to the create customer params
func (*CreateCustomerParams) WriteToRequest ¶
func (o *CreateCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCustomerReader ¶
type CreateCustomerReader struct {
// contains filtered or unexported fields
}
CreateCustomerReader is a Reader for the CreateCustomer structure.
func (*CreateCustomerReader) ReadResponse ¶
func (o *CreateCustomerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCustomerCardOK ¶
type DeleteCustomerCardOK struct {
Payload *models.DeleteCustomerCardResponse
}
DeleteCustomerCardOK describes a response with status code 200, with default header values.
Success
func NewDeleteCustomerCardOK ¶
func NewDeleteCustomerCardOK() *DeleteCustomerCardOK
NewDeleteCustomerCardOK creates a DeleteCustomerCardOK with default headers values
func (*DeleteCustomerCardOK) Error ¶
func (o *DeleteCustomerCardOK) Error() string
func (*DeleteCustomerCardOK) GetPayload ¶
func (o *DeleteCustomerCardOK) GetPayload() *models.DeleteCustomerCardResponse
type DeleteCustomerCardParams ¶
type DeleteCustomerCardParams struct { /* CardID. The ID of the card on file to delete. */ CardID string /* CustomerID. The ID of the customer that the card on file belongs to. */ CustomerID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCustomerCardParams contains all the parameters to send to the API endpoint
for the delete customer card operation. Typically these are written to a http.Request.
func NewDeleteCustomerCardParams ¶
func NewDeleteCustomerCardParams() *DeleteCustomerCardParams
NewDeleteCustomerCardParams creates a new DeleteCustomerCardParams 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 NewDeleteCustomerCardParamsWithContext ¶
func NewDeleteCustomerCardParamsWithContext(ctx context.Context) *DeleteCustomerCardParams
NewDeleteCustomerCardParamsWithContext creates a new DeleteCustomerCardParams object with the ability to set a context for a request.
func NewDeleteCustomerCardParamsWithHTTPClient ¶
func NewDeleteCustomerCardParamsWithHTTPClient(client *http.Client) *DeleteCustomerCardParams
NewDeleteCustomerCardParamsWithHTTPClient creates a new DeleteCustomerCardParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteCustomerCardParamsWithTimeout ¶
func NewDeleteCustomerCardParamsWithTimeout(timeout time.Duration) *DeleteCustomerCardParams
NewDeleteCustomerCardParamsWithTimeout creates a new DeleteCustomerCardParams object with the ability to set a timeout on a request.
func (*DeleteCustomerCardParams) SetCardID ¶
func (o *DeleteCustomerCardParams) SetCardID(cardID string)
SetCardID adds the cardId to the delete customer card params
func (*DeleteCustomerCardParams) SetContext ¶
func (o *DeleteCustomerCardParams) SetContext(ctx context.Context)
SetContext adds the context to the delete customer card params
func (*DeleteCustomerCardParams) SetCustomerID ¶
func (o *DeleteCustomerCardParams) SetCustomerID(customerID string)
SetCustomerID adds the customerId to the delete customer card params
func (*DeleteCustomerCardParams) SetDefaults ¶
func (o *DeleteCustomerCardParams) SetDefaults()
SetDefaults hydrates default values in the delete customer card params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomerCardParams) SetHTTPClient ¶
func (o *DeleteCustomerCardParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete customer card params
func (*DeleteCustomerCardParams) SetTimeout ¶
func (o *DeleteCustomerCardParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete customer card params
func (*DeleteCustomerCardParams) WithCardID ¶
func (o *DeleteCustomerCardParams) WithCardID(cardID string) *DeleteCustomerCardParams
WithCardID adds the cardID to the delete customer card params
func (*DeleteCustomerCardParams) WithContext ¶
func (o *DeleteCustomerCardParams) WithContext(ctx context.Context) *DeleteCustomerCardParams
WithContext adds the context to the delete customer card params
func (*DeleteCustomerCardParams) WithCustomerID ¶
func (o *DeleteCustomerCardParams) WithCustomerID(customerID string) *DeleteCustomerCardParams
WithCustomerID adds the customerID to the delete customer card params
func (*DeleteCustomerCardParams) WithDefaults ¶
func (o *DeleteCustomerCardParams) WithDefaults() *DeleteCustomerCardParams
WithDefaults hydrates default values in the delete customer card params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomerCardParams) WithHTTPClient ¶
func (o *DeleteCustomerCardParams) WithHTTPClient(client *http.Client) *DeleteCustomerCardParams
WithHTTPClient adds the HTTPClient to the delete customer card params
func (*DeleteCustomerCardParams) WithTimeout ¶
func (o *DeleteCustomerCardParams) WithTimeout(timeout time.Duration) *DeleteCustomerCardParams
WithTimeout adds the timeout to the delete customer card params
func (*DeleteCustomerCardParams) WriteToRequest ¶
func (o *DeleteCustomerCardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCustomerCardReader ¶
type DeleteCustomerCardReader struct {
// contains filtered or unexported fields
}
DeleteCustomerCardReader is a Reader for the DeleteCustomerCard structure.
func (*DeleteCustomerCardReader) ReadResponse ¶
func (o *DeleteCustomerCardReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCustomerOK ¶
type DeleteCustomerOK struct {
Payload *models.DeleteCustomerResponse
}
DeleteCustomerOK describes a response with status code 200, with default header values.
Success
func NewDeleteCustomerOK ¶
func NewDeleteCustomerOK() *DeleteCustomerOK
NewDeleteCustomerOK creates a DeleteCustomerOK with default headers values
func (*DeleteCustomerOK) Error ¶
func (o *DeleteCustomerOK) Error() string
func (*DeleteCustomerOK) GetPayload ¶
func (o *DeleteCustomerOK) GetPayload() *models.DeleteCustomerResponse
type DeleteCustomerParams ¶
type DeleteCustomerParams struct { /* CustomerID. The ID of the customer to delete. */ CustomerID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCustomerParams contains all the parameters to send to the API endpoint
for the delete customer operation. Typically these are written to a http.Request.
func NewDeleteCustomerParams ¶
func NewDeleteCustomerParams() *DeleteCustomerParams
NewDeleteCustomerParams creates a new DeleteCustomerParams 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 NewDeleteCustomerParamsWithContext ¶
func NewDeleteCustomerParamsWithContext(ctx context.Context) *DeleteCustomerParams
NewDeleteCustomerParamsWithContext creates a new DeleteCustomerParams object with the ability to set a context for a request.
func NewDeleteCustomerParamsWithHTTPClient ¶
func NewDeleteCustomerParamsWithHTTPClient(client *http.Client) *DeleteCustomerParams
NewDeleteCustomerParamsWithHTTPClient creates a new DeleteCustomerParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteCustomerParamsWithTimeout ¶
func NewDeleteCustomerParamsWithTimeout(timeout time.Duration) *DeleteCustomerParams
NewDeleteCustomerParamsWithTimeout creates a new DeleteCustomerParams object with the ability to set a timeout on a request.
func (*DeleteCustomerParams) SetContext ¶
func (o *DeleteCustomerParams) SetContext(ctx context.Context)
SetContext adds the context to the delete customer params
func (*DeleteCustomerParams) SetCustomerID ¶
func (o *DeleteCustomerParams) SetCustomerID(customerID string)
SetCustomerID adds the customerId to the delete customer params
func (*DeleteCustomerParams) SetDefaults ¶
func (o *DeleteCustomerParams) SetDefaults()
SetDefaults hydrates default values in the delete customer params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomerParams) SetHTTPClient ¶
func (o *DeleteCustomerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete customer params
func (*DeleteCustomerParams) SetTimeout ¶
func (o *DeleteCustomerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete customer params
func (*DeleteCustomerParams) WithContext ¶
func (o *DeleteCustomerParams) WithContext(ctx context.Context) *DeleteCustomerParams
WithContext adds the context to the delete customer params
func (*DeleteCustomerParams) WithCustomerID ¶
func (o *DeleteCustomerParams) WithCustomerID(customerID string) *DeleteCustomerParams
WithCustomerID adds the customerID to the delete customer params
func (*DeleteCustomerParams) WithDefaults ¶
func (o *DeleteCustomerParams) WithDefaults() *DeleteCustomerParams
WithDefaults hydrates default values in the delete customer params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomerParams) WithHTTPClient ¶
func (o *DeleteCustomerParams) WithHTTPClient(client *http.Client) *DeleteCustomerParams
WithHTTPClient adds the HTTPClient to the delete customer params
func (*DeleteCustomerParams) WithTimeout ¶
func (o *DeleteCustomerParams) WithTimeout(timeout time.Duration) *DeleteCustomerParams
WithTimeout adds the timeout to the delete customer params
func (*DeleteCustomerParams) WriteToRequest ¶
func (o *DeleteCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCustomerReader ¶
type DeleteCustomerReader struct {
// contains filtered or unexported fields
}
DeleteCustomerReader is a Reader for the DeleteCustomer structure.
func (*DeleteCustomerReader) ReadResponse ¶
func (o *DeleteCustomerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListCustomersOK ¶
type ListCustomersOK struct {
Payload *models.ListCustomersResponse
}
ListCustomersOK describes a response with status code 200, with default header values.
Success
func NewListCustomersOK ¶
func NewListCustomersOK() *ListCustomersOK
NewListCustomersOK creates a ListCustomersOK with default headers values
func (*ListCustomersOK) Error ¶
func (o *ListCustomersOK) Error() string
func (*ListCustomersOK) GetPayload ¶
func (o *ListCustomersOK) GetPayload() *models.ListCustomersResponse
type ListCustomersParams ¶
type ListCustomersParams 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 /* SortField. Indicates how Customers should be sorted. Default: `DEFAULT`. */ SortField *string /* SortOrder. Indicates whether Customers should be sorted in ascending (`ASC`) or descending (`DESC`) order. Default: `ASC`. */ SortOrder *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListCustomersParams contains all the parameters to send to the API endpoint
for the list customers operation. Typically these are written to a http.Request.
func NewListCustomersParams ¶
func NewListCustomersParams() *ListCustomersParams
NewListCustomersParams creates a new ListCustomersParams 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 NewListCustomersParamsWithContext ¶
func NewListCustomersParamsWithContext(ctx context.Context) *ListCustomersParams
NewListCustomersParamsWithContext creates a new ListCustomersParams object with the ability to set a context for a request.
func NewListCustomersParamsWithHTTPClient ¶
func NewListCustomersParamsWithHTTPClient(client *http.Client) *ListCustomersParams
NewListCustomersParamsWithHTTPClient creates a new ListCustomersParams object with the ability to set a custom HTTPClient for a request.
func NewListCustomersParamsWithTimeout ¶
func NewListCustomersParamsWithTimeout(timeout time.Duration) *ListCustomersParams
NewListCustomersParamsWithTimeout creates a new ListCustomersParams object with the ability to set a timeout on a request.
func (*ListCustomersParams) SetContext ¶
func (o *ListCustomersParams) SetContext(ctx context.Context)
SetContext adds the context to the list customers params
func (*ListCustomersParams) SetCursor ¶
func (o *ListCustomersParams) SetCursor(cursor *string)
SetCursor adds the cursor to the list customers params
func (*ListCustomersParams) SetDefaults ¶
func (o *ListCustomersParams) SetDefaults()
SetDefaults hydrates default values in the list customers params (not the query body).
All values with no default are reset to their zero value.
func (*ListCustomersParams) SetHTTPClient ¶
func (o *ListCustomersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list customers params
func (*ListCustomersParams) SetSortField ¶
func (o *ListCustomersParams) SetSortField(sortField *string)
SetSortField adds the sortField to the list customers params
func (*ListCustomersParams) SetSortOrder ¶
func (o *ListCustomersParams) SetSortOrder(sortOrder *string)
SetSortOrder adds the sortOrder to the list customers params
func (*ListCustomersParams) SetTimeout ¶
func (o *ListCustomersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list customers params
func (*ListCustomersParams) WithContext ¶
func (o *ListCustomersParams) WithContext(ctx context.Context) *ListCustomersParams
WithContext adds the context to the list customers params
func (*ListCustomersParams) WithCursor ¶
func (o *ListCustomersParams) WithCursor(cursor *string) *ListCustomersParams
WithCursor adds the cursor to the list customers params
func (*ListCustomersParams) WithDefaults ¶
func (o *ListCustomersParams) WithDefaults() *ListCustomersParams
WithDefaults hydrates default values in the list customers params (not the query body).
All values with no default are reset to their zero value.
func (*ListCustomersParams) WithHTTPClient ¶
func (o *ListCustomersParams) WithHTTPClient(client *http.Client) *ListCustomersParams
WithHTTPClient adds the HTTPClient to the list customers params
func (*ListCustomersParams) WithSortField ¶
func (o *ListCustomersParams) WithSortField(sortField *string) *ListCustomersParams
WithSortField adds the sortField to the list customers params
func (*ListCustomersParams) WithSortOrder ¶
func (o *ListCustomersParams) WithSortOrder(sortOrder *string) *ListCustomersParams
WithSortOrder adds the sortOrder to the list customers params
func (*ListCustomersParams) WithTimeout ¶
func (o *ListCustomersParams) WithTimeout(timeout time.Duration) *ListCustomersParams
WithTimeout adds the timeout to the list customers params
func (*ListCustomersParams) WriteToRequest ¶
func (o *ListCustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListCustomersReader ¶
type ListCustomersReader struct {
// contains filtered or unexported fields
}
ListCustomersReader is a Reader for the ListCustomers structure.
func (*ListCustomersReader) ReadResponse ¶
func (o *ListCustomersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveGroupFromCustomerOK ¶
type RemoveGroupFromCustomerOK struct {
Payload *models.RemoveGroupFromCustomerResponse
}
RemoveGroupFromCustomerOK describes a response with status code 200, with default header values.
Success
func NewRemoveGroupFromCustomerOK ¶
func NewRemoveGroupFromCustomerOK() *RemoveGroupFromCustomerOK
NewRemoveGroupFromCustomerOK creates a RemoveGroupFromCustomerOK with default headers values
func (*RemoveGroupFromCustomerOK) Error ¶
func (o *RemoveGroupFromCustomerOK) Error() string
func (*RemoveGroupFromCustomerOK) GetPayload ¶
func (o *RemoveGroupFromCustomerOK) GetPayload() *models.RemoveGroupFromCustomerResponse
type RemoveGroupFromCustomerParams ¶
type RemoveGroupFromCustomerParams struct { /* CustomerID. The ID of the customer to remove from the group. */ CustomerID string /* GroupID. The ID of the customer group to remove the customer from. */ GroupID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveGroupFromCustomerParams contains all the parameters to send to the API endpoint
for the remove group from customer operation. Typically these are written to a http.Request.
func NewRemoveGroupFromCustomerParams ¶
func NewRemoveGroupFromCustomerParams() *RemoveGroupFromCustomerParams
NewRemoveGroupFromCustomerParams creates a new RemoveGroupFromCustomerParams 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 NewRemoveGroupFromCustomerParamsWithContext ¶
func NewRemoveGroupFromCustomerParamsWithContext(ctx context.Context) *RemoveGroupFromCustomerParams
NewRemoveGroupFromCustomerParamsWithContext creates a new RemoveGroupFromCustomerParams object with the ability to set a context for a request.
func NewRemoveGroupFromCustomerParamsWithHTTPClient ¶
func NewRemoveGroupFromCustomerParamsWithHTTPClient(client *http.Client) *RemoveGroupFromCustomerParams
NewRemoveGroupFromCustomerParamsWithHTTPClient creates a new RemoveGroupFromCustomerParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveGroupFromCustomerParamsWithTimeout ¶
func NewRemoveGroupFromCustomerParamsWithTimeout(timeout time.Duration) *RemoveGroupFromCustomerParams
NewRemoveGroupFromCustomerParamsWithTimeout creates a new RemoveGroupFromCustomerParams object with the ability to set a timeout on a request.
func (*RemoveGroupFromCustomerParams) SetContext ¶
func (o *RemoveGroupFromCustomerParams) SetContext(ctx context.Context)
SetContext adds the context to the remove group from customer params
func (*RemoveGroupFromCustomerParams) SetCustomerID ¶
func (o *RemoveGroupFromCustomerParams) SetCustomerID(customerID string)
SetCustomerID adds the customerId to the remove group from customer params
func (*RemoveGroupFromCustomerParams) SetDefaults ¶
func (o *RemoveGroupFromCustomerParams) SetDefaults()
SetDefaults hydrates default values in the remove group from customer params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveGroupFromCustomerParams) SetGroupID ¶
func (o *RemoveGroupFromCustomerParams) SetGroupID(groupID string)
SetGroupID adds the groupId to the remove group from customer params
func (*RemoveGroupFromCustomerParams) SetHTTPClient ¶
func (o *RemoveGroupFromCustomerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove group from customer params
func (*RemoveGroupFromCustomerParams) SetTimeout ¶
func (o *RemoveGroupFromCustomerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove group from customer params
func (*RemoveGroupFromCustomerParams) WithContext ¶
func (o *RemoveGroupFromCustomerParams) WithContext(ctx context.Context) *RemoveGroupFromCustomerParams
WithContext adds the context to the remove group from customer params
func (*RemoveGroupFromCustomerParams) WithCustomerID ¶
func (o *RemoveGroupFromCustomerParams) WithCustomerID(customerID string) *RemoveGroupFromCustomerParams
WithCustomerID adds the customerID to the remove group from customer params
func (*RemoveGroupFromCustomerParams) WithDefaults ¶
func (o *RemoveGroupFromCustomerParams) WithDefaults() *RemoveGroupFromCustomerParams
WithDefaults hydrates default values in the remove group from customer params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveGroupFromCustomerParams) WithGroupID ¶
func (o *RemoveGroupFromCustomerParams) WithGroupID(groupID string) *RemoveGroupFromCustomerParams
WithGroupID adds the groupID to the remove group from customer params
func (*RemoveGroupFromCustomerParams) WithHTTPClient ¶
func (o *RemoveGroupFromCustomerParams) WithHTTPClient(client *http.Client) *RemoveGroupFromCustomerParams
WithHTTPClient adds the HTTPClient to the remove group from customer params
func (*RemoveGroupFromCustomerParams) WithTimeout ¶
func (o *RemoveGroupFromCustomerParams) WithTimeout(timeout time.Duration) *RemoveGroupFromCustomerParams
WithTimeout adds the timeout to the remove group from customer params
func (*RemoveGroupFromCustomerParams) WriteToRequest ¶
func (o *RemoveGroupFromCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveGroupFromCustomerReader ¶
type RemoveGroupFromCustomerReader struct {
// contains filtered or unexported fields
}
RemoveGroupFromCustomerReader is a Reader for the RemoveGroupFromCustomer structure.
func (*RemoveGroupFromCustomerReader) ReadResponse ¶
func (o *RemoveGroupFromCustomerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrieveCustomerOK ¶
type RetrieveCustomerOK struct {
Payload *models.RetrieveCustomerResponse
}
RetrieveCustomerOK describes a response with status code 200, with default header values.
Success
func NewRetrieveCustomerOK ¶
func NewRetrieveCustomerOK() *RetrieveCustomerOK
NewRetrieveCustomerOK creates a RetrieveCustomerOK with default headers values
func (*RetrieveCustomerOK) Error ¶
func (o *RetrieveCustomerOK) Error() string
func (*RetrieveCustomerOK) GetPayload ¶
func (o *RetrieveCustomerOK) GetPayload() *models.RetrieveCustomerResponse
type RetrieveCustomerParams ¶
type RetrieveCustomerParams struct { /* CustomerID. The ID of the customer to retrieve. */ CustomerID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveCustomerParams contains all the parameters to send to the API endpoint
for the retrieve customer operation. Typically these are written to a http.Request.
func NewRetrieveCustomerParams ¶
func NewRetrieveCustomerParams() *RetrieveCustomerParams
NewRetrieveCustomerParams creates a new RetrieveCustomerParams 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 NewRetrieveCustomerParamsWithContext ¶
func NewRetrieveCustomerParamsWithContext(ctx context.Context) *RetrieveCustomerParams
NewRetrieveCustomerParamsWithContext creates a new RetrieveCustomerParams object with the ability to set a context for a request.
func NewRetrieveCustomerParamsWithHTTPClient ¶
func NewRetrieveCustomerParamsWithHTTPClient(client *http.Client) *RetrieveCustomerParams
NewRetrieveCustomerParamsWithHTTPClient creates a new RetrieveCustomerParams object with the ability to set a custom HTTPClient for a request.
func NewRetrieveCustomerParamsWithTimeout ¶
func NewRetrieveCustomerParamsWithTimeout(timeout time.Duration) *RetrieveCustomerParams
NewRetrieveCustomerParamsWithTimeout creates a new RetrieveCustomerParams object with the ability to set a timeout on a request.
func (*RetrieveCustomerParams) SetContext ¶
func (o *RetrieveCustomerParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve customer params
func (*RetrieveCustomerParams) SetCustomerID ¶
func (o *RetrieveCustomerParams) SetCustomerID(customerID string)
SetCustomerID adds the customerId to the retrieve customer params
func (*RetrieveCustomerParams) SetDefaults ¶
func (o *RetrieveCustomerParams) SetDefaults()
SetDefaults hydrates default values in the retrieve customer params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveCustomerParams) SetHTTPClient ¶
func (o *RetrieveCustomerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve customer params
func (*RetrieveCustomerParams) SetTimeout ¶
func (o *RetrieveCustomerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve customer params
func (*RetrieveCustomerParams) WithContext ¶
func (o *RetrieveCustomerParams) WithContext(ctx context.Context) *RetrieveCustomerParams
WithContext adds the context to the retrieve customer params
func (*RetrieveCustomerParams) WithCustomerID ¶
func (o *RetrieveCustomerParams) WithCustomerID(customerID string) *RetrieveCustomerParams
WithCustomerID adds the customerID to the retrieve customer params
func (*RetrieveCustomerParams) WithDefaults ¶
func (o *RetrieveCustomerParams) WithDefaults() *RetrieveCustomerParams
WithDefaults hydrates default values in the retrieve customer params (not the query body).
All values with no default are reset to their zero value.
func (*RetrieveCustomerParams) WithHTTPClient ¶
func (o *RetrieveCustomerParams) WithHTTPClient(client *http.Client) *RetrieveCustomerParams
WithHTTPClient adds the HTTPClient to the retrieve customer params
func (*RetrieveCustomerParams) WithTimeout ¶
func (o *RetrieveCustomerParams) WithTimeout(timeout time.Duration) *RetrieveCustomerParams
WithTimeout adds the timeout to the retrieve customer params
func (*RetrieveCustomerParams) WriteToRequest ¶
func (o *RetrieveCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveCustomerReader ¶
type RetrieveCustomerReader struct {
// contains filtered or unexported fields
}
RetrieveCustomerReader is a Reader for the RetrieveCustomer structure.
func (*RetrieveCustomerReader) ReadResponse ¶
func (o *RetrieveCustomerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SearchCustomersOK ¶
type SearchCustomersOK struct {
Payload *models.SearchCustomersResponse
}
SearchCustomersOK describes a response with status code 200, with default header values.
Success
func NewSearchCustomersOK ¶
func NewSearchCustomersOK() *SearchCustomersOK
NewSearchCustomersOK creates a SearchCustomersOK with default headers values
func (*SearchCustomersOK) Error ¶
func (o *SearchCustomersOK) Error() string
func (*SearchCustomersOK) GetPayload ¶
func (o *SearchCustomersOK) GetPayload() *models.SearchCustomersResponse
type SearchCustomersParams ¶
type SearchCustomersParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.SearchCustomersRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchCustomersParams contains all the parameters to send to the API endpoint
for the search customers operation. Typically these are written to a http.Request.
func NewSearchCustomersParams ¶
func NewSearchCustomersParams() *SearchCustomersParams
NewSearchCustomersParams creates a new SearchCustomersParams 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 NewSearchCustomersParamsWithContext ¶
func NewSearchCustomersParamsWithContext(ctx context.Context) *SearchCustomersParams
NewSearchCustomersParamsWithContext creates a new SearchCustomersParams object with the ability to set a context for a request.
func NewSearchCustomersParamsWithHTTPClient ¶
func NewSearchCustomersParamsWithHTTPClient(client *http.Client) *SearchCustomersParams
NewSearchCustomersParamsWithHTTPClient creates a new SearchCustomersParams object with the ability to set a custom HTTPClient for a request.
func NewSearchCustomersParamsWithTimeout ¶
func NewSearchCustomersParamsWithTimeout(timeout time.Duration) *SearchCustomersParams
NewSearchCustomersParamsWithTimeout creates a new SearchCustomersParams object with the ability to set a timeout on a request.
func (*SearchCustomersParams) SetBody ¶
func (o *SearchCustomersParams) SetBody(body *models.SearchCustomersRequest)
SetBody adds the body to the search customers params
func (*SearchCustomersParams) SetContext ¶
func (o *SearchCustomersParams) SetContext(ctx context.Context)
SetContext adds the context to the search customers params
func (*SearchCustomersParams) SetDefaults ¶
func (o *SearchCustomersParams) SetDefaults()
SetDefaults hydrates default values in the search customers params (not the query body).
All values with no default are reset to their zero value.
func (*SearchCustomersParams) SetHTTPClient ¶
func (o *SearchCustomersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search customers params
func (*SearchCustomersParams) SetTimeout ¶
func (o *SearchCustomersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search customers params
func (*SearchCustomersParams) WithBody ¶
func (o *SearchCustomersParams) WithBody(body *models.SearchCustomersRequest) *SearchCustomersParams
WithBody adds the body to the search customers params
func (*SearchCustomersParams) WithContext ¶
func (o *SearchCustomersParams) WithContext(ctx context.Context) *SearchCustomersParams
WithContext adds the context to the search customers params
func (*SearchCustomersParams) WithDefaults ¶
func (o *SearchCustomersParams) WithDefaults() *SearchCustomersParams
WithDefaults hydrates default values in the search customers params (not the query body).
All values with no default are reset to their zero value.
func (*SearchCustomersParams) WithHTTPClient ¶
func (o *SearchCustomersParams) WithHTTPClient(client *http.Client) *SearchCustomersParams
WithHTTPClient adds the HTTPClient to the search customers params
func (*SearchCustomersParams) WithTimeout ¶
func (o *SearchCustomersParams) WithTimeout(timeout time.Duration) *SearchCustomersParams
WithTimeout adds the timeout to the search customers params
func (*SearchCustomersParams) WriteToRequest ¶
func (o *SearchCustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchCustomersReader ¶
type SearchCustomersReader struct {
// contains filtered or unexported fields
}
SearchCustomersReader is a Reader for the SearchCustomers structure.
func (*SearchCustomersReader) ReadResponse ¶
func (o *SearchCustomersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCustomerOK ¶
type UpdateCustomerOK struct {
Payload *models.UpdateCustomerResponse
}
UpdateCustomerOK describes a response with status code 200, with default header values.
Success
func NewUpdateCustomerOK ¶
func NewUpdateCustomerOK() *UpdateCustomerOK
NewUpdateCustomerOK creates a UpdateCustomerOK with default headers values
func (*UpdateCustomerOK) Error ¶
func (o *UpdateCustomerOK) Error() string
func (*UpdateCustomerOK) GetPayload ¶
func (o *UpdateCustomerOK) GetPayload() *models.UpdateCustomerResponse
type UpdateCustomerParams ¶
type UpdateCustomerParams struct { /* Body. An object containing the fields to POST for the request. See the corresponding object definition for field details. */ Body *models.UpdateCustomerRequest /* CustomerID. The ID of the customer to update. */ CustomerID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCustomerParams contains all the parameters to send to the API endpoint
for the update customer operation. Typically these are written to a http.Request.
func NewUpdateCustomerParams ¶
func NewUpdateCustomerParams() *UpdateCustomerParams
NewUpdateCustomerParams creates a new UpdateCustomerParams 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 NewUpdateCustomerParamsWithContext ¶
func NewUpdateCustomerParamsWithContext(ctx context.Context) *UpdateCustomerParams
NewUpdateCustomerParamsWithContext creates a new UpdateCustomerParams object with the ability to set a context for a request.
func NewUpdateCustomerParamsWithHTTPClient ¶
func NewUpdateCustomerParamsWithHTTPClient(client *http.Client) *UpdateCustomerParams
NewUpdateCustomerParamsWithHTTPClient creates a new UpdateCustomerParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateCustomerParamsWithTimeout ¶
func NewUpdateCustomerParamsWithTimeout(timeout time.Duration) *UpdateCustomerParams
NewUpdateCustomerParamsWithTimeout creates a new UpdateCustomerParams object with the ability to set a timeout on a request.
func (*UpdateCustomerParams) SetBody ¶
func (o *UpdateCustomerParams) SetBody(body *models.UpdateCustomerRequest)
SetBody adds the body to the update customer params
func (*UpdateCustomerParams) SetContext ¶
func (o *UpdateCustomerParams) SetContext(ctx context.Context)
SetContext adds the context to the update customer params
func (*UpdateCustomerParams) SetCustomerID ¶
func (o *UpdateCustomerParams) SetCustomerID(customerID string)
SetCustomerID adds the customerId to the update customer params
func (*UpdateCustomerParams) SetDefaults ¶
func (o *UpdateCustomerParams) SetDefaults()
SetDefaults hydrates default values in the update customer params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomerParams) SetHTTPClient ¶
func (o *UpdateCustomerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update customer params
func (*UpdateCustomerParams) SetTimeout ¶
func (o *UpdateCustomerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update customer params
func (*UpdateCustomerParams) WithBody ¶
func (o *UpdateCustomerParams) WithBody(body *models.UpdateCustomerRequest) *UpdateCustomerParams
WithBody adds the body to the update customer params
func (*UpdateCustomerParams) WithContext ¶
func (o *UpdateCustomerParams) WithContext(ctx context.Context) *UpdateCustomerParams
WithContext adds the context to the update customer params
func (*UpdateCustomerParams) WithCustomerID ¶
func (o *UpdateCustomerParams) WithCustomerID(customerID string) *UpdateCustomerParams
WithCustomerID adds the customerID to the update customer params
func (*UpdateCustomerParams) WithDefaults ¶
func (o *UpdateCustomerParams) WithDefaults() *UpdateCustomerParams
WithDefaults hydrates default values in the update customer params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomerParams) WithHTTPClient ¶
func (o *UpdateCustomerParams) WithHTTPClient(client *http.Client) *UpdateCustomerParams
WithHTTPClient adds the HTTPClient to the update customer params
func (*UpdateCustomerParams) WithTimeout ¶
func (o *UpdateCustomerParams) WithTimeout(timeout time.Duration) *UpdateCustomerParams
WithTimeout adds the timeout to the update customer params
func (*UpdateCustomerParams) WriteToRequest ¶
func (o *UpdateCustomerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCustomerReader ¶
type UpdateCustomerReader struct {
// contains filtered or unexported fields
}
UpdateCustomerReader is a Reader for the UpdateCustomer structure.
func (*UpdateCustomerReader) ReadResponse ¶
func (o *UpdateCustomerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- add_group_to_customer_parameters.go
- add_group_to_customer_responses.go
- create_customer_card_parameters.go
- create_customer_card_responses.go
- create_customer_parameters.go
- create_customer_responses.go
- customers_client.go
- delete_customer_card_parameters.go
- delete_customer_card_responses.go
- delete_customer_parameters.go
- delete_customer_responses.go
- list_customers_parameters.go
- list_customers_responses.go
- remove_group_from_customer_parameters.go
- remove_group_from_customer_responses.go
- retrieve_customer_parameters.go
- retrieve_customer_responses.go
- search_customers_parameters.go
- search_customers_responses.go
- update_customer_parameters.go
- update_customer_responses.go