Skip to content

Commit f195bc5

Browse files
Merge pull request #100 from square/release/23.0.0.20221019
Generated PR for Release: 23.0.0.20221019
2 parents 7925de5 + d4d4ed1 commit f195bc5

118 files changed

Lines changed: 6146 additions & 8379 deletions

File tree

Some content is hidden

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

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
pip install -r test-requirements.txt
3434
- name: Test with nose
3535
run: |
36-
nosetests
36+
pytest
3737
3838
labeler:
3939
needs: build

doc/api/customers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ body['address']['locality'] = 'New York'
105105
body['address']['administrative_district_level_1'] = 'NY'
106106
body['address']['postal_code'] = '10003'
107107
body['address']['country'] = 'US'
108-
body['phone_number'] = '1-212-555-4240'
108+
body['phone_number'] = '+1-212-555-4240'
109109
body['reference_id'] = 'YOUR_REFERENCE_ID'
110110
body['note'] = 'a customer'
111111

doc/api/invoices.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ body['invoice']['accepted_payment_methods'] = {}
114114
body['invoice']['accepted_payment_methods']['card'] = True
115115
body['invoice']['accepted_payment_methods']['square_gift_card'] = False
116116
body['invoice']['accepted_payment_methods']['bank_account'] = False
117+
body['invoice']['accepted_payment_methods']['buy_now_pay_later'] = False
117118
body['invoice']['custom_fields'] = []
118119

119120
body['invoice']['custom_fields'].append({})

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*: `'2022-09-21'` |
8+
| `square_version` | `string` | Square Connect API versions<br>*Default*: `'2022-10-19'` |
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='2022-09-21',
29+
square_version='2022-10-19',
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='2022-09-21',
55+
square_version='2022-10-19',
5656
access_token='AccessToken',)
5757

5858
locations_api = client.locations

doc/models/activity-type.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@
4343
| `TAX_ON_FEE` | The tax paid on fee amounts. |
4444
| `THIRD_PARTY_FEE` | Fees collected by a third-party platform. |
4545
| `THIRD_PARTY_FEE_REFUND` | Refunded fees from a third-party platform. |
46+
| `PAYOUT` | Balance change due to money transfer. |
4647

doc/models/cancel-invoice-response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The response returned by the `CancelInvoice` request.
2222
"invoice": {
2323
"accepted_payment_methods": {
2424
"bank_account": false,
25+
"buy_now_pay_later": false,
2526
"card": true,
2627
"square_gift_card": false
2728
},

doc/models/create-customer-request.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ Defines the body parameters that can be included in a request to the
1313
| Name | Type | Tags | Description |
1414
| --- | --- | --- | --- |
1515
| `idempotency_key` | `string` | Optional | The idempotency key for the request. For more information, see<br>[Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). |
16-
| `given_name` | `string` | Optional | The given name (that is, the first name) associated with the customer profile. |
17-
| `family_name` | `string` | Optional | The family name (that is, the last name) associated with the customer profile. |
18-
| `company_name` | `string` | Optional | A business name associated with the customer profile. |
19-
| `nickname` | `string` | Optional | A nickname for the customer profile. |
20-
| `email_address` | `string` | Optional | The email address associated with the customer profile. |
16+
| `given_name` | `string` | Optional | The given name (that is, the first name) associated with the customer profile.<br><br>The maximum length for this value is 300 characters. |
17+
| `family_name` | `string` | Optional | The family name (that is, the last name) associated with the customer profile.<br><br>The maximum length for this value is 300 characters. |
18+
| `company_name` | `string` | Optional | A business name associated with the customer profile.<br><br>The maximum length for this value is 500 characters. |
19+
| `nickname` | `string` | Optional | A nickname for the customer profile.<br><br>The maximum length for this value is 100 characters. |
20+
| `email_address` | `string` | Optional | The email address associated with the customer profile.<br><br>The maximum length for this value is 254 characters. |
2121
| `address` | [`Address`](../../doc/models/address.md) | Optional | Represents a postal address in a country.<br>For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses). |
22-
| `phone_number` | `string` | Optional | The phone number associated with the customer profile. A phone number can contain 9–16 digits, with an optional `+` prefix. |
23-
| `reference_id` | `string` | Optional | An optional second ID used to associate the customer profile with an<br>entity in another system. |
22+
| `phone_number` | `string` | Optional | The phone number associated with the customer profile. The phone number must be valid and can contain<br>9–16 digits, with an optional `+` prefix and country code. For more information, see<br>[Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number). |
23+
| `reference_id` | `string` | Optional | An optional second ID used to associate the customer profile with an<br>entity in another system.<br><br>The maximum length for this value is 100 characters. |
2424
| `note` | `string` | Optional | A custom note associated with the customer profile. |
25-
| `birthday` | `string` | Optional | The birthday associated with the customer profile, in RFC 3339 format. The year is optional. The timezone and time are not allowed.<br>For example, `0000-09-21T00:00:00-00:00` represents a birthday on September 21 and `1998-09-21T00:00:00-00:00` represents a birthday on September 21, 1998.<br>You can also specify this value in `YYYY-MM-DD` format. |
25+
| `birthday` | `string` | Optional | The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format. For example,<br>specify `1998-09-21` for September 21, 1998, or `09-21` for September 21. Birthdays are returned in `YYYY-MM-DD`<br>format, where `YYYY` is the specified birth year or `0000` if a birth year is not specified. |
2626
| `tax_ids` | [`Customer Tax Ids`](../../doc/models/customer-tax-ids.md) | Optional | Represents the tax ID associated with a [customer profile](../../doc/models/customer.md). The corresponding `tax_ids` field is available only for customers of sellers in EU countries or the United Kingdom.<br>For more information, see [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids). |
2727

2828
## Example (as JSON)
@@ -41,7 +41,7 @@ Defines the body parameters that can be included in a request to the
4141
"family_name": "Earhart",
4242
"given_name": "Amelia",
4343
"note": "a customer",
44-
"phone_number": "1-212-555-4240",
44+
"phone_number": "+1-212-555-4240",
4545
"reference_id": "YOUR_REFERENCE_ID"
4646
}
4747
```

doc/models/create-customer-response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Either `errors` or `customer` is present in a given response (never both).
3737
"given_name": "Amelia",
3838
"id": "JDKYHBWT1D4F8MFH63DBMEN8Y4",
3939
"note": "a customer",
40-
"phone_number": "1-212-555-4240",
40+
"phone_number": "+1-212-555-4240",
4141
"preferences": {
4242
"email_unsubscribed": false
4343
},

doc/models/create-invoice-request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Describes a `CreateInvoice` request.
2222
"invoice": {
2323
"accepted_payment_methods": {
2424
"bank_account": false,
25+
"buy_now_pay_later": false,
2526
"card": true,
2627
"square_gift_card": false
2728
},

doc/models/create-invoice-response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The response returned by the `CreateInvoice` request.
2222
"invoice": {
2323
"accepted_payment_methods": {
2424
"bank_account": false,
25+
"buy_now_pay_later": false,
2526
"card": true,
2627
"square_gift_card": false
2728
},

0 commit comments

Comments
 (0)