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
*[List Team Member Booking Profiles](../../doc/api/bookings.md#list-team-member-booking-profiles)
19
21
*[Bulk Retrieve Team Member Booking Profiles](../../doc/api/bookings.md#bulk-retrieve-team-member-booking-profiles)
20
22
*[Retrieve Team Member Booking Profile](../../doc/api/bookings.md#retrieve-team-member-booking-profile)
@@ -231,6 +233,74 @@ elif result.is_error():
231
233
```
232
234
233
235
236
+
# List Location Booking Profiles
237
+
238
+
Lists location booking profiles of a seller.
239
+
240
+
```python
241
+
deflist_location_booking_profiles(self,
242
+
limit=None,
243
+
cursor=None)
244
+
```
245
+
246
+
## Parameters
247
+
248
+
| Parameter | Type | Tags | Description |
249
+
| --- | --- | --- | --- |
250
+
|`limit`|`int`| Query, Optional | The maximum number of results to return in a paged response. |
251
+
|`cursor`|`str`| Query, Optional | The pagination cursor from the preceding response to return the next page of the results. Do not set this when retrieving the first page of the results. |
252
+
253
+
## Response Type
254
+
255
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`List Location Booking Profiles Response`](../../doc/models/list-location-booking-profiles-response.md).
256
+
257
+
## Example Usage
258
+
259
+
```python
260
+
result = bookings_api.list_location_booking_profiles()
261
+
print(result)
262
+
263
+
if result.is_success():
264
+
print(result.body)
265
+
elif result.is_error():
266
+
print(result.errors)
267
+
```
268
+
269
+
270
+
# Retrieve Location Booking Profile
271
+
272
+
Retrieves a seller's location booking profile.
273
+
274
+
```python
275
+
defretrieve_location_booking_profile(self,
276
+
location_id)
277
+
```
278
+
279
+
## Parameters
280
+
281
+
| Parameter | Type | Tags | Description |
282
+
| --- | --- | --- | --- |
283
+
|`location_id`|`str`| Template, Required | The ID of the location to retrieve the booking profile. |
284
+
285
+
## Response Type
286
+
287
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Retrieve Location Booking Profile Response`](../../doc/models/retrieve-location-booking-profile-response.md).
288
+
289
+
## Example Usage
290
+
291
+
```python
292
+
location_id ='location_id4'
293
+
294
+
result = bookings_api.retrieve_location_booking_profile(location_id)
Schedules a plan variation change for all active subscriptions under a given plan
88
+
variation. For more information, see [Swap Subscription Plan Variations](https://developer.squareup.com/docs/subscriptions-api/swap-plan-variations).
89
+
90
+
```python
91
+
defbulk_swap_plan(self,
92
+
body)
93
+
```
94
+
95
+
## Parameters
96
+
97
+
| Parameter | Type | Tags | Description |
98
+
| --- | --- | --- | --- |
99
+
|`body`|[`Bulk Swap Plan Request`](../../doc/models/bulk-swap-plan-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
100
+
101
+
## Response Type
102
+
103
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Bulk Swap Plan Response`](../../doc/models/bulk-swap-plan-response.md).
Changes the [billing anchor date](https://developer.squareup.com/docs/subscriptions-api/subscription-billing#billing-dates)
312
+
for a subscription.
313
+
314
+
```python
315
+
defchange_billing_anchor_date(self,
316
+
subscription_id,
317
+
body)
318
+
```
319
+
320
+
## Parameters
321
+
322
+
| Parameter | Type | Tags | Description |
323
+
| --- | --- | --- | --- |
324
+
|`subscription_id`|`str`| Template, Required | The ID of the subscription to update the billing anchor date. |
325
+
|`body`|[`Change Billing Anchor Date Request`](../../doc/models/change-billing-anchor-date-request.md)| Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
326
+
327
+
## Response Type
328
+
329
+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Change Billing Anchor Date Response`](../../doc/models/change-billing-anchor-date-response.md).
330
+
331
+
## Example Usage
332
+
333
+
```python
334
+
subscription_id ='subscription_id0'
335
+
336
+
body = {
337
+
'monthly_billing_anchor_date': 1
338
+
}
339
+
340
+
result = subscriptions_api.change_billing_anchor_date(
341
+
subscription_id,
342
+
body
343
+
)
344
+
print(result)
345
+
346
+
if result.is_success():
347
+
print(result.body)
348
+
elif result.is_error():
349
+
print(result.errors)
350
+
```
351
+
352
+
268
353
# Cancel Subscription
269
354
270
355
Schedules a `CANCEL` action to cancel an active subscription. This
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*: `'2023-09-25'`|
8
+
|`square_version`|`str`| Square Connect API versions<br>*Default*: `'2023-10-18'`|
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 |
@@ -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-09-25',
28
+
square_version='2023-10-18',
29
29
access_token='AccessToken'
30
30
)
31
31
```
@@ -48,7 +48,7 @@ API calls return an `ApiResponse` object that includes the following fields:
|`new_plan_variation_id`|`str`| Required | The ID of the new subscription plan variation.<br><br>This field is required.<br>**Constraints**: *Minimum Length*: `1`|
16
+
|`old_plan_variation_id`|`str`| Required | The ID of the plan variation whose subscriptions should be swapped. Active subscriptions<br>using this plan variation will be subscribed to the new plan variation on their next billing<br>day.<br>**Constraints**: *Minimum Length*: `1`|
17
+
|`location_id`|`str`| Required | The ID of the location to associate with the swapped subscriptions.<br>**Constraints**: *Minimum Length*: `1`|
0 commit comments