SquareConnect::SearchOrdersSort

May 8, 2019 ยท View on GitHub

Description

Sorting options for a query. Returned Orders will always be sorted on a timestamp.

Properties

NameTypeDescriptionNotes
sort_fieldStringThe field to sort by. Important: When using a DateTimeFilter, `sort_field` must match the set time range field. If this field does not match the time range field in `DateTimeFilter`, SearchOrder will return an error. Default: `CREATED_AT`. See SearchOrdersSortField for possible values
sort_orderStringThe order in which results are returned. Defaults to `DESC`. See SortOrder for possible values[optional]