Skip to content

Commit 3f974e2

Browse files
author
autobot
committed
Generated PR for Release: 25.2.0.20230315
1 parent 6723288 commit 3f974e2

File tree

142 files changed

+527
-128
lines changed

Some content is hidden

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

142 files changed

+527
-128
lines changed

doc/api/bookings.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ elif result.is_error():
6969

7070
Creates a booking.
7171

72+
The required input must include the following:
73+
74+
- `Booking.location_id`,
75+
- `Booking.start_at`,
76+
- `Booking.team_member_id`
77+
- `Booking.AppointmentSegment.service_variation_id`
78+
- `Booking.AppointmentSegment.service_variation_version`
79+
7280
To call this endpoint with buyer-level permissions, set `APPOINTMENTS_WRITE` for the OAuth scope.
7381
To call this endpoint with seller-level permissions, set `APPOINTMENTS_ALL_WRITE` and `APPOINTMENTS_WRITE` for the OAuth scope.
7482

doc/api/catalog.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,6 @@ body['object']['item_data']['variations'][1]['item_variation_data'] = {}
442442
body['object']['item_data']['variations'][1]['item_variation_data']['item_id'] = '#Cocoa'
443443
body['object']['item_data']['variations'][1]['item_variation_data']['name'] = 'Large'
444444
body['object']['item_data']['variations'][1]['item_variation_data']['pricing_type'] = 'FIXED_PRICING'
445-
body['object']['item_data']['variations'][1]['item_variation_data']['price_money'] = {}
446-
body['object']['item_data']['variations'][1]['item_variation_data']['price_money']['amount'] = 400
447-
body['object']['item_data']['variations'][1]['item_variation_data']['price_money']['currency'] = 'USD'
448445

449446
body['object']['item_data']['description_html'] = '<p><strong>Hot</strong> Chocolate</p>'
450447

doc/api/checkout.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,14 @@ body['order']['order']['line_items'][0]['applied_discounts'] = []
7474
body['order']['order']['line_items'][0]['applied_discounts'].append({})
7575
body['order']['order']['line_items'][0]['applied_discounts'][0]['discount_uid'] = '56ae1696-z1e3-9328-af6d-f1e04d947gd4'
7676

77-
body['order']['order']['line_items'][0]['base_price_money'] = {}
78-
body['order']['order']['line_items'][0]['base_price_money']['amount'] = 1500
79-
body['order']['order']['line_items'][0]['base_price_money']['currency'] = 'USD'
8077

8178
body['order']['order']['line_items'].append({})
8279
body['order']['order']['line_items'][1]['name'] = 'Slim Jeans'
8380
body['order']['order']['line_items'][1]['quantity'] = '1'
84-
body['order']['order']['line_items'][1]['base_price_money'] = {}
85-
body['order']['order']['line_items'][1]['base_price_money']['amount'] = 2500
86-
body['order']['order']['line_items'][1]['base_price_money']['currency'] = 'USD'
8781

8882
body['order']['order']['line_items'].append({})
8983
body['order']['order']['line_items'][2]['name'] = 'Woven Sweater'
9084
body['order']['order']['line_items'][2]['quantity'] = '3'
91-
body['order']['order']['line_items'][2]['base_price_money'] = {}
92-
body['order']['order']['line_items'][2]['base_price_money']['amount'] = 3500
93-
body['order']['order']['line_items'][2]['base_price_money']['currency'] = 'USD'
9485

9586
body['order']['order']['taxes'] = []
9687

@@ -105,9 +96,6 @@ body['order']['order']['discounts'] = []
10596
body['order']['order']['discounts'].append({})
10697
body['order']['order']['discounts'][0]['uid'] = '56ae1696-z1e3-9328-af6d-f1e04d947gd4'
10798
body['order']['order']['discounts'][0]['type'] = 'FIXED_AMOUNT'
108-
body['order']['order']['discounts'][0]['amount_money'] = {}
109-
body['order']['order']['discounts'][0]['amount_money']['amount'] = 100
110-
body['order']['order']['discounts'][0]['amount_money']['currency'] = 'USD'
11199
body['order']['order']['discounts'][0]['scope'] = 'LINE_ITEM'
112100

113101
body['order']['idempotency_key'] = '12ae1696-z1e3-4328-af6d-f1e04d947gd4'

doc/api/orders.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ body['order']['line_items'] = []
5757
body['order']['line_items'].append({})
5858
body['order']['line_items'][0]['name'] = 'New York Strip Steak'
5959
body['order']['line_items'][0]['quantity'] = '1'
60-
body['order']['line_items'][0]['base_price_money'] = {}
61-
body['order']['line_items'][0]['base_price_money']['amount'] = 1599
62-
body['order']['line_items'][0]['base_price_money']['currency'] = 'USD'
6360

6461
body['order']['line_items'].append({})
6562
body['order']['line_items'][1]['quantity'] = '2'
@@ -99,9 +96,6 @@ body['order']['discounts'][1]['scope'] = 'ORDER'
9996
body['order']['discounts'].append({})
10097
body['order']['discounts'][2]['uid'] = 'one-dollar-off'
10198
body['order']['discounts'][2]['name'] = 'Sale - $1.00 off'
102-
body['order']['discounts'][2]['amount_money'] = {}
103-
body['order']['discounts'][2]['amount_money']['amount'] = 100
104-
body['order']['discounts'][2]['amount_money']['currency'] = 'USD'
10599
body['order']['discounts'][2]['scope'] = 'LINE_ITEM'
106100

107101
body['idempotency_key'] = '8193148c-9586-11e6-99f9-28cfe92138cf'
@@ -182,16 +176,10 @@ body['order']['line_items'] = []
182176
body['order']['line_items'].append({})
183177
body['order']['line_items'][0]['name'] = 'Item 1'
184178
body['order']['line_items'][0]['quantity'] = '1'
185-
body['order']['line_items'][0]['base_price_money'] = {}
186-
body['order']['line_items'][0]['base_price_money']['amount'] = 500
187-
body['order']['line_items'][0]['base_price_money']['currency'] = 'USD'
188179

189180
body['order']['line_items'].append({})
190181
body['order']['line_items'][1]['name'] = 'Item 2'
191182
body['order']['line_items'][1]['quantity'] = '2'
192-
body['order']['line_items'][1]['base_price_money'] = {}
193-
body['order']['line_items'][1]['base_price_money']['amount'] = 300
194-
body['order']['line_items'][1]['base_price_money']['currency'] = 'USD'
195183

196184
body['order']['discounts'] = []
197185

doc/api/subscriptions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ body['price_override_money']['amount'] = 100
6161
body['price_override_money']['currency'] = 'USD'
6262
body['card_id'] = 'ccof:qy5x8hHGYsgLrp4Q4GB'
6363
body['timezone'] = 'America/Los_Angeles'
64-
body['source'] = {}
6564

6665
result = subscriptions_api.create_subscription(body)
6766

doc/client.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:
55

66
| Parameter | Type | Description |
77
| --- | --- | --- |
8-
| `square_version` | `string` | Square Connect API versions<br>*Default*: `'2023-01-19'` |
8+
| `square_version` | `string` | Square Connect API versions<br>*Default*: `'2023-03-15'` |
99
| `custom_url` | `string` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
1010
| `environment` | `string` | The API environment. <br> **Default: `production`** |
1111
| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |
@@ -26,7 +26,7 @@ The API client can be initialized as follows:
2626
from square.client import Client
2727

2828
client = Client(
29-
square_version='2023-01-19',
29+
square_version='2023-03-15',
3030
access_token='AccessToken',
3131
environment='production',
3232
custom_url = 'https://connect.squareup.com',)
@@ -52,7 +52,7 @@ import jsonpickle
5252
from square.client import Client
5353

5454
client = Client(
55-
square_version='2023-01-19',
55+
square_version='2023-03-15',
5656
access_token='AccessToken',)
5757

5858
locations_api = client.locations

doc/models/appointment-segment.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ Defines an appointment segment of a booking.
2626
"duration_minutes": null,
2727
"service_variation_id": null,
2828
"team_member_id": "team_member_id0",
29-
"service_variation_version": null
29+
"service_variation_version": null,
30+
"intermission_minutes": null,
31+
"any_team_member": null,
32+
"resource_ids": null
3033
}
3134
```
3235

doc/models/availability.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Defines an appointment slot that encapsulates the appointment segments, location
2020
```json
2121
{
2222
"start_at": null,
23+
"location_id": null,
2324
"appointment_segments": null
2425
}
2526
```

doc/models/bank-account-payment-details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Additional details about BANK_ACCOUNT type payments.
1313
| --- | --- | --- | --- |
1414
| `bank_name` | `string` | Optional | The name of the bank associated with the bank account.<br>**Constraints**: *Maximum Length*: `100` |
1515
| `transfer_type` | `string` | Optional | The type of the bank transfer. The type can be `ACH` or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
16-
| `account_ownership_type` | `string` | Optional | The ownership type of the bank account performing the transfer.<br>The type can be `INDIVIDUAL`, `COMPANY`, or `UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
16+
| `account_ownership_type` | `string` | Optional | The ownership type of the bank account performing the transfer.<br>The type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`.<br>**Constraints**: *Maximum Length*: `50` |
1717
| `fingerprint` | `string` | Optional | Uniquely identifies the bank account for this seller and can be used<br>to determine if payments are from the same bank account.<br>**Constraints**: *Maximum Length*: `255` |
1818
| `country` | `string` | Optional | The two-letter ISO code representing the country the bank account is located in.<br>**Constraints**: *Minimum Length*: `2`, *Maximum Length*: `2` |
1919
| `statement_description` | `string` | Optional | The statement description as sent to the bank.<br>**Constraints**: *Maximum Length*: `1000` |

doc/models/booking-creator-details.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ Information about a booking creator.
1919

2020
```json
2121
{
22-
"creator_type": null
22+
"creator_type": null,
23+
"team_member_id": null,
24+
"customer_id": null
2325
}
2426
```
2527

0 commit comments

Comments
 (0)