-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_list_transactions_request.go
23 lines (21 loc) · 1.64 KB
/
model_list_transactions_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
* 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 models
// Defines the query parameters that can be included in a request to the [ListTransactions](https://developer.squareup.com/reference/square_2023-12-13/transactions-api/list-transactions) endpoint. Deprecated - recommend using [SearchOrders](https://developer.squareup.com/reference/square_2023-12-13/orders-api/search-orders)
type ListTransactionsRequest struct {
// The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](https://developer.squareup.com/docs/build-basics/working-with-dates) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
BeginTime string `json:"begin_time,omitempty"`
// The end of the requested reporting period, in RFC 3339 format. See [Date ranges](https://developer.squareup.com/docs/build-basics/working-with-dates) for details on date inclusivity/exclusivity. Default value: The current time.
EndTime string `json:"end_time,omitempty"`
// The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC`
SortOrder string `json:"sort_order,omitempty"`
// 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 [Paginating results](https://developer.squareup.com/docs/working-with-apis/pagination) for more information.
Cursor string `json:"cursor,omitempty"`
}