Skip to content

Commit d3a11ee

Browse files
author
autobot
committed
Generated PR for Release: 33.0.0.20231115
1 parent 1724c9f commit d3a11ee

23 files changed

+132
-217
lines changed

doc/api/labor.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,15 +354,16 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
354354
```python
355355
body = {
356356
'shift': {
357-
'start_at': '2019-01-25T03:11:00-05:00',
358357
'location_id': 'PAA1RJZZKXBFG',
358+
'start_at': '2019-01-25T03:11:00-05:00',
359359
'end_at': '2019-01-25T13:11:00-05:00',
360360
'wage': {
361361
'title': 'Barista',
362362
'hourly_rate': {
363363
'amount': 1100,
364364
'currency': 'USD'
365-
}
365+
},
366+
'tip_eligible': True
366367
},
367368
'breaks': [
368369
{
@@ -374,7 +375,11 @@ body = {
374375
'end_at': '2019-01-25T06:16:00-05:00'
375376
}
376377
],
377-
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI'
378+
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI',
379+
'declared_cash_tip_money': {
380+
'amount': 500,
381+
'currency': 'USD'
382+
}
378383
},
379384
'idempotency_key': 'HIDSNG5KS478L'
380385
}
@@ -554,15 +559,16 @@ id = 'id0'
554559

555560
body = {
556561
'shift': {
557-
'start_at': '2019-01-25T03:11:00-05:00',
558562
'location_id': 'PAA1RJZZKXBFG',
563+
'start_at': '2019-01-25T03:11:00-05:00',
559564
'end_at': '2019-01-25T13:11:00-05:00',
560565
'wage': {
561566
'title': 'Bartender',
562567
'hourly_rate': {
563568
'amount': 1500,
564569
'currency': 'USD'
565-
}
570+
},
571+
'tip_eligible': True
566572
},
567573
'breaks': [
568574
{
@@ -576,7 +582,11 @@ body = {
576582
}
577583
],
578584
'version': 1,
579-
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI'
585+
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI',
586+
'declared_cash_tip_money': {
587+
'amount': 500,
588+
'currency': 'USD'
589+
}
580590
}
581591
}
582592

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` | `str` | Square Connect API versions<br>*Default*: `'2023-10-18'` |
8+
| `square_version` | `str` | Square Connect API versions<br>*Default*: `'2023-11-15'` |
99
| `custom_url` | `str` | 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 |
@@ -25,7 +25,7 @@ The API client can be initialized as follows:
2525
```python
2626
from square.client import Client
2727
client = Client(
28-
square_version='2023-10-18',
28+
square_version='2023-11-15',
2929
access_token='AccessToken'
3030
)
3131
```
@@ -48,7 +48,7 @@ API calls return an `ApiResponse` object that includes the following fields:
4848
```python
4949
from square.client import Client
5050
client = Client(
51-
square_version='2023-10-18',
51+
square_version='2023-11-15',
5252
access_token='AccessToken'
5353
)
5454

doc/models/catalog-item.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,6 @@ A [CatalogObject](../../doc/models/catalog-object.md) instance of the `ITEM` typ
3535

3636
```json
3737
{
38-
"object": {
39-
"id": "#Cocoa",
40-
"item_data": {
41-
"abbreviation": "Ch",
42-
"description": "Hot chocolate",
43-
"name": "Cocoa",
44-
"visibility": "PRIVATE"
45-
},
46-
"present_at_all_locations": true,
47-
"type": "ITEM"
48-
},
4938
"name": "name6",
5039
"description": "description6",
5140
"abbreviation": "abbreviation8",

doc/models/catalog-modifier-list.md

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -26,49 +26,6 @@ the modifier list are allowed.
2626

2727
```json
2828
{
29-
"id": "#MilkType",
30-
"modifier_list_data": {
31-
"allow_quantities": false,
32-
"modifiers": [
33-
{
34-
"modifier_data": {
35-
"name": "Whole Milk",
36-
"price_money": {
37-
"amount": 0,
38-
"currency": "USD"
39-
}
40-
},
41-
"present_at_all_locations": true,
42-
"type": "MODIFIER"
43-
},
44-
{
45-
"modifier_data": {
46-
"name": "Almond Milk",
47-
"price_money": {
48-
"amount": 250,
49-
"currency": "USD"
50-
}
51-
},
52-
"present_at_all_locations": true,
53-
"type": "MODIFIER"
54-
},
55-
{
56-
"modifier_data": {
57-
"name": "Soy Milk",
58-
"price_money": {
59-
"amount": 250,
60-
"currency": "USD"
61-
}
62-
},
63-
"present_at_all_locations": true,
64-
"type": "MODIFIER"
65-
}
66-
],
67-
"name": "Milk Type",
68-
"selection_type": "SINGLE"
69-
},
70-
"present_at_all_locations": true,
71-
"type": "MODIFIER_LIST",
7229
"name": "name4",
7330
"ordinal": 226,
7431
"selection_type": "SINGLE",

doc/models/catalog-object-batch.md

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,6 @@ A batch of catalog objects.
2121
{
2222
"type": "PRICING_RULE",
2323
"id": "id6",
24-
"item_data": {
25-
"object": {
26-
"id": "#Cocoa",
27-
"item_data": {
28-
"abbreviation": "Ch",
29-
"description": "Hot chocolate",
30-
"name": "Cocoa",
31-
"visibility": "PRIVATE"
32-
},
33-
"present_at_all_locations": true,
34-
"type": "ITEM"
35-
}
36-
},
3724
"category_data": {
3825
"object": {
3926
"category_data": {
@@ -73,51 +60,6 @@ A batch of catalog objects.
7360
"type": "DISCOUNT"
7461
}
7562
},
76-
"modifier_list_data": {
77-
"id": "#MilkType",
78-
"modifier_list_data": {
79-
"allow_quantities": false,
80-
"modifiers": [
81-
{
82-
"modifier_data": {
83-
"name": "Whole Milk",
84-
"price_money": {
85-
"amount": 0,
86-
"currency": "USD"
87-
}
88-
},
89-
"present_at_all_locations": true,
90-
"type": "MODIFIER"
91-
},
92-
{
93-
"modifier_data": {
94-
"name": "Almond Milk",
95-
"price_money": {
96-
"amount": 250,
97-
"currency": "USD"
98-
}
99-
},
100-
"present_at_all_locations": true,
101-
"type": "MODIFIER"
102-
},
103-
{
104-
"modifier_data": {
105-
"name": "Soy Milk",
106-
"price_money": {
107-
"amount": 250,
108-
"currency": "USD"
109-
}
110-
},
111-
"present_at_all_locations": true,
112-
"type": "MODIFIER"
113-
}
114-
],
115-
"name": "Milk Type",
116-
"selection_type": "SINGLE"
117-
},
118-
"present_at_all_locations": true,
119-
"type": "MODIFIER_LIST"
120-
},
12163
"modifier_data": {
12264
"object": {
12365
"modifier_data": {

doc/models/catalog-object.md

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,6 @@ For a more detailed discussion of the Catalog data model, please see the
5555
{
5656
"type": "TAX",
5757
"id": "id4",
58-
"item_data": {
59-
"object": {
60-
"id": "#Cocoa",
61-
"item_data": {
62-
"abbreviation": "Ch",
63-
"description": "Hot chocolate",
64-
"name": "Cocoa",
65-
"visibility": "PRIVATE"
66-
},
67-
"present_at_all_locations": true,
68-
"type": "ITEM"
69-
}
70-
},
7158
"category_data": {
7259
"object": {
7360
"category_data": {
@@ -107,51 +94,6 @@ For a more detailed discussion of the Catalog data model, please see the
10794
"type": "DISCOUNT"
10895
}
10996
},
110-
"modifier_list_data": {
111-
"id": "#MilkType",
112-
"modifier_list_data": {
113-
"allow_quantities": false,
114-
"modifiers": [
115-
{
116-
"modifier_data": {
117-
"name": "Whole Milk",
118-
"price_money": {
119-
"amount": 0,
120-
"currency": "USD"
121-
}
122-
},
123-
"present_at_all_locations": true,
124-
"type": "MODIFIER"
125-
},
126-
{
127-
"modifier_data": {
128-
"name": "Almond Milk",
129-
"price_money": {
130-
"amount": 250,
131-
"currency": "USD"
132-
}
133-
},
134-
"present_at_all_locations": true,
135-
"type": "MODIFIER"
136-
},
137-
{
138-
"modifier_data": {
139-
"name": "Soy Milk",
140-
"price_money": {
141-
"amount": 250,
142-
"currency": "USD"
143-
}
144-
},
145-
"present_at_all_locations": true,
146-
"type": "MODIFIER"
147-
}
148-
],
149-
"name": "Milk Type",
150-
"selection_type": "SINGLE"
151-
},
152-
"present_at_all_locations": true,
153-
"type": "MODIFIER_LIST"
154-
},
15597
"modifier_data": {
15698
"object": {
15799
"modifier_data": {

doc/models/change-billing-anchor-date-response.md

Lines changed: 45 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,12 @@ Defines output parameters in a request to the
2020

2121
```json
2222
{
23-
"errors": [
24-
{
25-
"category": "MERCHANT_SUBSCRIPTION_ERROR",
26-
"code": "MAP_KEY_LENGTH_TOO_LONG",
27-
"detail": "detail6",
28-
"field": "field4"
29-
},
30-
{
31-
"category": "MERCHANT_SUBSCRIPTION_ERROR",
32-
"code": "MAP_KEY_LENGTH_TOO_LONG",
33-
"detail": "detail6",
34-
"field": "field4"
35-
}
36-
],
37-
"subscription": {
38-
"id": "id4",
39-
"location_id": "location_id8",
40-
"plan_variation_id": "plan_variation_id8",
41-
"customer_id": "customer_id2",
42-
"start_date": "start_date8"
43-
},
4423
"actions": [
4524
{
46-
"id": "id8",
47-
"type": "RESUME",
48-
"effective_date": "effective_date8",
49-
"monthly_billing_anchor_date": 186,
25+
"effective_date": "2023-11-01",
26+
"id": "f0a1dfdc-675b-3a14-a640-99f7ac1cee83",
27+
"monthly_billing_anchor_date": 1,
28+
"type": "CHANGE_BILLING_ANCHOR_DATE",
5029
"phases": [
5130
{
5231
"uid": "uid0",
@@ -68,6 +47,47 @@ Defines output parameters in a request to the
6847
}
6948
]
7049
}
50+
],
51+
"subscription": {
52+
"created_at": "2023-06-20T21:53:10Z",
53+
"customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G",
54+
"id": "9ba40961-995a-4a3d-8c53-048c40cafc13",
55+
"location_id": "S8GWD5R9QB376",
56+
"monthly_billing_anchor_date": 20,
57+
"phases": [
58+
{
59+
"order_template_id": "E6oBY5WfQ2eN4pkYZwq4ka6n7KeZY",
60+
"ordinal": 0,
61+
"plan_phase_uid": "C66BKH3ASTDYGJJCEZXQQSS7",
62+
"uid": "98d6f53b-40e1-4714-8827-032fd923be25"
63+
}
64+
],
65+
"plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7",
66+
"price_override_money": {
67+
"amount": 2000,
68+
"currency": "USD"
69+
},
70+
"source": {
71+
"name": "My Application"
72+
},
73+
"status": "ACTIVE",
74+
"timezone": "America/Los_Angeles",
75+
"version": 3,
76+
"start_date": "start_date8"
77+
},
78+
"errors": [
79+
{
80+
"category": "MERCHANT_SUBSCRIPTION_ERROR",
81+
"code": "MAP_KEY_LENGTH_TOO_LONG",
82+
"detail": "detail6",
83+
"field": "field4"
84+
},
85+
{
86+
"category": "MERCHANT_SUBSCRIPTION_ERROR",
87+
"code": "MAP_KEY_LENGTH_TOO_LONG",
88+
"detail": "detail6",
89+
"field": "field4"
90+
}
7191
]
7292
}
7393
```

0 commit comments

Comments
 (0)