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/o-auth.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ following format:
37
37
Authorization: Client APPLICATION_SECRET
38
38
```
39
39
40
-
Replace `APPLICATION_SECRET` with the application secret on the Credentials
40
+
Replace `APPLICATION_SECRET` with the application secret on the **Credentials**
41
41
page in the [Developer Dashboard](https://developer.squareup.com/apps).
42
42
43
43
:information_source:**Note** This endpoint does not require authentication.
@@ -53,7 +53,7 @@ def renew_token(self,
53
53
54
54
| Parameter | Type | Tags | Description |
55
55
| --- | --- | --- | --- |
56
-
|`client_id`|`string`| Template, Required | Your application ID, which is available in the OAuth page in the [Developer Dashboard](https://developer.squareup.com/apps). |
56
+
|`client_id`|`string`| Template, Required | Your application ID, which is available on the **OAuth** page in the [Developer Dashboard](https://developer.squareup.com/apps). |
57
57
|`body`|[`Renew Token Request`](../../doc/models/renew-token-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
|`subscription_id`|`string`| Template, Required | The ID of the subscription to retrieve the events for. |
317
-
|`cursor`|`string`| Query, Optional | When the total number of resulting subscription events exceeds the limit of a paged response,<br>specify the cursor returned from a preceding response here to fetch the next set of results.<br>If the cursor is unset, the response contains the last page of the results.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination). |
316
+
|`cursor`|`string`| Query, Optional | When the total number of resulting subscription events exceeds the limit of a paged response,<br>specify the cursor returned from a preceding response here to fetch the next set of results.<br>If the cursor is unset, the response contains the last page of the results.<br><br>For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
318
317
|`limit`|`int`| Query, Optional | The upper limit on the number of subscription events to return<br>in a paged response. |
319
318
320
319
## Response Type
@@ -420,7 +419,8 @@ elif result.is_error():
420
419
421
420
# Swap Plan
422
421
423
-
Schedules a `SWAP_PLAN` action to swap a subscription plan in an existing subscription.
422
+
Schedules a `SWAP_PLAN` action to swap a subscription plan variation in an existing subscription.
423
+
For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations).
|`action_id`|`string`| Template, Required | Unique ID for the desired `TerminalAction`|
166
+
|`action_id`|`string`| Template, Required | Unique ID for the desired `TerminalAction`.|
166
167
167
168
## Response Type
168
169
@@ -183,6 +184,42 @@ elif result.is_error():
183
184
```
184
185
185
186
187
+
# Dismiss Terminal Action
188
+
189
+
Dismisses a Terminal action request if the status and type of the request permits it.
190
+
191
+
See [Link and Dismiss Actions](https://developer.squareup.com/docs/terminal-api/advanced-features/custom-workflows/link-and-dismiss-actions) for more details.
192
+
193
+
```python
194
+
defdismiss_terminal_action(self,
195
+
action_id)
196
+
```
197
+
198
+
## Parameters
199
+
200
+
| Parameter | Type | Tags | Description |
201
+
| --- | --- | --- | --- |
202
+
|`action_id`|`string`| Template, Required | Unique ID for the `TerminalAction` associated with the waiting dialog to be dismissed. |
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`|`string`| Square Connect API versions<br>*Default*: `'2023-05-17'`|
8
+
|`square_version`|`string`| Square Connect API versions<br>*Default*: `'2023-06-08'`|
9
9
|`custom_url`|`string`| 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 |
@@ -25,7 +25,7 @@ The API client can be initialized as follows:
25
25
```python
26
26
from square.client import Client
27
27
client = Client(
28
-
square_version='2023-05-17',
28
+
square_version='2023-06-08',
29
29
access_token='AccessToken'
30
30
)
31
31
```
@@ -48,7 +48,7 @@ API calls return an `ApiResponse` object that includes the following fields:
Copy file name to clipboardExpand all lines: doc/models/activity-type.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,4 +44,8 @@
44
44
|`THIRD_PARTY_FEE`| Fees collected by a third-party platform. |
45
45
|`THIRD_PARTY_FEE_REFUND`| Refunded fees from a third-party platform. |
46
46
|`PAYOUT`| Balance change due to money transfer. |
47
+
|`AUTOMATIC_BITCOIN_CONVERSIONS`| Indicates the withholding of a portion of each payment by Square that has been<br>automatically converted into bitcoin using Cash App. The seller manages their bitcoin in<br>their Cash App account. |
48
+
|`AUTOMATIC_BITCOIN_CONVERSIONS_REVERSED`| Indicates a return of the payment withholding that had been scheduled to be converted<br>into bitcoin using Cash App to the Square payments balance. |
49
+
|`CREDIT_CARD_REPAYMENT`| The repayment made toward the outstanding balance on the seller's Square credit card. |
50
+
|`CREDIT_CARD_REPAYMENT_REVERSED`| The reversal of the repayment made toward the outstanding balance on the seller's<br>Square credit card. |
Copy file name to clipboardExpand all lines: doc/models/cancel-subscription-response.md
+48-5Lines changed: 48 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Defines output parameters in a response from the
13
13
| Name | Type | Tags | Description |
14
14
| --- | --- | --- | --- |
15
15
|`errors`|[`List of Error`](../../doc/models/error.md)| Optional | Errors encountered during the request. |
16
-
|`subscription`|[`Subscription`](../../doc/models/subscription.md)| Optional | Represents a subscription to a subscription plan by a subscriber.<br><br>For an overview of the `Subscription` type, see<br>[Subscription object](https://developer.squareup.com/docs/subscriptions-api/overview#subscription-object-overview). |
16
+
|`subscription`|[`Subscription`](../../doc/models/subscription.md)| Optional | Represents a subscription purchased by a customer.<br><br>For more information, see<br>[Manage Subscriptions](https://developer.squareup.com/docs/subscriptions-api/manage-subscriptions). |
17
17
|`actions`|[`List of Subscription Action`](../../doc/models/subscription-action.md)| Optional | A list of a single `CANCEL` action scheduled for the subscription. |
18
18
19
19
## Example (as JSON)
@@ -35,7 +35,8 @@ Defines output parameters in a response from the
35
35
"start_date": "2021-10-20",
36
36
"status": "ACTIVE",
37
37
"timezone": "America/Los_Angeles",
38
-
"version": 1594311617331
38
+
"version": 1594311617331,
39
+
"plan_variation_id": "plan_variation_id8"
39
40
},
40
41
"errors": [
41
42
{
@@ -62,19 +63,61 @@ Defines output parameters in a response from the
0 commit comments