Skip to content

Commit

Permalink
Bump Square Version
Browse files Browse the repository at this point in the history
  • Loading branch information
eyw520 committed Jan 22, 2025
1 parent 89dfe4b commit 0be6389
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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*: `'2024-12-18'` |
| `square_version` | `str` | Square Connect API versions<br>*Default*: `'2025-01-23'` |
| `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 @@ -24,7 +24,7 @@ The API client can be initialized as follows:

```python
client = Client(
square_version='2024-12-18',
square_version='2025-01-23',
bearer_auth_credentials=BearerAuthCredentials(
access_token='AccessToken'
),
Expand Down Expand Up @@ -53,7 +53,7 @@ from square.http.auth.o_auth_2 import BearerAuthCredentials
from square.client import Client

client = Client(
square_version='2024-12-18',
square_version='2025-01-23',
bearer_auth_credentials=BearerAuthCredentials(
access_token='AccessToken'
),
Expand Down
4 changes: 2 additions & 2 deletions square/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def sdk_version():

@staticmethod
def square_version():
return '2024-12-18'
return '2025-01-23'

def user_agent_detail(self):
return self.config.user_agent_detail
Expand Down Expand Up @@ -238,7 +238,7 @@ def __init__(self, http_client_instance=None,
retry_statuses=None, retry_methods=None,
environment='production',
custom_url='https://connect.squareup.com', access_token=None,
bearer_auth_credentials=None, square_version='2024-12-18',
bearer_auth_credentials=None, square_version='2025-01-23',
additional_headers={}, user_agent_detail='', config=None):
self.config = config or Configuration(
http_client_instance=http_client_instance,
Expand Down
2 changes: 1 addition & 1 deletion square/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, http_client_instance=None,
retry_statuses=None, retry_methods=None,
environment='production',
custom_url='https://connect.squareup.com', access_token=None,
bearer_auth_credentials=None, square_version='2024-12-18',
bearer_auth_credentials=None, square_version='2025-01-23',
additional_headers={}, user_agent_detail=''):
if retry_methods is None:
retry_methods = ['GET', 'PUT']
Expand Down

0 comments on commit 0be6389

Please sign in to comment.