Skip to content

Commit

Permalink
Merge pull request #123 from square/release/33.0.0.20231115
Browse files Browse the repository at this point in the history
Generated PR for Release: 33.0.0.20231115
  • Loading branch information
jessdelacruzsantos authored Nov 15, 2023
2 parents 1724c9f + d3a11ee commit 8708795
Show file tree
Hide file tree
Showing 23 changed files with 132 additions and 217 deletions.
22 changes: 16 additions & 6 deletions doc/api/labor.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,16 @@ This method returns a `ApiResponse` instance. The `body` property of this instan
```python
body = {
'shift': {
'start_at': '2019-01-25T03:11:00-05:00',
'location_id': 'PAA1RJZZKXBFG',
'start_at': '2019-01-25T03:11:00-05:00',
'end_at': '2019-01-25T13:11:00-05:00',
'wage': {
'title': 'Barista',
'hourly_rate': {
'amount': 1100,
'currency': 'USD'
}
},
'tip_eligible': True
},
'breaks': [
{
Expand All @@ -374,7 +375,11 @@ body = {
'end_at': '2019-01-25T06:16:00-05:00'
}
],
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI'
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI',
'declared_cash_tip_money': {
'amount': 500,
'currency': 'USD'
}
},
'idempotency_key': 'HIDSNG5KS478L'
}
Expand Down Expand Up @@ -554,15 +559,16 @@ id = 'id0'

body = {
'shift': {
'start_at': '2019-01-25T03:11:00-05:00',
'location_id': 'PAA1RJZZKXBFG',
'start_at': '2019-01-25T03:11:00-05:00',
'end_at': '2019-01-25T13:11:00-05:00',
'wage': {
'title': 'Bartender',
'hourly_rate': {
'amount': 1500,
'currency': 'USD'
}
},
'tip_eligible': True
},
'breaks': [
{
Expand All @@ -576,7 +582,11 @@ body = {
}
],
'version': 1,
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI'
'team_member_id': 'ormj0jJJZ5OZIzxrZYJI',
'declared_cash_tip_money': {
'amount': 500,
'currency': 'USD'
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions doc/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The following parameters are configurable for the API Client:

| Parameter | Type | Description |
| --- | --- | --- |
| `square_version` | `str` | Square Connect API versions<br>*Default*: `'2023-10-18'` |
| `square_version` | `str` | Square Connect API versions<br>*Default*: `'2023-11-15'` |
| `custom_url` | `str` | Sets the base URL requests are made to. Defaults to `https://connect.squareup.com`<br>*Default*: `'https://connect.squareup.com'` |
| `environment` | `string` | The API environment. <br> **Default: `production`** |
| `http_client_instance` | `HttpClient` | The Http Client passed from the sdk user for making requests |
Expand All @@ -25,7 +25,7 @@ The API client can be initialized as follows:
```python
from square.client import Client
client = Client(
square_version='2023-10-18',
square_version='2023-11-15',
access_token='AccessToken'
)
```
Expand All @@ -48,7 +48,7 @@ API calls return an `ApiResponse` object that includes the following fields:
```python
from square.client import Client
client = Client(
square_version='2023-10-18',
square_version='2023-11-15',
access_token='AccessToken'
)

Expand Down
11 changes: 0 additions & 11 deletions doc/models/catalog-item.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ A [CatalogObject](../../doc/models/catalog-object.md) instance of the `ITEM` typ

```json
{
"object": {
"id": "#Cocoa",
"item_data": {
"abbreviation": "Ch",
"description": "Hot chocolate",
"name": "Cocoa",
"visibility": "PRIVATE"
},
"present_at_all_locations": true,
"type": "ITEM"
},
"name": "name6",
"description": "description6",
"abbreviation": "abbreviation8",
Expand Down
43 changes: 0 additions & 43 deletions doc/models/catalog-modifier-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,49 +26,6 @@ the modifier list are allowed.

```json
{
"id": "#MilkType",
"modifier_list_data": {
"allow_quantities": false,
"modifiers": [
{
"modifier_data": {
"name": "Whole Milk",
"price_money": {
"amount": 0,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Almond Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Soy Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
}
],
"name": "Milk Type",
"selection_type": "SINGLE"
},
"present_at_all_locations": true,
"type": "MODIFIER_LIST",
"name": "name4",
"ordinal": 226,
"selection_type": "SINGLE",
Expand Down
58 changes: 0 additions & 58 deletions doc/models/catalog-object-batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,6 @@ A batch of catalog objects.
{
"type": "PRICING_RULE",
"id": "id6",
"item_data": {
"object": {
"id": "#Cocoa",
"item_data": {
"abbreviation": "Ch",
"description": "Hot chocolate",
"name": "Cocoa",
"visibility": "PRIVATE"
},
"present_at_all_locations": true,
"type": "ITEM"
}
},
"category_data": {
"object": {
"category_data": {
Expand Down Expand Up @@ -73,51 +60,6 @@ A batch of catalog objects.
"type": "DISCOUNT"
}
},
"modifier_list_data": {
"id": "#MilkType",
"modifier_list_data": {
"allow_quantities": false,
"modifiers": [
{
"modifier_data": {
"name": "Whole Milk",
"price_money": {
"amount": 0,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Almond Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Soy Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
}
],
"name": "Milk Type",
"selection_type": "SINGLE"
},
"present_at_all_locations": true,
"type": "MODIFIER_LIST"
},
"modifier_data": {
"object": {
"modifier_data": {
Expand Down
58 changes: 0 additions & 58 deletions doc/models/catalog-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,6 @@ For a more detailed discussion of the Catalog data model, please see the
{
"type": "TAX",
"id": "id4",
"item_data": {
"object": {
"id": "#Cocoa",
"item_data": {
"abbreviation": "Ch",
"description": "Hot chocolate",
"name": "Cocoa",
"visibility": "PRIVATE"
},
"present_at_all_locations": true,
"type": "ITEM"
}
},
"category_data": {
"object": {
"category_data": {
Expand Down Expand Up @@ -107,51 +94,6 @@ For a more detailed discussion of the Catalog data model, please see the
"type": "DISCOUNT"
}
},
"modifier_list_data": {
"id": "#MilkType",
"modifier_list_data": {
"allow_quantities": false,
"modifiers": [
{
"modifier_data": {
"name": "Whole Milk",
"price_money": {
"amount": 0,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Almond Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
},
{
"modifier_data": {
"name": "Soy Milk",
"price_money": {
"amount": 250,
"currency": "USD"
}
},
"present_at_all_locations": true,
"type": "MODIFIER"
}
],
"name": "Milk Type",
"selection_type": "SINGLE"
},
"present_at_all_locations": true,
"type": "MODIFIER_LIST"
},
"modifier_data": {
"object": {
"modifier_data": {
Expand Down
70 changes: 45 additions & 25 deletions doc/models/change-billing-anchor-date-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,12 @@ Defines output parameters in a request to the

```json
{
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
}
],
"subscription": {
"id": "id4",
"location_id": "location_id8",
"plan_variation_id": "plan_variation_id8",
"customer_id": "customer_id2",
"start_date": "start_date8"
},
"actions": [
{
"id": "id8",
"type": "RESUME",
"effective_date": "effective_date8",
"monthly_billing_anchor_date": 186,
"effective_date": "2023-11-01",
"id": "f0a1dfdc-675b-3a14-a640-99f7ac1cee83",
"monthly_billing_anchor_date": 1,
"type": "CHANGE_BILLING_ANCHOR_DATE",
"phases": [
{
"uid": "uid0",
Expand All @@ -68,6 +47,47 @@ Defines output parameters in a request to the
}
]
}
],
"subscription": {
"created_at": "2023-06-20T21:53:10Z",
"customer_id": "CHFGVKYY8RSV93M5KCYTG4PN0G",
"id": "9ba40961-995a-4a3d-8c53-048c40cafc13",
"location_id": "S8GWD5R9QB376",
"monthly_billing_anchor_date": 20,
"phases": [
{
"order_template_id": "E6oBY5WfQ2eN4pkYZwq4ka6n7KeZY",
"ordinal": 0,
"plan_phase_uid": "C66BKH3ASTDYGJJCEZXQQSS7",
"uid": "98d6f53b-40e1-4714-8827-032fd923be25"
}
],
"plan_variation_id": "FQ7CDXXWSLUJRPM3GFJSJGZ7",
"price_override_money": {
"amount": 2000,
"currency": "USD"
},
"source": {
"name": "My Application"
},
"status": "ACTIVE",
"timezone": "America/Los_Angeles",
"version": 3,
"start_date": "start_date8"
},
"errors": [
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
},
{
"category": "MERCHANT_SUBSCRIPTION_ERROR",
"code": "MAP_KEY_LENGTH_TOO_LONG",
"detail": "detail6",
"field": "field4"
}
]
}
```
Expand Down
Loading

0 comments on commit 8708795

Please sign in to comment.