customers

package
v0.0.0-...-dc3cc4a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

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

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

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

WithTimeout adds the timeout to the add group to customer params

func (*AddGroupToCustomerParams) WriteToRequest

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

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

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

WithBody adds the body to the create customer card params

func (*CreateCustomerCardParams) WithContext

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

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

WithTimeout adds the timeout to the create customer card params

func (*CreateCustomerCardParams) WriteToRequest

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

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

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

WithBody adds the body to the create customer params

func (*CreateCustomerParams) WithContext

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

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

WithCardID adds the cardID to the delete customer card params

func (*DeleteCustomerCardParams) WithContext

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

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

WithTimeout adds the timeout to the delete customer card params

func (*DeleteCustomerCardParams) WriteToRequest

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

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

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

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

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

WithContext adds the context to the remove group from customer params

func (*RemoveGroupFromCustomerParams) WithCustomerID

WithCustomerID adds the customerID to the remove group from customer params

func (*RemoveGroupFromCustomerParams) WithDefaults

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

WithGroupID adds the groupID to the remove group from customer params

func (*RemoveGroupFromCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the remove group from customer params

func (*RemoveGroupFromCustomerParams) WithTimeout

WithTimeout adds the timeout to the remove group from customer params

func (*RemoveGroupFromCustomerParams) WriteToRequest

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

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

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

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

WithTimeout adds the timeout to the retrieve customer params

func (*RetrieveCustomerParams) WriteToRequest

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

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

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

WithBody adds the body to the search customers params

func (*SearchCustomersParams) WithContext

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

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

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

WithBody adds the body to the update customer params

func (*UpdateCustomerParams) WithContext

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.

Jump to

Keyboard shortcuts

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