You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/api/refunds.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,9 @@ The maximum results per page is 100.
28
28
deflist_payment_refunds(self,
29
29
begin_time=None,
30
30
end_time=None,
31
+
updated_at_begin_time=None,
32
+
updated_at_end_time=None,
33
+
sort_field=None,
31
34
sort_order=None,
32
35
cursor=None,
33
36
location_id=None,
@@ -42,6 +45,9 @@ def list_payment_refunds(self,
42
45
| --- | --- | --- | --- |
43
46
|`begin_time`|`str`| Query, Optional | Indicates the start of the time range to retrieve each `PaymentRefund` for, in RFC 3339<br>format. The range is determined using the `created_at` field for each `PaymentRefund`.<br><br>Default: The current time minus one year. |
44
47
|`end_time`|`str`| Query, Optional | Indicates the end of the time range to retrieve each `PaymentRefund` for, in RFC 3339<br>format. The range is determined using the `created_at` field for each `PaymentRefund`.<br><br>Default: The current time. |
48
+
|`updated_at_begin_time`|`string`| Query, Optional | Indicates the start of the time range to retrieve each `PaymentRefund` for, in RFC 3339<br>format. The range is determined using the `updated_at` field for each `PaymentRefund`.<br><br>Default: if omitted, the time range starts at `beginTime`. |
49
+
|`updated_at_end_time`|`string`| Query, Optional | Indicates the end of the time range to retrieve each `PaymentRefund` for, in RFC 3339<br>format. The range is determined using the `updated_at` field for each `PaymentRefund`.<br><br>Default: The current time. |
50
+
|`sort_field`|`string`| Query, Optional | The field used to sort results by. The default is `CREATED_AT`.<br>Current values include `CREATED_AT` and `UPDATED_AT`.<br> |
45
51
|`sort_order`|`str`| Query, Optional | The order in which results are listed by `PaymentRefund.created_at`:<br><br>- `ASC` - Oldest to newest.<br>- `DESC` - Newest to oldest (default). |
46
52
|`cursor`|`str`| Query, Optional | A pagination cursor returned by a previous call to this endpoint.<br>Provide this cursor to retrieve the next set of results for the original query.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
47
53
|`location_id`|`str`| Query, Optional | Limit results to the location supplied. By default, results are returned<br>for all locations associated with the seller. |
Copy file name to clipboardExpand all lines: doc/client.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
5
5
6
6
| Parameter | Type | Description |
7
7
| --- | --- | --- |
8
-
|`square_version`|`str`| Square Connect API versions<br>*Default*: `'2025-01-23'`|
8
+
|`square_version`|`str`| Square Connect API versions<br>*Default*: `'2025-02-20'`|
9
9
|`custom_url`|`str`| Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'`|
10
10
|`environment`|`string`| The API environment. <br> **Default: `production`**|
11
11
|`http_client_instance`|`HttpClient`| The Http Client passed from the sdk user for making requests |
@@ -24,7 +24,7 @@ The API client can be initialized as follows:
24
24
25
25
```python
26
26
client = Client(
27
-
square_version='2025-01-23',
27
+
square_version='2025-02-20',
28
28
bearer_auth_credentials=BearerAuthCredentials(
29
29
access_token='AccessToken'
30
30
),
@@ -53,7 +53,7 @@ from square.http.auth.o_auth_2 import BearerAuthCredentials
0 commit comments