Skip to content

Commit 1010c0b

Browse files
author
autobot
committed
Generated PR for Release: 31.0.0.20230925
1 parent d41e31e commit 1010c0b

File tree

787 files changed

+7341
-8009
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

787 files changed

+7341
-8009
lines changed

doc/api/booking-custom-attributes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
261261
body = {
262262
'values': {
263263
'key0': {
264-
'booking_id': 'booking_id8',
265-
'key': 'key4'
264+
'booking_id': 'booking_id4',
265+
'key': 'key0'
266266
},
267267
'key1': {
268-
'booking_id': 'booking_id9',
269-
'key': 'key5'
268+
'booking_id': 'booking_id4',
269+
'key': 'key0'
270270
}
271271
}
272272
}
@@ -312,11 +312,11 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
312312
body = {
313313
'values': {
314314
'key0': {
315-
'booking_id': 'booking_id8',
315+
'booking_id': 'booking_id4',
316316
'custom_attribute': {}
317317
},
318318
'key1': {
319-
'booking_id': 'booking_id9',
319+
'booking_id': 'booking_id4',
320320
'custom_attribute': {}
321321
}
322322
}
@@ -369,7 +369,7 @@ with_definitions = False
369369

370370
result = booking_custom_attributes_api.list_booking_custom_attributes(
371371
booking_id,
372-
with_definitions
372+
with_definitions=with_definitions
373373
)
374374
print(result)
375375

@@ -467,7 +467,7 @@ with_definition = False
467467
result = booking_custom_attributes_api.retrieve_booking_custom_attribute(
468468
booking_id,
469469
key,
470-
with_definition
470+
with_definition=with_definition
471471
)
472472
print(result)
473473

doc/api/bookings.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ bookings_api = client.bookings
1616
* [Bulk Retrieve Bookings](../../doc/api/bookings.md#bulk-retrieve-bookings)
1717
* [Retrieve Business Booking Profile](../../doc/api/bookings.md#retrieve-business-booking-profile)
1818
* [List Team Member Booking Profiles](../../doc/api/bookings.md#list-team-member-booking-profiles)
19+
* [Bulk Retrieve Team Member Booking Profiles](../../doc/api/bookings.md#bulk-retrieve-team-member-booking-profiles)
1920
* [Retrieve Team Member Booking Profile](../../doc/api/bookings.md#retrieve-team-member-booking-profile)
2021
* [Retrieve Booking](../../doc/api/bookings.md#retrieve-booking)
2122
* [Update Booking](../../doc/api/bookings.md#update-booking)
@@ -261,7 +262,7 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
261262
bookable_only = False
262263

263264
result = bookings_api.list_team_member_booking_profiles(
264-
bookable_only
265+
bookable_only=bookable_only
265266
)
266267
print(result)
267268

@@ -272,6 +273,46 @@ elif result.is_error():
272273
```
273274

274275

276+
# Bulk Retrieve Team Member Booking Profiles
277+
278+
Retrieves one or more team members' booking profiles.
279+
280+
```python
281+
def bulk_retrieve_team_member_booking_profiles(self,
282+
body)
283+
```
284+
285+
## Parameters
286+
287+
| Parameter | Type | Tags | Description |
288+
| --- | --- | --- | --- |
289+
| `body` | [`Bulk Retrieve Team Member Booking Profiles Request`](../../doc/models/bulk-retrieve-team-member-booking-profiles-request.md) | Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
290+
291+
## Response Type
292+
293+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Bulk Retrieve Team Member Booking Profiles Response`](../../doc/models/bulk-retrieve-team-member-booking-profiles-response.md).
294+
295+
## Example Usage
296+
297+
```python
298+
body = {
299+
'team_member_ids': [
300+
'team_member_ids3',
301+
'team_member_ids4',
302+
'team_member_ids5'
303+
]
304+
}
305+
306+
result = bookings_api.bulk_retrieve_team_member_booking_profiles(body)
307+
print(result)
308+
309+
if result.is_success():
310+
print(result.body)
311+
elif result.is_error():
312+
print(result.errors)
313+
```
314+
315+
275316
# Retrieve Team Member Booking Profile
276317

277318
Retrieves a team member's booking profile.

doc/api/cards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
5050
include_disabled = False
5151

5252
result = cards_api.list_cards(
53-
include_disabled
53+
include_disabled=include_disabled
5454
)
5555
print(result)
5656

doc/api/catalog.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ request = {
312312
}
313313

314314
result = catalog_api.create_catalog_image(
315-
request
315+
request=request
316316
)
317317
print(result)
318318

@@ -360,7 +360,7 @@ request = {
360360

361361
result = catalog_api.update_catalog_image(
362362
image_id,
363-
request
363+
request=request
364364
)
365365
print(result)
366366

@@ -594,7 +594,7 @@ include_related_objects = False
594594

595595
result = catalog_api.retrieve_catalog_object(
596596
object_id,
597-
include_related_objects
597+
include_related_objects=include_related_objects
598598
)
599599
print(result)
600600

doc/api/checkout.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ payment processing workflow hosted on connect.squareup.com.
2828

2929
NOTE: The Checkout API has been updated with new features.
3030
For more information, see [Checkout API highlights](https://developer.squareup.com/docs/checkout-api#checkout-api-highlights).
31-
We recommend that you use the new [CreatePaymentLink](api-endpoint:Checkout-CreatePaymentLink) 
32-
endpoint in place of this previously released endpoint.
3331

3432
```python
3533
def create_checkout(self,

doc/api/customer-custom-attributes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
281281
body = {
282282
'values': {
283283
'key0': {
284-
'customer_id': 'customer_id2',
284+
'customer_id': 'customer_id8',
285285
'custom_attribute': {}
286286
},
287287
'key1': {
288-
'customer_id': 'customer_id3',
288+
'customer_id': 'customer_id8',
289289
'custom_attribute': {}
290290
}
291291
}
@@ -342,7 +342,7 @@ with_definitions = False
342342

343343
result = customer_custom_attributes_api.list_customer_custom_attributes(
344344
customer_id,
345-
with_definitions
345+
with_definitions=with_definitions
346346
)
347347
print(result)
348348

@@ -442,7 +442,7 @@ with_definition = False
442442
result = customer_custom_attributes_api.retrieve_customer_custom_attribute(
443443
customer_id,
444444
key,
445-
with_definition
445+
with_definition=with_definition
446446
)
447447
print(result)
448448

doc/api/customers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
5959
count = False
6060

6161
result = customers_api.list_customers(
62-
count
62+
count=count
6363
)
6464
print(result)
6565

@@ -169,8 +169,8 @@ body = {
169169
'rule': 'INCLUDE'
170170
},
171171
'created_at': {
172-
'start_at': '2018-01-01T00:00:00+00:00',
173-
'end_at': '2018-02-01T00:00:00+00:00'
172+
'start_at': '2018-01-01T00:00:00-00:00',
173+
'end_at': '2018-02-01T00:00:00-00:00'
174174
},
175175
'email_address': {
176176
'fuzzy': 'example.com'

doc/api/devices.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,50 @@ devices_api = client.devices
1010

1111
## Methods
1212

13+
* [List Devices](../../doc/api/devices.md#list-devices)
1314
* [List Device Codes](../../doc/api/devices.md#list-device-codes)
1415
* [Create Device Code](../../doc/api/devices.md#create-device-code)
1516
* [Get Device Code](../../doc/api/devices.md#get-device-code)
17+
* [Get Device](../../doc/api/devices.md#get-device)
18+
19+
20+
# List Devices
21+
22+
List devices associated with the merchant. Currently, only Terminal API
23+
devices are supported.
24+
25+
```python
26+
def list_devices(self,
27+
cursor=None,
28+
sort_order=None,
29+
limit=None,
30+
location_id=None)
31+
```
32+
33+
## Parameters
34+
35+
| Parameter | Type | Tags | Description |
36+
| --- | --- | --- | --- |
37+
| `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>See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more information. |
38+
| `sort_order` | [`str (Sort Order)`](../../doc/models/sort-order.md) | Query, Optional | The order in which results are listed.<br><br>- `ASC` - Oldest to newest.<br>- `DESC` - Newest to oldest (default). |
39+
| `limit` | `int` | Query, Optional | The number of results to return in a single page. |
40+
| `location_id` | `str` | Query, Optional | If present, only returns devices at the target location. |
41+
42+
## Response Type
43+
44+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`List Devices Response`](../../doc/models/list-devices-response.md).
45+
46+
## Example Usage
47+
48+
```python
49+
result = devices_api.list_devices()
50+
print(result)
51+
52+
if result.is_success():
53+
print(result.body)
54+
elif result.is_error():
55+
print(result.errors)
56+
```
1657

1758

1859
# List Device Codes
@@ -128,3 +169,37 @@ elif result.is_error():
128169
print(result.errors)
129170
```
130171

172+
173+
# Get Device
174+
175+
Retrieves Device with the associated `device_id`.
176+
177+
```python
178+
def get_device(self,
179+
device_id)
180+
```
181+
182+
## Parameters
183+
184+
| Parameter | Type | Tags | Description |
185+
| --- | --- | --- | --- |
186+
| `device_id` | `str` | Template, Required | The unique ID for the desired `Device`. |
187+
188+
## Response Type
189+
190+
This method returns a `ApiResponse` instance. The `body` property of this instance returns the response data which is of type [`Get Device Response`](../../doc/models/get-device-response.md).
191+
192+
## Example Usage
193+
194+
```python
195+
device_id = 'device_id6'
196+
197+
result = devices_api.get_device(device_id)
198+
print(result)
199+
200+
if result.is_success():
201+
print(result.body)
202+
elif result.is_error():
203+
print(result.errors)
204+
```
205+

doc/api/inventory.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ body = {
189189
'states': [
190190
'IN_STOCK'
191191
],
192-
'updated_after': '2016-11-01T00:00:00Z',
193-
'updated_before': '2016-12-01T00:00:00Z'
192+
'updated_after': '2016-11-01T00:00:00.000Z',
193+
'updated_before': '2016-12-01T00:00:00.000Z'
194194
}
195195

196196
result = inventory_api.deprecated_batch_retrieve_inventory_changes(body)
@@ -235,7 +235,7 @@ body = {
235235
'location_ids': [
236236
'59TNP9SA8VGDA'
237237
],
238-
'updated_after': '2016-11-16T00:00:00Z'
238+
'updated_after': '2016-11-16T00:00:00.000Z'
239239
}
240240

241241
result = inventory_api.deprecated_batch_retrieve_inventory_counts(body)
@@ -345,8 +345,8 @@ body = {
345345
'states': [
346346
'IN_STOCK'
347347
],
348-
'updated_after': '2016-11-01T00:00:00Z',
349-
'updated_before': '2016-12-01T00:00:00Z'
348+
'updated_after': '2016-11-01T00:00:00.000Z',
349+
'updated_before': '2016-12-01T00:00:00.000Z'
350350
}
351351

352352
result = inventory_api.batch_retrieve_inventory_changes(body)
@@ -398,7 +398,7 @@ body = {
398398
'location_ids': [
399399
'59TNP9SA8VGDA'
400400
],
401-
'updated_after': '2016-11-16T00:00:00Z'
401+
'updated_after': '2016-11-16T00:00:00.000Z'
402402
}
403403

404404
result = inventory_api.batch_retrieve_inventory_counts(body)

doc/api/labor.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
354354
```python
355355
body = {
356356
'shift': {
357-
'start_at': '2019-01-25T08:11:00+00:00',
357+
'start_at': '2019-01-25T03:11:00-05:00',
358358
'location_id': 'PAA1RJZZKXBFG',
359-
'end_at': '2019-01-25T18:11:00+00:00',
359+
'end_at': '2019-01-25T13:11:00-05:00',
360360
'wage': {
361361
'title': 'Barista',
362362
'hourly_rate': {
@@ -366,12 +366,12 @@ body = {
366366
},
367367
'breaks': [
368368
{
369-
'start_at': '2019-01-25T11:11:00+00:00',
369+
'start_at': '2019-01-25T06:11:00-05:00',
370370
'break_type_id': 'REGS1EQR1TPZ5',
371371
'name': 'Tea Break',
372372
'expected_duration': 'PT5M',
373373
'is_paid': True,
374-
'end_at': '2019-01-25T11:16:00+00:00'
374+
'end_at': '2019-01-25T06:16:00-05:00'
375375
}
376376
],
377377
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI'
@@ -554,9 +554,9 @@ id = 'id0'
554554

555555
body = {
556556
'shift': {
557-
'start_at': '2019-01-25T08:11:00+00:00',
557+
'start_at': '2019-01-25T03:11:00-05:00',
558558
'location_id': 'PAA1RJZZKXBFG',
559-
'end_at': '2019-01-25T18:11:00+00:00',
559+
'end_at': '2019-01-25T13:11:00-05:00',
560560
'wage': {
561561
'title': 'Bartender',
562562
'hourly_rate': {
@@ -566,13 +566,13 @@ body = {
566566
},
567567
'breaks': [
568568
{
569-
'start_at': '2019-01-25T11:11:00+00:00',
569+
'start_at': '2019-01-25T06:11:00-05:00',
570570
'break_type_id': 'REGS1EQR1TPZ5',
571571
'name': 'Tea Break',
572572
'expected_duration': 'PT5M',
573573
'is_paid': True,
574574
'id': 'X7GAQYVVRRG6P',
575-
'end_at': '2019-01-25T11:16:00+00:00'
575+
'end_at': '2019-01-25T06:16:00-05:00'
576576
}
577577
],
578578
'version': 1,

0 commit comments

Comments
 (0)