import type * as Square from "../index"; /** * Represents the sorting criteria in a [search query](entity:CustomerQuery) that defines how to sort * customer profiles returned in [SearchCustomers](api-endpoint:Customers-SearchCustomers) results. */ export interface CustomerSort { /** * Indicates the fields to use as the sort key, which is either the default set of fields or `created_at`. * * The default value is `DEFAULT`. * See [CustomerSortField](#type-customersortfield) for possible values */ field?: Square.CustomerSortField; /** * Indicates the order in which results should be sorted based on the * sort field value. Strings use standard alphabetic comparison * to determine order. Strings representing numbers are sorted as strings. * * The default value is `ASC`. * See [SortOrder](#type-sortorder) for possible values */ order?: Square.SortOrder; }