Skip to content

Commit 16c77a0

Browse files
author
autobot
committed
Generated PR for Release: 26.0.0.20230419
1 parent 1052ea0 commit 16c77a0

File tree

593 files changed

+34342
-4105
lines changed

Some content is hidden

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

593 files changed

+34342
-4105
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ pytest
129129
* [Mobile Authorization]
130130
* [OAuth]
131131

132+
### Webhook Subscriptions
133+
* [Webhook Subscriptions]
132134
## Deprecated APIs
133135

134136
The following Square APIs are [deprecated](https://developer.squareup.com/docs/build-basics/api-lifecycle):
@@ -181,3 +183,4 @@ The following Square APIs are [deprecated](https://developer.squareup.com/docs/b
181183
[Gift Card Activities]: doc/api/gift-card-activities.md
182184
[Employees]: doc/api/employees.md
183185
[Transactions]: doc/api/transactions.md
186+
[Webhook Subscriptions]: doc/api/webhook-subscriptions.md

doc/api/apple-pay.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ def register_domain(self,
4141
## Example Usage
4242

4343
```python
44-
body = {}
45-
body['domain_name'] = 'example.com'
44+
body = {
45+
'domain_name': 'example.com'
46+
}
4647

4748
result = apple_pay_api.register_domain(body)
49+
print(result)
4850

4951
if result.is_success():
5052
print(result.body)

doc/api/bank-accounts.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def list_bank_accounts(self,
4242

4343
```python
4444
result = bank_accounts_api.list_bank_accounts()
45+
print(result)
4546

4647
if result.is_success():
4748
print(result.body)
@@ -75,6 +76,7 @@ def get_bank_account_by_v1_id(self,
7576
v1_bank_account_id = 'v1_bank_account_id8'
7677

7778
result = bank_accounts_api.get_bank_account_by_v1_id(v1_bank_account_id)
79+
print(result)
7880

7981
if result.is_success():
8082
print(result.body)
@@ -109,6 +111,7 @@ def get_bank_account(self,
109111
bank_account_id = 'bank_account_id0'
110112

111113
result = bank_accounts_api.get_bank_account(bank_account_id)
114+
print(result)
112115

113116
if result.is_success():
114117
print(result.body)

doc/api/booking-custom-attributes.md

Lines changed: 79 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def list_booking_custom_attribute_definitions(self,
5151

5252
```python
5353
result = booking_custom_attributes_api.list_booking_custom_attribute_definitions()
54+
print(result)
5455

5556
if result.is_success():
5657
print(result.body)
@@ -87,10 +88,12 @@ def create_booking_custom_attribute_definition(self,
8788
## Example Usage
8889

8990
```python
90-
body = {}
91-
body['custom_attribute_definition'] = {}
91+
body = {
92+
'custom_attribute_definition': {}
93+
}
9294

9395
result = booking_custom_attributes_api.create_booking_custom_attribute_definition(body)
96+
print(result)
9497

9598
if result.is_success():
9699
print(result.body)
@@ -130,6 +133,7 @@ def delete_booking_custom_attribute_definition(self,
130133
key = 'key0'
131134

132135
result = booking_custom_attributes_api.delete_booking_custom_attribute_definition(key)
136+
print(result)
133137

134138
if result.is_success():
135139
print(result.body)
@@ -168,6 +172,7 @@ def retrieve_booking_custom_attribute_definition(self,
168172
key = 'key0'
169173

170174
result = booking_custom_attributes_api.retrieve_booking_custom_attribute_definition(key)
175+
print(result)
171176

172177
if result.is_success():
173178
print(result.body)
@@ -207,10 +212,16 @@ def update_booking_custom_attribute_definition(self,
207212

208213
```python
209214
key = 'key0'
210-
body = {}
211-
body['custom_attribute_definition'] = {}
212215

213-
result = booking_custom_attributes_api.update_booking_custom_attribute_definition(key, body)
216+
body = {
217+
'custom_attribute_definition': {}
218+
}
219+
220+
result = booking_custom_attributes_api.update_booking_custom_attribute_definition(
221+
key,
222+
body
223+
)
224+
print(result)
214225

215226
if result.is_success():
216227
print(result.body)
@@ -247,12 +258,21 @@ def bulk_delete_booking_custom_attributes(self,
247258
## Example Usage
248259

249260
```python
250-
body = {}
251-
body['values'] = {}
252-
body['values']['booking_id'] = None
253-
body['values']['key'] = None
261+
body = {
262+
'values': {
263+
"key0": {
264+
'booking_id': 'booking_id8',
265+
'key': 'key4'
266+
},
267+
"key1": {
268+
'booking_id': 'booking_id9',
269+
'key': 'key5'
270+
}
271+
}
272+
}
254273

255274
result = booking_custom_attributes_api.bulk_delete_booking_custom_attributes(body)
275+
print(result)
256276

257277
if result.is_success():
258278
print(result.body)
@@ -289,12 +309,21 @@ def bulk_upsert_booking_custom_attributes(self,
289309
## Example Usage
290310

291311
```python
292-
body = {}
293-
body['values'] = {}
294-
body['values']['booking_id'] = None
295-
body['values']['custom_attribute'] = {}
312+
body = {
313+
'values': {
314+
"key0": {
315+
'booking_id': 'booking_id8',
316+
'custom_attribute': {}
317+
},
318+
"key1": {
319+
'booking_id': 'booking_id9',
320+
'custom_attribute': {}
321+
}
322+
}
323+
}
296324

297325
result = booking_custom_attributes_api.bulk_upsert_booking_custom_attributes(body)
326+
print(result)
298327

299328
if result.is_success():
300329
print(result.body)
@@ -322,10 +351,10 @@ def list_booking_custom_attributes(self,
322351

323352
| Parameter | Type | Tags | Description |
324353
| --- | --- | --- | --- |
325-
| `booking_id` | `string` | Template, Required | The ID of the target [booking](../../doc/models/booking.md). |
354+
| `booking_id` | `string` | Template, Required | The ID of the target [booking](entity:Booking). |
326355
| `limit` | `int` | Query, Optional | The maximum number of results to return in a single paged response. This limit is advisory.<br>The response might contain more or fewer results. The minimum value is 1 and the maximum value is 100.<br>The default value is 20. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
327356
| `cursor` | `string` | Query, Optional | The cursor returned in the paged response from the previous call to this endpoint.<br>Provide this cursor to retrieve the next page of results for your original request. For more<br>information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
328-
| `with_definitions` | `bool` | Query, Optional | Indicates whether to return the [custom attribute definition](../../doc/models/custom-attribute-definition.md) in the `definition` field of each<br>custom attribute. Set this parameter to `true` to get the name and description of each custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `False` |
357+
| `with_definitions` | `bool` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of each<br>custom attribute. Set this parameter to `true` to get the name and description of each custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `False` |
329358

330359
## Response Type
331360

@@ -335,9 +364,14 @@ def list_booking_custom_attributes(self,
335364

336365
```python
337366
booking_id = 'booking_id4'
367+
338368
with_definitions = False
339369

340-
result = booking_custom_attributes_api.list_booking_custom_attributes(booking_id, None, None, with_definitions)
370+
result = booking_custom_attributes_api.list_booking_custom_attributes(
371+
booking_id,
372+
with_definitions
373+
)
374+
print(result)
341375

342376
if result.is_success():
343377
print(result.body)
@@ -366,7 +400,7 @@ def delete_booking_custom_attribute(self,
366400

367401
| Parameter | Type | Tags | Description |
368402
| --- | --- | --- | --- |
369-
| `booking_id` | `string` | Template, Required | The ID of the target [booking](../../doc/models/booking.md). |
403+
| `booking_id` | `string` | Template, Required | The ID of the target [booking](entity:Booking). |
370404
| `key` | `string` | Template, Required | The key of the custom attribute to delete. This key must match the `key` of a custom<br>attribute definition in the Square seller account. If the requesting application is not the<br>definition owner, you must use the qualified key. |
371405

372406
## Response Type
@@ -377,9 +411,14 @@ def delete_booking_custom_attribute(self,
377411

378412
```python
379413
booking_id = 'booking_id4'
414+
380415
key = 'key0'
381416

382-
result = booking_custom_attributes_api.delete_booking_custom_attribute(booking_id, key)
417+
result = booking_custom_attributes_api.delete_booking_custom_attribute(
418+
booking_id,
419+
key
420+
)
421+
print(result)
383422

384423
if result.is_success():
385424
print(result.body)
@@ -407,9 +446,9 @@ def retrieve_booking_custom_attribute(self,
407446

408447
| Parameter | Type | Tags | Description |
409448
| --- | --- | --- | --- |
410-
| `booking_id` | `string` | Template, Required | The ID of the target [booking](../../doc/models/booking.md). |
449+
| `booking_id` | `string` | Template, Required | The ID of the target [booking](entity:Booking). |
411450
| `key` | `string` | Template, Required | The key of the custom attribute to retrieve. This key must match the `key` of a custom<br>attribute definition in the Square seller account. If the requesting application is not the<br>definition owner, you must use the qualified key. |
412-
| `with_definition` | `bool` | Query, Optional | Indicates whether to return the [custom attribute definition](../../doc/models/custom-attribute-definition.md) in the `definition` field of<br>the custom attribute. Set this parameter to `true` to get the name and description of the custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `False` |
451+
| `with_definition` | `bool` | Query, Optional | Indicates whether to return the [custom attribute definition](entity:CustomAttributeDefinition) in the `definition` field of<br>the custom attribute. Set this parameter to `true` to get the name and description of the custom<br>attribute, information about the data type, or other definition details. The default value is `false`.<br>**Default**: `False` |
413452
| `version` | `int` | Query, Optional | The current version of the custom attribute, which is used for strongly consistent reads to<br>guarantee that you receive the most up-to-date data. When included in the request, Square<br>returns the specified version or a higher version if one exists. If the specified version is<br>higher than the current version, Square returns a `BAD_REQUEST` error. |
414453

415454
## Response Type
@@ -420,10 +459,17 @@ def retrieve_booking_custom_attribute(self,
420459

421460
```python
422461
booking_id = 'booking_id4'
462+
423463
key = 'key0'
464+
424465
with_definition = False
425466

426-
result = booking_custom_attributes_api.retrieve_booking_custom_attribute(booking_id, key, with_definition)
467+
result = booking_custom_attributes_api.retrieve_booking_custom_attribute(
468+
booking_id,
469+
key,
470+
with_definition
471+
)
472+
print(result)
427473

428474
if result.is_success():
429475
print(result.body)
@@ -453,7 +499,7 @@ def upsert_booking_custom_attribute(self,
453499

454500
| Parameter | Type | Tags | Description |
455501
| --- | --- | --- | --- |
456-
| `booking_id` | `string` | Template, Required | The ID of the target [booking](../../doc/models/booking.md). |
502+
| `booking_id` | `string` | Template, Required | The ID of the target [booking](entity:Booking). |
457503
| `key` | `string` | Template, Required | The key of the custom attribute to create or update. This key must match the `key` of a<br>custom attribute definition in the Square seller account. If the requesting application is not<br>the definition owner, you must use the qualified key. |
458504
| `body` | [`Upsert Booking Custom Attribute Request`](../../doc/models/upsert-booking-custom-attribute-request.md) | Body, Required | An object containing the fields to POST for the request.<br><br>See the corresponding object definition for field details. |
459505

@@ -465,11 +511,19 @@ def upsert_booking_custom_attribute(self,
465511

466512
```python
467513
booking_id = 'booking_id4'
514+
468515
key = 'key0'
469-
body = {}
470-
body['custom_attribute'] = {}
471516

472-
result = booking_custom_attributes_api.upsert_booking_custom_attribute(booking_id, key, body)
517+
body = {
518+
'custom_attribute': {}
519+
}
520+
521+
result = booking_custom_attributes_api.upsert_booking_custom_attribute(
522+
booking_id,
523+
key,
524+
body
525+
)
526+
print(result)
473527

474528
if result.is_success():
475529
print(result.body)

0 commit comments

Comments
 (0)