/
model_search_orders_response.go
22 lines (21 loc) · 1.11 KB
/
model_search_orders_response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* Square Connect API
*
* Client library for accessing the Square Connect APIs
*
* API version: 2.0
* Contact: developers@squareup.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package square
// Only one of `order_entries` or `orders` fields will be set, depending on whether `return_entries` was set on the [SearchOrdersRequest](#type-searchorderrequest).
type SearchOrdersResponse struct {
// List of `OrderEntries` that fit the query conditions. Populated only if `return_entries` was set to `true` in the request.
OrderEntries []OrderEntry `json:"order_entries,omitempty"`
// List of `Order` objects that match query conditions. Populated only if `return_entries` in the request is set to `false`.
Orders []Order `json:"orders,omitempty"`
// The pagination cursor to be used in a subsequent request. If unset, this is the final response. See [Pagination](https://developer.squareup.com/docs/basics/api101/pagination) for more information.
Cursor string `json:"cursor,omitempty"`
// `Errors` encountered during the search.
Errors []ModelError `json:"errors,omitempty"`
}