Skip to content

Commit 941aea9

Browse files
author
autobot
committed
Generated PR for Release: 37.0.0.20240515
1 parent 1f3ecd0 commit 941aea9

13 files changed

+29
-18
lines changed

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*: `'2024-04-17'` |
8+
| `square_version` | `str` | Square Connect API versions<br>*Default*: `'2024-05-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 |
@@ -24,7 +24,7 @@ The API client can be initialized as follows:
2424

2525
```python
2626
client = Client(
27-
square_version='2024-04-17',
27+
square_version='2024-05-15',
2828
bearer_auth_credentials=BearerAuthCredentials(
2929
access_token='AccessToken'
3030
)
@@ -51,7 +51,7 @@ from square.http.auth.o_auth_2 import BearerAuthCredentials
5151
from square.client import Client
5252

5353
client = Client(
54-
square_version='2024-04-17',
54+
square_version='2024-05-15',
5555
bearer_auth_credentials=BearerAuthCredentials(
5656
access_token='AccessToken'
5757
)

doc/models/catalog-item.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ A [CatalogObject](../../doc/models/catalog-object.md) instance of the `ITEM` typ
1515
| `description` | `str` | Optional | The item's description. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.<br><br>Deprecated at 2022-07-20, this field is planned to retire in 6 months. You should migrate to use `description_html` to set the description<br>of the [CatalogItem](entity:CatalogItem) instance. The `description` and `description_html` field values are kept in sync. If you try to<br>set the both fields, the `description_html` text value overwrites the `description` value. Updates in one field are also reflected in the other,<br>except for when you use an early version before Square API 2022-07-20 and `description_html` is set to blank, setting the `description` value to null<br>does not nullify `description_html`.<br>**Constraints**: *Maximum Length*: `4096` |
1616
| `abbreviation` | `str` | Optional | The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used.<br>This attribute is searchable, and its value length is of Unicode code points.<br>**Constraints**: *Maximum Length*: `24` |
1717
| `label_color` | `str` | Optional | The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code. |
18+
| `is_taxable` | `bool` | Optional | Indicates whether the item is taxable (`true`) or non-taxable (`false`). Default is `true`. |
1819
| `available_online` | `bool` | Optional | If `true`, the item can be added to shipping orders from the merchant's online store. |
1920
| `available_for_pickup` | `bool` | Optional | If `true`, the item can be added to pickup orders from the merchant's online store. |
2021
| `available_electronically` | `bool` | Optional | If `true`, the item can be added to electronically fulfilled orders from the merchant's online store. |
@@ -44,7 +45,7 @@ A [CatalogObject](../../doc/models/catalog-object.md) instance of the `ITEM` typ
4445
"description": "description6",
4546
"abbreviation": "abbreviation8",
4647
"label_color": "label_color8",
47-
"available_online": false
48+
"is_taxable": false
4849
}
4950
```
5051

doc/models/destination-details-card-refund-details.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
| --- | --- | --- | --- |
1212
| `card` | [`Card`](../../doc/models/card.md) | Optional | Represents the payment details of a card to be used for payments. These<br>details are determined by the payment token generated by Web Payments SDK. |
1313
| `entry_method` | `str` | Optional | The method used to enter the card's details for the refund. The method can be<br>`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.<br>**Constraints**: *Maximum Length*: `50` |
14+
| `auth_result_code` | `str` | Optional | The authorization code provided by the issuer when a refund is approved.<br>**Constraints**: *Maximum Length*: `10` |
1415

1516
## Example (as JSON)
1617

@@ -23,7 +24,8 @@
2324
"exp_month": 228,
2425
"exp_year": 68
2526
},
26-
"entry_method": "entry_method4"
27+
"entry_method": "entry_method4",
28+
"auth_result_code": "auth_result_code6"
2729
}
2830
```
2931

doc/models/destination-details.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Details about a refund's destination.
2525
"exp_month": 228,
2626
"exp_year": 68
2727
},
28-
"entry_method": "entry_method8"
28+
"entry_method": "entry_method8",
29+
"auth_result_code": "auth_result_code0"
2930
}
3031
}
3132
```

doc/models/get-payment-refund-response.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ present or it might be present in a FAILED state.
5555
"exp_month": 228,
5656
"exp_year": 68
5757
},
58-
"entry_method": "entry_method8"
58+
"entry_method": "entry_method8",
59+
"auth_result_code": "auth_result_code0"
5960
}
6061
}
6162
},

doc/models/list-payment-refunds-response.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ Either `errors` or `refunds` is present in a given response (never both).
5757
"exp_month": 228,
5858
"exp_year": 68
5959
},
60-
"entry_method": "entry_method8"
60+
"entry_method": "entry_method8",
61+
"auth_result_code": "auth_result_code0"
6162
}
6263
}
6364
}

doc/models/payment-refund.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ the original payment and the amount of money refunded.
4646
"exp_month": 228,
4747
"exp_year": 68
4848
},
49-
"entry_method": "entry_method8"
49+
"entry_method": "entry_method8",
50+
"auth_result_code": "auth_result_code0"
5051
}
5152
},
5253
"amount_money": {

doc/models/payment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Represents a payment processed by the Square API.
5151
| `receipt_url` | `str` | Optional | The URL for the payment's receipt.<br>The field is only populated for COMPLETED payments.<br>**Constraints**: *Maximum Length*: `255` |
5252
| `device_details` | [`Device Details`](../../doc/models/device-details.md) | Optional | Details about the device that took the payment. |
5353
| `application_details` | [`Application Details`](../../doc/models/application-details.md) | Optional | Details about the application that took the payment. |
54+
| `is_offline_payment` | `bool` | Optional | Whether or not this payment was taken offline. |
5455
| `version_token` | `str` | Optional | Used for optimistic concurrency. This opaque token identifies a specific version of the<br>`Payment` object. |
5556

5657
## Example (as JSON)

doc/models/refund-payment-response.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ present, or it might be present with a status of `FAILED`.
5050
"exp_month": 228,
5151
"exp_year": 68
5252
},
53-
"entry_method": "entry_method8"
53+
"entry_method": "entry_method8",
54+
"auth_result_code": "auth_result_code0"
5455
}
5556
}
5657
},

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["setuptools>=61.0"]
44
[project]
55
name = "squareup"
66
description = "Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management."
7-
version = "36.0.0.20240417"
7+
version = "37.0.0.20240515"
88
readme = "README.md"
99
requires-python = ">=3.7"
1010
authors = [{name = "Square Developer Platform", email = "[email protected]"}]

0 commit comments

Comments
 (0)